var Jst = Object.defineProperty; var Kst = (h, T, L) => T in h ? Jst(h, T, { enumerable: !0, configurable: !0, writable: !0, value: L }) : h[T] = L; var MD = (h, T, L) => (Kst(h, typeof T != "symbol" ? T + "" : T, L), L); class Xst { constructor() { this.listeners = [], this.unexpectedErrorHandler = function(T) { setTimeout(() => { throw T.stack ? WD.isErrorNoTelemetry(T) ? new WD(T.message + ` ` + T.stack) : new Error(T.message + ` ` + T.stack) : T; }, 0); }; } addListener(T) { return this.listeners.push(T), () => { this._removeListener(T); }; } emit(T) { this.listeners.forEach((L) => { L(T); }); } _removeListener(T) { this.listeners.splice(this.listeners.indexOf(T), 1); } setUnexpectedErrorHandler(T) { this.unexpectedErrorHandler = T; } getUnexpectedErrorHandler() { return this.unexpectedErrorHandler; } onUnexpectedError(T) { this.unexpectedErrorHandler(T), this.emit(T); } // For external errors, we don't want the listeners to be called onUnexpectedExternalError(T) { this.unexpectedErrorHandler(T); } } const Yst = new Xst(); function CRe(h) { $st(h) || Yst.onUnexpectedError(h); } function aDe(h) { if (h instanceof Error) { const { name: T, message: L } = h, W = h.stacktrace || h.stack; return { $isError: !0, name: T, message: L, stack: W, noTelemetry: WD.isErrorNoTelemetry(h) }; } return h; } const Ioe = "Canceled"; function $st(h) { return h instanceof Qst ? !0 : h instanceof Error && h.name === Ioe && h.message === Ioe; } class Qst extends Error { constructor() { super(Ioe), this.name = this.message; } } class WD extends Error { constructor(T) { super(T), this.name = "CodeExpectedError"; } static fromError(T) { if (T instanceof WD) return T; const L = new WD(); return L.message = T.message, L.stack = T.stack, L; } static isErrorNoTelemetry(T) { return T.name === "CodeExpectedError"; } } class JL extends Error { constructor(T) { super(T || "An unexpected bug occurred."), Object.setPrototypeOf(this, JL.prototype); debugger; } } function Zst(h) { const T = this; let L = !1, W; return function() { return L || (L = !0, W = h.apply(T, arguments)), W; }; } var WV; (function(h) { function T(Vn) { return Vn && typeof Vn == "object" && typeof Vn[Symbol.iterator] == "function"; } h.is = T; const L = Object.freeze([]); function W() { return L; } h.empty = W; function* fe(Vn) { yield Vn; } h.single = fe; function ve(Vn) { return T(Vn) ? Vn : fe(Vn); } h.wrap = ve; function Ue(Vn) { return Vn || L; } h.from = Ue; function ut(Vn) { return !Vn || Vn[Symbol.iterator]().next().done === !0; } h.isEmpty = ut; function Ct(Vn) { return Vn[Symbol.iterator]().next().value; } h.first = Ct; function Ne(Vn, un) { for (const Yi of Vn) if (un(Yi)) return !0; return !1; } h.some = Ne; function Ye(Vn, un) { for (const Yi of Vn) if (un(Yi)) return Yi; } h.find = Ye; function* cn(Vn, un) { for (const Yi of Vn) un(Yi) && (yield Yi); } h.filter = cn; function* En(Vn, un) { let Yi = 0; for (const $i of Vn) yield un($i, Yi++); } h.map = En; function* ni(...Vn) { for (const un of Vn) for (const Yi of un) yield Yi; } h.concat = ni; function Ei(Vn, un, Yi) { let $i = Yi; for (const ts of Vn) $i = un($i, ts); return $i; } h.reduce = Ei; function* Ni(Vn, un, Yi = Vn.length) { for (un < 0 && (un += Vn.length), Yi < 0 ? Yi += Vn.length : Yi > Vn.length && (Yi = Vn.length); un < Yi; un++) yield Vn[un]; } h.slice = Ni; function wo(Vn, un = Number.POSITIVE_INFINITY) { const Yi = []; if (un === 0) return [Yi, Vn]; const $i = Vn[Symbol.iterator](); for (let ts = 0; ts < un; ts++) { const td = $i.next(); if (td.done) return [Yi, h.empty()]; Yi.push(td.value); } return [Yi, { [Symbol.iterator]() { return $i; } }]; } h.consume = wo; })(WV || (WV = {})); globalThis && globalThis.__awaiter; function LRe(h) { if (WV.is(h)) { const T = []; for (const L of h) if (L) try { L.dispose(); } catch (W) { T.push(W); } if (T.length === 1) throw T[0]; if (T.length > 1) throw new AggregateError(T, "Encountered errors while disposing of store"); return Array.isArray(h) ? [] : h; } else if (h) return h.dispose(), h; } function elt(...h) { return zV(() => LRe(h)); } function zV(h) { return { dispose: Zst(() => { h(); }) }; } class qL { constructor() { this._toDispose = /* @__PURE__ */ new Set(), this._isDisposed = !1; } /** * Dispose of all registered disposables and mark this object as disposed. * * Any future disposables added to this object will be disposed of on `add`. */ dispose() { this._isDisposed || (this._isDisposed = !0, this.clear()); } /** * @return `true` if this object has been disposed of. */ get isDisposed() { return this._isDisposed; } /** * Dispose of all registered disposables but do not mark this object as disposed. */ clear() { if (this._toDispose.size !== 0) try { LRe(this._toDispose); } finally { this._toDispose.clear(); } } /** * Add a new {@link IDisposable disposable} to the collection. */ add(T) { if (!T) return T; if (T === this) throw new Error("Cannot register a disposable on itself!"); return this._isDisposed ? qL.DISABLE_DISPOSED_WARNING || console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack) : this._toDispose.add(T), T; } } qL.DISABLE_DISPOSED_WARNING = !1; class QV { constructor() { this._store = new qL(), this._store; } dispose() { this._store.dispose(); } /** * Adds `o` to the collection of disposables managed by this object. */ _register(T) { if (T === this) throw new Error("Cannot register a disposable on itself!"); return this._store.add(T); } } QV.None = Object.freeze({ dispose() { } }); class tlt { constructor() { this.dispose = () => { }, this.unset = () => { }, this.isset = () => !1; } set(T) { let L = T; return this.unset = () => L = void 0, this.isset = () => L !== void 0, this.dispose = () => { L && (L(), L = void 0); }, this; } } class Hu { constructor(T) { this.element = T, this.next = Hu.Undefined, this.prev = Hu.Undefined; } } Hu.Undefined = new Hu(void 0); class qV { constructor() { this._first = Hu.Undefined, this._last = Hu.Undefined, this._size = 0; } get size() { return this._size; } isEmpty() { return this._first === Hu.Undefined; } clear() { let T = this._first; for (; T !== Hu.Undefined; ) { const L = T.next; T.prev = Hu.Undefined, T.next = Hu.Undefined, T = L; } this._first = Hu.Undefined, this._last = Hu.Undefined, this._size = 0; } unshift(T) { return this._insert(T, !1); } push(T) { return this._insert(T, !0); } _insert(T, L) { const W = new Hu(T); if (this._first === Hu.Undefined) this._first = W, this._last = W; else if (L) { const ve = this._last; this._last = W, W.prev = ve, ve.next = W; } else { const ve = this._first; this._first = W, W.next = ve, ve.prev = W; } this._size += 1; let fe = !1; return () => { fe || (fe = !0, this._remove(W)); }; } shift() { if (this._first !== Hu.Undefined) { const T = this._first.element; return this._remove(this._first), T; } } pop() { if (this._last !== Hu.Undefined) { const T = this._last.element; return this._remove(this._last), T; } } _remove(T) { if (T.prev !== Hu.Undefined && T.next !== Hu.Undefined) { const L = T.prev; L.next = T.next, T.next.prev = L; } else T.prev === Hu.Undefined && T.next === Hu.Undefined ? (this._first = Hu.Undefined, this._last = Hu.Undefined) : T.next === Hu.Undefined ? (this._last = this._last.prev, this._last.next = Hu.Undefined) : T.prev === Hu.Undefined && (this._first = this._first.next, this._first.prev = Hu.Undefined); this._size -= 1; } *[Symbol.iterator]() { let T = this._first; for (; T !== Hu.Undefined; ) yield T.element, T = T.next; } } globalThis && globalThis.__awaiter; let nlt = typeof document < "u" && document.location && document.location.hash.indexOf("pseudo=true") >= 0; function rlt(h, T) { let L; return T.length === 0 ? L = h : L = h.replace(/\{(\d+)\}/g, (W, fe) => { const ve = fe[0], Ue = T[ve]; let ut = W; return typeof Ue == "string" ? ut = Ue : (typeof Ue == "number" || typeof Ue == "boolean" || Ue === void 0 || Ue === null) && (ut = String(Ue)), ut; }), nlt && (L = "[" + L.replace(/[aouei]/g, "$&$&") + "]"), L; } function ilt(h, T, ...L) { return rlt(T, L); } var Toe; const VD = "en"; let koe = !1, woe = !1, Soe = !1, IRe = !1, BV, UV = VD, oDe = VD, alt, qb; const Zg = typeof self == "object" ? self : typeof global == "object" ? global : {}; let ym; typeof Zg.vscode < "u" && typeof Zg.vscode.process < "u" ? ym = Zg.vscode.process : typeof process < "u" && (ym = process); const olt = typeof ((Toe = ym == null ? void 0 : ym.versions) === null || Toe === void 0 ? void 0 : Toe.electron) == "string", slt = olt && (ym == null ? void 0 : ym.type) === "renderer"; if (typeof navigator == "object" && !slt) qb = navigator.userAgent, koe = qb.indexOf("Windows") >= 0, woe = qb.indexOf("Macintosh") >= 0, (qb.indexOf("Macintosh") >= 0 || qb.indexOf("iPad") >= 0 || qb.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0, Soe = qb.indexOf("Linux") >= 0, (qb == null ? void 0 : qb.indexOf("Mobi")) >= 0, IRe = !0, // This call _must_ be done in the file that calls `nls.getConfiguredDefaultLocale` // to ensure that the NLS AMD Loader plugin has been loaded and configured. // This is because the loader plugin decides what the default locale is based on // how it's able to resolve the strings. ilt({ key: "ensureLoaderPluginIsLoaded", comment: ["{Locked}"] }, "_"), BV = VD, UV = BV, oDe = navigator.language; else if (typeof ym == "object") { koe = ym.platform === "win32", woe = ym.platform === "darwin", Soe = ym.platform === "linux", Soe && ym.env.SNAP && ym.env.SNAP_REVISION, ym.env.CI || ym.env.BUILD_ARTIFACTSTAGINGDIRECTORY, BV = VD, UV = VD; const h = ym.env.VSCODE_NLS_CONFIG; if (h) try { const T = JSON.parse(h), L = T.availableLanguages["*"]; BV = T.locale, oDe = T.osLocale, UV = L || VD, alt = T._translationsConfigFile; } catch { } } else console.error("Unable to resolve platform."); const hP = koe, llt = woe; IRe && Zg.importScripts; const HE = qb, $2 = UV; var sDe; (function(h) { function T() { return $2; } h.value = T; function L() { return $2.length === 2 ? $2 === "en" : $2.length >= 3 ? $2[0] === "e" && $2[1] === "n" && $2[2] === "-" : !1; } h.isDefaultVariant = L; function W() { return $2 === "en"; } h.isDefault = W; })(sDe || (sDe = {})); const clt = typeof Zg.postMessage == "function" && !Zg.importScripts; (() => { if (clt) { const h = []; Zg.addEventListener("message", (L) => { if (L.data && L.data.vscodeScheduleAsyncWork) for (let W = 0, fe = h.length; W < fe; W++) { const ve = h[W]; if (ve.id === L.data.vscodeScheduleAsyncWork) { h.splice(W, 1), ve.callback(); return; } } }); let T = 0; return (L) => { const W = ++T; h.push({ id: W, callback: L }), Zg.postMessage({ vscodeScheduleAsyncWork: W }, "*"); }; } return (h) => setTimeout(h); })(); const ult = !!(HE && HE.indexOf("Chrome") >= 0); HE && HE.indexOf("Firefox") >= 0; !ult && HE && HE.indexOf("Safari") >= 0; HE && HE.indexOf("Edg/") >= 0; HE && HE.indexOf("Android") >= 0; const dlt = Zg.performance && typeof Zg.performance.now == "function"; class ZV { static create(T = !0) { return new ZV(T); } constructor(T) { this._highResolution = dlt && T, this._startTime = this._now(), this._stopTime = -1; } stop() { this._stopTime = this._now(); } reset() { this._startTime = this._now(), this._stopTime = -1; } elapsed() { return this._stopTime !== -1 ? this._stopTime - this._startTime : this._now() - this._startTime; } _now() { return this._highResolution ? Zg.performance.now() : Date.now(); } } globalThis && globalThis.__awaiter; var Doe; (function(h) { h.None = () => QV.None; function T(oa, na) { return Ye(oa, () => { }, 0, void 0, !0, void 0, na); } h.defer = T; function L(oa) { return (na, xa = null, yn) => { let ua = !1, ms; return ms = oa((rn) => { if (!ua) return ms ? ms.dispose() : ua = !0, na.call(xa, rn); }, null, yn), ua && ms.dispose(), ms; }; } h.once = L; function W(oa, na, xa) { return Ne((yn, ua = null, ms) => oa((rn) => yn.call(ua, na(rn)), null, ms), xa); } h.map = W; function fe(oa, na, xa) { return Ne((yn, ua = null, ms) => oa((rn) => { na(rn), yn.call(ua, rn); }, null, ms), xa); } h.forEach = fe; function ve(oa, na, xa) { return Ne((yn, ua = null, ms) => oa((rn) => na(rn) && yn.call(ua, rn), null, ms), xa); } h.filter = ve; function Ue(oa) { return oa; } h.signal = Ue; function ut(...oa) { return (na, xa = null, yn) => elt(...oa.map((ua) => ua((ms) => na.call(xa, ms), null, yn))); } h.any = ut; function Ct(oa, na, xa, yn) { let ua = xa; return W(oa, (ms) => (ua = na(ua, ms), ua), yn); } h.reduce = Ct; function Ne(oa, na) { let xa; const yn = { onWillAddFirstListener() { xa = oa(ua.fire, ua); }, onDidRemoveLastListener() { xa == null || xa.dispose(); } }, ua = new jE(yn); return na == null || na.add(ua), ua.event; } function Ye(oa, na, xa = 100, yn = !1, ua = !1, ms, rn) { let Fp, Xl, nd, Mo = 0, ty; const qD = { leakWarningThreshold: ms, onWillAddFirstListener() { Fp = oa((JD) => { Mo++, Xl = na(Xl, JD), yn && !nd && (aA.fire(Xl), Xl = void 0), ty = () => { const _a = Xl; Xl = void 0, nd = void 0, (!yn || Mo > 1) && aA.fire(_a), Mo = 0; }, typeof xa == "number" ? (clearTimeout(nd), nd = setTimeout(ty, xa)) : nd === void 0 && (nd = 0, queueMicrotask(ty)); }); }, onWillRemoveListener() { ua && Mo > 0 && (ty == null || ty()); }, onDidRemoveLastListener() { ty = void 0, Fp.dispose(); } }, aA = new jE(qD); return rn == null || rn.add(aA), aA.event; } h.debounce = Ye; function cn(oa, na = 0, xa) { return h.debounce(oa, (yn, ua) => yn ? (yn.push(ua), yn) : [ua], na, void 0, !0, void 0, xa); } h.accumulate = cn; function En(oa, na = (yn, ua) => yn === ua, xa) { let yn = !0, ua; return ve(oa, (ms) => { const rn = yn || !na(ms, ua); return yn = !1, ua = ms, rn; }, xa); } h.latch = En; function ni(oa, na, xa) { return [ h.filter(oa, na, xa), h.filter(oa, (yn) => !na(yn), xa) ]; } h.split = ni; function Ei(oa, na = !1, xa = []) { let yn = xa.slice(), ua = oa((Fp) => { yn ? yn.push(Fp) : rn.fire(Fp); }); const ms = () => { yn == null || yn.forEach((Fp) => rn.fire(Fp)), yn = null; }, rn = new jE({ onWillAddFirstListener() { ua || (ua = oa((Fp) => rn.fire(Fp))); }, onDidAddFirstListener() { yn && (na ? setTimeout(ms) : ms()); }, onDidRemoveLastListener() { ua && ua.dispose(), ua = null; } }); return rn.event; } h.buffer = Ei; class Ni { constructor(na) { this.event = na, this.disposables = new qL(); } /** @see {@link Event.map} */ map(na) { return new Ni(W(this.event, na, this.disposables)); } /** @see {@link Event.forEach} */ forEach(na) { return new Ni(fe(this.event, na, this.disposables)); } filter(na) { return new Ni(ve(this.event, na, this.disposables)); } /** @see {@link Event.reduce} */ reduce(na, xa) { return new Ni(Ct(this.event, na, xa, this.disposables)); } /** @see {@link Event.reduce} */ latch() { return new Ni(En(this.event, void 0, this.disposables)); } debounce(na, xa = 100, yn = !1, ua = !1, ms) { return new Ni(Ye(this.event, na, xa, yn, ua, ms, this.disposables)); } /** * Attach a listener to the event. */ on(na, xa, yn) { return this.event(na, xa, yn); } /** @see {@link Event.once} */ once(na, xa, yn) { return L(this.event)(na, xa, yn); } dispose() { this.disposables.dispose(); } } function wo(oa) { return new Ni(oa); } h.chain = wo; function Vn(oa, na, xa = (yn) => yn) { const yn = (...Fp) => rn.fire(xa(...Fp)), ua = () => oa.on(na, yn), ms = () => oa.removeListener(na, yn), rn = new jE({ onWillAddFirstListener: ua, onDidRemoveLastListener: ms }); return rn.event; } h.fromNodeEventEmitter = Vn; function un(oa, na, xa = (yn) => yn) { const yn = (...Fp) => rn.fire(xa(...Fp)), ua = () => oa.addEventListener(na, yn), ms = () => oa.removeEventListener(na, yn), rn = new jE({ onWillAddFirstListener: ua, onDidRemoveLastListener: ms }); return rn.event; } h.fromDOMEventEmitter = un; function Yi(oa) { return new Promise((na) => L(oa)(na)); } h.toPromise = Yi; function $i(oa, na) { return na(void 0), oa((xa) => na(xa)); } h.runAndSubscribe = $i; function ts(oa, na) { let xa = null; function yn(ms) { xa == null || xa.dispose(), xa = new qL(), na(ms, xa); } yn(void 0); const ua = oa((ms) => yn(ms)); return zV(() => { ua.dispose(), xa == null || xa.dispose(); }); } h.runAndSubscribeWithStore = ts; class td { constructor(na, xa) { this.obs = na, this._counter = 0, this._hasChanged = !1; const yn = { onWillAddFirstListener: () => { na.addObserver(this); }, onDidRemoveLastListener: () => { na.removeObserver(this); } }; this.emitter = new jE(yn), xa && xa.add(this.emitter); } beginUpdate(na) { this._counter++; } handleChange(na, xa) { this._hasChanged = !0; } endUpdate(na) { --this._counter === 0 && this._hasChanged && (this._hasChanged = !1, this.emitter.fire(this.obs.get())); } } function Ii(oa, na) { return new td(oa, na).emitter.event; } h.fromObservable = Ii; })(Doe || (Doe = {})); class zD { constructor(T) { this.listenerCount = 0, this.invocationCount = 0, this.elapsedOverall = 0, this.durations = [], this.name = `${T}_${zD._idPool++}`, zD.all.add(this); } start(T) { this._stopWatch = new ZV(!0), this.listenerCount = T; } stop() { if (this._stopWatch) { const T = this._stopWatch.elapsed(); this.durations.push(T), this.elapsedOverall += T, this.invocationCount += 1, this._stopWatch = void 0; } } } zD.all = /* @__PURE__ */ new Set(); zD._idPool = 0; let flt = -1; class _lt { constructor(T, L = Math.random().toString(18).slice(2, 5)) { this.threshold = T, this.name = L, this._warnCountdown = 0; } dispose() { var T; (T = this._stacks) === null || T === void 0 || T.clear(); } check(T, L) { const W = this.threshold; if (W <= 0 || L < W) return; this._stacks || (this._stacks = /* @__PURE__ */ new Map()); const fe = this._stacks.get(T.value) || 0; if (this._stacks.set(T.value, fe + 1), this._warnCountdown -= 1, this._warnCountdown <= 0) { this._warnCountdown = W * 0.5; let ve, Ue = 0; for (const [ut, Ct] of this._stacks) (!ve || Ue < Ct) && (ve = ut, Ue = Ct); console.warn(`[${this.name}] potential listener LEAK detected, having ${L} listeners already. MOST frequent listener (${Ue}):`), console.warn(ve); } return () => { const ve = this._stacks.get(T.value) || 0; this._stacks.set(T.value, ve - 1); }; } } class Koe { static create() { var T; return new Koe((T = new Error().stack) !== null && T !== void 0 ? T : ""); } constructor(T) { this.value = T; } print() { console.warn(this.value.split(` `).slice(2).join(` `)); } } class plt { constructor(T, L, W) { this.callback = T, this.callbackThis = L, this.stack = W, this.subscription = new tlt(); } invoke(T) { this.callback.call(this.callbackThis, T); } } class jE { constructor(T) { var L, W, fe, ve, Ue; this._disposed = !1, this._options = T, this._leakageMon = !((L = this._options) === null || L === void 0) && L.leakWarningThreshold ? new _lt((fe = (W = this._options) === null || W === void 0 ? void 0 : W.leakWarningThreshold) !== null && fe !== void 0 ? fe : flt) : void 0, this._perfMon = !((ve = this._options) === null || ve === void 0) && ve._profName ? new zD(this._options._profName) : void 0, this._deliveryQueue = (Ue = this._options) === null || Ue === void 0 ? void 0 : Ue.deliveryQueue; } dispose() { var T, L, W, fe; this._disposed || (this._disposed = !0, this._listeners && this._listeners.clear(), (T = this._deliveryQueue) === null || T === void 0 || T.clear(this), (W = (L = this._options) === null || L === void 0 ? void 0 : L.onDidRemoveLastListener) === null || W === void 0 || W.call(L), (fe = this._leakageMon) === null || fe === void 0 || fe.dispose()); } /** * For the public to allow to subscribe * to events from this Emitter */ get event() { return this._event || (this._event = (T, L, W) => { var fe, ve, Ue; if (this._listeners || (this._listeners = new qV()), this._leakageMon && this._listeners.size > this._leakageMon.threshold * 3) return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`), QV.None; const ut = this._listeners.isEmpty(); ut && (!((fe = this._options) === null || fe === void 0) && fe.onWillAddFirstListener) && this._options.onWillAddFirstListener(this); let Ct, Ne; this._leakageMon && this._listeners.size >= Math.ceil(this._leakageMon.threshold * 0.2) && (Ne = Koe.create(), Ct = this._leakageMon.check(Ne, this._listeners.size + 1)); const Ye = new plt(T, L, Ne), cn = this._listeners.push(Ye); ut && (!((ve = this._options) === null || ve === void 0) && ve.onDidAddFirstListener) && this._options.onDidAddFirstListener(this), !((Ue = this._options) === null || Ue === void 0) && Ue.onDidAddListener && this._options.onDidAddListener(this, T, L); const En = Ye.subscription.set(() => { var ni, Ei; Ct == null || Ct(), this._disposed || ((Ei = (ni = this._options) === null || ni === void 0 ? void 0 : ni.onWillRemoveListener) === null || Ei === void 0 || Ei.call(ni, this), cn(), this._options && this._options.onDidRemoveLastListener && (this._listeners && !this._listeners.isEmpty() || this._options.onDidRemoveLastListener(this))); }); return W instanceof qL ? W.add(En) : Array.isArray(W) && W.push(En), En; }), this._event; } /** * To be kept private to fire an event to * subscribers */ fire(T) { var L, W, fe; if (this._listeners) { this._deliveryQueue || (this._deliveryQueue = new hlt((L = this._options) === null || L === void 0 ? void 0 : L.onListenerError)); for (const ve of this._listeners) this._deliveryQueue.push(this, ve, T); (W = this._perfMon) === null || W === void 0 || W.start(this._deliveryQueue.size), this._deliveryQueue.deliver(), (fe = this._perfMon) === null || fe === void 0 || fe.stop(); } } hasListeners() { return this._listeners ? !this._listeners.isEmpty() : !1; } } class mlt { constructor(T = CRe) { this._onListenerError = T, this._queue = new qV(); } get size() { return this._queue.size; } push(T, L, W) { this._queue.push(new glt(T, L, W)); } clear(T) { const L = new qV(); for (const W of this._queue) W.emitter !== T && L.push(W); this._queue = L; } deliver() { for (; this._queue.size > 0; ) { const T = this._queue.shift(); try { T.listener.invoke(T.event); } catch (L) { this._onListenerError(L); } } } } class hlt extends mlt { clear(T) { this._queue.clear(); } } class glt { constructor(T, L, W) { this.emitter = T, this.listener = L, this.event = W; } } function ylt(h) { return typeof h == "string"; } function vlt(h) { let T = [], L = Object.getPrototypeOf(h); for (; Object.prototype !== L; ) T = T.concat(Object.getOwnPropertyNames(L)), L = Object.getPrototypeOf(L); return T; } function Roe(h) { const T = []; for (const L of vlt(h)) typeof h[L] == "function" && T.push(L); return T; } function blt(h, T) { const L = (fe) => function() { const ve = Array.prototype.slice.call(arguments, 0); return T(fe, ve); }, W = {}; for (const fe of h) W[fe] = L(fe); return W; } const kRe = Object.freeze(function(h, T) { const L = setTimeout(h.bind(T), 0); return { dispose() { clearTimeout(L); } }; }); var JV; (function(h) { function T(L) { return L === h.None || L === h.Cancelled || L instanceof VV ? !0 : !L || typeof L != "object" ? !1 : typeof L.isCancellationRequested == "boolean" && typeof L.onCancellationRequested == "function"; } h.isCancellationToken = T, h.None = Object.freeze({ isCancellationRequested: !1, onCancellationRequested: Doe.None }), h.Cancelled = Object.freeze({ isCancellationRequested: !0, onCancellationRequested: kRe }); })(JV || (JV = {})); class VV { constructor() { this._isCancelled = !1, this._emitter = null; } cancel() { this._isCancelled || (this._isCancelled = !0, this._emitter && (this._emitter.fire(void 0), this.dispose())); } get isCancellationRequested() { return this._isCancelled; } get onCancellationRequested() { return this._isCancelled ? kRe : (this._emitter || (this._emitter = new jE()), this._emitter.event); } dispose() { this._emitter && (this._emitter.dispose(), this._emitter = null); } } class Elt { constructor(T) { this._token = void 0, this._parentListener = void 0, this._parentListener = T && T.onCancellationRequested(this.cancel, this); } get token() { return this._token || (this._token = new VV()), this._token; } cancel() { this._token ? this._token instanceof VV && this._token.cancel() : this._token = JV.Cancelled; } dispose(T = !1) { var L; T && this.cancel(), (L = this._parentListener) === null || L === void 0 || L.dispose(), this._token ? this._token instanceof VV && this._token.dispose() : this._token = JV.None; } } class Tlt { constructor(T) { this.fn = T, this.lastCache = void 0, this.lastArgKey = void 0; } get(T) { const L = JSON.stringify(T); return this.lastArgKey !== L && (this.lastArgKey = L, this.lastCache = this.fn(T)), this.lastCache; } } class wRe { constructor(T) { this.executor = T, this._didRun = !1; } /** * True if the lazy value has been resolved. */ get hasValue() { return this._didRun; } /** * Get the wrapped value. * * This will force evaluation of the lazy value if it has not been resolved yet. Lazy values are only * resolved once. `getValue` will re-throw exceptions that are hit while resolving the value */ get value() { if (!this._didRun) try { this._value = this.executor(); } catch (T) { this._error = T; } finally { this._didRun = !0; } if (this._error) throw this._error; return this._value; } /** * Get the wrapped value without forcing evaluation. */ get rawValue() { return this._value; } } var DRe; function Slt(h) { return h.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g, "\\$&"); } function xlt(h) { return h.split(/\r\n|\r|\n/); } function Alt(h) { for (let T = 0, L = h.length; T < L; T++) { const W = h.charCodeAt(T); if (W !== 32 && W !== 9) return T; } return -1; } function Clt(h, T = h.length - 1) { for (let L = T; L >= 0; L--) { const W = h.charCodeAt(L); if (W !== 32 && W !== 9) return L; } return -1; } function RRe(h) { return h >= 65 && h <= 90; } function Noe(h) { return 55296 <= h && h <= 56319; } function Llt(h) { return 56320 <= h && h <= 57343; } function Ilt(h, T) { return (h - 55296 << 10) + (T - 56320) + 65536; } function klt(h, T, L) { const W = h.charCodeAt(L); if (Noe(W) && L + 1 < T) { const fe = h.charCodeAt(L + 1); if (Llt(fe)) return Ilt(W, fe); } return W; } const wlt = /^[\t\n\r\x20-\x7E]*$/; function Dlt(h) { return wlt.test(h); } class w0 { static getInstance(T) { return w0.cache.get(Array.from(T)); } static getLocales() { return w0._locales.value; } constructor(T) { this.confusableDictionary = T; } isAmbiguous(T) { return this.confusableDictionary.has(T); } /** * Returns the non basic ASCII code point that the given code point can be confused, * or undefined if such code point does note exist. */ getPrimaryConfusable(T) { return this.confusableDictionary.get(T); } getConfusableCodePoints() { return new Set(this.confusableDictionary.keys()); } } DRe = w0; w0.ambiguousCharacterData = new wRe(() => JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')); w0.cache = new Tlt((h) => { function T(Ne) { const Ye = /* @__PURE__ */ new Map(); for (let cn = 0; cn < Ne.length; cn += 2) Ye.set(Ne[cn], Ne[cn + 1]); return Ye; } function L(Ne, Ye) { const cn = new Map(Ne); for (const [En, ni] of Ye) cn.set(En, ni); return cn; } function W(Ne, Ye) { if (!Ne) return Ye; const cn = /* @__PURE__ */ new Map(); for (const [En, ni] of Ne) Ye.has(En) && cn.set(En, ni); return cn; } const fe = DRe.ambiguousCharacterData.value; let ve = h.filter((Ne) => !Ne.startsWith("_") && Ne in fe); ve.length === 0 && (ve = ["_default"]); let Ue; for (const Ne of ve) { const Ye = T(fe[Ne]); Ue = W(Ue, Ye); } const ut = T(fe._common), Ct = L(ut, Ue); return new w0(Ct); }); w0._locales = new wRe(() => Object.keys(w0.ambiguousCharacterData.value).filter((h) => !h.startsWith("_"))); class rA { static getRawData() { return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]"); } static getData() { return this._data || (this._data = new Set(rA.getRawData())), this._data; } static isInvisibleCharacter(T) { return rA.getData().has(T); } static get codePoints() { return rA.getData(); } } rA._data = void 0; const Rlt = "$initialize"; class Nlt { constructor(T, L, W, fe) { this.vsWorker = T, this.req = L, this.method = W, this.args = fe, this.type = 0; } } class lDe { constructor(T, L, W, fe) { this.vsWorker = T, this.seq = L, this.res = W, this.err = fe, this.type = 1; } } class Olt { constructor(T, L, W, fe) { this.vsWorker = T, this.req = L, this.eventName = W, this.arg = fe, this.type = 2; } } class Plt { constructor(T, L, W) { this.vsWorker = T, this.req = L, this.event = W, this.type = 3; } } class Mlt { constructor(T, L) { this.vsWorker = T, this.req = L, this.type = 4; } } class Flt { constructor(T) { this._workerId = -1, this._handler = T, this._lastSentReq = 0, this._pendingReplies = /* @__PURE__ */ Object.create(null), this._pendingEmitters = /* @__PURE__ */ new Map(), this._pendingEvents = /* @__PURE__ */ new Map(); } setWorkerId(T) { this._workerId = T; } sendMessage(T, L) { const W = String(++this._lastSentReq); return new Promise((fe, ve) => { this._pendingReplies[W] = { resolve: fe, reject: ve }, this._send(new Nlt(this._workerId, W, T, L)); }); } listen(T, L) { let W = null; const fe = new jE({ onWillAddFirstListener: () => { W = String(++this._lastSentReq), this._pendingEmitters.set(W, fe), this._send(new Olt(this._workerId, W, T, L)); }, onDidRemoveLastListener: () => { this._pendingEmitters.delete(W), this._send(new Mlt(this._workerId, W)), W = null; } }); return fe.event; } handleMessage(T) { !T || !T.vsWorker || this._workerId !== -1 && T.vsWorker !== this._workerId || this._handleMessage(T); } _handleMessage(T) { switch (T.type) { case 1: return this._handleReplyMessage(T); case 0: return this._handleRequestMessage(T); case 2: return this._handleSubscribeEventMessage(T); case 3: return this._handleEventMessage(T); case 4: return this._handleUnsubscribeEventMessage(T); } } _handleReplyMessage(T) { if (!this._pendingReplies[T.seq]) { console.warn("Got reply to unknown seq"); return; } const L = this._pendingReplies[T.seq]; if (delete this._pendingReplies[T.seq], T.err) { let W = T.err; T.err.$isError && (W = new Error(), W.name = T.err.name, W.message = T.err.message, W.stack = T.err.stack), L.reject(W); return; } L.resolve(T.res); } _handleRequestMessage(T) { const L = T.req; this._handler.handleMessage(T.method, T.args).then((fe) => { this._send(new lDe(this._workerId, L, fe, void 0)); }, (fe) => { fe.detail instanceof Error && (fe.detail = aDe(fe.detail)), this._send(new lDe(this._workerId, L, void 0, aDe(fe))); }); } _handleSubscribeEventMessage(T) { const L = T.req, W = this._handler.handleEvent(T.eventName, T.arg)((fe) => { this._send(new Plt(this._workerId, L, fe)); }); this._pendingEvents.set(L, W); } _handleEventMessage(T) { if (!this._pendingEmitters.has(T.req)) { console.warn("Got event for unknown req"); return; } this._pendingEmitters.get(T.req).fire(T.event); } _handleUnsubscribeEventMessage(T) { if (!this._pendingEvents.has(T.req)) { console.warn("Got unsubscribe for unknown req"); return; } this._pendingEvents.get(T.req).dispose(), this._pendingEvents.delete(T.req); } _send(T) { const L = []; if (T.type === 0) for (let W = 0; W < T.args.length; W++) T.args[W] instanceof ArrayBuffer && L.push(T.args[W]); else T.type === 1 && T.res instanceof ArrayBuffer && L.push(T.res); this._handler.sendMessage(T, L); } } function NRe(h) { return h[0] === "o" && h[1] === "n" && RRe(h.charCodeAt(2)); } function ORe(h) { return /^onDynamic/.test(h) && RRe(h.charCodeAt(9)); } function Blt(h, T, L) { const W = (Ue) => function() { const ut = Array.prototype.slice.call(arguments, 0); return T(Ue, ut); }, fe = (Ue) => function(ut) { return L(Ue, ut); }, ve = {}; for (const Ue of h) { if (ORe(Ue)) { ve[Ue] = fe(Ue); continue; } if (NRe(Ue)) { ve[Ue] = L(Ue, void 0); continue; } ve[Ue] = W(Ue); } return ve; } class Glt { constructor(T, L) { this._requestHandlerFactory = L, this._requestHandler = null, this._protocol = new Flt({ sendMessage: (W, fe) => { T(W, fe); }, handleMessage: (W, fe) => this._handleMessage(W, fe), handleEvent: (W, fe) => this._handleEvent(W, fe) }); } onmessage(T) { this._protocol.handleMessage(T); } _handleMessage(T, L) { if (T === Rlt) return this.initialize(L[0], L[1], L[2], L[3]); if (!this._requestHandler || typeof this._requestHandler[T] != "function") return Promise.reject(new Error("Missing requestHandler or method: " + T)); try { return Promise.resolve(this._requestHandler[T].apply(this._requestHandler, L)); } catch (W) { return Promise.reject(W); } } _handleEvent(T, L) { if (!this._requestHandler) throw new Error("Missing requestHandler"); if (ORe(T)) { const W = this._requestHandler[T].call(this._requestHandler, L); if (typeof W != "function") throw new Error(`Missing dynamic event ${T} on request handler.`); return W; } if (NRe(T)) { const W = this._requestHandler[T]; if (typeof W != "function") throw new Error(`Missing event ${T} on request handler.`); return W; } throw new Error(`Malformed event name ${T}`); } initialize(T, L, W, fe) { this._protocol.setWorkerId(T); const ut = Blt(fe, (Ct, Ne) => this._protocol.sendMessage(Ct, Ne), (Ct, Ne) => this._protocol.listen(Ct, Ne)); return this._requestHandlerFactory ? (this._requestHandler = this._requestHandlerFactory(ut), Promise.resolve(Roe(this._requestHandler))) : (L && (typeof L.baseUrl < "u" && delete L.baseUrl, typeof L.paths < "u" && typeof L.paths.vs < "u" && delete L.paths.vs, typeof L.trustedTypesPolicy !== void 0 && delete L.trustedTypesPolicy, L.catchError = !0, globalThis.require.config(L)), new Promise((Ct, Ne) => { const Ye = globalThis.require; Ye([W], (cn) => { if (this._requestHandler = cn.create(ut), !this._requestHandler) { Ne(new Error("No RequestHandler!")); return; } Ct(Roe(this._requestHandler)); }, Ne); })); } } class eA { /** * Constructs a new DiffChange with the given sequence information * and content. */ constructor(T, L, W, fe) { this.originalStart = T, this.originalLength = L, this.modifiedStart = W, this.modifiedLength = fe; } /** * The end point (exclusive) of the change in the original sequence. */ getOriginalEnd() { return this.originalStart + this.originalLength; } /** * The end point (exclusive) of the change in the modified sequence. */ getModifiedEnd() { return this.modifiedStart + this.modifiedLength; } } function cDe(h, T) { return (T << 5) - T + h | 0; } function Ult(h, T) { T = cDe(149417, T); for (let L = 0, W = h.length; L < W; L++) T = cDe(h.charCodeAt(L), T); return T; } class uDe { constructor(T) { this.source = T; } getElements() { const T = this.source, L = new Int32Array(T.length); for (let W = 0, fe = T.length; W < fe; W++) L[W] = T.charCodeAt(W); return L; } } function Vlt(h, T, L) { return new tA(new uDe(h), new uDe(T)).ComputeDiff(L).changes; } class FD { static Assert(T, L) { if (!T) throw new Error(L); } } class BD { /** * Copies a range of elements from an Array starting at the specified source index and pastes * them to another Array starting at the specified destination index. The length and the indexes * are specified as 64-bit integers. * sourceArray: * The Array that contains the data to copy. * sourceIndex: * A 64-bit integer that represents the index in the sourceArray at which copying begins. * destinationArray: * The Array that receives the data. * destinationIndex: * A 64-bit integer that represents the index in the destinationArray at which storing begins. * length: * A 64-bit integer that represents the number of elements to copy. */ static Copy(T, L, W, fe, ve) { for (let Ue = 0; Ue < ve; Ue++) W[fe + Ue] = T[L + Ue]; } static Copy2(T, L, W, fe, ve) { for (let Ue = 0; Ue < ve; Ue++) W[fe + Ue] = T[L + Ue]; } } class dDe { /** * Constructs a new DiffChangeHelper for the given DiffSequences. */ constructor() { this.m_changes = [], this.m_originalStart = 1073741824, this.m_modifiedStart = 1073741824, this.m_originalCount = 0, this.m_modifiedCount = 0; } /** * Marks the beginning of the next change in the set of differences. */ MarkNextChange() { (this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.m_changes.push(new eA(this.m_originalStart, this.m_originalCount, this.m_modifiedStart, this.m_modifiedCount)), this.m_originalCount = 0, this.m_modifiedCount = 0, this.m_originalStart = 1073741824, this.m_modifiedStart = 1073741824; } /** * Adds the original element at the given position to the elements * affected by the current change. The modified index gives context * to the change position with respect to the original sequence. * @param originalIndex The index of the original element to add. * @param modifiedIndex The index of the modified element that provides corresponding position in the modified sequence. */ AddOriginalElement(T, L) { this.m_originalStart = Math.min(this.m_originalStart, T), this.m_modifiedStart = Math.min(this.m_modifiedStart, L), this.m_originalCount++; } /** * Adds the modified element at the given position to the elements * affected by the current change. The original index gives context * to the change position with respect to the modified sequence. * @param originalIndex The index of the original element that provides corresponding position in the original sequence. * @param modifiedIndex The index of the modified element to add. */ AddModifiedElement(T, L) { this.m_originalStart = Math.min(this.m_originalStart, T), this.m_modifiedStart = Math.min(this.m_modifiedStart, L), this.m_modifiedCount++; } /** * Retrieves all of the changes marked by the class. */ getChanges() { return (this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.MarkNextChange(), this.m_changes; } /** * Retrieves all of the changes marked by the class in the reverse order */ getReverseChanges() { return (this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.MarkNextChange(), this.m_changes.reverse(), this.m_changes; } } class tA { /** * Constructs the DiffFinder */ constructor(T, L, W = null) { this.ContinueProcessingPredicate = W, this._originalSequence = T, this._modifiedSequence = L; const [fe, ve, Ue] = tA._getElements(T), [ut, Ct, Ne] = tA._getElements(L); this._hasStrings = Ue && Ne, this._originalStringElements = fe, this._originalElementsOrHash = ve, this._modifiedStringElements = ut, this._modifiedElementsOrHash = Ct, this.m_forwardHistory = [], this.m_reverseHistory = []; } static _isStringArray(T) { return T.length > 0 && typeof T[0] == "string"; } static _getElements(T) { const L = T.getElements(); if (tA._isStringArray(L)) { const W = new Int32Array(L.length); for (let fe = 0, ve = L.length; fe < ve; fe++) W[fe] = Ult(L[fe], 0); return [L, W, !0]; } return L instanceof Int32Array ? [[], L, !1] : [[], new Int32Array(L), !1]; } ElementsAreEqual(T, L) { return this._originalElementsOrHash[T] !== this._modifiedElementsOrHash[L] ? !1 : this._hasStrings ? this._originalStringElements[T] === this._modifiedStringElements[L] : !0; } ElementsAreStrictEqual(T, L) { if (!this.ElementsAreEqual(T, L)) return !1; const W = tA._getStrictElement(this._originalSequence, T), fe = tA._getStrictElement(this._modifiedSequence, L); return W === fe; } static _getStrictElement(T, L) { return typeof T.getStrictElement == "function" ? T.getStrictElement(L) : null; } OriginalElementsAreEqual(T, L) { return this._originalElementsOrHash[T] !== this._originalElementsOrHash[L] ? !1 : this._hasStrings ? this._originalStringElements[T] === this._originalStringElements[L] : !0; } ModifiedElementsAreEqual(T, L) { return this._modifiedElementsOrHash[T] !== this._modifiedElementsOrHash[L] ? !1 : this._hasStrings ? this._modifiedStringElements[T] === this._modifiedStringElements[L] : !0; } ComputeDiff(T) { return this._ComputeDiff(0, this._originalElementsOrHash.length - 1, 0, this._modifiedElementsOrHash.length - 1, T); } /** * Computes the differences between the original and modified input * sequences on the bounded range. * @returns An array of the differences between the two input sequences. */ _ComputeDiff(T, L, W, fe, ve) { const Ue = [!1]; let ut = this.ComputeDiffRecursive(T, L, W, fe, Ue); return ve && (ut = this.PrettifyChanges(ut)), { quitEarly: Ue[0], changes: ut }; } /** * Private helper method which computes the differences on the bounded range * recursively. * @returns An array of the differences between the two input sequences. */ ComputeDiffRecursive(T, L, W, fe, ve) { for (ve[0] = !1; T <= L && W <= fe && this.ElementsAreEqual(T, W); ) T++, W++; for (; L >= T && fe >= W && this.ElementsAreEqual(L, fe); ) L--, fe--; if (T > L || W > fe) { let cn; return W <= fe ? (FD.Assert(T === L + 1, "originalStart should only be one more than originalEnd"), cn = [ new eA(T, 0, W, fe - W + 1) ]) : T <= L ? (FD.Assert(W === fe + 1, "modifiedStart should only be one more than modifiedEnd"), cn = [ new eA(T, L - T + 1, W, 0) ]) : (FD.Assert(T === L + 1, "originalStart should only be one more than originalEnd"), FD.Assert(W === fe + 1, "modifiedStart should only be one more than modifiedEnd"), cn = []), cn; } const Ue = [0], ut = [0], Ct = this.ComputeRecursionPoint(T, L, W, fe, Ue, ut, ve), Ne = Ue[0], Ye = ut[0]; if (Ct !== null) return Ct; if (!ve[0]) { const cn = this.ComputeDiffRecursive(T, Ne, W, Ye, ve); let En = []; return ve[0] ? En = [ new eA(Ne + 1, L - (Ne + 1) + 1, Ye + 1, fe - (Ye + 1) + 1) ] : En = this.ComputeDiffRecursive(Ne + 1, L, Ye + 1, fe, ve), this.ConcatenateChanges(cn, En); } return [ new eA(T, L - T + 1, W, fe - W + 1) ]; } WALKTRACE(T, L, W, fe, ve, Ue, ut, Ct, Ne, Ye, cn, En, ni, Ei, Ni, wo, Vn, un) { let Yi = null, $i = null, ts = new dDe(), td = L, Ii = W, oa = ni[0] - wo[0] - fe, na = -1073741824, xa = this.m_forwardHistory.length - 1; do { const yn = oa + T; yn === td || yn < Ii && Ne[yn - 1] < Ne[yn + 1] ? (cn = Ne[yn + 1], Ei = cn - oa - fe, cn < na && ts.MarkNextChange(), na = cn, ts.AddModifiedElement(cn + 1, Ei), oa = yn + 1 - T) : (cn = Ne[yn - 1] + 1, Ei = cn - oa - fe, cn < na && ts.MarkNextChange(), na = cn - 1, ts.AddOriginalElement(cn, Ei + 1), oa = yn - 1 - T), xa >= 0 && (Ne = this.m_forwardHistory[xa], T = Ne[0], td = 1, Ii = Ne.length - 1); } while (--xa >= -1); if (Yi = ts.getReverseChanges(), un[0]) { let yn = ni[0] + 1, ua = wo[0] + 1; if (Yi !== null && Yi.length > 0) { const ms = Yi[Yi.length - 1]; yn = Math.max(yn, ms.getOriginalEnd()), ua = Math.max(ua, ms.getModifiedEnd()); } $i = [ new eA(yn, En - yn + 1, ua, Ni - ua + 1) ]; } else { ts = new dDe(), td = Ue, Ii = ut, oa = ni[0] - wo[0] - Ct, na = 1073741824, xa = Vn ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2; do { const yn = oa + ve; yn === td || yn < Ii && Ye[yn - 1] >= Ye[yn + 1] ? (cn = Ye[yn + 1] - 1, Ei = cn - oa - Ct, cn > na && ts.MarkNextChange(), na = cn + 1, ts.AddOriginalElement(cn + 1, Ei + 1), oa = yn + 1 - ve) : (cn = Ye[yn - 1], Ei = cn - oa - Ct, cn > na && ts.MarkNextChange(), na = cn, ts.AddModifiedElement(cn + 1, Ei + 1), oa = yn - 1 - ve), xa >= 0 && (Ye = this.m_reverseHistory[xa], ve = Ye[0], td = 1, Ii = Ye.length - 1); } while (--xa >= -1); $i = ts.getChanges(); } return this.ConcatenateChanges(Yi, $i); } /** * Given the range to compute the diff on, this method finds the point: * (midOriginal, midModified) * that exists in the middle of the LCS of the two sequences and * is the point at which the LCS problem may be broken down recursively. * This method will try to keep the LCS trace in memory. If the LCS recursion * point is calculated and the full trace is available in memory, then this method * will return the change list. * @param originalStart The start bound of the original sequence range * @param originalEnd The end bound of the original sequence range * @param modifiedStart The start bound of the modified sequence range * @param modifiedEnd The end bound of the modified sequence range * @param midOriginal The middle point of the original sequence range * @param midModified The middle point of the modified sequence range * @returns The diff changes, if available, otherwise null */ ComputeRecursionPoint(T, L, W, fe, ve, Ue, ut) { let Ct = 0, Ne = 0, Ye = 0, cn = 0, En = 0, ni = 0; T--, W--, ve[0] = 0, Ue[0] = 0, this.m_forwardHistory = [], this.m_reverseHistory = []; const Ei = L - T + (fe - W), Ni = Ei + 1, wo = new Int32Array(Ni), Vn = new Int32Array(Ni), un = fe - W, Yi = L - T, $i = T - W, ts = L - fe, Ii = (Yi - un) % 2 === 0; wo[un] = T, Vn[Yi] = L, ut[0] = !1; for (let oa = 1; oa <= Ei / 2 + 1; oa++) { let na = 0, xa = 0; Ye = this.ClipDiagonalBound(un - oa, oa, un, Ni), cn = this.ClipDiagonalBound(un + oa, oa, un, Ni); for (let ua = Ye; ua <= cn; ua += 2) { ua === Ye || ua < cn && wo[ua - 1] < wo[ua + 1] ? Ct = wo[ua + 1] : Ct = wo[ua - 1] + 1, Ne = Ct - (ua - un) - $i; const ms = Ct; for (; Ct < L && Ne < fe && this.ElementsAreEqual(Ct + 1, Ne + 1); ) Ct++, Ne++; if (wo[ua] = Ct, Ct + Ne > na + xa && (na = Ct, xa = Ne), !Ii && Math.abs(ua - Yi) <= oa - 1 && Ct >= Vn[ua]) return ve[0] = Ct, Ue[0] = Ne, ms <= Vn[ua] && 1447 > 0 && oa <= 1447 + 1 ? this.WALKTRACE(un, Ye, cn, $i, Yi, En, ni, ts, wo, Vn, Ct, L, ve, Ne, fe, Ue, Ii, ut) : null; } const yn = (na - T + (xa - W) - oa) / 2; if (this.ContinueProcessingPredicate !== null && !this.ContinueProcessingPredicate(na, yn)) return ut[0] = !0, ve[0] = na, Ue[0] = xa, yn > 0 && 1447 > 0 && oa <= 1447 + 1 ? this.WALKTRACE(un, Ye, cn, $i, Yi, En, ni, ts, wo, Vn, Ct, L, ve, Ne, fe, Ue, Ii, ut) : (T++, W++, [ new eA(T, L - T + 1, W, fe - W + 1) ]); En = this.ClipDiagonalBound(Yi - oa, oa, Yi, Ni), ni = this.ClipDiagonalBound(Yi + oa, oa, Yi, Ni); for (let ua = En; ua <= ni; ua += 2) { ua === En || ua < ni && Vn[ua - 1] >= Vn[ua + 1] ? Ct = Vn[ua + 1] - 1 : Ct = Vn[ua - 1], Ne = Ct - (ua - Yi) - ts; const ms = Ct; for (; Ct > T && Ne > W && this.ElementsAreEqual(Ct, Ne); ) Ct--, Ne--; if (Vn[ua] = Ct, Ii && Math.abs(ua - un) <= oa && Ct <= wo[ua]) return ve[0] = Ct, Ue[0] = Ne, ms >= wo[ua] && 1447 > 0 && oa <= 1447 + 1 ? this.WALKTRACE(un, Ye, cn, $i, Yi, En, ni, ts, wo, Vn, Ct, L, ve, Ne, fe, Ue, Ii, ut) : null; } if (oa <= 1447) { let ua = new Int32Array(cn - Ye + 2); ua[0] = un - Ye + 1, BD.Copy2(wo, Ye, ua, 1, cn - Ye + 1), this.m_forwardHistory.push(ua), ua = new Int32Array(ni - En + 2), ua[0] = Yi - En + 1, BD.Copy2(Vn, En, ua, 1, ni - En + 1), this.m_reverseHistory.push(ua); } } return this.WALKTRACE(un, Ye, cn, $i, Yi, En, ni, ts, wo, Vn, Ct, L, ve, Ne, fe, Ue, Ii, ut); } /** * Shifts the given changes to provide a more intuitive diff. * While the first element in a diff matches the first element after the diff, * we shift the diff down. * * @param changes The list of changes to shift * @returns The shifted changes */ PrettifyChanges(T) { for (let L = 0; L < T.length; L++) { const W = T[L], fe = L < T.length - 1 ? T[L + 1].originalStart : this._originalElementsOrHash.length, ve = L < T.length - 1 ? T[L + 1].modifiedStart : this._modifiedElementsOrHash.length, Ue = W.originalLength > 0, ut = W.modifiedLength > 0; for (; W.originalStart + W.originalLength < fe && W.modifiedStart + W.modifiedLength < ve && (!Ue || this.OriginalElementsAreEqual(W.originalStart, W.originalStart + W.originalLength)) && (!ut || this.ModifiedElementsAreEqual(W.modifiedStart, W.modifiedStart + W.modifiedLength)); ) { const Ne = this.ElementsAreStrictEqual(W.originalStart, W.modifiedStart); if (this.ElementsAreStrictEqual(W.originalStart + W.originalLength, W.modifiedStart + W.modifiedLength) && !Ne) break; W.originalStart++, W.modifiedStart++; } const Ct = [null]; if (L < T.length - 1 && this.ChangesOverlap(T[L], T[L + 1], Ct)) { T[L] = Ct[0], T.splice(L + 1, 1), L--; continue; } } for (let L = T.length - 1; L >= 0; L--) { const W = T[L]; let fe = 0, ve = 0; if (L > 0) { const cn = T[L - 1]; fe = cn.originalStart + cn.originalLength, ve = cn.modifiedStart + cn.modifiedLength; } const Ue = W.originalLength > 0, ut = W.modifiedLength > 0; let Ct = 0, Ne = this._boundaryScore(W.originalStart, W.originalLength, W.modifiedStart, W.modifiedLength); for (let cn = 1; ; cn++) { const En = W.originalStart - cn, ni = W.modifiedStart - cn; if (En < fe || ni < ve || Ue && !this.OriginalElementsAreEqual(En, En + W.originalLength) || ut && !this.ModifiedElementsAreEqual(ni, ni + W.modifiedLength)) break; const Ni = (En === fe && ni === ve ? 5 : 0) + this._boundaryScore(En, W.originalLength, ni, W.modifiedLength); Ni > Ne && (Ne = Ni, Ct = cn); } W.originalStart -= Ct, W.modifiedStart -= Ct; const Ye = [null]; if (L > 0 && this.ChangesOverlap(T[L - 1], T[L], Ye)) { T[L - 1] = Ye[0], T.splice(L, 1), L++; continue; } } if (this._hasStrings) for (let L = 1, W = T.length; L < W; L++) { const fe = T[L - 1], ve = T[L], Ue = ve.originalStart - fe.originalStart - fe.originalLength, ut = fe.originalStart, Ct = ve.originalStart + ve.originalLength, Ne = Ct - ut, Ye = fe.modifiedStart, cn = ve.modifiedStart + ve.modifiedLength, En = cn - Ye; if (Ue < 5 && Ne < 20 && En < 20) { const ni = this._findBetterContiguousSequence(ut, Ne, Ye, En, Ue); if (ni) { const [Ei, Ni] = ni; (Ei !== fe.originalStart + fe.originalLength || Ni !== fe.modifiedStart + fe.modifiedLength) && (fe.originalLength = Ei - fe.originalStart, fe.modifiedLength = Ni - fe.modifiedStart, ve.originalStart = Ei + Ue, ve.modifiedStart = Ni + Ue, ve.originalLength = Ct - ve.originalStart, ve.modifiedLength = cn - ve.modifiedStart); } } } return T; } _findBetterContiguousSequence(T, L, W, fe, ve) { if (L < ve || fe < ve) return null; const Ue = T + L - ve + 1, ut = W + fe - ve + 1; let Ct = 0, Ne = 0, Ye = 0; for (let cn = T; cn < Ue; cn++) for (let En = W; En < ut; En++) { const ni = this._contiguousSequenceScore(cn, En, ve); ni > 0 && ni > Ct && (Ct = ni, Ne = cn, Ye = En); } return Ct > 0 ? [Ne, Ye] : null; } _contiguousSequenceScore(T, L, W) { let fe = 0; for (let ve = 0; ve < W; ve++) { if (!this.ElementsAreEqual(T + ve, L + ve)) return 0; fe += this._originalStringElements[T + ve].length; } return fe; } _OriginalIsBoundary(T) { return T <= 0 || T >= this._originalElementsOrHash.length - 1 ? !0 : this._hasStrings && /^\s*$/.test(this._originalStringElements[T]); } _OriginalRegionIsBoundary(T, L) { if (this._OriginalIsBoundary(T) || this._OriginalIsBoundary(T - 1)) return !0; if (L > 0) { const W = T + L; if (this._OriginalIsBoundary(W - 1) || this._OriginalIsBoundary(W)) return !0; } return !1; } _ModifiedIsBoundary(T) { return T <= 0 || T >= this._modifiedElementsOrHash.length - 1 ? !0 : this._hasStrings && /^\s*$/.test(this._modifiedStringElements[T]); } _ModifiedRegionIsBoundary(T, L) { if (this._ModifiedIsBoundary(T) || this._ModifiedIsBoundary(T - 1)) return !0; if (L > 0) { const W = T + L; if (this._ModifiedIsBoundary(W - 1) || this._ModifiedIsBoundary(W)) return !0; } return !1; } _boundaryScore(T, L, W, fe) { const ve = this._OriginalRegionIsBoundary(T, L) ? 1 : 0, Ue = this._ModifiedRegionIsBoundary(W, fe) ? 1 : 0; return ve + Ue; } /** * Concatenates the two input DiffChange lists and returns the resulting * list. * @param The left changes * @param The right changes * @returns The concatenated list */ ConcatenateChanges(T, L) { const W = []; if (T.length === 0 || L.length === 0) return L.length > 0 ? L : T; if (this.ChangesOverlap(T[T.length - 1], L[0], W)) { const fe = new Array(T.length + L.length - 1); return BD.Copy(T, 0, fe, 0, T.length - 1), fe[T.length - 1] = W[0], BD.Copy(L, 1, fe, T.length, L.length - 1), fe; } else { const fe = new Array(T.length + L.length); return BD.Copy(T, 0, fe, 0, T.length), BD.Copy(L, 0, fe, T.length, L.length), fe; } } /** * Returns true if the two changes overlap and can be merged into a single * change * @param left The left change * @param right The right change * @param mergedChange The merged change if the two overlap, null otherwise * @returns True if the two changes overlap */ ChangesOverlap(T, L, W) { if (FD.Assert(T.originalStart <= L.originalStart, "Left change is not less than or equal to right change"), FD.Assert(T.modifiedStart <= L.modifiedStart, "Left change is not less than or equal to right change"), T.originalStart + T.originalLength >= L.originalStart || T.modifiedStart + T.modifiedLength >= L.modifiedStart) { const fe = T.originalStart; let ve = T.originalLength; const Ue = T.modifiedStart; let ut = T.modifiedLength; return T.originalStart + T.originalLength >= L.originalStart && (ve = L.originalStart + L.originalLength - T.originalStart), T.modifiedStart + T.modifiedLength >= L.modifiedStart && (ut = L.modifiedStart + L.modifiedLength - T.modifiedStart), W[0] = new eA(fe, ve, Ue, ut), !0; } else return W[0] = null, !1; } /** * Helper method used to clip a diagonal index to the range of valid * diagonals. This also decides whether or not the diagonal index, * if it exceeds the boundary, should be clipped to the boundary or clipped * one inside the boundary depending on the Even/Odd status of the boundary * and numDifferences. * @param diagonal The index of the diagonal to clip. * @param numDifferences The current number of differences being iterated upon. * @param diagonalBaseIndex The base reference diagonal. * @param numDiagonals The total number of diagonals. * @returns The clipped diagonal index. */ ClipDiagonalBound(T, L, W, fe) { if (T >= 0 && T < fe) return T; const ve = W, Ue = fe - W - 1, ut = L % 2 === 0; if (T < 0) { const Ct = ve % 2 === 0; return ut === Ct ? 0 : 1; } else { const Ct = Ue % 2 === 0; return ut === Ct ? fe - 1 : fe - 2; } } } let WL; if (typeof Zg.vscode < "u" && typeof Zg.vscode.process < "u") { const h = Zg.vscode.process; WL = { get platform() { return h.platform; }, get arch() { return h.arch; }, get env() { return h.env; }, cwd() { return h.cwd(); } }; } else typeof process < "u" ? WL = { get platform() { return process.platform; }, get arch() { return process.arch; }, get env() { return process.env; }, cwd() { return process.env.VSCODE_CWD || process.cwd(); } } : WL = { // Supported get platform() { return hP ? "win32" : llt ? "darwin" : "linux"; }, get arch() { }, // Unsupported get env() { return {}; }, cwd() { return "/"; } }; const KV = WL.cwd, jlt = WL.env, Hlt = WL.platform; WL.arch; const Wlt = 65, zlt = 97, qlt = 90, Jlt = 122, iA = 46, Mp = 47, Qg = 92, Q2 = 58, Klt = 63; class PRe extends Error { constructor(T, L, W) { let fe; typeof L == "string" && L.indexOf("not ") === 0 ? (fe = "must not be", L = L.replace(/^not /, "")) : fe = "must be"; const ve = T.indexOf(".") !== -1 ? "property" : "argument"; let Ue = `The "${T}" ${ve} ${fe} of type ${L}`; Ue += `. Received type ${typeof W}`, super(Ue), this.code = "ERR_INVALID_ARG_TYPE"; } } function Xlt(h, T) { if (h === null || typeof h != "object") throw new PRe(T, "Object", h); } function Gf(h, T) { if (typeof h != "string") throw new PRe(T, "string", h); } const ey = Hlt === "win32"; function Rl(h) { return h === Mp || h === Qg; } function Ooe(h) { return h === Mp; } function Z2(h) { return h >= Wlt && h <= qlt || h >= zlt && h <= Jlt; } function XV(h, T, L, W) { let fe = "", ve = 0, Ue = -1, ut = 0, Ct = 0; for (let Ne = 0; Ne <= h.length; ++Ne) { if (Ne < h.length) Ct = h.charCodeAt(Ne); else { if (W(Ct)) break; Ct = Mp; } if (W(Ct)) { if (!(Ue === Ne - 1 || ut === 1)) if (ut === 2) { if (fe.length < 2 || ve !== 2 || fe.charCodeAt(fe.length - 1) !== iA || fe.charCodeAt(fe.length - 2) !== iA) { if (fe.length > 2) { const Ye = fe.lastIndexOf(L); Ye === -1 ? (fe = "", ve = 0) : (fe = fe.slice(0, Ye), ve = fe.length - 1 - fe.lastIndexOf(L)), Ue = Ne, ut = 0; continue; } else if (fe.length !== 0) { fe = "", ve = 0, Ue = Ne, ut = 0; continue; } } T && (fe += fe.length > 0 ? `${L}..` : "..", ve = 2); } else fe.length > 0 ? fe += `${L}${h.slice(Ue + 1, Ne)}` : fe = h.slice(Ue + 1, Ne), ve = Ne - Ue - 1; Ue = Ne, ut = 0; } else Ct === iA && ut !== -1 ? ++ut : ut = -1; } return fe; } function MRe(h, T) { Xlt(T, "pathObject"); const L = T.dir || T.root, W = T.base || `${T.name || ""}${T.ext || ""}`; return L ? L === T.root ? `${L}${W}` : `${L}${h}${W}` : W; } const i_ = { // path.resolve([from ...], to) resolve(...h) { let T = "", L = "", W = !1; for (let fe = h.length - 1; fe >= -1; fe--) { let ve; if (fe >= 0) { if (ve = h[fe], Gf(ve, "path"), ve.length === 0) continue; } else T.length === 0 ? ve = KV() : (ve = jlt[`=${T}`] || KV(), (ve === void 0 || ve.slice(0, 2).toLowerCase() !== T.toLowerCase() && ve.charCodeAt(2) === Qg) && (ve = `${T}\\`)); const Ue = ve.length; let ut = 0, Ct = "", Ne = !1; const Ye = ve.charCodeAt(0); if (Ue === 1) Rl(Ye) && (ut = 1, Ne = !0); else if (Rl(Ye)) if (Ne = !0, Rl(ve.charCodeAt(1))) { let cn = 2, En = cn; for (; cn < Ue && !Rl(ve.charCodeAt(cn)); ) cn++; if (cn < Ue && cn !== En) { const ni = ve.slice(En, cn); for (En = cn; cn < Ue && Rl(ve.charCodeAt(cn)); ) cn++; if (cn < Ue && cn !== En) { for (En = cn; cn < Ue && !Rl(ve.charCodeAt(cn)); ) cn++; (cn === Ue || cn !== En) && (Ct = `\\\\${ni}\\${ve.slice(En, cn)}`, ut = cn); } } } else ut = 1; else Z2(Ye) && ve.charCodeAt(1) === Q2 && (Ct = ve.slice(0, 2), ut = 2, Ue > 2 && Rl(ve.charCodeAt(2)) && (Ne = !0, ut = 3)); if (Ct.length > 0) if (T.length > 0) { if (Ct.toLowerCase() !== T.toLowerCase()) continue; } else T = Ct; if (W) { if (T.length > 0) break; } else if (L = `${ve.slice(ut)}\\${L}`, W = Ne, Ne && T.length > 0) break; } return L = XV(L, !W, "\\", Rl), W ? `${T}\\${L}` : `${T}${L}` || "."; }, normalize(h) { Gf(h, "path"); const T = h.length; if (T === 0) return "."; let L = 0, W, fe = !1; const ve = h.charCodeAt(0); if (T === 1) return Ooe(ve) ? "\\" : h; if (Rl(ve)) if (fe = !0, Rl(h.charCodeAt(1))) { let ut = 2, Ct = ut; for (; ut < T && !Rl(h.charCodeAt(ut)); ) ut++; if (ut < T && ut !== Ct) { const Ne = h.slice(Ct, ut); for (Ct = ut; ut < T && Rl(h.charCodeAt(ut)); ) ut++; if (ut < T && ut !== Ct) { for (Ct = ut; ut < T && !Rl(h.charCodeAt(ut)); ) ut++; if (ut === T) return `\\\\${Ne}\\${h.slice(Ct)}\\`; ut !== Ct && (W = `\\\\${Ne}\\${h.slice(Ct, ut)}`, L = ut); } } } else L = 1; else Z2(ve) && h.charCodeAt(1) === Q2 && (W = h.slice(0, 2), L = 2, T > 2 && Rl(h.charCodeAt(2)) && (fe = !0, L = 3)); let Ue = L < T ? XV(h.slice(L), !fe, "\\", Rl) : ""; return Ue.length === 0 && !fe && (Ue = "."), Ue.length > 0 && Rl(h.charCodeAt(T - 1)) && (Ue += "\\"), W === void 0 ? fe ? `\\${Ue}` : Ue : fe ? `${W}\\${Ue}` : `${W}${Ue}`; }, isAbsolute(h) { Gf(h, "path"); const T = h.length; if (T === 0) return !1; const L = h.charCodeAt(0); return Rl(L) || // Possible device root T > 2 && Z2(L) && h.charCodeAt(1) === Q2 && Rl(h.charCodeAt(2)); }, join(...h) { if (h.length === 0) return "."; let T, L; for (let ve = 0; ve < h.length; ++ve) { const Ue = h[ve]; Gf(Ue, "path"), Ue.length > 0 && (T === void 0 ? T = L = Ue : T += `\\${Ue}`); } if (T === void 0) return "."; let W = !0, fe = 0; if (typeof L == "string" && Rl(L.charCodeAt(0))) { ++fe; const ve = L.length; ve > 1 && Rl(L.charCodeAt(1)) && (++fe, ve > 2 && (Rl(L.charCodeAt(2)) ? ++fe : W = !1)); } if (W) { for (; fe < T.length && Rl(T.charCodeAt(fe)); ) fe++; fe >= 2 && (T = `\\${T.slice(fe)}`); } return i_.normalize(T); }, // It will solve the relative path from `from` to `to`, for instance: // from = 'C:\\orandea\\test\\aaa' // to = 'C:\\orandea\\impl\\bbb' // The output of the function should be: '..\\..\\impl\\bbb' relative(h, T) { if (Gf(h, "from"), Gf(T, "to"), h === T) return ""; const L = i_.resolve(h), W = i_.resolve(T); if (L === W || (h = L.toLowerCase(), T = W.toLowerCase(), h === T)) return ""; let fe = 0; for (; fe < h.length && h.charCodeAt(fe) === Qg; ) fe++; let ve = h.length; for (; ve - 1 > fe && h.charCodeAt(ve - 1) === Qg; ) ve--; const Ue = ve - fe; let ut = 0; for (; ut < T.length && T.charCodeAt(ut) === Qg; ) ut++; let Ct = T.length; for (; Ct - 1 > ut && T.charCodeAt(Ct - 1) === Qg; ) Ct--; const Ne = Ct - ut, Ye = Ue < Ne ? Ue : Ne; let cn = -1, En = 0; for (; En < Ye; En++) { const Ei = h.charCodeAt(fe + En); if (Ei !== T.charCodeAt(ut + En)) break; Ei === Qg && (cn = En); } if (En !== Ye) { if (cn === -1) return W; } else { if (Ne > Ye) { if (T.charCodeAt(ut + En) === Qg) return W.slice(ut + En + 1); if (En === 2) return W.slice(ut + En); } Ue > Ye && (h.charCodeAt(fe + En) === Qg ? cn = En : En === 2 && (cn = 3)), cn === -1 && (cn = 0); } let ni = ""; for (En = fe + cn + 1; En <= ve; ++En) (En === ve || h.charCodeAt(En) === Qg) && (ni += ni.length === 0 ? ".." : "\\.."); return ut += cn, ni.length > 0 ? `${ni}${W.slice(ut, Ct)}` : (W.charCodeAt(ut) === Qg && ++ut, W.slice(ut, Ct)); }, toNamespacedPath(h) { if (typeof h != "string" || h.length === 0) return h; const T = i_.resolve(h); if (T.length <= 2) return h; if (T.charCodeAt(0) === Qg) { if (T.charCodeAt(1) === Qg) { const L = T.charCodeAt(2); if (L !== Klt && L !== iA) return `\\\\?\\UNC\\${T.slice(2)}`; } } else if (Z2(T.charCodeAt(0)) && T.charCodeAt(1) === Q2 && T.charCodeAt(2) === Qg) return `\\\\?\\${T}`; return h; }, dirname(h) { Gf(h, "path"); const T = h.length; if (T === 0) return "."; let L = -1, W = 0; const fe = h.charCodeAt(0); if (T === 1) return Rl(fe) ? h : "."; if (Rl(fe)) { if (L = W = 1, Rl(h.charCodeAt(1))) { let ut = 2, Ct = ut; for (; ut < T && !Rl(h.charCodeAt(ut)); ) ut++; if (ut < T && ut !== Ct) { for (Ct = ut; ut < T && Rl(h.charCodeAt(ut)); ) ut++; if (ut < T && ut !== Ct) { for (Ct = ut; ut < T && !Rl(h.charCodeAt(ut)); ) ut++; if (ut === T) return h; ut !== Ct && (L = W = ut + 1); } } } } else Z2(fe) && h.charCodeAt(1) === Q2 && (L = T > 2 && Rl(h.charCodeAt(2)) ? 3 : 2, W = L); let ve = -1, Ue = !0; for (let ut = T - 1; ut >= W; --ut) if (Rl(h.charCodeAt(ut))) { if (!Ue) { ve = ut; break; } } else Ue = !1; if (ve === -1) { if (L === -1) return "."; ve = L; } return h.slice(0, ve); }, basename(h, T) { T !== void 0 && Gf(T, "ext"), Gf(h, "path"); let L = 0, W = -1, fe = !0, ve; if (h.length >= 2 && Z2(h.charCodeAt(0)) && h.charCodeAt(1) === Q2 && (L = 2), T !== void 0 && T.length > 0 && T.length <= h.length) { if (T === h) return ""; let Ue = T.length - 1, ut = -1; for (ve = h.length - 1; ve >= L; --ve) { const Ct = h.charCodeAt(ve); if (Rl(Ct)) { if (!fe) { L = ve + 1; break; } } else ut === -1 && (fe = !1, ut = ve + 1), Ue >= 0 && (Ct === T.charCodeAt(Ue) ? --Ue === -1 && (W = ve) : (Ue = -1, W = ut)); } return L === W ? W = ut : W === -1 && (W = h.length), h.slice(L, W); } for (ve = h.length - 1; ve >= L; --ve) if (Rl(h.charCodeAt(ve))) { if (!fe) { L = ve + 1; break; } } else W === -1 && (fe = !1, W = ve + 1); return W === -1 ? "" : h.slice(L, W); }, extname(h) { Gf(h, "path"); let T = 0, L = -1, W = 0, fe = -1, ve = !0, Ue = 0; h.length >= 2 && h.charCodeAt(1) === Q2 && Z2(h.charCodeAt(0)) && (T = W = 2); for (let ut = h.length - 1; ut >= T; --ut) { const Ct = h.charCodeAt(ut); if (Rl(Ct)) { if (!ve) { W = ut + 1; break; } continue; } fe === -1 && (ve = !1, fe = ut + 1), Ct === iA ? L === -1 ? L = ut : Ue !== 1 && (Ue = 1) : L !== -1 && (Ue = -1); } return L === -1 || fe === -1 || // We saw a non-dot character immediately before the dot Ue === 0 || // The (right-most) trimmed path component is exactly '..' Ue === 1 && L === fe - 1 && L === W + 1 ? "" : h.slice(L, fe); }, format: MRe.bind(null, "\\"), parse(h) { Gf(h, "path"); const T = { root: "", dir: "", base: "", ext: "", name: "" }; if (h.length === 0) return T; const L = h.length; let W = 0, fe = h.charCodeAt(0); if (L === 1) return Rl(fe) ? (T.root = T.dir = h, T) : (T.base = T.name = h, T); if (Rl(fe)) { if (W = 1, Rl(h.charCodeAt(1))) { let cn = 2, En = cn; for (; cn < L && !Rl(h.charCodeAt(cn)); ) cn++; if (cn < L && cn !== En) { for (En = cn; cn < L && Rl(h.charCodeAt(cn)); ) cn++; if (cn < L && cn !== En) { for (En = cn; cn < L && !Rl(h.charCodeAt(cn)); ) cn++; cn === L ? W = cn : cn !== En && (W = cn + 1); } } } } else if (Z2(fe) && h.charCodeAt(1) === Q2) { if (L <= 2) return T.root = T.dir = h, T; if (W = 2, Rl(h.charCodeAt(2))) { if (L === 3) return T.root = T.dir = h, T; W = 3; } } W > 0 && (T.root = h.slice(0, W)); let ve = -1, Ue = W, ut = -1, Ct = !0, Ne = h.length - 1, Ye = 0; for (; Ne >= W; --Ne) { if (fe = h.charCodeAt(Ne), Rl(fe)) { if (!Ct) { Ue = Ne + 1; break; } continue; } ut === -1 && (Ct = !1, ut = Ne + 1), fe === iA ? ve === -1 ? ve = Ne : Ye !== 1 && (Ye = 1) : ve !== -1 && (Ye = -1); } return ut !== -1 && (ve === -1 || // We saw a non-dot character immediately before the dot Ye === 0 || // The (right-most) trimmed path component is exactly '..' Ye === 1 && ve === ut - 1 && ve === Ue + 1 ? T.base = T.name = h.slice(Ue, ut) : (T.name = h.slice(Ue, ve), T.base = h.slice(Ue, ut), T.ext = h.slice(ve, ut))), Ue > 0 && Ue !== W ? T.dir = h.slice(0, Ue - 1) : T.dir = T.root, T; }, sep: "\\", delimiter: ";", win32: null, posix: null }, Ylt = (() => { if (ey) { const h = /\\/g; return () => { const T = KV().replace(h, "/"); return T.slice(T.indexOf("/")); }; } return () => KV(); })(), L_ = { // path.resolve([from ...], to) resolve(...h) { let T = "", L = !1; for (let W = h.length - 1; W >= -1 && !L; W--) { const fe = W >= 0 ? h[W] : Ylt(); Gf(fe, "path"), fe.length !== 0 && (T = `${fe}/${T}`, L = fe.charCodeAt(0) === Mp); } return T = XV(T, !L, "/", Ooe), L ? `/${T}` : T.length > 0 ? T : "."; }, normalize(h) { if (Gf(h, "path"), h.length === 0) return "."; const T = h.charCodeAt(0) === Mp, L = h.charCodeAt(h.length - 1) === Mp; return h = XV(h, !T, "/", Ooe), h.length === 0 ? T ? "/" : L ? "./" : "." : (L && (h += "/"), T ? `/${h}` : h); }, isAbsolute(h) { return Gf(h, "path"), h.length > 0 && h.charCodeAt(0) === Mp; }, join(...h) { if (h.length === 0) return "."; let T; for (let L = 0; L < h.length; ++L) { const W = h[L]; Gf(W, "path"), W.length > 0 && (T === void 0 ? T = W : T += `/${W}`); } return T === void 0 ? "." : L_.normalize(T); }, relative(h, T) { if (Gf(h, "from"), Gf(T, "to"), h === T || (h = L_.resolve(h), T = L_.resolve(T), h === T)) return ""; const L = 1, W = h.length, fe = W - L, ve = 1, Ue = T.length - ve, ut = fe < Ue ? fe : Ue; let Ct = -1, Ne = 0; for (; Ne < ut; Ne++) { const cn = h.charCodeAt(L + Ne); if (cn !== T.charCodeAt(ve + Ne)) break; cn === Mp && (Ct = Ne); } if (Ne === ut) if (Ue > ut) { if (T.charCodeAt(ve + Ne) === Mp) return T.slice(ve + Ne + 1); if (Ne === 0) return T.slice(ve + Ne); } else fe > ut && (h.charCodeAt(L + Ne) === Mp ? Ct = Ne : Ne === 0 && (Ct = 0)); let Ye = ""; for (Ne = L + Ct + 1; Ne <= W; ++Ne) (Ne === W || h.charCodeAt(Ne) === Mp) && (Ye += Ye.length === 0 ? ".." : "/.."); return `${Ye}${T.slice(ve + Ct)}`; }, toNamespacedPath(h) { return h; }, dirname(h) { if (Gf(h, "path"), h.length === 0) return "."; const T = h.charCodeAt(0) === Mp; let L = -1, W = !0; for (let fe = h.length - 1; fe >= 1; --fe) if (h.charCodeAt(fe) === Mp) { if (!W) { L = fe; break; } } else W = !1; return L === -1 ? T ? "/" : "." : T && L === 1 ? "//" : h.slice(0, L); }, basename(h, T) { T !== void 0 && Gf(T, "ext"), Gf(h, "path"); let L = 0, W = -1, fe = !0, ve; if (T !== void 0 && T.length > 0 && T.length <= h.length) { if (T === h) return ""; let Ue = T.length - 1, ut = -1; for (ve = h.length - 1; ve >= 0; --ve) { const Ct = h.charCodeAt(ve); if (Ct === Mp) { if (!fe) { L = ve + 1; break; } } else ut === -1 && (fe = !1, ut = ve + 1), Ue >= 0 && (Ct === T.charCodeAt(Ue) ? --Ue === -1 && (W = ve) : (Ue = -1, W = ut)); } return L === W ? W = ut : W === -1 && (W = h.length), h.slice(L, W); } for (ve = h.length - 1; ve >= 0; --ve) if (h.charCodeAt(ve) === Mp) { if (!fe) { L = ve + 1; break; } } else W === -1 && (fe = !1, W = ve + 1); return W === -1 ? "" : h.slice(L, W); }, extname(h) { Gf(h, "path"); let T = -1, L = 0, W = -1, fe = !0, ve = 0; for (let Ue = h.length - 1; Ue >= 0; --Ue) { const ut = h.charCodeAt(Ue); if (ut === Mp) { if (!fe) { L = Ue + 1; break; } continue; } W === -1 && (fe = !1, W = Ue + 1), ut === iA ? T === -1 ? T = Ue : ve !== 1 && (ve = 1) : T !== -1 && (ve = -1); } return T === -1 || W === -1 || // We saw a non-dot character immediately before the dot ve === 0 || // The (right-most) trimmed path component is exactly '..' ve === 1 && T === W - 1 && T === L + 1 ? "" : h.slice(T, W); }, format: MRe.bind(null, "/"), parse(h) { Gf(h, "path"); const T = { root: "", dir: "", base: "", ext: "", name: "" }; if (h.length === 0) return T; const L = h.charCodeAt(0) === Mp; let W; L ? (T.root = "/", W = 1) : W = 0; let fe = -1, ve = 0, Ue = -1, ut = !0, Ct = h.length - 1, Ne = 0; for (; Ct >= W; --Ct) { const Ye = h.charCodeAt(Ct); if (Ye === Mp) { if (!ut) { ve = Ct + 1; break; } continue; } Ue === -1 && (ut = !1, Ue = Ct + 1), Ye === iA ? fe === -1 ? fe = Ct : Ne !== 1 && (Ne = 1) : fe !== -1 && (Ne = -1); } if (Ue !== -1) { const Ye = ve === 0 && L ? 1 : ve; fe === -1 || // We saw a non-dot character immediately before the dot Ne === 0 || // The (right-most) trimmed path component is exactly '..' Ne === 1 && fe === Ue - 1 && fe === ve + 1 ? T.base = T.name = h.slice(Ye, Ue) : (T.name = h.slice(Ye, fe), T.base = h.slice(Ye, Ue), T.ext = h.slice(fe, Ue)); } return ve > 0 ? T.dir = h.slice(0, ve - 1) : L && (T.dir = "/"), T; }, sep: "/", delimiter: ":", win32: null, posix: null }; L_.win32 = i_.win32 = i_; L_.posix = i_.posix = L_; ey ? i_.normalize : L_.normalize; ey ? i_.isAbsolute : L_.isAbsolute; ey ? i_.join : L_.join; ey ? i_.resolve : L_.resolve; ey ? i_.relative : L_.relative; ey ? i_.dirname : L_.dirname; ey ? i_.basename : L_.basename; ey ? i_.extname : L_.extname; ey ? i_.format : L_.format; ey ? i_.parse : L_.parse; ey ? i_.toNamespacedPath : L_.toNamespacedPath; ey ? i_.sep : L_.sep; ey ? i_.delimiter : L_.delimiter; const $lt = /^\w[\w\d+.-]*$/, Qlt = /^\//, Zlt = /^\/\//; function fDe(h, T) { if (!h.scheme && T) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${h.authority}", path: "${h.path}", query: "${h.query}", fragment: "${h.fragment}"}`); if (h.scheme && !$lt.test(h.scheme)) throw new Error("[UriError]: Scheme contains illegal characters."); if (h.path) { if (h.authority) { if (!Qlt.test(h.path)) throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character'); } else if (Zlt.test(h.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'); } } function ect(h, T) { return !h && !T ? "file" : h; } function tct(h, T) { switch (h) { case "https": case "http": case "file": T ? T[0] !== Jb && (T = Jb + T) : T = Jb; break; } return T; } const ed = "", Jb = "/", nct = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/; class zL { static isUri(T) { return T instanceof zL ? !0 : T ? typeof T.authority == "string" && typeof T.fragment == "string" && typeof T.path == "string" && typeof T.query == "string" && typeof T.scheme == "string" && typeof T.fsPath == "string" && typeof T.with == "function" && typeof T.toString == "function" : !1; } /** * @internal */ constructor(T, L, W, fe, ve, Ue = !1) { typeof T == "object" ? (this.scheme = T.scheme || ed, this.authority = T.authority || ed, this.path = T.path || ed, this.query = T.query || ed, this.fragment = T.fragment || ed) : (this.scheme = ect(T, Ue), this.authority = L || ed, this.path = tct(this.scheme, W || ed), this.query = fe || ed, this.fragment = ve || ed, fDe(this, Ue)); } // ---- filesystem path ----------------------- /** * Returns a string representing the corresponding file system path of this URI. * Will handle UNC paths, normalizes windows drive letters to lower-case, and uses the * platform specific path separator. * * * Will *not* validate the path for invalid characters and semantics. * * Will *not* look at the scheme of this URI. * * The result shall *not* be used for display purposes but for accessing a file on disk. * * * The *difference* to `URI#path` is the use of the platform specific separator and the handling * of UNC paths. See the below sample of a file-uri with an authority (UNC path). * * ```ts const u = URI.parse('file://server/c$/folder/file.txt') u.authority === 'server' u.path === '/shares/c$/file.txt' u.fsPath === '\\server\c$\folder\file.txt' ``` * * Using `URI#path` to read a file (using fs-apis) would not be enough because parts of the path, * namely the server name, would be missing. Therefore `URI#fsPath` exists - it's sugar to ease working * with URIs that represent files on disk (`file` scheme). */ get fsPath() { return Poe(this, !1); } // ---- modify to new ------------------------- with(T) { if (!T) return this; let { scheme: L, authority: W, path: fe, query: ve, fragment: Ue } = T; return L === void 0 ? L = this.scheme : L === null && (L = ed), W === void 0 ? W = this.authority : W === null && (W = ed), fe === void 0 ? fe = this.path : fe === null && (fe = ed), ve === void 0 ? ve = this.query : ve === null && (ve = ed), Ue === void 0 ? Ue = this.fragment : Ue === null && (Ue = ed), L === this.scheme && W === this.authority && fe === this.path && ve === this.query && Ue === this.fragment ? this : new GD(L, W, fe, ve, Ue); } // ---- parse & validate ------------------------ /** * Creates a new URI from a string, e.g. `http://www.example.com/some/path`, * `file:///usr/home`, or `scheme:with/path`. * * @param value A string which represents an URI (see `URI#toString`). */ static parse(T, L = !1) { const W = nct.exec(T); return W ? new GD(W[2] || ed, GV(W[4] || ed), GV(W[5] || ed), GV(W[7] || ed), GV(W[9] || ed), L) : new GD(ed, ed, ed, ed, ed); } /** * Creates a new URI from a file system path, e.g. `c:\my\files`, * `/usr/home`, or `\\server\share\some\path`. * * The *difference* between `URI#parse` and `URI#file` is that the latter treats the argument * as path, not as stringified-uri. E.g. `URI.file(path)` is **not the same as** * `URI.parse('file://' + path)` because the path might contain characters that are * interpreted (# and ?). See the following sample: * ```ts const good = URI.file('/coding/c#/project1'); good.scheme === 'file'; good.path === '/coding/c#/project1'; good.fragment === ''; const bad = URI.parse('file://' + '/coding/c#/project1'); bad.scheme === 'file'; bad.path === '/coding/c'; // path is now broken bad.fragment === '/project1'; ``` * * @param path A file system path (see `URI#fsPath`) */ static file(T) { let L = ed; if (hP && (T = T.replace(/\\/g, Jb)), T[0] === Jb && T[1] === Jb) { const W = T.indexOf(Jb, 2); W === -1 ? (L = T.substring(2), T = Jb) : (L = T.substring(2, W), T = T.substring(W) || Jb); } return new GD("file", L, T, ed, ed); } static from(T) { const L = new GD(T.scheme, T.authority, T.path, T.query, T.fragment); return fDe(L, !0), L; } /** * Join a URI path with path fragments and normalizes the resulting path. * * @param uri The input URI. * @param pathFragment The path fragment to add to the URI path. * @returns The resulting URI. */ static joinPath(T, ...L) { if (!T.path) throw new Error("[UriError]: cannot call joinPath on URI without path"); let W; return hP && T.scheme === "file" ? W = zL.file(i_.join(Poe(T, !0), ...L)).path : W = L_.join(T.path, ...L), T.with({ path: W }); } // ---- printing/externalize --------------------------- /** * Creates a string representation for this URI. It's guaranteed that calling * `URI.parse` with the result of this function creates an URI which is equal * to this URI. * * * The result shall *not* be used for display purposes but for externalization or transport. * * The result will be encoded using the percentage encoding and encoding happens mostly * ignore the scheme-specific encoding rules. * * @param skipEncoding Do not encode the result, default is `false` */ toString(T = !1) { return Moe(this, T); } toJSON() { return this; } static revive(T) { if (T) { if (T instanceof zL) return T; { const L = new GD(T); return L._formatted = T.external, L._fsPath = T._sep === FRe ? T.fsPath : null, L; } } else return T; } } const FRe = hP ? 1 : void 0; class GD extends zL { constructor() { super(...arguments), this._formatted = null, this._fsPath = null; } get fsPath() { return this._fsPath || (this._fsPath = Poe(this, !1)), this._fsPath; } toString(T = !1) { return T ? Moe(this, !0) : (this._formatted || (this._formatted = Moe(this, !1)), this._formatted); } toJSON() { const T = { $mid: 1 /* MarshalledId.Uri */ }; return this._fsPath && (T.fsPath = this._fsPath, T._sep = FRe), this._formatted && (T.external = this._formatted), this.path && (T.path = this.path), this.scheme && (T.scheme = this.scheme), this.authority && (T.authority = this.authority), this.query && (T.query = this.query), this.fragment && (T.fragment = this.fragment), T; } } const BRe = { [ 58 /* CharCode.Colon */ ]: "%3A", [ 47 /* CharCode.Slash */ ]: "%2F", [ 63 /* CharCode.QuestionMark */ ]: "%3F", [ 35 /* CharCode.Hash */ ]: "%23", [ 91 /* CharCode.OpenSquareBracket */ ]: "%5B", [ 93 /* CharCode.CloseSquareBracket */ ]: "%5D", [ 64 /* CharCode.AtSign */ ]: "%40", [ 33 /* CharCode.ExclamationMark */ ]: "%21", [ 36 /* CharCode.DollarSign */ ]: "%24", [ 38 /* CharCode.Ampersand */ ]: "%26", [ 39 /* CharCode.SingleQuote */ ]: "%27", [ 40 /* CharCode.OpenParen */ ]: "%28", [ 41 /* CharCode.CloseParen */ ]: "%29", [ 42 /* CharCode.Asterisk */ ]: "%2A", [ 43 /* CharCode.Plus */ ]: "%2B", [ 44 /* CharCode.Comma */ ]: "%2C", [ 59 /* CharCode.Semicolon */ ]: "%3B", [ 61 /* CharCode.Equals */ ]: "%3D", [ 32 /* CharCode.Space */ ]: "%20" }; function _De(h, T, L) { let W, fe = -1; for (let ve = 0; ve < h.length; ve++) { const Ue = h.charCodeAt(ve); if (Ue >= 97 && Ue <= 122 || Ue >= 65 && Ue <= 90 || Ue >= 48 && Ue <= 57 || Ue === 45 || Ue === 46 || Ue === 95 || Ue === 126 || T && Ue === 47 || L && Ue === 91 || L && Ue === 93 || L && Ue === 58) fe !== -1 && (W += encodeURIComponent(h.substring(fe, ve)), fe = -1), W !== void 0 && (W += h.charAt(ve)); else { W === void 0 && (W = h.substr(0, ve)); const ut = BRe[Ue]; ut !== void 0 ? (fe !== -1 && (W += encodeURIComponent(h.substring(fe, ve)), fe = -1), W += ut) : fe === -1 && (fe = ve); } } return fe !== -1 && (W += encodeURIComponent(h.substring(fe))), W !== void 0 ? W : h; } function rct(h) { let T; for (let L = 0; L < h.length; L++) { const W = h.charCodeAt(L); W === 35 || W === 63 ? (T === void 0 && (T = h.substr(0, L)), T += BRe[W]) : T !== void 0 && (T += h[L]); } return T !== void 0 ? T : h; } function Poe(h, T) { let L; return h.authority && h.path.length > 1 && h.scheme === "file" ? L = `//${h.authority}${h.path}` : h.path.charCodeAt(0) === 47 && (h.path.charCodeAt(1) >= 65 && h.path.charCodeAt(1) <= 90 || h.path.charCodeAt(1) >= 97 && h.path.charCodeAt(1) <= 122) && h.path.charCodeAt(2) === 58 ? T ? L = h.path.substr(1) : L = h.path[1].toLowerCase() + h.path.substr(2) : L = h.path, hP && (L = L.replace(/\//g, "\\")), L; } function Moe(h, T) { const L = T ? rct : _De; let W = "", { scheme: fe, authority: ve, path: Ue, query: ut, fragment: Ct } = h; if (fe && (W += fe, W += ":"), (ve || fe === "file") && (W += Jb, W += Jb), ve) { let Ne = ve.indexOf("@"); if (Ne !== -1) { const Ye = ve.substr(0, Ne); ve = ve.substr(Ne + 1), Ne = Ye.lastIndexOf(":"), Ne === -1 ? W += L(Ye, !1, !1) : (W += L(Ye.substr(0, Ne), !1, !1), W += ":", W += L(Ye.substr(Ne + 1), !1, !0)), W += "@"; } ve = ve.toLowerCase(), Ne = ve.lastIndexOf(":"), Ne === -1 ? W += L(ve, !1, !0) : (W += L(ve.substr(0, Ne), !1, !0), W += ve.substr(Ne)); } if (Ue) { if (Ue.length >= 3 && Ue.charCodeAt(0) === 47 && Ue.charCodeAt(2) === 58) { const Ne = Ue.charCodeAt(1); Ne >= 65 && Ne <= 90 && (Ue = `/${String.fromCharCode(Ne + 32)}:${Ue.substr(3)}`); } else if (Ue.length >= 2 && Ue.charCodeAt(1) === 58) { const Ne = Ue.charCodeAt(0); Ne >= 65 && Ne <= 90 && (Ue = `${String.fromCharCode(Ne + 32)}:${Ue.substr(2)}`); } W += L(Ue, !0, !1); } return ut && (W += "?", W += L(ut, !1, !1)), Ct && (W += "#", W += T ? Ct : _De(Ct, !1, !1)), W; } function GRe(h) { try { return decodeURIComponent(h); } catch { return h.length > 3 ? h.substr(0, 3) + GRe(h.substr(3)) : h; } } const pDe = /(%[0-9A-Za-z][0-9A-Za-z])+/g; function GV(h) { return h.match(pDe) ? h.replace(pDe, (T) => GRe(T)) : h; } class vm { constructor(T, L) { this.lineNumber = T, this.column = L; } /** * Create a new position from this position. * * @param newLineNumber new line number * @param newColumn new column */ with(T = this.lineNumber, L = this.column) { return T === this.lineNumber && L === this.column ? this : new vm(T, L); } /** * Derive a new position from this position. * * @param deltaLineNumber line number delta * @param deltaColumn column delta */ delta(T = 0, L = 0) { return this.with(this.lineNumber + T, this.column + L); } /** * Test if this position equals other position */ equals(T) { return vm.equals(this, T); } /** * Test if position `a` equals position `b` */ static equals(T, L) { return !T && !L ? !0 : !!T && !!L && T.lineNumber === L.lineNumber && T.column === L.column; } /** * Test if this position is before other position. * If the two positions are equal, the result will be false. */ isBefore(T) { return vm.isBefore(this, T); } /** * Test if position `a` is before position `b`. * If the two positions are equal, the result will be false. */ static isBefore(T, L) { return T.lineNumber < L.lineNumber ? !0 : L.lineNumber < T.lineNumber ? !1 : T.column < L.column; } /** * Test if this position is before other position. * If the two positions are equal, the result will be true. */ isBeforeOrEqual(T) { return vm.isBeforeOrEqual(this, T); } /** * Test if position `a` is before position `b`. * If the two positions are equal, the result will be true. */ static isBeforeOrEqual(T, L) { return T.lineNumber < L.lineNumber ? !0 : L.lineNumber < T.lineNumber ? !1 : T.column <= L.column; } /** * A function that compares positions, useful for sorting */ static compare(T, L) { const W = T.lineNumber | 0, fe = L.lineNumber | 0; if (W === fe) { const ve = T.column | 0, Ue = L.column | 0; return ve - Ue; } return W - fe; } /** * Clone this position. */ clone() { return new vm(this.lineNumber, this.column); } /** * Convert to a human-readable representation. */ toString() { return "(" + this.lineNumber + "," + this.column + ")"; } // --- /** * Create a `Position` from an `IPosition`. */ static lift(T) { return new vm(T.lineNumber, T.column); } /** * Test if `obj` is an `IPosition`. */ static isIPosition(T) { return T && typeof T.lineNumber == "number" && typeof T.column == "number"; } } class yc { constructor(T, L, W, fe) { T > W || T === W && L > fe ? (this.startLineNumber = W, this.startColumn = fe, this.endLineNumber = T, this.endColumn = L) : (this.startLineNumber = T, this.startColumn = L, this.endLineNumber = W, this.endColumn = fe); } /** * Test if this range is empty. */ isEmpty() { return yc.isEmpty(this); } /** * Test if `range` is empty. */ static isEmpty(T) { return T.startLineNumber === T.endLineNumber && T.startColumn === T.endColumn; } /** * Test if position is in this range. If the position is at the edges, will return true. */ containsPosition(T) { return yc.containsPosition(this, T); } /** * Test if `position` is in `range`. If the position is at the edges, will return true. */ static containsPosition(T, L) { return !(L.lineNumber < T.startLineNumber || L.lineNumber > T.endLineNumber || L.lineNumber === T.startLineNumber && L.column < T.startColumn || L.lineNumber === T.endLineNumber && L.column > T.endColumn); } /** * Test if `position` is in `range`. If the position is at the edges, will return false. * @internal */ static strictContainsPosition(T, L) { return !(L.lineNumber < T.startLineNumber || L.lineNumber > T.endLineNumber || L.lineNumber === T.startLineNumber && L.column <= T.startColumn || L.lineNumber === T.endLineNumber && L.column >= T.endColumn); } /** * Test if range is in this range. If the range is equal to this range, will return true. */ containsRange(T) { return yc.containsRange(this, T); } /** * Test if `otherRange` is in `range`. If the ranges are equal, will return true. */ static containsRange(T, L) { return !(L.startLineNumber < T.startLineNumber || L.endLineNumber < T.startLineNumber || L.startLineNumber > T.endLineNumber || L.endLineNumber > T.endLineNumber || L.startLineNumber === T.startLineNumber && L.startColumn < T.startColumn || L.endLineNumber === T.endLineNumber && L.endColumn > T.endColumn); } /** * Test if `range` is strictly in this range. `range` must start after and end before this range for the result to be true. */ strictContainsRange(T) { return yc.strictContainsRange(this, T); } /** * Test if `otherRange` is strictly in `range` (must start after, and end before). If the ranges are equal, will return false. */ static strictContainsRange(T, L) { return !(L.startLineNumber < T.startLineNumber || L.endLineNumber < T.startLineNumber || L.startLineNumber > T.endLineNumber || L.endLineNumber > T.endLineNumber || L.startLineNumber === T.startLineNumber && L.startColumn <= T.startColumn || L.endLineNumber === T.endLineNumber && L.endColumn >= T.endColumn); } /** * A reunion of the two ranges. * The smallest position will be used as the start point, and the largest one as the end point. */ plusRange(T) { return yc.plusRange(this, T); } /** * A reunion of the two ranges. * The smallest position will be used as the start point, and the largest one as the end point. */ static plusRange(T, L) { let W, fe, ve, Ue; return L.startLineNumber < T.startLineNumber ? (W = L.startLineNumber, fe = L.startColumn) : L.startLineNumber === T.startLineNumber ? (W = L.startLineNumber, fe = Math.min(L.startColumn, T.startColumn)) : (W = T.startLineNumber, fe = T.startColumn), L.endLineNumber > T.endLineNumber ? (ve = L.endLineNumber, Ue = L.endColumn) : L.endLineNumber === T.endLineNumber ? (ve = L.endLineNumber, Ue = Math.max(L.endColumn, T.endColumn)) : (ve = T.endLineNumber, Ue = T.endColumn), new yc(W, fe, ve, Ue); } /** * A intersection of the two ranges. */ intersectRanges(T) { return yc.intersectRanges(this, T); } /** * A intersection of the two ranges. */ static intersectRanges(T, L) { let W = T.startLineNumber, fe = T.startColumn, ve = T.endLineNumber, Ue = T.endColumn; const ut = L.startLineNumber, Ct = L.startColumn, Ne = L.endLineNumber, Ye = L.endColumn; return W < ut ? (W = ut, fe = Ct) : W === ut && (fe = Math.max(fe, Ct)), ve > Ne ? (ve = Ne, Ue = Ye) : ve === Ne && (Ue = Math.min(Ue, Ye)), W > ve || W === ve && fe > Ue ? null : new yc(W, fe, ve, Ue); } /** * Test if this range equals other. */ equalsRange(T) { return yc.equalsRange(this, T); } /** * Test if range `a` equals `b`. */ static equalsRange(T, L) { return !T && !L ? !0 : !!T && !!L && T.startLineNumber === L.startLineNumber && T.startColumn === L.startColumn && T.endLineNumber === L.endLineNumber && T.endColumn === L.endColumn; } /** * Return the end position (which will be after or equal to the start position) */ getEndPosition() { return yc.getEndPosition(this); } /** * Return the end position (which will be after or equal to the start position) */ static getEndPosition(T) { return new vm(T.endLineNumber, T.endColumn); } /** * Return the start position (which will be before or equal to the end position) */ getStartPosition() { return yc.getStartPosition(this); } /** * Return the start position (which will be before or equal to the end position) */ static getStartPosition(T) { return new vm(T.startLineNumber, T.startColumn); } /** * Transform to a user presentable string representation. */ toString() { return "[" + this.startLineNumber + "," + this.startColumn + " -> " + this.endLineNumber + "," + this.endColumn + "]"; } /** * Create a new range using this range's start position, and using endLineNumber and endColumn as the end position. */ setEndPosition(T, L) { return new yc(this.startLineNumber, this.startColumn, T, L); } /** * Create a new range using this range's end position, and using startLineNumber and startColumn as the start position. */ setStartPosition(T, L) { return new yc(T, L, this.endLineNumber, this.endColumn); } /** * Create a new empty range using this range's start position. */ collapseToStart() { return yc.collapseToStart(this); } /** * Create a new empty range using this range's start position. */ static collapseToStart(T) { return new yc(T.startLineNumber, T.startColumn, T.startLineNumber, T.startColumn); } /** * Create a new empty range using this range's end position. */ collapseToEnd() { return yc.collapseToEnd(this); } /** * Create a new empty range using this range's end position. */ static collapseToEnd(T) { return new yc(T.endLineNumber, T.endColumn, T.endLineNumber, T.endColumn); } /** * Moves the range by the given amount of lines. */ delta(T) { return new yc(this.startLineNumber + T, this.startColumn, this.endLineNumber + T, this.endColumn); } // --- static fromPositions(T, L = T) { return new yc(T.lineNumber, T.column, L.lineNumber, L.column); } static lift(T) { return T ? new yc(T.startLineNumber, T.startColumn, T.endLineNumber, T.endColumn) : null; } /** * Test if `obj` is an `IRange`. */ static isIRange(T) { return T && typeof T.startLineNumber == "number" && typeof T.startColumn == "number" && typeof T.endLineNumber == "number" && typeof T.endColumn == "number"; } /** * Test if the two ranges are touching in any way. */ static areIntersectingOrTouching(T, L) { return !(T.endLineNumber < L.startLineNumber || T.endLineNumber === L.startLineNumber && T.endColumn < L.startColumn || L.endLineNumber < T.startLineNumber || L.endLineNumber === T.startLineNumber && L.endColumn < T.startColumn); } /** * Test if the two ranges are intersecting. If the ranges are touching it returns true. */ static areIntersecting(T, L) { return !(T.endLineNumber < L.startLineNumber || T.endLineNumber === L.startLineNumber && T.endColumn <= L.startColumn || L.endLineNumber < T.startLineNumber || L.endLineNumber === T.startLineNumber && L.endColumn <= T.startColumn); } /** * A function that compares ranges, useful for sorting ranges * It will first compare ranges on the startPosition and then on the endPosition */ static compareRangesUsingStarts(T, L) { if (T && L) { const ve = T.startLineNumber | 0, Ue = L.startLineNumber | 0; if (ve === Ue) { const ut = T.startColumn | 0, Ct = L.startColumn | 0; if (ut === Ct) { const Ne = T.endLineNumber | 0, Ye = L.endLineNumber | 0; if (Ne === Ye) { const cn = T.endColumn | 0, En = L.endColumn | 0; return cn - En; } return Ne - Ye; } return ut - Ct; } return ve - Ue; } return (T ? 1 : 0) - (L ? 1 : 0); } /** * A function that compares ranges, useful for sorting ranges * It will first compare ranges on the endPosition and then on the startPosition */ static compareRangesUsingEnds(T, L) { return T.endLineNumber === L.endLineNumber ? T.endColumn === L.endColumn ? T.startLineNumber === L.startLineNumber ? T.startColumn - L.startColumn : T.startLineNumber - L.startLineNumber : T.endColumn - L.endColumn : T.endLineNumber - L.endLineNumber; } /** * Test if the range spans multiple lines. */ static spansMultipleLines(T) { return T.endLineNumber > T.startLineNumber; } toJSON() { return this; } } globalThis && globalThis.__awaiter; var mDe; (function(h) { function T(fe) { return fe < 0; } h.isLessThan = T; function L(fe) { return fe > 0; } h.isGreaterThan = L; function W(fe) { return fe === 0; } h.isNeitherLessOrGreaterThan = W, h.greaterThan = 1, h.lessThan = -1, h.neitherLessOrGreaterThan = 0; })(mDe || (mDe = {})); function hDe(h) { return h < 0 ? 0 : h > 255 ? 255 : h | 0; } function UD(h) { return h < 0 ? 0 : h > 4294967295 ? 4294967295 : h | 0; } class ict { constructor(T) { this.values = T, this.prefixSum = new Uint32Array(T.length), this.prefixSumValidIndex = new Int32Array(1), this.prefixSumValidIndex[0] = -1; } getCount() { return this.values.length; } insertValues(T, L) { T = UD(T); const W = this.values, fe = this.prefixSum, ve = L.length; return ve === 0 ? !1 : (this.values = new Uint32Array(W.length + ve), this.values.set(W.subarray(0, T), 0), this.values.set(W.subarray(T), T + ve), this.values.set(L, T), T - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = T - 1), this.prefixSum = new Uint32Array(this.values.length), this.prefixSumValidIndex[0] >= 0 && this.prefixSum.set(fe.subarray(0, this.prefixSumValidIndex[0] + 1)), !0); } setValue(T, L) { return T = UD(T), L = UD(L), this.values[T] === L ? !1 : (this.values[T] = L, T - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = T - 1), !0); } removeValues(T, L) { T = UD(T), L = UD(L); const W = this.values, fe = this.prefixSum; if (T >= W.length) return !1; const ve = W.length - T; return L >= ve && (L = ve), L === 0 ? !1 : (this.values = new Uint32Array(W.length - L), this.values.set(W.subarray(0, T), 0), this.values.set(W.subarray(T + L), T), this.prefixSum = new Uint32Array(this.values.length), T - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = T - 1), this.prefixSumValidIndex[0] >= 0 && this.prefixSum.set(fe.subarray(0, this.prefixSumValidIndex[0] + 1)), !0); } getTotalSum() { return this.values.length === 0 ? 0 : this._getPrefixSum(this.values.length - 1); } /** * Returns the sum of the first `index + 1` many items. * @returns `SUM(0 <= j <= index, values[j])`. */ getPrefixSum(T) { return T < 0 ? 0 : (T = UD(T), this._getPrefixSum(T)); } _getPrefixSum(T) { if (T <= this.prefixSumValidIndex[0]) return this.prefixSum[T]; let L = this.prefixSumValidIndex[0] + 1; L === 0 && (this.prefixSum[0] = this.values[0], L++), T >= this.values.length && (T = this.values.length - 1); for (let W = L; W <= T; W++) this.prefixSum[W] = this.prefixSum[W - 1] + this.values[W]; return this.prefixSumValidIndex[0] = Math.max(this.prefixSumValidIndex[0], T), this.prefixSum[T]; } getIndexOf(T) { T = Math.floor(T), this.getTotalSum(); let L = 0, W = this.values.length - 1, fe = 0, ve = 0, Ue = 0; for (; L <= W; ) if (fe = L + (W - L) / 2 | 0, ve = this.prefixSum[fe], Ue = ve - this.values[fe], T < Ue) W = fe - 1; else if (T >= ve) L = fe + 1; else break; return new act(fe, T - Ue); } } class act { constructor(T, L) { this.index = T, this.remainder = L, this._prefixSumIndexOfResultBrand = void 0, this.index = T, this.remainder = L; } } class oct { constructor(T, L, W, fe) { this._uri = T, this._lines = L, this._eol = W, this._versionId = fe, this._lineStarts = null, this._cachedTextValue = null; } dispose() { this._lines.length = 0; } get version() { return this._versionId; } getText() { return this._cachedTextValue === null && (this._cachedTextValue = this._lines.join(this._eol)), this._cachedTextValue; } onEvents(T) { T.eol && T.eol !== this._eol && (this._eol = T.eol, this._lineStarts = null); const L = T.changes; for (const W of L) this._acceptDeleteRange(W.range), this._acceptInsertText(new vm(W.range.startLineNumber, W.range.startColumn), W.text); this._versionId = T.versionId, this._cachedTextValue = null; } _ensureLineStarts() { if (!this._lineStarts) { const T = this._eol.length, L = this._lines.length, W = new Uint32Array(L); for (let fe = 0; fe < L; fe++) W[fe] = this._lines[fe].length + T; this._lineStarts = new ict(W); } } /** * All changes to a line's text go through this method */ _setLineText(T, L) { this._lines[T] = L, this._lineStarts && this._lineStarts.setValue(T, this._lines[T].length + this._eol.length); } _acceptDeleteRange(T) { if (T.startLineNumber === T.endLineNumber) { if (T.startColumn === T.endColumn) return; this._setLineText(T.startLineNumber - 1, this._lines[T.startLineNumber - 1].substring(0, T.startColumn - 1) + this._lines[T.startLineNumber - 1].substring(T.endColumn - 1)); return; } this._setLineText(T.startLineNumber - 1, this._lines[T.startLineNumber - 1].substring(0, T.startColumn - 1) + this._lines[T.endLineNumber - 1].substring(T.endColumn - 1)), this._lines.splice(T.startLineNumber, T.endLineNumber - T.startLineNumber), this._lineStarts && this._lineStarts.removeValues(T.startLineNumber, T.endLineNumber - T.startLineNumber); } _acceptInsertText(T, L) { if (L.length === 0) return; const W = xlt(L); if (W.length === 1) { this._setLineText(T.lineNumber - 1, this._lines[T.lineNumber - 1].substring(0, T.column - 1) + W[0] + this._lines[T.lineNumber - 1].substring(T.column - 1)); return; } W[W.length - 1] += this._lines[T.lineNumber - 1].substring(T.column - 1), this._setLineText(T.lineNumber - 1, this._lines[T.lineNumber - 1].substring(0, T.column - 1) + W[0]); const fe = new Uint32Array(W.length - 1); for (let ve = 1; ve < W.length; ve++) this._lines.splice(T.lineNumber + ve - 1, 0, W[ve]), fe[ve - 1] = W[ve].length + this._eol.length; this._lineStarts && this._lineStarts.insertValues(T.lineNumber, fe); } } const sct = "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"; function lct(h = "") { let T = "(-?\\d*\\.\\d\\w*)|([^"; for (const L of sct) h.indexOf(L) >= 0 || (T += "\\" + L); return T += "\\s]+)", new RegExp(T, "g"); } const URe = lct(); function cct(h) { let T = URe; if (h && h instanceof RegExp) if (h.global) T = h; else { let L = "g"; h.ignoreCase && (L += "i"), h.multiline && (L += "m"), h.unicode && (L += "u"), T = new RegExp(h.source, L); } return T.lastIndex = 0, T; } const VRe = new qV(); VRe.unshift({ maxLen: 1e3, windowSize: 15, timeBudget: 150 }); function Xoe(h, T, L, W, fe) { if (fe || (fe = WV.first(VRe)), L.length > fe.maxLen) { let Ne = h - fe.maxLen / 2; return Ne < 0 ? Ne = 0 : W += Ne, L = L.substring(Ne, h + fe.maxLen / 2), Xoe(h, T, L, W, fe); } const ve = Date.now(), Ue = h - 1 - W; let ut = -1, Ct = null; for (let Ne = 1; !(Date.now() - ve >= fe.timeBudget); Ne++) { const Ye = Ue - fe.windowSize * Ne; T.lastIndex = Math.max(0, Ye); const cn = uct(T, L, Ue, ut); if (!cn && Ct || (Ct = cn, Ye <= 0)) break; ut = Ye; } if (Ct) { const Ne = { word: Ct[0], startColumn: W + 1 + Ct.index, endColumn: W + 1 + Ct.index + Ct[0].length }; return T.lastIndex = 0, Ne; } return null; } function uct(h, T, L, W) { let fe; for (; fe = h.exec(T); ) { const ve = fe.index || 0; if (ve <= L && h.lastIndex >= L) return fe; if (W > 0 && ve > W) return null; } return null; } class Yoe { constructor(T) { const L = hDe(T); this._defaultValue = L, this._asciiMap = Yoe._createAsciiMap(L), this._map = /* @__PURE__ */ new Map(); } static _createAsciiMap(T) { const L = new Uint8Array(256); return L.fill(T), L; } set(T, L) { const W = hDe(L); T >= 0 && T < 256 ? this._asciiMap[T] = W : this._map.set(T, W); } get(T) { return T >= 0 && T < 256 ? this._asciiMap[T] : this._map.get(T) || this._defaultValue; } clear() { this._asciiMap.fill(this._defaultValue), this._map.clear(); } } class dct { constructor(T, L, W) { const fe = new Uint8Array(T * L); for (let ve = 0, Ue = T * L; ve < Ue; ve++) fe[ve] = W; this._data = fe, this.rows = T, this.cols = L; } get(T, L) { return this._data[T * this.cols + L]; } set(T, L, W) { this._data[T * this.cols + L] = W; } } class fct { constructor(T) { let L = 0, W = 0; for (let ve = 0, Ue = T.length; ve < Ue; ve++) { const [ut, Ct, Ne] = T[ve]; Ct > L && (L = Ct), ut > W && (W = ut), Ne > W && (W = Ne); } L++, W++; const fe = new dct( W, L, 0 /* State.Invalid */ ); for (let ve = 0, Ue = T.length; ve < Ue; ve++) { const [ut, Ct, Ne] = T[ve]; fe.set(ut, Ct, Ne); } this._states = fe, this._maxCharCode = L; } nextState(T, L) { return L < 0 || L >= this._maxCharCode ? 0 : this._states.get(T, L); } } let xoe = null; function _ct() { return xoe === null && (xoe = new fct([ [ 1, 104, 2 /* State.H */ ], [ 1, 72, 2 /* State.H */ ], [ 1, 102, 6 /* State.F */ ], [ 1, 70, 6 /* State.F */ ], [ 2, 116, 3 /* State.HT */ ], [ 2, 84, 3 /* State.HT */ ], [ 3, 116, 4 /* State.HTT */ ], [ 3, 84, 4 /* State.HTT */ ], [ 4, 112, 5 /* State.HTTP */ ], [ 4, 80, 5 /* State.HTTP */ ], [ 5, 115, 9 /* State.BeforeColon */ ], [ 5, 83, 9 /* State.BeforeColon */ ], [ 5, 58, 10 /* State.AfterColon */ ], [ 6, 105, 7 /* State.FI */ ], [ 6, 73, 7 /* State.FI */ ], [ 7, 108, 8 /* State.FIL */ ], [ 7, 76, 8 /* State.FIL */ ], [ 8, 101, 9 /* State.BeforeColon */ ], [ 8, 69, 9 /* State.BeforeColon */ ], [ 9, 58, 10 /* State.AfterColon */ ], [ 10, 47, 11 /* State.AlmostThere */ ], [ 11, 47, 12 /* State.End */ ] ])), xoe; } let pP = null; function pct() { if (pP === null) { pP = new Yoe( 0 /* CharacterClass.None */ ); const h = ` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`; for (let L = 0; L < h.length; L++) pP.set( h.charCodeAt(L), 1 /* CharacterClass.ForceTermination */ ); const T = ".,;:"; for (let L = 0; L < T.length; L++) pP.set( T.charCodeAt(L), 2 /* CharacterClass.CannotEndIn */ ); } return pP; } class YV { static _createLink(T, L, W, fe, ve) { let Ue = ve - 1; do { const ut = L.charCodeAt(Ue); if (T.get(ut) !== 2) break; Ue--; } while (Ue > fe); if (fe > 0) { const ut = L.charCodeAt(fe - 1), Ct = L.charCodeAt(Ue); (ut === 40 && Ct === 41 || ut === 91 && Ct === 93 || ut === 123 && Ct === 125) && Ue--; } return { range: { startLineNumber: W, startColumn: fe + 1, endLineNumber: W, endColumn: Ue + 2 }, url: L.substring(fe, Ue + 1) }; } static computeLinks(T, L = _ct()) { const W = pct(), fe = []; for (let ve = 1, Ue = T.getLineCount(); ve <= Ue; ve++) { const ut = T.getLineContent(ve), Ct = ut.length; let Ne = 0, Ye = 0, cn = 0, En = 1, ni = !1, Ei = !1, Ni = !1, wo = !1; for (; Ne < Ct; ) { let Vn = !1; const un = ut.charCodeAt(Ne); if (En === 13) { let Yi; switch (un) { case 40: ni = !0, Yi = 0; break; case 41: Yi = ni ? 0 : 1; break; case 91: Ni = !0, Ei = !0, Yi = 0; break; case 93: Ni = !1, Yi = Ei ? 0 : 1; break; case 123: wo = !0, Yi = 0; break; case 125: Yi = wo ? 0 : 1; break; case 39: case 34: case 96: cn === un ? Yi = 1 : cn === 39 || cn === 34 || cn === 96 ? Yi = 0 : Yi = 1; break; case 42: Yi = cn === 42 ? 1 : 0; break; case 124: Yi = cn === 124 ? 1 : 0; break; case 32: Yi = Ni ? 0 : 1; break; default: Yi = W.get(un); } Yi === 1 && (fe.push(YV._createLink(W, ut, ve, Ye, Ne)), Vn = !0); } else if (En === 12) { let Yi; un === 91 ? (Ei = !0, Yi = 0) : Yi = W.get(un), Yi === 1 ? Vn = !0 : En = 13; } else En = L.nextState(En, un), En === 0 && (Vn = !0); Vn && (En = 1, ni = !1, Ei = !1, wo = !1, Ye = Ne + 1, cn = un), Ne++; } En === 13 && fe.push(YV._createLink(W, ut, ve, Ye, Ct)); } return fe; } } function mct(h) { return !h || typeof h.getLineCount != "function" || typeof h.getLineContent != "function" ? [] : YV.computeLinks(h); } class Foe { constructor() { this._defaultValueSet = [ ["true", "false"], ["True", "False"], ["Private", "Public", "Friend", "ReadOnly", "Partial", "Protected", "WriteOnly"], ["public", "protected", "private"] ]; } navigateValueSet(T, L, W, fe, ve) { if (T && L) { const Ue = this.doNavigateValueSet(L, ve); if (Ue) return { range: T, value: Ue }; } if (W && fe) { const Ue = this.doNavigateValueSet(fe, ve); if (Ue) return { range: W, value: Ue }; } return null; } doNavigateValueSet(T, L) { const W = this.numberReplace(T, L); return W !== null ? W : this.textReplace(T, L); } numberReplace(T, L) { const W = Math.pow(10, T.length - (T.lastIndexOf(".") + 1)); let fe = Number(T); const ve = parseFloat(T); return !isNaN(fe) && !isNaN(ve) && fe === ve ? fe === 0 && !L ? null : (fe = Math.floor(fe * W), fe += L ? W : -W, String(fe / W)) : null; } textReplace(T, L) { return this.valueSetsReplace(this._defaultValueSet, T, L); } valueSetsReplace(T, L, W) { let fe = null; for (let ve = 0, Ue = T.length; fe === null && ve < Ue; ve++) fe = this.valueSetReplace(T[ve], L, W); return fe; } valueSetReplace(T, L, W) { let fe = T.indexOf(L); return fe >= 0 ? (fe += W ? 1 : -1, fe < 0 ? fe = T.length - 1 : fe %= T.length, T[fe]) : null; } } Foe.INSTANCE = new Foe(); class $oe { constructor() { this._keyCodeToStr = [], this._strToKeyCode = /* @__PURE__ */ Object.create(null); } define(T, L) { this._keyCodeToStr[T] = L, this._strToKeyCode[L.toLowerCase()] = T; } keyCodeToStr(T) { return this._keyCodeToStr[T]; } strToKeyCode(T) { return this._strToKeyCode[T.toLowerCase()] || 0; } } const jV = new $oe(), Boe = new $oe(), Goe = new $oe(), hct = new Array(230), gct = /* @__PURE__ */ Object.create(null), yct = /* @__PURE__ */ Object.create(null); (function() { const h = "", T = [ // keyCodeOrd, immutable, scanCode, scanCodeStr, keyCode, keyCodeStr, eventKeyCode, vkey, usUserSettingsLabel, generalUserSettingsLabel [0, 1, 0, "None", 0, "unknown", 0, "VK_UNKNOWN", h, h], [0, 1, 1, "Hyper", 0, h, 0, h, h, h], [0, 1, 2, "Super", 0, h, 0, h, h, h], [0, 1, 3, "Fn", 0, h, 0, h, h, h], [0, 1, 4, "FnLock", 0, h, 0, h, h, h], [0, 1, 5, "Suspend", 0, h, 0, h, h, h], [0, 1, 6, "Resume", 0, h, 0, h, h, h], [0, 1, 7, "Turbo", 0, h, 0, h, h, h], [0, 1, 8, "Sleep", 0, h, 0, "VK_SLEEP", h, h], [0, 1, 9, "WakeUp", 0, h, 0, h, h, h], [31, 0, 10, "KeyA", 31, "A", 65, "VK_A", h, h], [32, 0, 11, "KeyB", 32, "B", 66, "VK_B", h, h], [33, 0, 12, "KeyC", 33, "C", 67, "VK_C", h, h], [34, 0, 13, "KeyD", 34, "D", 68, "VK_D", h, h], [35, 0, 14, "KeyE", 35, "E", 69, "VK_E", h, h], [36, 0, 15, "KeyF", 36, "F", 70, "VK_F", h, h], [37, 0, 16, "KeyG", 37, "G", 71, "VK_G", h, h], [38, 0, 17, "KeyH", 38, "H", 72, "VK_H", h, h], [39, 0, 18, "KeyI", 39, "I", 73, "VK_I", h, h], [40, 0, 19, "KeyJ", 40, "J", 74, "VK_J", h, h], [41, 0, 20, "KeyK", 41, "K", 75, "VK_K", h, h], [42, 0, 21, "KeyL", 42, "L", 76, "VK_L", h, h], [43, 0, 22, "KeyM", 43, "M", 77, "VK_M", h, h], [44, 0, 23, "KeyN", 44, "N", 78, "VK_N", h, h], [45, 0, 24, "KeyO", 45, "O", 79, "VK_O", h, h], [46, 0, 25, "KeyP", 46, "P", 80, "VK_P", h, h], [47, 0, 26, "KeyQ", 47, "Q", 81, "VK_Q", h, h], [48, 0, 27, "KeyR", 48, "R", 82, "VK_R", h, h], [49, 0, 28, "KeyS", 49, "S", 83, "VK_S", h, h], [50, 0, 29, "KeyT", 50, "T", 84, "VK_T", h, h], [51, 0, 30, "KeyU", 51, "U", 85, "VK_U", h, h], [52, 0, 31, "KeyV", 52, "V", 86, "VK_V", h, h], [53, 0, 32, "KeyW", 53, "W", 87, "VK_W", h, h], [54, 0, 33, "KeyX", 54, "X", 88, "VK_X", h, h], [55, 0, 34, "KeyY", 55, "Y", 89, "VK_Y", h, h], [56, 0, 35, "KeyZ", 56, "Z", 90, "VK_Z", h, h], [22, 0, 36, "Digit1", 22, "1", 49, "VK_1", h, h], [23, 0, 37, "Digit2", 23, "2", 50, "VK_2", h, h], [24, 0, 38, "Digit3", 24, "3", 51, "VK_3", h, h], [25, 0, 39, "Digit4", 25, "4", 52, "VK_4", h, h], [26, 0, 40, "Digit5", 26, "5", 53, "VK_5", h, h], [27, 0, 41, "Digit6", 27, "6", 54, "VK_6", h, h], [28, 0, 42, "Digit7", 28, "7", 55, "VK_7", h, h], [29, 0, 43, "Digit8", 29, "8", 56, "VK_8", h, h], [30, 0, 44, "Digit9", 30, "9", 57, "VK_9", h, h], [21, 0, 45, "Digit0", 21, "0", 48, "VK_0", h, h], [3, 1, 46, "Enter", 3, "Enter", 13, "VK_RETURN", h, h], [9, 1, 47, "Escape", 9, "Escape", 27, "VK_ESCAPE", h, h], [1, 1, 48, "Backspace", 1, "Backspace", 8, "VK_BACK", h, h], [2, 1, 49, "Tab", 2, "Tab", 9, "VK_TAB", h, h], [10, 1, 50, "Space", 10, "Space", 32, "VK_SPACE", h, h], [83, 0, 51, "Minus", 83, "-", 189, "VK_OEM_MINUS", "-", "OEM_MINUS"], [81, 0, 52, "Equal", 81, "=", 187, "VK_OEM_PLUS", "=", "OEM_PLUS"], [87, 0, 53, "BracketLeft", 87, "[", 219, "VK_OEM_4", "[", "OEM_4"], [89, 0, 54, "BracketRight", 89, "]", 221, "VK_OEM_6", "]", "OEM_6"], [88, 0, 55, "Backslash", 88, "\\", 220, "VK_OEM_5", "\\", "OEM_5"], [0, 0, 56, "IntlHash", 0, h, 0, h, h, h], [80, 0, 57, "Semicolon", 80, ";", 186, "VK_OEM_1", ";", "OEM_1"], [90, 0, 58, "Quote", 90, "'", 222, "VK_OEM_7", "'", "OEM_7"], [86, 0, 59, "Backquote", 86, "`", 192, "VK_OEM_3", "`", "OEM_3"], [82, 0, 60, "Comma", 82, ",", 188, "VK_OEM_COMMA", ",", "OEM_COMMA"], [84, 0, 61, "Period", 84, ".", 190, "VK_OEM_PERIOD", ".", "OEM_PERIOD"], [85, 0, 62, "Slash", 85, "/", 191, "VK_OEM_2", "/", "OEM_2"], [8, 1, 63, "CapsLock", 8, "CapsLock", 20, "VK_CAPITAL", h, h], [59, 1, 64, "F1", 59, "F1", 112, "VK_F1", h, h], [60, 1, 65, "F2", 60, "F2", 113, "VK_F2", h, h], [61, 1, 66, "F3", 61, "F3", 114, "VK_F3", h, h], [62, 1, 67, "F4", 62, "F4", 115, "VK_F4", h, h], [63, 1, 68, "F5", 63, "F5", 116, "VK_F5", h, h], [64, 1, 69, "F6", 64, "F6", 117, "VK_F6", h, h], [65, 1, 70, "F7", 65, "F7", 118, "VK_F7", h, h], [66, 1, 71, "F8", 66, "F8", 119, "VK_F8", h, h], [67, 1, 72, "F9", 67, "F9", 120, "VK_F9", h, h], [68, 1, 73, "F10", 68, "F10", 121, "VK_F10", h, h], [69, 1, 74, "F11", 69, "F11", 122, "VK_F11", h, h], [70, 1, 75, "F12", 70, "F12", 123, "VK_F12", h, h], [0, 1, 76, "PrintScreen", 0, h, 0, h, h, h], [79, 1, 77, "ScrollLock", 79, "ScrollLock", 145, "VK_SCROLL", h, h], [7, 1, 78, "Pause", 7, "PauseBreak", 19, "VK_PAUSE", h, h], [19, 1, 79, "Insert", 19, "Insert", 45, "VK_INSERT", h, h], [14, 1, 80, "Home", 14, "Home", 36, "VK_HOME", h, h], [11, 1, 81, "PageUp", 11, "PageUp", 33, "VK_PRIOR", h, h], [20, 1, 82, "Delete", 20, "Delete", 46, "VK_DELETE", h, h], [13, 1, 83, "End", 13, "End", 35, "VK_END", h, h], [12, 1, 84, "PageDown", 12, "PageDown", 34, "VK_NEXT", h, h], [17, 1, 85, "ArrowRight", 17, "RightArrow", 39, "VK_RIGHT", "Right", h], [15, 1, 86, "ArrowLeft", 15, "LeftArrow", 37, "VK_LEFT", "Left", h], [18, 1, 87, "ArrowDown", 18, "DownArrow", 40, "VK_DOWN", "Down", h], [16, 1, 88, "ArrowUp", 16, "UpArrow", 38, "VK_UP", "Up", h], [78, 1, 89, "NumLock", 78, "NumLock", 144, "VK_NUMLOCK", h, h], [108, 1, 90, "NumpadDivide", 108, "NumPad_Divide", 111, "VK_DIVIDE", h, h], [103, 1, 91, "NumpadMultiply", 103, "NumPad_Multiply", 106, "VK_MULTIPLY", h, h], [106, 1, 92, "NumpadSubtract", 106, "NumPad_Subtract", 109, "VK_SUBTRACT", h, h], [104, 1, 93, "NumpadAdd", 104, "NumPad_Add", 107, "VK_ADD", h, h], [3, 1, 94, "NumpadEnter", 3, h, 0, h, h, h], [94, 1, 95, "Numpad1", 94, "NumPad1", 97, "VK_NUMPAD1", h, h], [95, 1, 96, "Numpad2", 95, "NumPad2", 98, "VK_NUMPAD2", h, h], [96, 1, 97, "Numpad3", 96, "NumPad3", 99, "VK_NUMPAD3", h, h], [97, 1, 98, "Numpad4", 97, "NumPad4", 100, "VK_NUMPAD4", h, h], [98, 1, 99, "Numpad5", 98, "NumPad5", 101, "VK_NUMPAD5", h, h], [99, 1, 100, "Numpad6", 99, "NumPad6", 102, "VK_NUMPAD6", h, h], [100, 1, 101, "Numpad7", 100, "NumPad7", 103, "VK_NUMPAD7", h, h], [101, 1, 102, "Numpad8", 101, "NumPad8", 104, "VK_NUMPAD8", h, h], [102, 1, 103, "Numpad9", 102, "NumPad9", 105, "VK_NUMPAD9", h, h], [93, 1, 104, "Numpad0", 93, "NumPad0", 96, "VK_NUMPAD0", h, h], [107, 1, 105, "NumpadDecimal", 107, "NumPad_Decimal", 110, "VK_DECIMAL", h, h], [92, 0, 106, "IntlBackslash", 92, "OEM_102", 226, "VK_OEM_102", h, h], [58, 1, 107, "ContextMenu", 58, "ContextMenu", 93, h, h, h], [0, 1, 108, "Power", 0, h, 0, h, h, h], [0, 1, 109, "NumpadEqual", 0, h, 0, h, h, h], [71, 1, 110, "F13", 71, "F13", 124, "VK_F13", h, h], [72, 1, 111, "F14", 72, "F14", 125, "VK_F14", h, h], [73, 1, 112, "F15", 73, "F15", 126, "VK_F15", h, h], [74, 1, 113, "F16", 74, "F16", 127, "VK_F16", h, h], [75, 1, 114, "F17", 75, "F17", 128, "VK_F17", h, h], [76, 1, 115, "F18", 76, "F18", 129, "VK_F18", h, h], [77, 1, 116, "F19", 77, "F19", 130, "VK_F19", h, h], [0, 1, 117, "F20", 0, h, 0, "VK_F20", h, h], [0, 1, 118, "F21", 0, h, 0, "VK_F21", h, h], [0, 1, 119, "F22", 0, h, 0, "VK_F22", h, h], [0, 1, 120, "F23", 0, h, 0, "VK_F23", h, h], [0, 1, 121, "F24", 0, h, 0, "VK_F24", h, h], [0, 1, 122, "Open", 0, h, 0, h, h, h], [0, 1, 123, "Help", 0, h, 0, h, h, h], [0, 1, 124, "Select", 0, h, 0, h, h, h], [0, 1, 125, "Again", 0, h, 0, h, h, h], [0, 1, 126, "Undo", 0, h, 0, h, h, h], [0, 1, 127, "Cut", 0, h, 0, h, h, h], [0, 1, 128, "Copy", 0, h, 0, h, h, h], [0, 1, 129, "Paste", 0, h, 0, h, h, h], [0, 1, 130, "Find", 0, h, 0, h, h, h], [0, 1, 131, "AudioVolumeMute", 112, "AudioVolumeMute", 173, "VK_VOLUME_MUTE", h, h], [0, 1, 132, "AudioVolumeUp", 113, "AudioVolumeUp", 175, "VK_VOLUME_UP", h, h], [0, 1, 133, "AudioVolumeDown", 114, "AudioVolumeDown", 174, "VK_VOLUME_DOWN", h, h], [105, 1, 134, "NumpadComma", 105, "NumPad_Separator", 108, "VK_SEPARATOR", h, h], [110, 0, 135, "IntlRo", 110, "ABNT_C1", 193, "VK_ABNT_C1", h, h], [0, 1, 136, "KanaMode", 0, h, 0, h, h, h], [0, 0, 137, "IntlYen", 0, h, 0, h, h, h], [0, 1, 138, "Convert", 0, h, 0, h, h, h], [0, 1, 139, "NonConvert", 0, h, 0, h, h, h], [0, 1, 140, "Lang1", 0, h, 0, h, h, h], [0, 1, 141, "Lang2", 0, h, 0, h, h, h], [0, 1, 142, "Lang3", 0, h, 0, h, h, h], [0, 1, 143, "Lang4", 0, h, 0, h, h, h], [0, 1, 144, "Lang5", 0, h, 0, h, h, h], [0, 1, 145, "Abort", 0, h, 0, h, h, h], [0, 1, 146, "Props", 0, h, 0, h, h, h], [0, 1, 147, "NumpadParenLeft", 0, h, 0, h, h, h], [0, 1, 148, "NumpadParenRight", 0, h, 0, h, h, h], [0, 1, 149, "NumpadBackspace", 0, h, 0, h, h, h], [0, 1, 150, "NumpadMemoryStore", 0, h, 0, h, h, h], [0, 1, 151, "NumpadMemoryRecall", 0, h, 0, h, h, h], [0, 1, 152, "NumpadMemoryClear", 0, h, 0, h, h, h], [0, 1, 153, "NumpadMemoryAdd", 0, h, 0, h, h, h], [0, 1, 154, "NumpadMemorySubtract", 0, h, 0, h, h, h], [0, 1, 155, "NumpadClear", 126, "Clear", 12, "VK_CLEAR", h, h], [0, 1, 156, "NumpadClearEntry", 0, h, 0, h, h, h], [5, 1, 0, h, 5, "Ctrl", 17, "VK_CONTROL", h, h], [4, 1, 0, h, 4, "Shift", 16, "VK_SHIFT", h, h], [6, 1, 0, h, 6, "Alt", 18, "VK_MENU", h, h], [57, 1, 0, h, 57, "Meta", 91, "VK_COMMAND", h, h], [5, 1, 157, "ControlLeft", 5, h, 0, "VK_LCONTROL", h, h], [4, 1, 158, "ShiftLeft", 4, h, 0, "VK_LSHIFT", h, h], [6, 1, 159, "AltLeft", 6, h, 0, "VK_LMENU", h, h], [57, 1, 160, "MetaLeft", 57, h, 0, "VK_LWIN", h, h], [5, 1, 161, "ControlRight", 5, h, 0, "VK_RCONTROL", h, h], [4, 1, 162, "ShiftRight", 4, h, 0, "VK_RSHIFT", h, h], [6, 1, 163, "AltRight", 6, h, 0, "VK_RMENU", h, h], [57, 1, 164, "MetaRight", 57, h, 0, "VK_RWIN", h, h], [0, 1, 165, "BrightnessUp", 0, h, 0, h, h, h], [0, 1, 166, "BrightnessDown", 0, h, 0, h, h, h], [0, 1, 167, "MediaPlay", 0, h, 0, h, h, h], [0, 1, 168, "MediaRecord", 0, h, 0, h, h, h], [0, 1, 169, "MediaFastForward", 0, h, 0, h, h, h], [0, 1, 170, "MediaRewind", 0, h, 0, h, h, h], [114, 1, 171, "MediaTrackNext", 119, "MediaTrackNext", 176, "VK_MEDIA_NEXT_TRACK", h, h], [115, 1, 172, "MediaTrackPrevious", 120, "MediaTrackPrevious", 177, "VK_MEDIA_PREV_TRACK", h, h], [116, 1, 173, "MediaStop", 121, "MediaStop", 178, "VK_MEDIA_STOP", h, h], [0, 1, 174, "Eject", 0, h, 0, h, h, h], [117, 1, 175, "MediaPlayPause", 122, "MediaPlayPause", 179, "VK_MEDIA_PLAY_PAUSE", h, h], [0, 1, 176, "MediaSelect", 123, "LaunchMediaPlayer", 181, "VK_MEDIA_LAUNCH_MEDIA_SELECT", h, h], [0, 1, 177, "LaunchMail", 124, "LaunchMail", 180, "VK_MEDIA_LAUNCH_MAIL", h, h], [0, 1, 178, "LaunchApp2", 125, "LaunchApp2", 183, "VK_MEDIA_LAUNCH_APP2", h, h], [0, 1, 179, "LaunchApp1", 0, h, 0, "VK_MEDIA_LAUNCH_APP1", h, h], [0, 1, 180, "SelectTask", 0, h, 0, h, h, h], [0, 1, 181, "LaunchScreenSaver", 0, h, 0, h, h, h], [0, 1, 182, "BrowserSearch", 115, "BrowserSearch", 170, "VK_BROWSER_SEARCH", h, h], [0, 1, 183, "BrowserHome", 116, "BrowserHome", 172, "VK_BROWSER_HOME", h, h], [112, 1, 184, "BrowserBack", 117, "BrowserBack", 166, "VK_BROWSER_BACK", h, h], [113, 1, 185, "BrowserForward", 118, "BrowserForward", 167, "VK_BROWSER_FORWARD", h, h], [0, 1, 186, "BrowserStop", 0, h, 0, "VK_BROWSER_STOP", h, h], [0, 1, 187, "BrowserRefresh", 0, h, 0, "VK_BROWSER_REFRESH", h, h], [0, 1, 188, "BrowserFavorites", 0, h, 0, "VK_BROWSER_FAVORITES", h, h], [0, 1, 189, "ZoomToggle", 0, h, 0, h, h, h], [0, 1, 190, "MailReply", 0, h, 0, h, h, h], [0, 1, 191, "MailForward", 0, h, 0, h, h, h], [0, 1, 192, "MailSend", 0, h, 0, h, h, h], // See https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html // If an Input Method Editor is processing key input and the event is keydown, return 229. [109, 1, 0, h, 109, "KeyInComposition", 229, h, h, h], [111, 1, 0, h, 111, "ABNT_C2", 194, "VK_ABNT_C2", h, h], [91, 1, 0, h, 91, "OEM_8", 223, "VK_OEM_8", h, h], [0, 1, 0, h, 0, h, 0, "VK_KANA", h, h], [0, 1, 0, h, 0, h, 0, "VK_HANGUL", h, h], [0, 1, 0, h, 0, h, 0, "VK_JUNJA", h, h], [0, 1, 0, h, 0, h, 0, "VK_FINAL", h, h], [0, 1, 0, h, 0, h, 0, "VK_HANJA", h, h], [0, 1, 0, h, 0, h, 0, "VK_KANJI", h, h], [0, 1, 0, h, 0, h, 0, "VK_CONVERT", h, h], [0, 1, 0, h, 0, h, 0, "VK_NONCONVERT", h, h], [0, 1, 0, h, 0, h, 0, "VK_ACCEPT", h, h], [0, 1, 0, h, 0, h, 0, "VK_MODECHANGE", h, h], [0, 1, 0, h, 0, h, 0, "VK_SELECT", h, h], [0, 1, 0, h, 0, h, 0, "VK_PRINT", h, h], [0, 1, 0, h, 0, h, 0, "VK_EXECUTE", h, h], [0, 1, 0, h, 0, h, 0, "VK_SNAPSHOT", h, h], [0, 1, 0, h, 0, h, 0, "VK_HELP", h, h], [0, 1, 0, h, 0, h, 0, "VK_APPS", h, h], [0, 1, 0, h, 0, h, 0, "VK_PROCESSKEY", h, h], [0, 1, 0, h, 0, h, 0, "VK_PACKET", h, h], [0, 1, 0, h, 0, h, 0, "VK_DBE_SBCSCHAR", h, h], [0, 1, 0, h, 0, h, 0, "VK_DBE_DBCSCHAR", h, h], [0, 1, 0, h, 0, h, 0, "VK_ATTN", h, h], [0, 1, 0, h, 0, h, 0, "VK_CRSEL", h, h], [0, 1, 0, h, 0, h, 0, "VK_EXSEL", h, h], [0, 1, 0, h, 0, h, 0, "VK_EREOF", h, h], [0, 1, 0, h, 0, h, 0, "VK_PLAY", h, h], [0, 1, 0, h, 0, h, 0, "VK_ZOOM", h, h], [0, 1, 0, h, 0, h, 0, "VK_NONAME", h, h], [0, 1, 0, h, 0, h, 0, "VK_PA1", h, h], [0, 1, 0, h, 0, h, 0, "VK_OEM_CLEAR", h, h] ], L = [], W = []; for (const fe of T) { const [ve, Ue, ut, Ct, Ne, Ye, cn, En, ni, Ei] = fe; if (W[ut] || (W[ut] = !0, gct[Ct] = ut, yct[Ct.toLowerCase()] = ut), !L[Ne]) { if (L[Ne] = !0, !Ye) throw new Error(`String representation missing for key code ${Ne} around scan code ${Ct}`); jV.define(Ne, Ye), Boe.define(Ne, ni || Ye), Goe.define(Ne, Ei || ni || Ye); } cn && (hct[cn] = Ne); } })(); var gDe; (function(h) { function T(ut) { return jV.keyCodeToStr(ut); } h.toString = T; function L(ut) { return jV.strToKeyCode(ut); } h.fromString = L; function W(ut) { return Boe.keyCodeToStr(ut); } h.toUserSettingsUS = W; function fe(ut) { return Goe.keyCodeToStr(ut); } h.toUserSettingsGeneral = fe; function ve(ut) { return Boe.strToKeyCode(ut) || Goe.strToKeyCode(ut); } h.fromUserSettings = ve; function Ue(ut) { if (ut >= 93 && ut <= 108) return null; switch (ut) { case 16: return "Up"; case 18: return "Down"; case 15: return "Left"; case 17: return "Right"; } return jV.keyCodeToStr(ut); } h.toElectronAccelerator = Ue; })(gDe || (gDe = {})); function vct(h, T) { const L = (T & 65535) << 16 >>> 0; return (h | L) >>> 0; } class dv extends yc { constructor(T, L, W, fe) { super(T, L, W, fe), this.selectionStartLineNumber = T, this.selectionStartColumn = L, this.positionLineNumber = W, this.positionColumn = fe; } /** * Transform to a human-readable representation. */ toString() { return "[" + this.selectionStartLineNumber + "," + this.selectionStartColumn + " -> " + this.positionLineNumber + "," + this.positionColumn + "]"; } /** * Test if equals other selection. */ equalsSelection(T) { return dv.selectionsEqual(this, T); } /** * Test if the two selections are equal. */ static selectionsEqual(T, L) { return T.selectionStartLineNumber === L.selectionStartLineNumber && T.selectionStartColumn === L.selectionStartColumn && T.positionLineNumber === L.positionLineNumber && T.positionColumn === L.positionColumn; } /** * Get directions (LTR or RTL). */ getDirection() { return this.selectionStartLineNumber === this.startLineNumber && this.selectionStartColumn === this.startColumn ? 0 : 1; } /** * Create a new selection with a different `positionLineNumber` and `positionColumn`. */ setEndPosition(T, L) { return this.getDirection() === 0 ? new dv(this.startLineNumber, this.startColumn, T, L) : new dv(T, L, this.startLineNumber, this.startColumn); } /** * Get the position at `positionLineNumber` and `positionColumn`. */ getPosition() { return new vm(this.positionLineNumber, this.positionColumn); } /** * Get the position at the start of the selection. */ getSelectionStart() { return new vm(this.selectionStartLineNumber, this.selectionStartColumn); } /** * Create a new selection with a different `selectionStartLineNumber` and `selectionStartColumn`. */ setStartPosition(T, L) { return this.getDirection() === 0 ? new dv(T, L, this.endLineNumber, this.endColumn) : new dv(this.endLineNumber, this.endColumn, T, L); } // ---- /** * Create a `Selection` from one or two positions */ static fromPositions(T, L = T) { return new dv(T.lineNumber, T.column, L.lineNumber, L.column); } /** * Creates a `Selection` from a range, given a direction. */ static fromRange(T, L) { return L === 0 ? new dv(T.startLineNumber, T.startColumn, T.endLineNumber, T.endColumn) : new dv(T.endLineNumber, T.endColumn, T.startLineNumber, T.startColumn); } /** * Create a `Selection` from an `ISelection`. */ static liftSelection(T) { return new dv(T.selectionStartLineNumber, T.selectionStartColumn, T.positionLineNumber, T.positionColumn); } /** * `a` equals `b`. */ static selectionsArrEqual(T, L) { if (T && !L || !T && L) return !1; if (!T && !L) return !0; if (T.length !== L.length) return !1; for (let W = 0, fe = T.length; W < fe; W++) if (!this.selectionsEqual(T[W], L[W])) return !1; return !0; } /** * Test if `obj` is an `ISelection`. */ static isISelection(T) { return T && typeof T.selectionStartLineNumber == "number" && typeof T.selectionStartColumn == "number" && typeof T.positionLineNumber == "number" && typeof T.positionColumn == "number"; } /** * Create with a direction. */ static createWithDirection(T, L, W, fe, ve) { return ve === 0 ? new dv(T, L, W, fe) : new dv(W, fe, T, L); } } const yDe = /* @__PURE__ */ Object.create(null); function Ae(h, T) { if (ylt(T)) { const L = yDe[T]; if (L === void 0) throw new Error(`${h} references an unknown codicon: ${T}`); T = L; } return yDe[h] = T, { id: h }; } const ps = { // built-in icons, with image name add: Ae("add", 6e4), plus: Ae("plus", 6e4), gistNew: Ae("gist-new", 6e4), repoCreate: Ae("repo-create", 6e4), lightbulb: Ae("lightbulb", 60001), lightBulb: Ae("light-bulb", 60001), repo: Ae("repo", 60002), repoDelete: Ae("repo-delete", 60002), gistFork: Ae("gist-fork", 60003), repoForked: Ae("repo-forked", 60003), gitPullRequest: Ae("git-pull-request", 60004), gitPullRequestAbandoned: Ae("git-pull-request-abandoned", 60004), recordKeys: Ae("record-keys", 60005), keyboard: Ae("keyboard", 60005), tag: Ae("tag", 60006), tagAdd: Ae("tag-add", 60006), tagRemove: Ae("tag-remove", 60006), person: Ae("person", 60007), personFollow: Ae("person-follow", 60007), personOutline: Ae("person-outline", 60007), personFilled: Ae("person-filled", 60007), gitBranch: Ae("git-branch", 60008), gitBranchCreate: Ae("git-branch-create", 60008), gitBranchDelete: Ae("git-branch-delete", 60008), sourceControl: Ae("source-control", 60008), mirror: Ae("mirror", 60009), mirrorPublic: Ae("mirror-public", 60009), star: Ae("star", 60010), starAdd: Ae("star-add", 60010), starDelete: Ae("star-delete", 60010), starEmpty: Ae("star-empty", 60010), comment: Ae("comment", 60011), commentAdd: Ae("comment-add", 60011), alert: Ae("alert", 60012), warning: Ae("warning", 60012), search: Ae("search", 60013), searchSave: Ae("search-save", 60013), logOut: Ae("log-out", 60014), signOut: Ae("sign-out", 60014), logIn: Ae("log-in", 60015), signIn: Ae("sign-in", 60015), eye: Ae("eye", 60016), eyeUnwatch: Ae("eye-unwatch", 60016), eyeWatch: Ae("eye-watch", 60016), circleFilled: Ae("circle-filled", 60017), primitiveDot: Ae("primitive-dot", 60017), closeDirty: Ae("close-dirty", 60017), debugBreakpoint: Ae("debug-breakpoint", 60017), debugBreakpointDisabled: Ae("debug-breakpoint-disabled", 60017), debugHint: Ae("debug-hint", 60017), primitiveSquare: Ae("primitive-square", 60018), edit: Ae("edit", 60019), pencil: Ae("pencil", 60019), info: Ae("info", 60020), issueOpened: Ae("issue-opened", 60020), gistPrivate: Ae("gist-private", 60021), gitForkPrivate: Ae("git-fork-private", 60021), lock: Ae("lock", 60021), mirrorPrivate: Ae("mirror-private", 60021), close: Ae("close", 60022), removeClose: Ae("remove-close", 60022), x: Ae("x", 60022), repoSync: Ae("repo-sync", 60023), sync: Ae("sync", 60023), clone: Ae("clone", 60024), desktopDownload: Ae("desktop-download", 60024), beaker: Ae("beaker", 60025), microscope: Ae("microscope", 60025), vm: Ae("vm", 60026), deviceDesktop: Ae("device-desktop", 60026), file: Ae("file", 60027), fileText: Ae("file-text", 60027), more: Ae("more", 60028), ellipsis: Ae("ellipsis", 60028), kebabHorizontal: Ae("kebab-horizontal", 60028), mailReply: Ae("mail-reply", 60029), reply: Ae("reply", 60029), organization: Ae("organization", 60030), organizationFilled: Ae("organization-filled", 60030), organizationOutline: Ae("organization-outline", 60030), newFile: Ae("new-file", 60031), fileAdd: Ae("file-add", 60031), newFolder: Ae("new-folder", 60032), fileDirectoryCreate: Ae("file-directory-create", 60032), trash: Ae("trash", 60033), trashcan: Ae("trashcan", 60033), history: Ae("history", 60034), clock: Ae("clock", 60034), folder: Ae("folder", 60035), fileDirectory: Ae("file-directory", 60035), symbolFolder: Ae("symbol-folder", 60035), logoGithub: Ae("logo-github", 60036), markGithub: Ae("mark-github", 60036), github: Ae("github", 60036), terminal: Ae("terminal", 60037), console: Ae("console", 60037), repl: Ae("repl", 60037), zap: Ae("zap", 60038), symbolEvent: Ae("symbol-event", 60038), error: Ae("error", 60039), stop: Ae("stop", 60039), variable: Ae("variable", 60040), symbolVariable: Ae("symbol-variable", 60040), array: Ae("array", 60042), symbolArray: Ae("symbol-array", 60042), symbolModule: Ae("symbol-module", 60043), symbolPackage: Ae("symbol-package", 60043), symbolNamespace: Ae("symbol-namespace", 60043), symbolObject: Ae("symbol-object", 60043), symbolMethod: Ae("symbol-method", 60044), symbolFunction: Ae("symbol-function", 60044), symbolConstructor: Ae("symbol-constructor", 60044), symbolBoolean: Ae("symbol-boolean", 60047), symbolNull: Ae("symbol-null", 60047), symbolNumeric: Ae("symbol-numeric", 60048), symbolNumber: Ae("symbol-number", 60048), symbolStructure: Ae("symbol-structure", 60049), symbolStruct: Ae("symbol-struct", 60049), symbolParameter: Ae("symbol-parameter", 60050), symbolTypeParameter: Ae("symbol-type-parameter", 60050), symbolKey: Ae("symbol-key", 60051), symbolText: Ae("symbol-text", 60051), symbolReference: Ae("symbol-reference", 60052), goToFile: Ae("go-to-file", 60052), symbolEnum: Ae("symbol-enum", 60053), symbolValue: Ae("symbol-value", 60053), symbolRuler: Ae("symbol-ruler", 60054), symbolUnit: Ae("symbol-unit", 60054), activateBreakpoints: Ae("activate-breakpoints", 60055), archive: Ae("archive", 60056), arrowBoth: Ae("arrow-both", 60057), arrowDown: Ae("arrow-down", 60058), arrowLeft: Ae("arrow-left", 60059), arrowRight: Ae("arrow-right", 60060), arrowSmallDown: Ae("arrow-small-down", 60061), arrowSmallLeft: Ae("arrow-small-left", 60062), arrowSmallRight: Ae("arrow-small-right", 60063), arrowSmallUp: Ae("arrow-small-up", 60064), arrowUp: Ae("arrow-up", 60065), bell: Ae("bell", 60066), bold: Ae("bold", 60067), book: Ae("book", 60068), bookmark: Ae("bookmark", 60069), debugBreakpointConditionalUnverified: Ae("debug-breakpoint-conditional-unverified", 60070), debugBreakpointConditional: Ae("debug-breakpoint-conditional", 60071), debugBreakpointConditionalDisabled: Ae("debug-breakpoint-conditional-disabled", 60071), debugBreakpointDataUnverified: Ae("debug-breakpoint-data-unverified", 60072), debugBreakpointData: Ae("debug-breakpoint-data", 60073), debugBreakpointDataDisabled: Ae("debug-breakpoint-data-disabled", 60073), debugBreakpointLogUnverified: Ae("debug-breakpoint-log-unverified", 60074), debugBreakpointLog: Ae("debug-breakpoint-log", 60075), debugBreakpointLogDisabled: Ae("debug-breakpoint-log-disabled", 60075), briefcase: Ae("briefcase", 60076), broadcast: Ae("broadcast", 60077), browser: Ae("browser", 60078), bug: Ae("bug", 60079), calendar: Ae("calendar", 60080), caseSensitive: Ae("case-sensitive", 60081), check: Ae("check", 60082), checklist: Ae("checklist", 60083), chevronDown: Ae("chevron-down", 60084), dropDownButton: Ae("drop-down-button", 60084), chevronLeft: Ae("chevron-left", 60085), chevronRight: Ae("chevron-right", 60086), chevronUp: Ae("chevron-up", 60087), chromeClose: Ae("chrome-close", 60088), chromeMaximize: Ae("chrome-maximize", 60089), chromeMinimize: Ae("chrome-minimize", 60090), chromeRestore: Ae("chrome-restore", 60091), circle: Ae("circle", 60092), circleOutline: Ae("circle-outline", 60092), debugBreakpointUnverified: Ae("debug-breakpoint-unverified", 60092), circleSlash: Ae("circle-slash", 60093), circuitBoard: Ae("circuit-board", 60094), clearAll: Ae("clear-all", 60095), clippy: Ae("clippy", 60096), closeAll: Ae("close-all", 60097), cloudDownload: Ae("cloud-download", 60098), cloudUpload: Ae("cloud-upload", 60099), code: Ae("code", 60100), collapseAll: Ae("collapse-all", 60101), colorMode: Ae("color-mode", 60102), commentDiscussion: Ae("comment-discussion", 60103), compareChanges: Ae("compare-changes", 60157), creditCard: Ae("credit-card", 60105), dash: Ae("dash", 60108), dashboard: Ae("dashboard", 60109), database: Ae("database", 60110), debugContinue: Ae("debug-continue", 60111), debugDisconnect: Ae("debug-disconnect", 60112), debugPause: Ae("debug-pause", 60113), debugRestart: Ae("debug-restart", 60114), debugStart: Ae("debug-start", 60115), debugStepInto: Ae("debug-step-into", 60116), debugStepOut: Ae("debug-step-out", 60117), debugStepOver: Ae("debug-step-over", 60118), debugStop: Ae("debug-stop", 60119), debug: Ae("debug", 60120), deviceCameraVideo: Ae("device-camera-video", 60121), deviceCamera: Ae("device-camera", 60122), deviceMobile: Ae("device-mobile", 60123), diffAdded: Ae("diff-added", 60124), diffIgnored: Ae("diff-ignored", 60125), diffModified: Ae("diff-modified", 60126), diffRemoved: Ae("diff-removed", 60127), diffRenamed: Ae("diff-renamed", 60128), diff: Ae("diff", 60129), discard: Ae("discard", 60130), editorLayout: Ae("editor-layout", 60131), emptyWindow: Ae("empty-window", 60132), exclude: Ae("exclude", 60133), extensions: Ae("extensions", 60134), eyeClosed: Ae("eye-closed", 60135), fileBinary: Ae("file-binary", 60136), fileCode: Ae("file-code", 60137), fileMedia: Ae("file-media", 60138), filePdf: Ae("file-pdf", 60139), fileSubmodule: Ae("file-submodule", 60140), fileSymlinkDirectory: Ae("file-symlink-directory", 60141), fileSymlinkFile: Ae("file-symlink-file", 60142), fileZip: Ae("file-zip", 60143), files: Ae("files", 60144), filter: Ae("filter", 60145), flame: Ae("flame", 60146), foldDown: Ae("fold-down", 60147), foldUp: Ae("fold-up", 60148), fold: Ae("fold", 60149), folderActive: Ae("folder-active", 60150), folderOpened: Ae("folder-opened", 60151), gear: Ae("gear", 60152), gift: Ae("gift", 60153), gistSecret: Ae("gist-secret", 60154), gist: Ae("gist", 60155), gitCommit: Ae("git-commit", 60156), gitCompare: Ae("git-compare", 60157), gitMerge: Ae("git-merge", 60158), githubAction: Ae("github-action", 60159), githubAlt: Ae("github-alt", 60160), globe: Ae("globe", 60161), grabber: Ae("grabber", 60162), graph: Ae("graph", 60163), gripper: Ae("gripper", 60164), heart: Ae("heart", 60165), home: Ae("home", 60166), horizontalRule: Ae("horizontal-rule", 60167), hubot: Ae("hubot", 60168), inbox: Ae("inbox", 60169), issueClosed: Ae("issue-closed", 60324), issueReopened: Ae("issue-reopened", 60171), issues: Ae("issues", 60172), italic: Ae("italic", 60173), jersey: Ae("jersey", 60174), json: Ae("json", 60175), bracket: Ae("bracket", 60175), kebabVertical: Ae("kebab-vertical", 60176), key: Ae("key", 60177), law: Ae("law", 60178), lightbulbAutofix: Ae("lightbulb-autofix", 60179), linkExternal: Ae("link-external", 60180), link: Ae("link", 60181), listOrdered: Ae("list-ordered", 60182), listUnordered: Ae("list-unordered", 60183), liveShare: Ae("live-share", 60184), loading: Ae("loading", 60185), location: Ae("location", 60186), mailRead: Ae("mail-read", 60187), mail: Ae("mail", 60188), markdown: Ae("markdown", 60189), megaphone: Ae("megaphone", 60190), mention: Ae("mention", 60191), milestone: Ae("milestone", 60192), mortarBoard: Ae("mortar-board", 60193), move: Ae("move", 60194), multipleWindows: Ae("multiple-windows", 60195), mute: Ae("mute", 60196), noNewline: Ae("no-newline", 60197), note: Ae("note", 60198), octoface: Ae("octoface", 60199), openPreview: Ae("open-preview", 60200), package_: Ae("package", 60201), paintcan: Ae("paintcan", 60202), pin: Ae("pin", 60203), play: Ae("play", 60204), run: Ae("run", 60204), plug: Ae("plug", 60205), preserveCase: Ae("preserve-case", 60206), preview: Ae("preview", 60207), project: Ae("project", 60208), pulse: Ae("pulse", 60209), question: Ae("question", 60210), quote: Ae("quote", 60211), radioTower: Ae("radio-tower", 60212), reactions: Ae("reactions", 60213), references: Ae("references", 60214), refresh: Ae("refresh", 60215), regex: Ae("regex", 60216), remoteExplorer: Ae("remote-explorer", 60217), remote: Ae("remote", 60218), remove: Ae("remove", 60219), replaceAll: Ae("replace-all", 60220), replace: Ae("replace", 60221), repoClone: Ae("repo-clone", 60222), repoForcePush: Ae("repo-force-push", 60223), repoPull: Ae("repo-pull", 60224), repoPush: Ae("repo-push", 60225), report: Ae("report", 60226), requestChanges: Ae("request-changes", 60227), rocket: Ae("rocket", 60228), rootFolderOpened: Ae("root-folder-opened", 60229), rootFolder: Ae("root-folder", 60230), rss: Ae("rss", 60231), ruby: Ae("ruby", 60232), saveAll: Ae("save-all", 60233), saveAs: Ae("save-as", 60234), save: Ae("save", 60235), screenFull: Ae("screen-full", 60236), screenNormal: Ae("screen-normal", 60237), searchStop: Ae("search-stop", 60238), server: Ae("server", 60240), settingsGear: Ae("settings-gear", 60241), settings: Ae("settings", 60242), shield: Ae("shield", 60243), smiley: Ae("smiley", 60244), sortPrecedence: Ae("sort-precedence", 60245), splitHorizontal: Ae("split-horizontal", 60246), splitVertical: Ae("split-vertical", 60247), squirrel: Ae("squirrel", 60248), starFull: Ae("star-full", 60249), starHalf: Ae("star-half", 60250), symbolClass: Ae("symbol-class", 60251), symbolColor: Ae("symbol-color", 60252), symbolCustomColor: Ae("symbol-customcolor", 60252), symbolConstant: Ae("symbol-constant", 60253), symbolEnumMember: Ae("symbol-enum-member", 60254), symbolField: Ae("symbol-field", 60255), symbolFile: Ae("symbol-file", 60256), symbolInterface: Ae("symbol-interface", 60257), symbolKeyword: Ae("symbol-keyword", 60258), symbolMisc: Ae("symbol-misc", 60259), symbolOperator: Ae("symbol-operator", 60260), symbolProperty: Ae("symbol-property", 60261), wrench: Ae("wrench", 60261), wrenchSubaction: Ae("wrench-subaction", 60261), symbolSnippet: Ae("symbol-snippet", 60262), tasklist: Ae("tasklist", 60263), telescope: Ae("telescope", 60264), textSize: Ae("text-size", 60265), threeBars: Ae("three-bars", 60266), thumbsdown: Ae("thumbsdown", 60267), thumbsup: Ae("thumbsup", 60268), tools: Ae("tools", 60269), triangleDown: Ae("triangle-down", 60270), triangleLeft: Ae("triangle-left", 60271), triangleRight: Ae("triangle-right", 60272), triangleUp: Ae("triangle-up", 60273), twitter: Ae("twitter", 60274), unfold: Ae("unfold", 60275), unlock: Ae("unlock", 60276), unmute: Ae("unmute", 60277), unverified: Ae("unverified", 60278), verified: Ae("verified", 60279), versions: Ae("versions", 60280), vmActive: Ae("vm-active", 60281), vmOutline: Ae("vm-outline", 60282), vmRunning: Ae("vm-running", 60283), watch: Ae("watch", 60284), whitespace: Ae("whitespace", 60285), wholeWord: Ae("whole-word", 60286), window: Ae("window", 60287), wordWrap: Ae("word-wrap", 60288), zoomIn: Ae("zoom-in", 60289), zoomOut: Ae("zoom-out", 60290), listFilter: Ae("list-filter", 60291), listFlat: Ae("list-flat", 60292), listSelection: Ae("list-selection", 60293), selection: Ae("selection", 60293), listTree: Ae("list-tree", 60294), debugBreakpointFunctionUnverified: Ae("debug-breakpoint-function-unverified", 60295), debugBreakpointFunction: Ae("debug-breakpoint-function", 60296), debugBreakpointFunctionDisabled: Ae("debug-breakpoint-function-disabled", 60296), debugStackframeActive: Ae("debug-stackframe-active", 60297), circleSmallFilled: Ae("circle-small-filled", 60298), debugStackframeDot: Ae("debug-stackframe-dot", 60298), debugStackframe: Ae("debug-stackframe", 60299), debugStackframeFocused: Ae("debug-stackframe-focused", 60299), debugBreakpointUnsupported: Ae("debug-breakpoint-unsupported", 60300), symbolString: Ae("symbol-string", 60301), debugReverseContinue: Ae("debug-reverse-continue", 60302), debugStepBack: Ae("debug-step-back", 60303), debugRestartFrame: Ae("debug-restart-frame", 60304), callIncoming: Ae("call-incoming", 60306), callOutgoing: Ae("call-outgoing", 60307), menu: Ae("menu", 60308), expandAll: Ae("expand-all", 60309), feedback: Ae("feedback", 60310), groupByRefType: Ae("group-by-ref-type", 60311), ungroupByRefType: Ae("ungroup-by-ref-type", 60312), account: Ae("account", 60313), bellDot: Ae("bell-dot", 60314), debugConsole: Ae("debug-console", 60315), library: Ae("library", 60316), output: Ae("output", 60317), runAll: Ae("run-all", 60318), syncIgnored: Ae("sync-ignored", 60319), pinned: Ae("pinned", 60320), githubInverted: Ae("github-inverted", 60321), debugAlt: Ae("debug-alt", 60305), serverProcess: Ae("server-process", 60322), serverEnvironment: Ae("server-environment", 60323), pass: Ae("pass", 60324), stopCircle: Ae("stop-circle", 60325), playCircle: Ae("play-circle", 60326), record: Ae("record", 60327), debugAltSmall: Ae("debug-alt-small", 60328), vmConnect: Ae("vm-connect", 60329), cloud: Ae("cloud", 60330), merge: Ae("merge", 60331), exportIcon: Ae("export", 60332), graphLeft: Ae("graph-left", 60333), magnet: Ae("magnet", 60334), notebook: Ae("notebook", 60335), redo: Ae("redo", 60336), checkAll: Ae("check-all", 60337), pinnedDirty: Ae("pinned-dirty", 60338), passFilled: Ae("pass-filled", 60339), circleLargeFilled: Ae("circle-large-filled", 60340), circleLarge: Ae("circle-large", 60341), circleLargeOutline: Ae("circle-large-outline", 60341), combine: Ae("combine", 60342), gather: Ae("gather", 60342), table: Ae("table", 60343), variableGroup: Ae("variable-group", 60344), typeHierarchy: Ae("type-hierarchy", 60345), typeHierarchySub: Ae("type-hierarchy-sub", 60346), typeHierarchySuper: Ae("type-hierarchy-super", 60347), gitPullRequestCreate: Ae("git-pull-request-create", 60348), runAbove: Ae("run-above", 60349), runBelow: Ae("run-below", 60350), notebookTemplate: Ae("notebook-template", 60351), debugRerun: Ae("debug-rerun", 60352), workspaceTrusted: Ae("workspace-trusted", 60353), workspaceUntrusted: Ae("workspace-untrusted", 60354), workspaceUnspecified: Ae("workspace-unspecified", 60355), terminalCmd: Ae("terminal-cmd", 60356), terminalDebian: Ae("terminal-debian", 60357), terminalLinux: Ae("terminal-linux", 60358), terminalPowershell: Ae("terminal-powershell", 60359), terminalTmux: Ae("terminal-tmux", 60360), terminalUbuntu: Ae("terminal-ubuntu", 60361), terminalBash: Ae("terminal-bash", 60362), arrowSwap: Ae("arrow-swap", 60363), copy: Ae("copy", 60364), personAdd: Ae("person-add", 60365), filterFilled: Ae("filter-filled", 60366), wand: Ae("wand", 60367), debugLineByLine: Ae("debug-line-by-line", 60368), inspect: Ae("inspect", 60369), layers: Ae("layers", 60370), layersDot: Ae("layers-dot", 60371), layersActive: Ae("layers-active", 60372), compass: Ae("compass", 60373), compassDot: Ae("compass-dot", 60374), compassActive: Ae("compass-active", 60375), azure: Ae("azure", 60376), issueDraft: Ae("issue-draft", 60377), gitPullRequestClosed: Ae("git-pull-request-closed", 60378), gitPullRequestDraft: Ae("git-pull-request-draft", 60379), debugAll: Ae("debug-all", 60380), debugCoverage: Ae("debug-coverage", 60381), runErrors: Ae("run-errors", 60382), folderLibrary: Ae("folder-library", 60383), debugContinueSmall: Ae("debug-continue-small", 60384), beakerStop: Ae("beaker-stop", 60385), graphLine: Ae("graph-line", 60386), graphScatter: Ae("graph-scatter", 60387), pieChart: Ae("pie-chart", 60388), bracketDot: Ae("bracket-dot", 60389), bracketError: Ae("bracket-error", 60390), lockSmall: Ae("lock-small", 60391), azureDevops: Ae("azure-devops", 60392), verifiedFilled: Ae("verified-filled", 60393), newLine: Ae("newline", 60394), layout: Ae("layout", 60395), layoutActivitybarLeft: Ae("layout-activitybar-left", 60396), layoutActivitybarRight: Ae("layout-activitybar-right", 60397), layoutPanelLeft: Ae("layout-panel-left", 60398), layoutPanelCenter: Ae("layout-panel-center", 60399), layoutPanelJustify: Ae("layout-panel-justify", 60400), layoutPanelRight: Ae("layout-panel-right", 60401), layoutPanel: Ae("layout-panel", 60402), layoutSidebarLeft: Ae("layout-sidebar-left", 60403), layoutSidebarRight: Ae("layout-sidebar-right", 60404), layoutStatusbar: Ae("layout-statusbar", 60405), layoutMenubar: Ae("layout-menubar", 60406), layoutCentered: Ae("layout-centered", 60407), layoutSidebarRightOff: Ae("layout-sidebar-right-off", 60416), layoutPanelOff: Ae("layout-panel-off", 60417), layoutSidebarLeftOff: Ae("layout-sidebar-left-off", 60418), target: Ae("target", 60408), indent: Ae("indent", 60409), recordSmall: Ae("record-small", 60410), errorSmall: Ae("error-small", 60411), arrowCircleDown: Ae("arrow-circle-down", 60412), arrowCircleLeft: Ae("arrow-circle-left", 60413), arrowCircleRight: Ae("arrow-circle-right", 60414), arrowCircleUp: Ae("arrow-circle-up", 60415), heartFilled: Ae("heart-filled", 60420), map: Ae("map", 60421), mapFilled: Ae("map-filled", 60422), circleSmall: Ae("circle-small", 60423), bellSlash: Ae("bell-slash", 60424), bellSlashDot: Ae("bell-slash-dot", 60425), commentUnresolved: Ae("comment-unresolved", 60426), gitPullRequestGoToChanges: Ae("git-pull-request-go-to-changes", 60427), gitPullRequestNewChanges: Ae("git-pull-request-new-changes", 60428), searchFuzzy: Ae("search-fuzzy", 60429), commentDraft: Ae("comment-draft", 60430), send: Ae("send", 60431), sparkle: Ae("sparkle", 60432), insert: Ae("insert", 60433), // derived icons, that could become separate icons dialogError: Ae("dialog-error", "error"), dialogWarning: Ae("dialog-warning", "warning"), dialogInfo: Ae("dialog-info", "info"), dialogClose: Ae("dialog-close", "close"), treeItemExpanded: Ae("tree-item-expanded", "chevron-down"), treeFilterOnTypeOn: Ae("tree-filter-on-type-on", "list-filter"), treeFilterOnTypeOff: Ae("tree-filter-on-type-off", "list-selection"), treeFilterClear: Ae("tree-filter-clear", "close"), treeItemLoading: Ae("tree-item-loading", "loading"), menuSelection: Ae("menu-selection", "check"), menuSubmenu: Ae("menu-submenu", "chevron-right"), menuBarMore: Ae("menubar-more", "more"), scrollbarButtonLeft: Ae("scrollbar-button-left", "triangle-left"), scrollbarButtonRight: Ae("scrollbar-button-right", "triangle-right"), scrollbarButtonUp: Ae("scrollbar-button-up", "triangle-up"), scrollbarButtonDown: Ae("scrollbar-button-down", "triangle-down"), toolBarMore: Ae("toolbar-more", "more"), quickInputBack: Ae("quick-input-back", "arrow-left") }; var Uoe = globalThis && globalThis.__awaiter || function(h, T, L, W) { function fe(ve) { return ve instanceof L ? ve : new L(function(Ue) { Ue(ve); }); } return new (L || (L = Promise))(function(ve, Ue) { function ut(Ye) { try { Ne(W.next(Ye)); } catch (cn) { Ue(cn); } } function Ct(Ye) { try { Ne(W.throw(Ye)); } catch (cn) { Ue(cn); } } function Ne(Ye) { Ye.done ? ve(Ye.value) : fe(Ye.value).then(ut, Ct); } Ne((W = W.apply(h, T || [])).next()); }); }; class bct { constructor() { this._tokenizationSupports = /* @__PURE__ */ new Map(), this._factories = /* @__PURE__ */ new Map(), this._onDidChange = new jE(), this.onDidChange = this._onDidChange.event, this._colorMap = null; } handleChange(T) { this._onDidChange.fire({ changedLanguages: T, changedColorMap: !1 }); } register(T, L) { return this._tokenizationSupports.set(T, L), this.handleChange([T]), zV(() => { this._tokenizationSupports.get(T) === L && (this._tokenizationSupports.delete(T), this.handleChange([T])); }); } get(T) { return this._tokenizationSupports.get(T) || null; } registerFactory(T, L) { var W; (W = this._factories.get(T)) === null || W === void 0 || W.dispose(); const fe = new Ect(this, T, L); return this._factories.set(T, fe), zV(() => { const ve = this._factories.get(T); !ve || ve !== fe || (this._factories.delete(T), ve.dispose()); }); } getOrCreate(T) { return Uoe(this, void 0, void 0, function* () { const L = this.get(T); if (L) return L; const W = this._factories.get(T); return !W || W.isResolved ? null : (yield W.resolve(), this.get(T)); }); } isResolved(T) { if (this.get(T)) return !0; const W = this._factories.get(T); return !!(!W || W.isResolved); } setColorMap(T) { this._colorMap = T, this._onDidChange.fire({ changedLanguages: Array.from(this._tokenizationSupports.keys()), changedColorMap: !0 }); } getColorMap() { return this._colorMap; } getDefaultBackground() { return this._colorMap && this._colorMap.length > 2 ? this._colorMap[ 2 /* ColorId.DefaultBackground */ ] : null; } } class Ect extends QV { get isResolved() { return this._isResolved; } constructor(T, L, W) { super(), this._registry = T, this._languageId = L, this._factory = W, this._isDisposed = !1, this._resolvePromise = null, this._isResolved = !1; } dispose() { this._isDisposed = !0, super.dispose(); } resolve() { return Uoe(this, void 0, void 0, function* () { return this._resolvePromise || (this._resolvePromise = this._create()), this._resolvePromise; }); } _create() { return Uoe(this, void 0, void 0, function* () { const T = yield this._factory.tokenizationSupport; this._isResolved = !0, T && !this._isDisposed && this._register(this._registry.register(this._languageId, T)); }); } } class Tct { constructor(T, L, W) { this.offset = T, this.type = L, this.language = W, this._tokenBrand = void 0; } toString() { return "(" + this.offset + ", " + this.type + ")"; } } var vDe; (function(h) { const T = /* @__PURE__ */ new Map(); T.set(0, ps.symbolMethod), T.set(1, ps.symbolFunction), T.set(2, ps.symbolConstructor), T.set(3, ps.symbolField), T.set(4, ps.symbolVariable), T.set(5, ps.symbolClass), T.set(6, ps.symbolStruct), T.set(7, ps.symbolInterface), T.set(8, ps.symbolModule), T.set(9, ps.symbolProperty), T.set(10, ps.symbolEvent), T.set(11, ps.symbolOperator), T.set(12, ps.symbolUnit), T.set(13, ps.symbolValue), T.set(15, ps.symbolEnum), T.set(14, ps.symbolConstant), T.set(15, ps.symbolEnum), T.set(16, ps.symbolEnumMember), T.set(17, ps.symbolKeyword), T.set(27, ps.symbolSnippet), T.set(18, ps.symbolText), T.set(19, ps.symbolColor), T.set(20, ps.symbolFile), T.set(21, ps.symbolReference), T.set(22, ps.symbolCustomColor), T.set(23, ps.symbolFolder), T.set(24, ps.symbolTypeParameter), T.set(25, ps.account), T.set(26, ps.issues); function L(ve) { let Ue = T.get(ve); return Ue || (console.info("No codicon found for CompletionItemKind " + ve), Ue = ps.symbolProperty), Ue; } h.toIcon = L; const W = /* @__PURE__ */ new Map(); W.set( "method", 0 /* CompletionItemKind.Method */ ), W.set( "function", 1 /* CompletionItemKind.Function */ ), W.set( "constructor", 2 /* CompletionItemKind.Constructor */ ), W.set( "field", 3 /* CompletionItemKind.Field */ ), W.set( "variable", 4 /* CompletionItemKind.Variable */ ), W.set( "class", 5 /* CompletionItemKind.Class */ ), W.set( "struct", 6 /* CompletionItemKind.Struct */ ), W.set( "interface", 7 /* CompletionItemKind.Interface */ ), W.set( "module", 8 /* CompletionItemKind.Module */ ), W.set( "property", 9 /* CompletionItemKind.Property */ ), W.set( "event", 10 /* CompletionItemKind.Event */ ), W.set( "operator", 11 /* CompletionItemKind.Operator */ ), W.set( "unit", 12 /* CompletionItemKind.Unit */ ), W.set( "value", 13 /* CompletionItemKind.Value */ ), W.set( "constant", 14 /* CompletionItemKind.Constant */ ), W.set( "enum", 15 /* CompletionItemKind.Enum */ ), W.set( "enum-member", 16 /* CompletionItemKind.EnumMember */ ), W.set( "enumMember", 16 /* CompletionItemKind.EnumMember */ ), W.set( "keyword", 17 /* CompletionItemKind.Keyword */ ), W.set( "snippet", 27 /* CompletionItemKind.Snippet */ ), W.set( "text", 18 /* CompletionItemKind.Text */ ), W.set( "color", 19 /* CompletionItemKind.Color */ ), W.set( "file", 20 /* CompletionItemKind.File */ ), W.set( "reference", 21 /* CompletionItemKind.Reference */ ), W.set( "customcolor", 22 /* CompletionItemKind.Customcolor */ ), W.set( "folder", 23 /* CompletionItemKind.Folder */ ), W.set( "type-parameter", 24 /* CompletionItemKind.TypeParameter */ ), W.set( "typeParameter", 24 /* CompletionItemKind.TypeParameter */ ), W.set( "account", 25 /* CompletionItemKind.User */ ), W.set( "issue", 26 /* CompletionItemKind.Issue */ ); function fe(ve, Ue) { let ut = W.get(ve); return typeof ut > "u" && !Ue && (ut = 9), ut; } h.fromString = fe; })(vDe || (vDe = {})); var bDe; (function(h) { h[h.Automatic = 0] = "Automatic", h[h.Explicit = 1] = "Explicit"; })(bDe || (bDe = {})); var EDe; (function(h) { h[h.Invoke = 1] = "Invoke", h[h.TriggerCharacter = 2] = "TriggerCharacter", h[h.ContentChange = 3] = "ContentChange"; })(EDe || (EDe = {})); var TDe; (function(h) { h[h.Text = 0] = "Text", h[h.Read = 1] = "Read", h[h.Write = 2] = "Write"; })(TDe || (TDe = {})); var SDe; (function(h) { const T = /* @__PURE__ */ new Map(); T.set(0, ps.symbolFile), T.set(1, ps.symbolModule), T.set(2, ps.symbolNamespace), T.set(3, ps.symbolPackage), T.set(4, ps.symbolClass), T.set(5, ps.symbolMethod), T.set(6, ps.symbolProperty), T.set(7, ps.symbolField), T.set(8, ps.symbolConstructor), T.set(9, ps.symbolEnum), T.set(10, ps.symbolInterface), T.set(11, ps.symbolFunction), T.set(12, ps.symbolVariable), T.set(13, ps.symbolConstant), T.set(14, ps.symbolString), T.set(15, ps.symbolNumber), T.set(16, ps.symbolBoolean), T.set(17, ps.symbolArray), T.set(18, ps.symbolObject), T.set(19, ps.symbolKey), T.set(20, ps.symbolNull), T.set(21, ps.symbolEnumMember), T.set(22, ps.symbolStruct), T.set(23, ps.symbolEvent), T.set(24, ps.symbolOperator), T.set(25, ps.symbolTypeParameter); function L(W) { let fe = T.get(W); return fe || (console.info("No codicon found for SymbolKind " + W), fe = ps.symbolProperty), fe; } h.toIcon = L; })(SDe || (SDe = {})); var xDe; (function(h) { function T(L) { return !L || typeof L != "object" ? !1 : typeof L.id == "string" && typeof L.title == "string"; } h.is = T; })(xDe || (xDe = {})); var ADe; (function(h) { h[h.Collapsed = 0] = "Collapsed", h[h.Expanded = 1] = "Expanded"; })(ADe || (ADe = {})); var CDe; (function(h) { h[h.Unresolved = 0] = "Unresolved", h[h.Resolved = 1] = "Resolved"; })(CDe || (CDe = {})); var LDe; (function(h) { h[h.Editing = 0] = "Editing", h[h.Preview = 1] = "Preview"; })(LDe || (LDe = {})); var IDe; (function(h) { h[h.Published = 0] = "Published", h[h.Draft = 1] = "Draft"; })(IDe || (IDe = {})); var kDe; (function(h) { h[h.Type = 1] = "Type", h[h.Parameter = 2] = "Parameter"; })(kDe || (kDe = {})); new bct(); var wDe; (function(h) { h[h.None = 0] = "None", h[h.Option = 1] = "Option", h[h.Default = 2] = "Default", h[h.Preferred = 3] = "Preferred"; })(wDe || (wDe = {})); var DDe; (function(h) { h[h.Unknown = 0] = "Unknown", h[h.Disabled = 1] = "Disabled", h[h.Enabled = 2] = "Enabled"; })(DDe || (DDe = {})); var RDe; (function(h) { h[h.Invoke = 1] = "Invoke", h[h.Auto = 2] = "Auto"; })(RDe || (RDe = {})); var NDe; (function(h) { h[h.None = 0] = "None", h[h.KeepWhitespace = 1] = "KeepWhitespace", h[h.InsertAsSnippet = 4] = "InsertAsSnippet"; })(NDe || (NDe = {})); var ODe; (function(h) { h[h.Method = 0] = "Method", h[h.Function = 1] = "Function", h[h.Constructor = 2] = "Constructor", h[h.Field = 3] = "Field", h[h.Variable = 4] = "Variable", h[h.Class = 5] = "Class", h[h.Struct = 6] = "Struct", h[h.Interface = 7] = "Interface", h[h.Module = 8] = "Module", h[h.Property = 9] = "Property", h[h.Event = 10] = "Event", h[h.Operator = 11] = "Operator", h[h.Unit = 12] = "Unit", h[h.Value = 13] = "Value", h[h.Constant = 14] = "Constant", h[h.Enum = 15] = "Enum", h[h.EnumMember = 16] = "EnumMember", h[h.Keyword = 17] = "Keyword", h[h.Text = 18] = "Text", h[h.Color = 19] = "Color", h[h.File = 20] = "File", h[h.Reference = 21] = "Reference", h[h.Customcolor = 22] = "Customcolor", h[h.Folder = 23] = "Folder", h[h.TypeParameter = 24] = "TypeParameter", h[h.User = 25] = "User", h[h.Issue = 26] = "Issue", h[h.Snippet = 27] = "Snippet"; })(ODe || (ODe = {})); var PDe; (function(h) { h[h.Deprecated = 1] = "Deprecated"; })(PDe || (PDe = {})); var MDe; (function(h) { h[h.Invoke = 0] = "Invoke", h[h.TriggerCharacter = 1] = "TriggerCharacter", h[h.TriggerForIncompleteCompletions = 2] = "TriggerForIncompleteCompletions"; })(MDe || (MDe = {})); var FDe; (function(h) { h[h.EXACT = 0] = "EXACT", h[h.ABOVE = 1] = "ABOVE", h[h.BELOW = 2] = "BELOW"; })(FDe || (FDe = {})); var BDe; (function(h) { h[h.NotSet = 0] = "NotSet", h[h.ContentFlush = 1] = "ContentFlush", h[h.RecoverFromMarkers = 2] = "RecoverFromMarkers", h[h.Explicit = 3] = "Explicit", h[h.Paste = 4] = "Paste", h[h.Undo = 5] = "Undo", h[h.Redo = 6] = "Redo"; })(BDe || (BDe = {})); var GDe; (function(h) { h[h.LF = 1] = "LF", h[h.CRLF = 2] = "CRLF"; })(GDe || (GDe = {})); var UDe; (function(h) { h[h.Text = 0] = "Text", h[h.Read = 1] = "Read", h[h.Write = 2] = "Write"; })(UDe || (UDe = {})); var VDe; (function(h) { h[h.None = 0] = "None", h[h.Keep = 1] = "Keep", h[h.Brackets = 2] = "Brackets", h[h.Advanced = 3] = "Advanced", h[h.Full = 4] = "Full"; })(VDe || (VDe = {})); var jDe; (function(h) { h[h.acceptSuggestionOnCommitCharacter = 0] = "acceptSuggestionOnCommitCharacter", h[h.acceptSuggestionOnEnter = 1] = "acceptSuggestionOnEnter", h[h.accessibilitySupport = 2] = "accessibilitySupport", h[h.accessibilityPageSize = 3] = "accessibilityPageSize", h[h.ariaLabel = 4] = "ariaLabel", h[h.autoClosingBrackets = 5] = "autoClosingBrackets", h[h.screenReaderAnnounceInlineSuggestion = 6] = "screenReaderAnnounceInlineSuggestion", h[h.autoClosingDelete = 7] = "autoClosingDelete", h[h.autoClosingOvertype = 8] = "autoClosingOvertype", h[h.autoClosingQuotes = 9] = "autoClosingQuotes", h[h.autoIndent = 10] = "autoIndent", h[h.automaticLayout = 11] = "automaticLayout", h[h.autoSurround = 12] = "autoSurround", h[h.bracketPairColorization = 13] = "bracketPairColorization", h[h.guides = 14] = "guides", h[h.codeLens = 15] = "codeLens", h[h.codeLensFontFamily = 16] = "codeLensFontFamily", h[h.codeLensFontSize = 17] = "codeLensFontSize", h[h.colorDecorators = 18] = "colorDecorators", h[h.colorDecoratorsLimit = 19] = "colorDecoratorsLimit", h[h.columnSelection = 20] = "columnSelection", h[h.comments = 21] = "comments", h[h.contextmenu = 22] = "contextmenu", h[h.copyWithSyntaxHighlighting = 23] = "copyWithSyntaxHighlighting", h[h.cursorBlinking = 24] = "cursorBlinking", h[h.cursorSmoothCaretAnimation = 25] = "cursorSmoothCaretAnimation", h[h.cursorStyle = 26] = "cursorStyle", h[h.cursorSurroundingLines = 27] = "cursorSurroundingLines", h[h.cursorSurroundingLinesStyle = 28] = "cursorSurroundingLinesStyle", h[h.cursorWidth = 29] = "cursorWidth", h[h.disableLayerHinting = 30] = "disableLayerHinting", h[h.disableMonospaceOptimizations = 31] = "disableMonospaceOptimizations", h[h.domReadOnly = 32] = "domReadOnly", h[h.dragAndDrop = 33] = "dragAndDrop", h[h.dropIntoEditor = 34] = "dropIntoEditor", h[h.emptySelectionClipboard = 35] = "emptySelectionClipboard", h[h.experimentalWhitespaceRendering = 36] = "experimentalWhitespaceRendering", h[h.extraEditorClassName = 37] = "extraEditorClassName", h[h.fastScrollSensitivity = 38] = "fastScrollSensitivity", h[h.find = 39] = "find", h[h.fixedOverflowWidgets = 40] = "fixedOverflowWidgets", h[h.folding = 41] = "folding", h[h.foldingStrategy = 42] = "foldingStrategy", h[h.foldingHighlight = 43] = "foldingHighlight", h[h.foldingImportsByDefault = 44] = "foldingImportsByDefault", h[h.foldingMaximumRegions = 45] = "foldingMaximumRegions", h[h.unfoldOnClickAfterEndOfLine = 46] = "unfoldOnClickAfterEndOfLine", h[h.fontFamily = 47] = "fontFamily", h[h.fontInfo = 48] = "fontInfo", h[h.fontLigatures = 49] = "fontLigatures", h[h.fontSize = 50] = "fontSize", h[h.fontWeight = 51] = "fontWeight", h[h.fontVariations = 52] = "fontVariations", h[h.formatOnPaste = 53] = "formatOnPaste", h[h.formatOnType = 54] = "formatOnType", h[h.glyphMargin = 55] = "glyphMargin", h[h.gotoLocation = 56] = "gotoLocation", h[h.hideCursorInOverviewRuler = 57] = "hideCursorInOverviewRuler", h[h.hover = 58] = "hover", h[h.inDiffEditor = 59] = "inDiffEditor", h[h.inlineSuggest = 60] = "inlineSuggest", h[h.letterSpacing = 61] = "letterSpacing", h[h.lightbulb = 62] = "lightbulb", h[h.lineDecorationsWidth = 63] = "lineDecorationsWidth", h[h.lineHeight = 64] = "lineHeight", h[h.lineNumbers = 65] = "lineNumbers", h[h.lineNumbersMinChars = 66] = "lineNumbersMinChars", h[h.linkedEditing = 67] = "linkedEditing", h[h.links = 68] = "links", h[h.matchBrackets = 69] = "matchBrackets", h[h.minimap = 70] = "minimap", h[h.mouseStyle = 71] = "mouseStyle", h[h.mouseWheelScrollSensitivity = 72] = "mouseWheelScrollSensitivity", h[h.mouseWheelZoom = 73] = "mouseWheelZoom", h[h.multiCursorMergeOverlapping = 74] = "multiCursorMergeOverlapping", h[h.multiCursorModifier = 75] = "multiCursorModifier", h[h.multiCursorPaste = 76] = "multiCursorPaste", h[h.multiCursorLimit = 77] = "multiCursorLimit", h[h.occurrencesHighlight = 78] = "occurrencesHighlight", h[h.overviewRulerBorder = 79] = "overviewRulerBorder", h[h.overviewRulerLanes = 80] = "overviewRulerLanes", h[h.padding = 81] = "padding", h[h.parameterHints = 82] = "parameterHints", h[h.peekWidgetDefaultFocus = 83] = "peekWidgetDefaultFocus", h[h.definitionLinkOpensInPeek = 84] = "definitionLinkOpensInPeek", h[h.quickSuggestions = 85] = "quickSuggestions", h[h.quickSuggestionsDelay = 86] = "quickSuggestionsDelay", h[h.readOnly = 87] = "readOnly", h[h.renameOnType = 88] = "renameOnType", h[h.renderControlCharacters = 89] = "renderControlCharacters", h[h.renderFinalNewline = 90] = "renderFinalNewline", h[h.renderLineHighlight = 91] = "renderLineHighlight", h[h.renderLineHighlightOnlyWhenFocus = 92] = "renderLineHighlightOnlyWhenFocus", h[h.renderValidationDecorations = 93] = "renderValidationDecorations", h[h.renderWhitespace = 94] = "renderWhitespace", h[h.revealHorizontalRightPadding = 95] = "revealHorizontalRightPadding", h[h.roundedSelection = 96] = "roundedSelection", h[h.rulers = 97] = "rulers", h[h.scrollbar = 98] = "scrollbar", h[h.scrollBeyondLastColumn = 99] = "scrollBeyondLastColumn", h[h.scrollBeyondLastLine = 100] = "scrollBeyondLastLine", h[h.scrollPredominantAxis = 101] = "scrollPredominantAxis", h[h.selectionClipboard = 102] = "selectionClipboard", h[h.selectionHighlight = 103] = "selectionHighlight", h[h.selectOnLineNumbers = 104] = "selectOnLineNumbers", h[h.showFoldingControls = 105] = "showFoldingControls", h[h.showUnused = 106] = "showUnused", h[h.snippetSuggestions = 107] = "snippetSuggestions", h[h.smartSelect = 108] = "smartSelect", h[h.smoothScrolling = 109] = "smoothScrolling", h[h.stickyScroll = 110] = "stickyScroll", h[h.stickyTabStops = 111] = "stickyTabStops", h[h.stopRenderingLineAfter = 112] = "stopRenderingLineAfter", h[h.suggest = 113] = "suggest", h[h.suggestFontSize = 114] = "suggestFontSize", h[h.suggestLineHeight = 115] = "suggestLineHeight", h[h.suggestOnTriggerCharacters = 116] = "suggestOnTriggerCharacters", h[h.suggestSelection = 117] = "suggestSelection", h[h.tabCompletion = 118] = "tabCompletion", h[h.tabIndex = 119] = "tabIndex", h[h.unicodeHighlighting = 120] = "unicodeHighlighting", h[h.unusualLineTerminators = 121] = "unusualLineTerminators", h[h.useShadowDOM = 122] = "useShadowDOM", h[h.useTabStops = 123] = "useTabStops", h[h.wordBreak = 124] = "wordBreak", h[h.wordSeparators = 125] = "wordSeparators", h[h.wordWrap = 126] = "wordWrap", h[h.wordWrapBreakAfterCharacters = 127] = "wordWrapBreakAfterCharacters", h[h.wordWrapBreakBeforeCharacters = 128] = "wordWrapBreakBeforeCharacters", h[h.wordWrapColumn = 129] = "wordWrapColumn", h[h.wordWrapOverride1 = 130] = "wordWrapOverride1", h[h.wordWrapOverride2 = 131] = "wordWrapOverride2", h[h.wrappingIndent = 132] = "wrappingIndent", h[h.wrappingStrategy = 133] = "wrappingStrategy", h[h.showDeprecated = 134] = "showDeprecated", h[h.inlayHints = 135] = "inlayHints", h[h.editorClassName = 136] = "editorClassName", h[h.pixelRatio = 137] = "pixelRatio", h[h.tabFocusMode = 138] = "tabFocusMode", h[h.layoutInfo = 139] = "layoutInfo", h[h.wrappingInfo = 140] = "wrappingInfo"; })(jDe || (jDe = {})); var HDe; (function(h) { h[h.TextDefined = 0] = "TextDefined", h[h.LF = 1] = "LF", h[h.CRLF = 2] = "CRLF"; })(HDe || (HDe = {})); var WDe; (function(h) { h[h.LF = 0] = "LF", h[h.CRLF = 1] = "CRLF"; })(WDe || (WDe = {})); var zDe; (function(h) { h[h.None = 0] = "None", h[h.Indent = 1] = "Indent", h[h.IndentOutdent = 2] = "IndentOutdent", h[h.Outdent = 3] = "Outdent"; })(zDe || (zDe = {})); var qDe; (function(h) { h[h.Both = 0] = "Both", h[h.Right = 1] = "Right", h[h.Left = 2] = "Left", h[h.None = 3] = "None"; })(qDe || (qDe = {})); var JDe; (function(h) { h[h.Type = 1] = "Type", h[h.Parameter = 2] = "Parameter"; })(JDe || (JDe = {})); var KDe; (function(h) { h[h.Automatic = 0] = "Automatic", h[h.Explicit = 1] = "Explicit"; })(KDe || (KDe = {})); var Voe; (function(h) { h[h.DependsOnKbLayout = -1] = "DependsOnKbLayout", h[h.Unknown = 0] = "Unknown", h[h.Backspace = 1] = "Backspace", h[h.Tab = 2] = "Tab", h[h.Enter = 3] = "Enter", h[h.Shift = 4] = "Shift", h[h.Ctrl = 5] = "Ctrl", h[h.Alt = 6] = "Alt", h[h.PauseBreak = 7] = "PauseBreak", h[h.CapsLock = 8] = "CapsLock", h[h.Escape = 9] = "Escape", h[h.Space = 10] = "Space", h[h.PageUp = 11] = "PageUp", h[h.PageDown = 12] = "PageDown", h[h.End = 13] = "End", h[h.Home = 14] = "Home", h[h.LeftArrow = 15] = "LeftArrow", h[h.UpArrow = 16] = "UpArrow", h[h.RightArrow = 17] = "RightArrow", h[h.DownArrow = 18] = "DownArrow", h[h.Insert = 19] = "Insert", h[h.Delete = 20] = "Delete", h[h.Digit0 = 21] = "Digit0", h[h.Digit1 = 22] = "Digit1", h[h.Digit2 = 23] = "Digit2", h[h.Digit3 = 24] = "Digit3", h[h.Digit4 = 25] = "Digit4", h[h.Digit5 = 26] = "Digit5", h[h.Digit6 = 27] = "Digit6", h[h.Digit7 = 28] = "Digit7", h[h.Digit8 = 29] = "Digit8", h[h.Digit9 = 30] = "Digit9", h[h.KeyA = 31] = "KeyA", h[h.KeyB = 32] = "KeyB", h[h.KeyC = 33] = "KeyC", h[h.KeyD = 34] = "KeyD", h[h.KeyE = 35] = "KeyE", h[h.KeyF = 36] = "KeyF", h[h.KeyG = 37] = "KeyG", h[h.KeyH = 38] = "KeyH", h[h.KeyI = 39] = "KeyI", h[h.KeyJ = 40] = "KeyJ", h[h.KeyK = 41] = "KeyK", h[h.KeyL = 42] = "KeyL", h[h.KeyM = 43] = "KeyM", h[h.KeyN = 44] = "KeyN", h[h.KeyO = 45] = "KeyO", h[h.KeyP = 46] = "KeyP", h[h.KeyQ = 47] = "KeyQ", h[h.KeyR = 48] = "KeyR", h[h.KeyS = 49] = "KeyS", h[h.KeyT = 50] = "KeyT", h[h.KeyU = 51] = "KeyU", h[h.KeyV = 52] = "KeyV", h[h.KeyW = 53] = "KeyW", h[h.KeyX = 54] = "KeyX", h[h.KeyY = 55] = "KeyY", h[h.KeyZ = 56] = "KeyZ", h[h.Meta = 57] = "Meta", h[h.ContextMenu = 58] = "ContextMenu", h[h.F1 = 59] = "F1", h[h.F2 = 60] = "F2", h[h.F3 = 61] = "F3", h[h.F4 = 62] = "F4", h[h.F5 = 63] = "F5", h[h.F6 = 64] = "F6", h[h.F7 = 65] = "F7", h[h.F8 = 66] = "F8", h[h.F9 = 67] = "F9", h[h.F10 = 68] = "F10", h[h.F11 = 69] = "F11", h[h.F12 = 70] = "F12", h[h.F13 = 71] = "F13", h[h.F14 = 72] = "F14", h[h.F15 = 73] = "F15", h[h.F16 = 74] = "F16", h[h.F17 = 75] = "F17", h[h.F18 = 76] = "F18", h[h.F19 = 77] = "F19", h[h.NumLock = 78] = "NumLock", h[h.ScrollLock = 79] = "ScrollLock", h[h.Semicolon = 80] = "Semicolon", h[h.Equal = 81] = "Equal", h[h.Comma = 82] = "Comma", h[h.Minus = 83] = "Minus", h[h.Period = 84] = "Period", h[h.Slash = 85] = "Slash", h[h.Backquote = 86] = "Backquote", h[h.BracketLeft = 87] = "BracketLeft", h[h.Backslash = 88] = "Backslash", h[h.BracketRight = 89] = "BracketRight", h[h.Quote = 90] = "Quote", h[h.OEM_8 = 91] = "OEM_8", h[h.IntlBackslash = 92] = "IntlBackslash", h[h.Numpad0 = 93] = "Numpad0", h[h.Numpad1 = 94] = "Numpad1", h[h.Numpad2 = 95] = "Numpad2", h[h.Numpad3 = 96] = "Numpad3", h[h.Numpad4 = 97] = "Numpad4", h[h.Numpad5 = 98] = "Numpad5", h[h.Numpad6 = 99] = "Numpad6", h[h.Numpad7 = 100] = "Numpad7", h[h.Numpad8 = 101] = "Numpad8", h[h.Numpad9 = 102] = "Numpad9", h[h.NumpadMultiply = 103] = "NumpadMultiply", h[h.NumpadAdd = 104] = "NumpadAdd", h[h.NUMPAD_SEPARATOR = 105] = "NUMPAD_SEPARATOR", h[h.NumpadSubtract = 106] = "NumpadSubtract", h[h.NumpadDecimal = 107] = "NumpadDecimal", h[h.NumpadDivide = 108] = "NumpadDivide", h[h.KEY_IN_COMPOSITION = 109] = "KEY_IN_COMPOSITION", h[h.ABNT_C1 = 110] = "ABNT_C1", h[h.ABNT_C2 = 111] = "ABNT_C2", h[h.AudioVolumeMute = 112] = "AudioVolumeMute", h[h.AudioVolumeUp = 113] = "AudioVolumeUp", h[h.AudioVolumeDown = 114] = "AudioVolumeDown", h[h.BrowserSearch = 115] = "BrowserSearch", h[h.BrowserHome = 116] = "BrowserHome", h[h.BrowserBack = 117] = "BrowserBack", h[h.BrowserForward = 118] = "BrowserForward", h[h.MediaTrackNext = 119] = "MediaTrackNext", h[h.MediaTrackPrevious = 120] = "MediaTrackPrevious", h[h.MediaStop = 121] = "MediaStop", h[h.MediaPlayPause = 122] = "MediaPlayPause", h[h.LaunchMediaPlayer = 123] = "LaunchMediaPlayer", h[h.LaunchMail = 124] = "LaunchMail", h[h.LaunchApp2 = 125] = "LaunchApp2", h[h.Clear = 126] = "Clear", h[h.MAX_VALUE = 127] = "MAX_VALUE"; })(Voe || (Voe = {})); var joe; (function(h) { h[h.Hint = 1] = "Hint", h[h.Info = 2] = "Info", h[h.Warning = 4] = "Warning", h[h.Error = 8] = "Error"; })(joe || (joe = {})); var Hoe; (function(h) { h[h.Unnecessary = 1] = "Unnecessary", h[h.Deprecated = 2] = "Deprecated"; })(Hoe || (Hoe = {})); var XDe; (function(h) { h[h.Inline = 1] = "Inline", h[h.Gutter = 2] = "Gutter"; })(XDe || (XDe = {})); var YDe; (function(h) { h[h.UNKNOWN = 0] = "UNKNOWN", h[h.TEXTAREA = 1] = "TEXTAREA", h[h.GUTTER_GLYPH_MARGIN = 2] = "GUTTER_GLYPH_MARGIN", h[h.GUTTER_LINE_NUMBERS = 3] = "GUTTER_LINE_NUMBERS", h[h.GUTTER_LINE_DECORATIONS = 4] = "GUTTER_LINE_DECORATIONS", h[h.GUTTER_VIEW_ZONE = 5] = "GUTTER_VIEW_ZONE", h[h.CONTENT_TEXT = 6] = "CONTENT_TEXT", h[h.CONTENT_EMPTY = 7] = "CONTENT_EMPTY", h[h.CONTENT_VIEW_ZONE = 8] = "CONTENT_VIEW_ZONE", h[h.CONTENT_WIDGET = 9] = "CONTENT_WIDGET", h[h.OVERVIEW_RULER = 10] = "OVERVIEW_RULER", h[h.SCROLLBAR = 11] = "SCROLLBAR", h[h.OVERLAY_WIDGET = 12] = "OVERLAY_WIDGET", h[h.OUTSIDE_EDITOR = 13] = "OUTSIDE_EDITOR"; })(YDe || (YDe = {})); var $De; (function(h) { h[h.TOP_RIGHT_CORNER = 0] = "TOP_RIGHT_CORNER", h[h.BOTTOM_RIGHT_CORNER = 1] = "BOTTOM_RIGHT_CORNER", h[h.TOP_CENTER = 2] = "TOP_CENTER"; })($De || ($De = {})); var QDe; (function(h) { h[h.Left = 1] = "Left", h[h.Center = 2] = "Center", h[h.Right = 4] = "Right", h[h.Full = 7] = "Full"; })(QDe || (QDe = {})); var ZDe; (function(h) { h[h.Left = 0] = "Left", h[h.Right = 1] = "Right", h[h.None = 2] = "None", h[h.LeftOfInjectedText = 3] = "LeftOfInjectedText", h[h.RightOfInjectedText = 4] = "RightOfInjectedText"; })(ZDe || (ZDe = {})); var eRe; (function(h) { h[h.Off = 0] = "Off", h[h.On = 1] = "On", h[h.Relative = 2] = "Relative", h[h.Interval = 3] = "Interval", h[h.Custom = 4] = "Custom"; })(eRe || (eRe = {})); var tRe; (function(h) { h[h.None = 0] = "None", h[h.Text = 1] = "Text", h[h.Blocks = 2] = "Blocks"; })(tRe || (tRe = {})); var nRe; (function(h) { h[h.Smooth = 0] = "Smooth", h[h.Immediate = 1] = "Immediate"; })(nRe || (nRe = {})); var rRe; (function(h) { h[h.Auto = 1] = "Auto", h[h.Hidden = 2] = "Hidden", h[h.Visible = 3] = "Visible"; })(rRe || (rRe = {})); var Woe; (function(h) { h[h.LTR = 0] = "LTR", h[h.RTL = 1] = "RTL"; })(Woe || (Woe = {})); var iRe; (function(h) { h[h.Invoke = 1] = "Invoke", h[h.TriggerCharacter = 2] = "TriggerCharacter", h[h.ContentChange = 3] = "ContentChange"; })(iRe || (iRe = {})); var aRe; (function(h) { h[h.File = 0] = "File", h[h.Module = 1] = "Module", h[h.Namespace = 2] = "Namespace", h[h.Package = 3] = "Package", h[h.Class = 4] = "Class", h[h.Method = 5] = "Method", h[h.Property = 6] = "Property", h[h.Field = 7] = "Field", h[h.Constructor = 8] = "Constructor", h[h.Enum = 9] = "Enum", h[h.Interface = 10] = "Interface", h[h.Function = 11] = "Function", h[h.Variable = 12] = "Variable", h[h.Constant = 13] = "Constant", h[h.String = 14] = "String", h[h.Number = 15] = "Number", h[h.Boolean = 16] = "Boolean", h[h.Array = 17] = "Array", h[h.Object = 18] = "Object", h[h.Key = 19] = "Key", h[h.Null = 20] = "Null", h[h.EnumMember = 21] = "EnumMember", h[h.Struct = 22] = "Struct", h[h.Event = 23] = "Event", h[h.Operator = 24] = "Operator", h[h.TypeParameter = 25] = "TypeParameter"; })(aRe || (aRe = {})); var oRe; (function(h) { h[h.Deprecated = 1] = "Deprecated"; })(oRe || (oRe = {})); var sRe; (function(h) { h[h.Hidden = 0] = "Hidden", h[h.Blink = 1] = "Blink", h[h.Smooth = 2] = "Smooth", h[h.Phase = 3] = "Phase", h[h.Expand = 4] = "Expand", h[h.Solid = 5] = "Solid"; })(sRe || (sRe = {})); var lRe; (function(h) { h[h.Line = 1] = "Line", h[h.Block = 2] = "Block", h[h.Underline = 3] = "Underline", h[h.LineThin = 4] = "LineThin", h[h.BlockOutline = 5] = "BlockOutline", h[h.UnderlineThin = 6] = "UnderlineThin"; })(lRe || (lRe = {})); var cRe; (function(h) { h[h.AlwaysGrowsWhenTypingAtEdges = 0] = "AlwaysGrowsWhenTypingAtEdges", h[h.NeverGrowsWhenTypingAtEdges = 1] = "NeverGrowsWhenTypingAtEdges", h[h.GrowsOnlyWhenTypingBefore = 2] = "GrowsOnlyWhenTypingBefore", h[h.GrowsOnlyWhenTypingAfter = 3] = "GrowsOnlyWhenTypingAfter"; })(cRe || (cRe = {})); var uRe; (function(h) { h[h.None = 0] = "None", h[h.Same = 1] = "Same", h[h.Indent = 2] = "Indent", h[h.DeepIndent = 3] = "DeepIndent"; })(uRe || (uRe = {})); class yP { static chord(T, L) { return vct(T, L); } } yP.CtrlCmd = 2048; yP.Shift = 1024; yP.Alt = 512; yP.WinCtrl = 256; function Sct() { return { editor: void 0, languages: void 0, CancellationTokenSource: Elt, Emitter: jE, KeyCode: Voe, KeyMod: yP, Position: vm, Range: yc, Selection: dv, SelectionDirection: Woe, MarkerSeverity: joe, MarkerTag: Hoe, Uri: zL, Token: Tct }; } var dRe; (function(h) { h[h.Left = 1] = "Left", h[h.Center = 2] = "Center", h[h.Right = 4] = "Right", h[h.Full = 7] = "Full"; })(dRe || (dRe = {})); var fRe; (function(h) { h[h.Inline = 1] = "Inline", h[h.Gutter = 2] = "Gutter"; })(fRe || (fRe = {})); var _Re; (function(h) { h[h.Both = 0] = "Both", h[h.Right = 1] = "Right", h[h.Left = 2] = "Left", h[h.None = 3] = "None"; })(_Re || (_Re = {})); function xct(h, T, L, W, fe) { if (W === 0) return !0; const ve = T.charCodeAt(W - 1); if (h.get(ve) !== 0 || ve === 13 || ve === 10) return !0; if (fe > 0) { const Ue = T.charCodeAt(W); if (h.get(Ue) !== 0) return !0; } return !1; } function Act(h, T, L, W, fe) { if (W + fe === L) return !0; const ve = T.charCodeAt(W + fe); if (h.get(ve) !== 0 || ve === 13 || ve === 10) return !0; if (fe > 0) { const Ue = T.charCodeAt(W + fe - 1); if (h.get(Ue) !== 0) return !0; } return !1; } function Cct(h, T, L, W, fe) { return xct(h, T, L, W, fe) && Act(h, T, L, W, fe); } class Lct { constructor(T, L) { this._wordSeparators = T, this._searchRegex = L, this._prevMatchStartIndex = -1, this._prevMatchLength = 0; } reset(T) { this._searchRegex.lastIndex = T, this._prevMatchStartIndex = -1, this._prevMatchLength = 0; } next(T) { const L = T.length; let W; do { if (this._prevMatchStartIndex + this._prevMatchLength === L || (W = this._searchRegex.exec(T), !W)) return null; const fe = W.index, ve = W[0].length; if (fe === this._prevMatchStartIndex && ve === this._prevMatchLength) { if (ve === 0) { klt(T, L, this._searchRegex.lastIndex) > 65535 ? this._searchRegex.lastIndex += 2 : this._searchRegex.lastIndex += 1; continue; } return null; } if (this._prevMatchStartIndex = fe, this._prevMatchLength = ve, !this._wordSeparators || Cct(this._wordSeparators, T, L, fe, ve)) return W; } while (W); return null; } } function Ict(h, T = "Unreachable") { throw new Error(T); } function Qoe(h) { if (!h()) { debugger; h(), CRe(new JL("Assertion Failed")); } } function jRe(h, T) { let L = 0; for (; L < h.length - 1; ) { const W = h[L], fe = h[L + 1]; if (!T(W, fe)) return !1; L++; } return !0; } class kct { static computeUnicodeHighlights(T, L, W) { const fe = W ? W.startLineNumber : 1, ve = W ? W.endLineNumber : T.getLineCount(), Ue = new pRe(L), ut = Ue.getCandidateCodePoints(); let Ct; ut === "allNonBasicAscii" ? Ct = new RegExp("[^\\t\\n\\r\\x20-\\x7E]", "g") : Ct = new RegExp(`${wct(Array.from(ut))}`, "g"); const Ne = new Lct(null, Ct), Ye = []; let cn = !1, En, ni = 0, Ei = 0, Ni = 0; e: for (let wo = fe, Vn = ve; wo <= Vn; wo++) { const un = T.getLineContent(wo), Yi = un.length; Ne.reset(0); do if (En = Ne.next(un), En) { let $i = En.index, ts = En.index + En[0].length; if ($i > 0) { const na = un.charCodeAt($i - 1); Noe(na) && $i--; } if (ts + 1 < Yi) { const na = un.charCodeAt(ts - 1); Noe(na) && ts++; } const td = un.substring($i, ts); let Ii = Xoe($i + 1, URe, un, 0); Ii && Ii.endColumn <= $i + 1 && (Ii = null); const oa = Ue.shouldHighlightNonBasicASCII(td, Ii ? Ii.word : null); if (oa !== 0) { oa === 3 ? ni++ : oa === 2 ? Ei++ : oa === 1 ? Ni++ : Ict(); const na = 1e3; if (Ye.length >= na) { cn = !0; break e; } Ye.push(new yc(wo, $i + 1, wo, ts + 1)); } } while (En); } return { ranges: Ye, hasMore: cn, ambiguousCharacterCount: ni, invisibleCharacterCount: Ei, nonBasicAsciiCharacterCount: Ni }; } static computeUnicodeHighlightReason(T, L) { const W = new pRe(L); switch (W.shouldHighlightNonBasicASCII(T, null)) { case 0: return null; case 2: return { kind: 1 /* UnicodeHighlighterReasonKind.Invisible */ }; case 3: { const ve = T.codePointAt(0), Ue = W.ambiguousCharacters.getPrimaryConfusable(ve), ut = w0.getLocales().filter((Ct) => !w0.getInstance(/* @__PURE__ */ new Set([...L.allowedLocales, Ct])).isAmbiguous(ve)); return { kind: 0, confusableWith: String.fromCodePoint(Ue), notAmbiguousInLocales: ut }; } case 1: return { kind: 2 /* UnicodeHighlighterReasonKind.NonBasicAscii */ }; } } } function wct(h, T) { return `[${Slt(h.map((W) => String.fromCodePoint(W)).join(""))}]`; } class pRe { constructor(T) { this.options = T, this.allowedCodePoints = new Set(T.allowedCodePoints), this.ambiguousCharacters = w0.getInstance(new Set(T.allowedLocales)); } getCandidateCodePoints() { if (this.options.nonBasicASCII) return "allNonBasicAscii"; const T = /* @__PURE__ */ new Set(); if (this.options.invisibleCharacters) for (const L of rA.codePoints) mRe(String.fromCodePoint(L)) || T.add(L); if (this.options.ambiguousCharacters) for (const L of this.ambiguousCharacters.getConfusableCodePoints()) T.add(L); for (const L of this.allowedCodePoints) T.delete(L); return T; } shouldHighlightNonBasicASCII(T, L) { const W = T.codePointAt(0); if (this.allowedCodePoints.has(W)) return 0; if (this.options.nonBasicASCII) return 1; let fe = !1, ve = !1; if (L) for (const Ue of L) { const ut = Ue.codePointAt(0), Ct = Dlt(Ue); fe = fe || Ct, !Ct && !this.ambiguousCharacters.isAmbiguous(ut) && !rA.isInvisibleCharacter(ut) && (ve = !0); } return ( /* Don't allow mixing weird looking characters with ASCII */ !fe && /* Is there an obviously weird looking character? */ ve ? 0 : this.options.invisibleCharacters && !mRe(T) && rA.isInvisibleCharacter(W) ? 2 : this.options.ambiguousCharacters && this.ambiguousCharacters.isAmbiguous(W) ? 3 : 0 ); } } function mRe(h) { return h === " " || h === ` ` || h === " "; } class HRe { constructor(T, L) { this.changes = T, this.hitTimeout = L; } } class $V { constructor(T, L, W) { this.originalRange = T, this.modifiedRange = L, this.innerChanges = W; } toString() { return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`; } } class WRe { constructor(T, L) { this.originalRange = T, this.modifiedRange = L; } toString() { return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`; } } class Kb { /** * @param lineRanges An array of sorted line ranges. */ static joinMany(T) { if (T.length === 0) return []; let L = T[0]; for (let W = 1; W < T.length; W++) L = this.join(L, T[W]); return L; } /** * @param lineRanges1 Must be sorted. * @param lineRanges2 Must be sorted. */ static join(T, L) { if (T.length === 0) return L; if (L.length === 0) return T; const W = []; let fe = 0, ve = 0, Ue = null; for (; fe < T.length || ve < L.length; ) { let ut = null; if (fe < T.length && ve < L.length) { const Ct = T[fe], Ne = L[ve]; Ct.startLineNumber < Ne.startLineNumber ? (ut = Ct, fe++) : (ut = Ne, ve++); } else fe < T.length ? (ut = T[fe], fe++) : (ut = L[ve], ve++); Ue === null ? Ue = ut : Ue.endLineNumberExclusive >= ut.startLineNumber ? Ue = new Kb(Ue.startLineNumber, Math.max(Ue.endLineNumberExclusive, ut.endLineNumberExclusive)) : (W.push(Ue), Ue = ut); } return Ue !== null && W.push(Ue), W; } constructor(T, L) { if (T > L) throw new JL(`startLineNumber ${T} cannot be after endLineNumberExclusive ${L}`); this.startLineNumber = T, this.endLineNumberExclusive = L; } /** * Indicates if this line range contains the given line number. */ contains(T) { return this.startLineNumber <= T && T < this.endLineNumberExclusive; } /** * Indicates if this line range is empty. */ get isEmpty() { return this.startLineNumber === this.endLineNumberExclusive; } /** * Moves this line range by the given offset of line numbers. */ delta(T) { return new Kb(this.startLineNumber + T, this.endLineNumberExclusive + T); } /** * The number of lines this line range spans. */ get length() { return this.endLineNumberExclusive - this.startLineNumber; } /** * Creates a line range that combines this and the given line range. */ join(T) { return new Kb(Math.min(this.startLineNumber, T.startLineNumber), Math.max(this.endLineNumberExclusive, T.endLineNumberExclusive)); } toString() { return `[${this.startLineNumber},${this.endLineNumberExclusive})`; } /** * The resulting range is empty if the ranges do not intersect, but touch. * If the ranges don't even touch, the result is undefined. */ intersect(T) { const L = Math.max(this.startLineNumber, T.startLineNumber), W = Math.min(this.endLineNumberExclusive, T.endLineNumberExclusive); if (L <= W) return new Kb(L, W); } overlapOrTouch(T) { return this.startLineNumber <= T.endLineNumberExclusive && T.startLineNumber <= this.endLineNumberExclusive; } equals(T) { return this.startLineNumber === T.startLineNumber && this.endLineNumberExclusive === T.endLineNumberExclusive; } } const Dct = 3; class Rct { computeDiff(T, L, W) { var fe; const Ue = new qRe(T, L, { maxComputationTime: W.maxComputationTimeMs, shouldIgnoreTrimWhitespace: W.ignoreTrimWhitespace, shouldComputeCharChanges: !0, shouldMakePrettyDiff: !0, shouldPostProcessCharChanges: !0 }).computeDiff(), ut = []; let Ct = null; for (const Ne of Ue.changes) { let Ye; Ne.originalEndLineNumber === 0 ? Ye = new Kb(Ne.originalStartLineNumber + 1, Ne.originalStartLineNumber + 1) : Ye = new Kb(Ne.originalStartLineNumber, Ne.originalEndLineNumber + 1); let cn; Ne.modifiedEndLineNumber === 0 ? cn = new Kb(Ne.modifiedStartLineNumber + 1, Ne.modifiedStartLineNumber + 1) : cn = new Kb(Ne.modifiedStartLineNumber, Ne.modifiedEndLineNumber + 1); let En = new $V(Ye, cn, (fe = Ne.charChanges) === null || fe === void 0 ? void 0 : fe.map((ni) => new WRe(new yc(ni.originalStartLineNumber, ni.originalStartColumn, ni.originalEndLineNumber, ni.originalEndColumn), new yc(ni.modifiedStartLineNumber, ni.modifiedStartColumn, ni.modifiedEndLineNumber, ni.modifiedEndColumn)))); Ct && (Ct.modifiedRange.endLineNumberExclusive === En.modifiedRange.startLineNumber || Ct.originalRange.endLineNumberExclusive === En.originalRange.startLineNumber) && (En = new $V(Ct.originalRange.join(En.originalRange), Ct.modifiedRange.join(En.modifiedRange), Ct.innerChanges && En.innerChanges ? Ct.innerChanges.concat(En.innerChanges) : void 0), ut.pop()), ut.push(En), Ct = En; } return Qoe(() => jRe(ut, (Ne, Ye) => Ye.originalRange.startLineNumber - Ne.originalRange.endLineNumberExclusive === Ye.modifiedRange.startLineNumber - Ne.modifiedRange.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined) Ne.originalRange.endLineNumberExclusive < Ye.originalRange.startLineNumber && Ne.modifiedRange.endLineNumberExclusive < Ye.modifiedRange.startLineNumber)), new HRe(ut, Ue.quitEarly); } } function zRe(h, T, L, W) { return new tA(h, T, L).ComputeDiff(W); } let hRe = class { constructor(T) { const L = [], W = []; for (let fe = 0, ve = T.length; fe < ve; fe++) L[fe] = zoe(T[fe], 1), W[fe] = qoe(T[fe], 1); this.lines = T, this._startColumns = L, this._endColumns = W; } getElements() { const T = []; for (let L = 0, W = this.lines.length; L < W; L++) T[L] = this.lines[L].substring(this._startColumns[L] - 1, this._endColumns[L] - 1); return T; } getStrictElement(T) { return this.lines[T]; } getStartLineNumber(T) { return T + 1; } getEndLineNumber(T) { return T + 1; } createCharSequence(T, L, W) { const fe = [], ve = [], Ue = []; let ut = 0; for (let Ct = L; Ct <= W; Ct++) { const Ne = this.lines[Ct], Ye = T ? this._startColumns[Ct] : 1, cn = T ? this._endColumns[Ct] : Ne.length + 1; for (let En = Ye; En < cn; En++) fe[ut] = Ne.charCodeAt(En - 1), ve[ut] = Ct + 1, Ue[ut] = En, ut++; !T && Ct < W && (fe[ut] = 10, ve[ut] = Ct + 1, Ue[ut] = Ne.length + 1, ut++); } return new Nct(fe, ve, Ue); } }; class Nct { constructor(T, L, W) { this._charCodes = T, this._lineNumbers = L, this._columns = W; } toString() { return "[" + this._charCodes.map((T, L) => (T === 10 ? "\\n" : String.fromCharCode(T)) + `-(${this._lineNumbers[L]},${this._columns[L]})`).join(", ") + "]"; } _assertIndex(T, L) { if (T < 0 || T >= L.length) throw new Error("Illegal index"); } getElements() { return this._charCodes; } getStartLineNumber(T) { return T > 0 && T === this._lineNumbers.length ? this.getEndLineNumber(T - 1) : (this._assertIndex(T, this._lineNumbers), this._lineNumbers[T]); } getEndLineNumber(T) { return T === -1 ? this.getStartLineNumber(T + 1) : (this._assertIndex(T, this._lineNumbers), this._charCodes[T] === 10 ? this._lineNumbers[T] + 1 : this._lineNumbers[T]); } getStartColumn(T) { return T > 0 && T === this._columns.length ? this.getEndColumn(T - 1) : (this._assertIndex(T, this._columns), this._columns[T]); } getEndColumn(T) { return T === -1 ? this.getStartColumn(T + 1) : (this._assertIndex(T, this._columns), this._charCodes[T] === 10 ? 1 : this._columns[T] + 1); } } class HD { constructor(T, L, W, fe, ve, Ue, ut, Ct) { this.originalStartLineNumber = T, this.originalStartColumn = L, this.originalEndLineNumber = W, this.originalEndColumn = fe, this.modifiedStartLineNumber = ve, this.modifiedStartColumn = Ue, this.modifiedEndLineNumber = ut, this.modifiedEndColumn = Ct; } static createFromDiffChange(T, L, W) { const fe = L.getStartLineNumber(T.originalStart), ve = L.getStartColumn(T.originalStart), Ue = L.getEndLineNumber(T.originalStart + T.originalLength - 1), ut = L.getEndColumn(T.originalStart + T.originalLength - 1), Ct = W.getStartLineNumber(T.modifiedStart), Ne = W.getStartColumn(T.modifiedStart), Ye = W.getEndLineNumber(T.modifiedStart + T.modifiedLength - 1), cn = W.getEndColumn(T.modifiedStart + T.modifiedLength - 1); return new HD(fe, ve, Ue, ut, Ct, Ne, Ye, cn); } } function Oct(h) { if (h.length <= 1) return h; const T = [h[0]]; let L = T[0]; for (let W = 1, fe = h.length; W < fe; W++) { const ve = h[W], Ue = ve.originalStart - (L.originalStart + L.originalLength), ut = ve.modifiedStart - (L.modifiedStart + L.modifiedLength); Math.min(Ue, ut) < Dct ? (L.originalLength = ve.originalStart + ve.originalLength - L.originalStart, L.modifiedLength = ve.modifiedStart + ve.modifiedLength - L.modifiedStart) : (T.push(ve), L = ve); } return T; } class mP { constructor(T, L, W, fe, ve) { this.originalStartLineNumber = T, this.originalEndLineNumber = L, this.modifiedStartLineNumber = W, this.modifiedEndLineNumber = fe, this.charChanges = ve; } static createFromDiffResult(T, L, W, fe, ve, Ue, ut) { let Ct, Ne, Ye, cn, En; if (L.originalLength === 0 ? (Ct = W.getStartLineNumber(L.originalStart) - 1, Ne = 0) : (Ct = W.getStartLineNumber(L.originalStart), Ne = W.getEndLineNumber(L.originalStart + L.originalLength - 1)), L.modifiedLength === 0 ? (Ye = fe.getStartLineNumber(L.modifiedStart) - 1, cn = 0) : (Ye = fe.getStartLineNumber(L.modifiedStart), cn = fe.getEndLineNumber(L.modifiedStart + L.modifiedLength - 1)), Ue && L.originalLength > 0 && L.originalLength < 20 && L.modifiedLength > 0 && L.modifiedLength < 20 && ve()) { const ni = W.createCharSequence(T, L.originalStart, L.originalStart + L.originalLength - 1), Ei = fe.createCharSequence(T, L.modifiedStart, L.modifiedStart + L.modifiedLength - 1); if (ni.getElements().length > 0 && Ei.getElements().length > 0) { let Ni = zRe(ni, Ei, ve, !0).changes; ut && (Ni = Oct(Ni)), En = []; for (let wo = 0, Vn = Ni.length; wo < Vn; wo++) En.push(HD.createFromDiffChange(Ni[wo], ni, Ei)); } } return new mP(Ct, Ne, Ye, cn, En); } } class qRe { constructor(T, L, W) { this.shouldComputeCharChanges = W.shouldComputeCharChanges, this.shouldPostProcessCharChanges = W.shouldPostProcessCharChanges, this.shouldIgnoreTrimWhitespace = W.shouldIgnoreTrimWhitespace, this.shouldMakePrettyDiff = W.shouldMakePrettyDiff, this.originalLines = T, this.modifiedLines = L, this.original = new hRe(T), this.modified = new hRe(L), this.continueLineDiff = gRe(W.maxComputationTime), this.continueCharDiff = gRe(W.maxComputationTime === 0 ? 0 : Math.min(W.maxComputationTime, 5e3)); } computeDiff() { if (this.original.lines.length === 1 && this.original.lines[0].length === 0) return this.modified.lines.length === 1 && this.modified.lines[0].length === 0 ? { quitEarly: !1, changes: [] } : { quitEarly: !1, changes: [{ originalStartLineNumber: 1, originalEndLineNumber: 1, modifiedStartLineNumber: 1, modifiedEndLineNumber: this.modified.lines.length, charChanges: void 0 }] }; if (this.modified.lines.length === 1 && this.modified.lines[0].length === 0) return { quitEarly: !1, changes: [{ originalStartLineNumber: 1, originalEndLineNumber: this.original.lines.length, modifiedStartLineNumber: 1, modifiedEndLineNumber: 1, charChanges: void 0 }] }; const T = zRe(this.original, this.modified, this.continueLineDiff, this.shouldMakePrettyDiff), L = T.changes, W = T.quitEarly; if (this.shouldIgnoreTrimWhitespace) { const ut = []; for (let Ct = 0, Ne = L.length; Ct < Ne; Ct++) ut.push(mP.createFromDiffResult(this.shouldIgnoreTrimWhitespace, L[Ct], this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)); return { quitEarly: W, changes: ut }; } const fe = []; let ve = 0, Ue = 0; for (let ut = -1, Ct = L.length; ut < Ct; ut++) { const Ne = ut + 1 < Ct ? L[ut + 1] : null, Ye = Ne ? Ne.originalStart : this.originalLines.length, cn = Ne ? Ne.modifiedStart : this.modifiedLines.length; for (; ve < Ye && Ue < cn; ) { const En = this.originalLines[ve], ni = this.modifiedLines[Ue]; if (En !== ni) { { let Ei = zoe(En, 1), Ni = zoe(ni, 1); for (; Ei > 1 && Ni > 1; ) { const wo = En.charCodeAt(Ei - 2), Vn = ni.charCodeAt(Ni - 2); if (wo !== Vn) break; Ei--, Ni--; } (Ei > 1 || Ni > 1) && this._pushTrimWhitespaceCharChange(fe, ve + 1, 1, Ei, Ue + 1, 1, Ni); } { let Ei = qoe(En, 1), Ni = qoe(ni, 1); const wo = En.length + 1, Vn = ni.length + 1; for (; Ei < wo && Ni < Vn; ) { const un = En.charCodeAt(Ei - 1), Yi = En.charCodeAt(Ni - 1); if (un !== Yi) break; Ei++, Ni++; } (Ei < wo || Ni < Vn) && this._pushTrimWhitespaceCharChange(fe, ve + 1, Ei, wo, Ue + 1, Ni, Vn); } } ve++, Ue++; } Ne && (fe.push(mP.createFromDiffResult(this.shouldIgnoreTrimWhitespace, Ne, this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)), ve += Ne.originalLength, Ue += Ne.modifiedLength); } return { quitEarly: W, changes: fe }; } _pushTrimWhitespaceCharChange(T, L, W, fe, ve, Ue, ut) { if (this._mergeTrimWhitespaceCharChange(T, L, W, fe, ve, Ue, ut)) return; let Ct; this.shouldComputeCharChanges && (Ct = [new HD(L, W, L, fe, ve, Ue, ve, ut)]), T.push(new mP(L, L, ve, ve, Ct)); } _mergeTrimWhitespaceCharChange(T, L, W, fe, ve, Ue, ut) { const Ct = T.length; if (Ct === 0) return !1; const Ne = T[Ct - 1]; return Ne.originalEndLineNumber === 0 || Ne.modifiedEndLineNumber === 0 ? !1 : Ne.originalEndLineNumber === L && Ne.modifiedEndLineNumber === ve ? (this.shouldComputeCharChanges && Ne.charChanges && Ne.charChanges.push(new HD(L, W, L, fe, ve, Ue, ve, ut)), !0) : Ne.originalEndLineNumber + 1 === L && Ne.modifiedEndLineNumber + 1 === ve ? (Ne.originalEndLineNumber = L, Ne.modifiedEndLineNumber = ve, this.shouldComputeCharChanges && Ne.charChanges && Ne.charChanges.push(new HD(L, W, L, fe, ve, Ue, ve, ut)), !0) : !1; } } function zoe(h, T) { const L = Alt(h); return L === -1 ? T : L + 1; } function qoe(h, T) { const L = Clt(h); return L === -1 ? T : L + 2; } function gRe(h) { if (h === 0) return () => !0; const T = Date.now(); return () => Date.now() - T < h; } class r_ { static addRange(T, L) { let W = 0; for (; W < L.length && L[W].endExclusive < T.start; ) W++; let fe = W; for (; fe < L.length && L[fe].start <= T.endExclusive; ) fe++; if (W === fe) L.splice(W, 0, T); else { const ve = Math.min(T.start, L[W].start), Ue = Math.max(T.endExclusive, L[fe - 1].endExclusive); L.splice(W, fe - W, new r_(ve, Ue)); } } static tryCreate(T, L) { if (!(T > L)) return new r_(T, L); } constructor(T, L) { if (this.start = T, this.endExclusive = L, T > L) throw new JL(`Invalid range: ${this.toString()}`); } get isEmpty() { return this.start === this.endExclusive; } delta(T) { return new r_(this.start + T, this.endExclusive + T); } get length() { return this.endExclusive - this.start; } toString() { return `[${this.start}, ${this.endExclusive})`; } equals(T) { return this.start === T.start && this.endExclusive === T.endExclusive; } containsRange(T) { return this.start <= T.start && T.endExclusive <= this.endExclusive; } contains(T) { return this.start <= T && T < this.endExclusive; } /** * for all numbers n: range1.contains(n) or range2.contains(n) => range1.join(range2).contains(n) * The joined range is the smallest range that contains both ranges. */ join(T) { return new r_(Math.min(this.start, T.start), Math.max(this.endExclusive, T.endExclusive)); } /** * for all numbers n: range1.contains(n) and range2.contains(n) <=> range1.intersect(range2).contains(n) * * The resulting range is empty if the ranges do not intersect, but touch. * If the ranges don't even touch, the result is undefined. */ intersect(T) { const L = Math.max(this.start, T.start), W = Math.min(this.endExclusive, T.endExclusive); if (L <= W) return new r_(L, W); } } class IS { static trivial(T, L) { return new IS([new D0(new r_(0, T.length), new r_(0, L.length))], !1); } static trivialTimedOut(T, L) { return new IS([new D0(new r_(0, T.length), new r_(0, L.length))], !0); } constructor(T, L) { this.diffs = T, this.hitTimeout = L; } } class D0 { constructor(T, L) { this.seq1Range = T, this.seq2Range = L; } reverse() { return new D0(this.seq2Range, this.seq1Range); } toString() { return `${this.seq1Range} <-> ${this.seq2Range}`; } join(T) { return new D0(this.seq1Range.join(T.seq1Range), this.seq2Range.join(T.seq2Range)); } } class gP { isValid() { return !0; } } gP.instance = new gP(); class Pct { constructor(T) { if (this.timeout = T, this.startTime = Date.now(), this.valid = !0, T <= 0) throw new JL("timeout must be positive"); } // Recommendation: Set a log-point `{this.disable()}` in the body isValid() { if (!(Date.now() - this.startTime < this.timeout) && this.valid) { this.valid = !1; debugger; } return this.valid; } disable() { this.timeout = Number.MAX_SAFE_INTEGER, this.isValid = () => !0, this.valid = !0; } } class Aoe { constructor(T, L) { this.width = T, this.height = L, this.array = [], this.array = new Array(T * L); } get(T, L) { return this.array[T + L * this.width]; } set(T, L, W) { this.array[T + L * this.width] = W; } } class Mct { compute(T, L, W = gP.instance, fe) { if (T.length === 0 || L.length === 0) return IS.trivial(T, L); const ve = new Aoe(T.length, L.length), Ue = new Aoe(T.length, L.length), ut = new Aoe(T.length, L.length); for (let Ei = 0; Ei < T.length; Ei++) for (let Ni = 0; Ni < L.length; Ni++) { if (!W.isValid()) return IS.trivialTimedOut(T, L); const wo = Ei === 0 ? 0 : ve.get(Ei - 1, Ni), Vn = Ni === 0 ? 0 : ve.get(Ei, Ni - 1); let un; T.getElement(Ei) === L.getElement(Ni) ? (Ei === 0 || Ni === 0 ? un = 0 : un = ve.get(Ei - 1, Ni - 1), Ei > 0 && Ni > 0 && Ue.get(Ei - 1, Ni - 1) === 3 && (un += ut.get(Ei - 1, Ni - 1)), un += fe ? fe(Ei, Ni) : 1) : un = -1; const Yi = Math.max(wo, Vn, un); if (Yi === un) { const $i = Ei > 0 && Ni > 0 ? ut.get(Ei - 1, Ni - 1) : 0; ut.set(Ei, Ni, $i + 1), Ue.set(Ei, Ni, 3); } else Yi === wo ? (ut.set(Ei, Ni, 0), Ue.set(Ei, Ni, 1)) : Yi === Vn && (ut.set(Ei, Ni, 0), Ue.set(Ei, Ni, 2)); ve.set(Ei, Ni, Yi); } const Ct = []; let Ne = T.length, Ye = L.length; function cn(Ei, Ni) { (Ei + 1 !== Ne || Ni + 1 !== Ye) && Ct.push(new D0(new r_(Ei + 1, Ne), new r_(Ni + 1, Ye))), Ne = Ei, Ye = Ni; } let En = T.length - 1, ni = L.length - 1; for (; En >= 0 && ni >= 0; ) Ue.get(En, ni) === 3 ? (cn(En, ni), En--, ni--) : Ue.get(En, ni) === 1 ? En-- : ni--; return cn(-1, -1), Ct.reverse(), new IS(Ct, !1); } } function yRe(h, T, L) { let W = L; return W = Bct(h, T, W), W = Gct(h, T, W), W; } function Fct(h, T, L) { const W = []; for (const fe of L) { const ve = W[W.length - 1]; if (!ve) { W.push(fe); continue; } fe.seq1Range.start - ve.seq1Range.endExclusive <= 2 || fe.seq2Range.start - ve.seq2Range.endExclusive <= 2 ? W[W.length - 1] = new D0(ve.seq1Range.join(fe.seq1Range), ve.seq2Range.join(fe.seq2Range)) : W.push(fe); } return W; } function Bct(h, T, L) { const W = []; L.length > 0 && W.push(L[0]); for (let fe = 1; fe < L.length; fe++) { const ve = W[W.length - 1], Ue = L[fe]; if (Ue.seq1Range.isEmpty) { let ut = !0; const Ct = Ue.seq1Range.start - ve.seq1Range.endExclusive; for (let Ne = 1; Ne <= Ct; Ne++) if (T.getElement(Ue.seq2Range.start - Ne) !== T.getElement(Ue.seq2Range.endExclusive - Ne)) { ut = !1; break; } if (ut) { W[W.length - 1] = new D0(ve.seq1Range, new r_(ve.seq2Range.start, Ue.seq2Range.endExclusive - Ct)); continue; } } W.push(Ue); } return W; } function Gct(h, T, L) { if (!h.getBoundaryScore || !T.getBoundaryScore) return L; for (let W = 0; W < L.length; W++) { const fe = L[W]; if (fe.seq1Range.isEmpty) { const ve = W > 0 ? L[W - 1].seq2Range.endExclusive : -1, Ue = W + 1 < L.length ? L[W + 1].seq2Range.start : T.length; L[W] = vRe(fe, h, T, Ue, ve); } else if (fe.seq2Range.isEmpty) { const ve = W > 0 ? L[W - 1].seq1Range.endExclusive : -1, Ue = W + 1 < L.length ? L[W + 1].seq1Range.start : h.length; L[W] = vRe(fe.reverse(), T, h, Ue, ve).reverse(); } } return L; } function vRe(h, T, L, W, fe) { let Ue = 1; for (; h.seq2Range.start - Ue > fe && L.getElement(h.seq2Range.start - Ue) === L.getElement(h.seq2Range.endExclusive - Ue) && Ue < 20; ) Ue++; Ue--; let ut = 0; for (; h.seq2Range.start + ut < W && L.getElement(h.seq2Range.start + ut) === L.getElement(h.seq2Range.endExclusive + ut) && ut < 20; ) ut++; if (Ue === 0 && ut === 0) return h; let Ct = 0, Ne = -1; for (let Ye = -Ue; Ye <= ut; Ye++) { const cn = h.seq2Range.start + Ye, En = h.seq2Range.endExclusive + Ye, ni = h.seq1Range.start + Ye, Ei = T.getBoundaryScore(ni) + L.getBoundaryScore(cn) + L.getBoundaryScore(En); Ei > Ne && (Ne = Ei, Ct = Ye); } return Ct !== 0 ? new D0(h.seq1Range.delta(Ct), h.seq2Range.delta(Ct)) : h; } class Uct { compute(T, L, W = gP.instance) { if (T.length === 0 || L.length === 0) return IS.trivial(T, L); function fe(ni, Ei) { for (; ni < T.length && Ei < L.length && T.getElement(ni) === L.getElement(Ei); ) ni++, Ei++; return ni; } let ve = 0; const Ue = new Vct(); Ue.set(0, fe(0, 0)); const ut = new jct(); ut.set(0, Ue.get(0) === 0 ? null : new bRe(null, 0, 0, Ue.get(0))); let Ct = 0; e: for (; ; ) for (ve++, Ct = -ve; Ct <= ve; Ct += 2) { if (!W.isValid()) return IS.trivialTimedOut(T, L); const ni = Ct === ve ? -1 : Ue.get(Ct + 1), Ei = Ct === -ve ? -1 : Ue.get(Ct - 1) + 1, Ni = Math.min(Math.max(ni, Ei), T.length), wo = Ni - Ct, Vn = fe(Ni, wo); Ue.set(Ct, Vn); const un = Ni === ni ? ut.get(Ct + 1) : ut.get(Ct - 1); if (ut.set(Ct, Vn !== Ni ? new bRe(un, Ni, wo, Vn - Ni) : un), Ue.get(Ct) === T.length && Ue.get(Ct) - Ct === L.length) break e; } let Ne = ut.get(Ct); const Ye = []; let cn = T.length, En = L.length; for (; ; ) { const ni = Ne ? Ne.x + Ne.length : 0, Ei = Ne ? Ne.y + Ne.length : 0; if ((ni !== cn || Ei !== En) && Ye.push(new D0(new r_(ni, cn), new r_(Ei, En))), !Ne) break; cn = Ne.x, En = Ne.y, Ne = Ne.prev; } return Ye.reverse(), new IS(Ye, !1); } } class bRe { constructor(T, L, W, fe) { this.prev = T, this.x = L, this.y = W, this.length = fe; } } class Vct { constructor() { this.positiveArr = new Int32Array(10), this.negativeArr = new Int32Array(10); } get(T) { return T < 0 ? (T = -T - 1, this.negativeArr[T]) : this.positiveArr[T]; } set(T, L) { if (T < 0) { if (T = -T - 1, T >= this.negativeArr.length) { const W = this.negativeArr; this.negativeArr = new Int32Array(W.length * 2), this.negativeArr.set(W); } this.negativeArr[T] = L; } else { if (T >= this.positiveArr.length) { const W = this.positiveArr; this.positiveArr = new Int32Array(W.length * 2), this.positiveArr.set(W); } this.positiveArr[T] = L; } } } class jct { constructor() { this.positiveArr = [], this.negativeArr = []; } get(T) { return T < 0 ? (T = -T - 1, this.negativeArr[T]) : this.positiveArr[T]; } set(T, L) { T < 0 ? (T = -T - 1, this.negativeArr[T] = L) : this.positiveArr[T] = L; } } class Hct { constructor() { this.dynamicProgrammingDiffing = new Mct(), this.myersDiffingAlgorithm = new Uct(); } computeDiff(T, L, W) { const fe = W.maxComputationTimeMs === 0 ? gP.instance : new Pct(W.maxComputationTimeMs), ve = !W.ignoreTrimWhitespace, Ue = /* @__PURE__ */ new Map(); function ut($i) { let ts = Ue.get($i); return ts === void 0 && (ts = Ue.size, Ue.set($i, ts)), ts; } const Ct = T.map(($i) => ut($i.trim())), Ne = L.map(($i) => ut($i.trim())), Ye = new ERe(Ct, T), cn = new ERe(Ne, L), En = (() => Ye.length + cn.length < 1500 ? this.dynamicProgrammingDiffing.compute(Ye, cn, fe, ($i, ts) => T[$i] === L[ts] ? L[ts].length === 0 ? 0.1 : 1 + Math.log(1 + L[ts].length) : 0.99) : this.myersDiffingAlgorithm.compute(Ye, cn))(); let ni = En.diffs, Ei = En.hitTimeout; ni = yRe(Ye, cn, ni); const Ni = [], wo = ($i) => { if (ve) for (let ts = 0; ts < $i; ts++) { const td = Vn + ts, Ii = un + ts; if (T[td] !== L[Ii]) { const oa = this.refineDiff(T, L, new D0(new r_(td, td + 1), new r_(Ii, Ii + 1)), fe, ve); for (const na of oa.mappings) Ni.push(na); oa.hitTimeout && (Ei = !0); } } }; let Vn = 0, un = 0; for (const $i of ni) { Qoe(() => $i.seq1Range.start - Vn === $i.seq2Range.start - un); const ts = $i.seq1Range.start - Vn; wo(ts), Vn = $i.seq1Range.endExclusive, un = $i.seq2Range.endExclusive; const td = this.refineDiff(T, L, $i, fe, ve); td.hitTimeout && (Ei = !0); for (const Ii of td.mappings) Ni.push(Ii); } wo(T.length - Vn); const Yi = qct(Ni, T, L); return new HRe(Yi, Ei); } refineDiff(T, L, W, fe, ve) { const Ue = new SRe(T, W.seq1Range, ve), ut = new SRe(L, W.seq2Range, ve), Ct = Ue.length + ut.length < 500 ? this.dynamicProgrammingDiffing.compute(Ue, ut, fe) : this.myersDiffingAlgorithm.compute(Ue, ut, fe); let Ne = Ct.diffs; return Ne = yRe(Ue, ut, Ne), Ne = Wct(Ue, ut, Ne), Ne = Fct(Ue, ut, Ne), { mappings: Ne.map((cn) => new WRe(Ue.translateRange(cn.seq1Range), ut.translateRange(cn.seq2Range))), hitTimeout: Ct.hitTimeout }; } } function Wct(h, T, L) { const W = []; let fe; function ve() { if (!fe) return; const ut = fe.s1Range.length - fe.deleted; fe.s2Range.length - fe.added, Math.max(fe.deleted, fe.added) + (fe.count - 1) > ut && W.push(new D0(fe.s1Range, fe.s2Range)), fe = void 0; } for (const ut of L) { let Ct = function(ni, Ei) { var Ni, wo, Vn, un; if (!fe || !fe.s1Range.containsRange(ni) || !fe.s2Range.containsRange(Ei)) if (fe && !(fe.s1Range.endExclusive < ni.start && fe.s2Range.endExclusive < Ei.start)) { const ts = r_.tryCreate(fe.s1Range.endExclusive, ni.start), td = r_.tryCreate(fe.s2Range.endExclusive, Ei.start); fe.deleted += (Ni = ts == null ? void 0 : ts.length) !== null && Ni !== void 0 ? Ni : 0, fe.added += (wo = td == null ? void 0 : td.length) !== null && wo !== void 0 ? wo : 0, fe.s1Range = fe.s1Range.join(ni), fe.s2Range = fe.s2Range.join(Ei); } else ve(), fe = { added: 0, deleted: 0, count: 0, s1Range: ni, s2Range: Ei }; const Yi = ni.intersect(ut.seq1Range), $i = Ei.intersect(ut.seq2Range); fe.count++, fe.deleted += (Vn = Yi == null ? void 0 : Yi.length) !== null && Vn !== void 0 ? Vn : 0, fe.added += (un = $i == null ? void 0 : $i.length) !== null && un !== void 0 ? un : 0; }; const Ne = h.findWordContaining(ut.seq1Range.start - 1), Ye = T.findWordContaining(ut.seq2Range.start - 1), cn = h.findWordContaining(ut.seq1Range.endExclusive), En = T.findWordContaining(ut.seq2Range.endExclusive); Ne && cn && Ye && En && Ne.equals(cn) && Ye.equals(En) ? Ct(Ne, Ye) : (Ne && Ye && Ct(Ne, Ye), cn && En && Ct(cn, En)); } return ve(), zct(L, W); } function zct(h, T) { const L = []; for (; h.length > 0 || T.length > 0; ) { const W = h[0], fe = T[0]; let ve; W && (!fe || W.seq1Range.start < fe.seq1Range.start) ? ve = h.shift() : ve = T.shift(), L.length > 0 && L[L.length - 1].seq1Range.endExclusive >= ve.seq1Range.start ? L[L.length - 1] = L[L.length - 1].join(ve) : L.push(ve); } return L; } function qct(h, T, L) { const W = []; for (const fe of Kct(h.map((ve) => Jct(ve, T, L)), (ve, Ue) => ve.originalRange.overlapOrTouch(Ue.originalRange) || ve.modifiedRange.overlapOrTouch(Ue.modifiedRange))) { const ve = fe[0], Ue = fe[fe.length - 1]; W.push(new $V(ve.originalRange.join(Ue.originalRange), ve.modifiedRange.join(Ue.modifiedRange), fe.map((ut) => ut.innerChanges[0]))); } return Qoe(() => jRe(W, (fe, ve) => ve.originalRange.startLineNumber - fe.originalRange.endLineNumberExclusive === ve.modifiedRange.startLineNumber - fe.modifiedRange.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined) fe.originalRange.endLineNumberExclusive < ve.originalRange.startLineNumber && fe.modifiedRange.endLineNumberExclusive < ve.modifiedRange.startLineNumber)), W; } function Jct(h, T, L) { let W = 0, fe = 0; h.modifiedRange.startColumn - 1 >= L[h.modifiedRange.startLineNumber - 1].length && h.originalRange.startColumn - 1 >= T[h.originalRange.startLineNumber - 1].length && (W = 1), h.modifiedRange.endColumn === 1 && h.originalRange.endColumn === 1 && h.originalRange.startLineNumber + W <= h.originalRange.endLineNumber && h.modifiedRange.startLineNumber + W <= h.modifiedRange.endLineNumber && (fe = -1); const ve = new Kb(h.originalRange.startLineNumber + W, h.originalRange.endLineNumber + 1 + fe), Ue = new Kb(h.modifiedRange.startLineNumber + W, h.modifiedRange.endLineNumber + 1 + fe); return new $V(ve, Ue, [h]); } function* Kct(h, T) { let L, W; for (const fe of h) W !== void 0 && T(W, fe) ? L.push(fe) : (L && (yield L), L = [fe]), W = fe; L && (yield L); } class ERe { constructor(T, L) { this.trimmedHash = T, this.lines = L; } getElement(T) { return this.trimmedHash[T]; } get length() { return this.trimmedHash.length; } getBoundaryScore(T) { const L = T === 0 ? 0 : TRe(this.lines[T - 1]), W = T === this.lines.length ? 0 : TRe(this.lines[T]); return 1e3 - (L + W); } } function TRe(h) { let T = 0; for (; T < h.length && (h.charCodeAt(T) === 32 || h.charCodeAt(T) === 9); ) T++; return T; } class SRe { constructor(T, L, W) { this.lines = T, this.considerWhitespaceChanges = W, this.elements = [], this.firstCharOffsetByLineMinusOne = [], this.offsetByLine = []; let fe = !1; L.start > 0 && L.endExclusive >= T.length && (L = new r_(L.start - 1, L.endExclusive), fe = !0), this.lineRange = L; for (let ve = this.lineRange.start; ve < this.lineRange.endExclusive; ve++) { let Ue = T[ve], ut = 0; if (fe) ut = Ue.length, Ue = "", fe = !1; else if (!W) { const Ct = Ue.trimStart(); ut = Ue.length - Ct.length, Ue = Ct.trimEnd(); } this.offsetByLine.push(ut); for (let Ct = 0; Ct < Ue.length; Ct++) this.elements.push(Ue.charCodeAt(Ct)); ve < T.length - 1 && (this.elements.push(` `.charCodeAt(0)), this.firstCharOffsetByLineMinusOne[ve - this.lineRange.start] = this.elements.length); } this.offsetByLine.push(0); } toString() { return `Slice: "${this.text}"`; } get text() { return [...this.elements].map((T) => String.fromCharCode(T)).join(""); } getElement(T) { return this.elements[T]; } get length() { return this.elements.length; } getBoundaryScore(T) { const L = ARe(T > 0 ? this.elements[T - 1] : -1), W = ARe(T < this.elements.length ? this.elements[T] : -1); if (L === 6 && W === 7) return 0; let fe = 0; return L !== W && (fe += 10, W === 1 && (fe += 1)), fe += xRe(L), fe += xRe(W), fe; } translateOffset(T) { if (this.lineRange.isEmpty) return new vm(this.lineRange.start + 1, 1); let L = 0, W = this.firstCharOffsetByLineMinusOne.length; for (; L < W; ) { const ve = Math.floor((L + W) / 2); this.firstCharOffsetByLineMinusOne[ve] > T ? W = ve : L = ve + 1; } const fe = L === 0 ? 0 : this.firstCharOffsetByLineMinusOne[L - 1]; return new vm(this.lineRange.start + L + 1, T - fe + 1 + this.offsetByLine[L]); } translateRange(T) { return yc.fromPositions(this.translateOffset(T.start), this.translateOffset(T.endExclusive)); } /** * Finds the word that contains the character at the given offset */ findWordContaining(T) { if (T < 0 || T >= this.elements.length || !Coe(this.elements[T])) return; let L = T; for (; L > 0 && Coe(this.elements[L - 1]); ) L--; let W = T; for (; W < this.elements.length && Coe(this.elements[W]); ) W++; return new r_(L, W); } } function Coe(h) { return h >= 97 && h <= 122 || h >= 65 && h <= 90 || h >= 48 && h <= 57; } const Xct = { [ 0 /* CharBoundaryCategory.WordLower */ ]: 0, [ 1 /* CharBoundaryCategory.WordUpper */ ]: 0, [ 2 /* CharBoundaryCategory.WordNumber */ ]: 0, [ 3 /* CharBoundaryCategory.End */ ]: 10, [ 4 /* CharBoundaryCategory.Other */ ]: 2, [ 5 /* CharBoundaryCategory.Space */ ]: 3, [ 6 /* CharBoundaryCategory.LineBreakCR */ ]: 10, [ 7 /* CharBoundaryCategory.LineBreakLF */ ]: 10 }; function xRe(h) { return Xct[h]; } function ARe(h) { return h === 10 ? 7 : h === 13 ? 6 : Yct(h) ? 5 : h >= 97 && h <= 122 ? 0 : h >= 65 && h <= 90 ? 1 : h >= 48 && h <= 57 ? 2 : h === -1 ? 3 : 4; } function Yct(h) { return h === 32 || h === 9; } const Loe = { smart: new Rct(), experimental: new Hct() }; var LS = globalThis && globalThis.__awaiter || function(h, T, L, W) { function fe(ve) { return ve instanceof L ? ve : new L(function(Ue) { Ue(ve); }); } return new (L || (L = Promise))(function(ve, Ue) { function ut(Ye) { try { Ne(W.next(Ye)); } catch (cn) { Ue(cn); } } function Ct(Ye) { try { Ne(W.throw(Ye)); } catch (cn) { Ue(cn); } } function Ne(Ye) { Ye.done ? ve(Ye.value) : fe(Ye.value).then(ut, Ct); } Ne((W = W.apply(h, T || [])).next()); }); }; class $ct extends oct { get uri() { return this._uri; } get eol() { return this._eol; } getValue() { return this.getText(); } getLinesContent() { return this._lines.slice(0); } getLineCount() { return this._lines.length; } getLineContent(T) { return this._lines[T - 1]; } getWordAtPosition(T, L) { const W = Xoe(T.column, cct(L), this._lines[T.lineNumber - 1], 0); return W ? new yc(T.lineNumber, W.startColumn, T.lineNumber, W.endColumn) : null; } getWordUntilPosition(T, L) { const W = this.getWordAtPosition(T, L); return W ? { word: this._lines[T.lineNumber - 1].substring(W.startColumn - 1, T.column - 1), startColumn: W.startColumn, endColumn: T.column } : { word: "", startColumn: T.column, endColumn: T.column }; } words(T) { const L = this._lines, W = this._wordenize.bind(this); let fe = 0, ve = "", Ue = 0, ut = []; return { *[Symbol.iterator]() { for (; ; ) if (Ue < ut.length) { const Ct = ve.substring(ut[Ue].start, ut[Ue].end); Ue += 1, yield Ct; } else if (fe < L.length) ve = L[fe], ut = W(ve, T), Ue = 0, fe += 1; else break; } }; } getLineWords(T, L) { const W = this._lines[T - 1], fe = this._wordenize(W, L), ve = []; for (const Ue of fe) ve.push({ word: W.substring(Ue.start, Ue.end), startColumn: Ue.start + 1, endColumn: Ue.end + 1 }); return ve; } _wordenize(T, L) { const W = []; let fe; for (L.lastIndex = 0; (fe = L.exec(T)) && fe[0].length !== 0; ) W.push({ start: fe.index, end: fe.index + fe[0].length }); return W; } getValueInRange(T) { if (T = this._validateRange(T), T.startLineNumber === T.endLineNumber) return this._lines[T.startLineNumber - 1].substring(T.startColumn - 1, T.endColumn - 1); const L = this._eol, W = T.startLineNumber - 1, fe = T.endLineNumber - 1, ve = []; ve.push(this._lines[W].substring(T.startColumn - 1)); for (let Ue = W + 1; Ue < fe; Ue++) ve.push(this._lines[Ue]); return ve.push(this._lines[fe].substring(0, T.endColumn - 1)), ve.join(L); } offsetAt(T) { return T = this._validatePosition(T), this._ensureLineStarts(), this._lineStarts.getPrefixSum(T.lineNumber - 2) + (T.column - 1); } positionAt(T) { T = Math.floor(T), T = Math.max(0, T), this._ensureLineStarts(); const L = this._lineStarts.getIndexOf(T), W = this._lines[L.index].length; return { lineNumber: 1 + L.index, column: 1 + Math.min(L.remainder, W) }; } _validateRange(T) { const L = this._validatePosition({ lineNumber: T.startLineNumber, column: T.startColumn }), W = this._validatePosition({ lineNumber: T.endLineNumber, column: T.endColumn }); return L.lineNumber !== T.startLineNumber || L.column !== T.startColumn || W.lineNumber !== T.endLineNumber || W.column !== T.endColumn ? { startLineNumber: L.lineNumber, startColumn: L.column, endLineNumber: W.lineNumber, endColumn: W.column } : T; } _validatePosition(T) { if (!vm.isIPosition(T)) throw new Error("bad position"); let { lineNumber: L, column: W } = T, fe = !1; if (L < 1) L = 1, W = 1, fe = !0; else if (L > this._lines.length) L = this._lines.length, W = this._lines[L - 1].length + 1, fe = !0; else { const ve = this._lines[L - 1].length + 1; W < 1 ? (W = 1, fe = !0) : W > ve && (W = ve, fe = !0); } return fe ? { lineNumber: L, column: W } : T; } } class nA { constructor(T, L) { this._host = T, this._models = /* @__PURE__ */ Object.create(null), this._foreignModuleFactory = L, this._foreignModule = null; } dispose() { this._models = /* @__PURE__ */ Object.create(null); } _getModel(T) { return this._models[T]; } _getModels() { const T = []; return Object.keys(this._models).forEach((L) => T.push(this._models[L])), T; } acceptNewModel(T) { this._models[T.url] = new $ct(zL.parse(T.url), T.lines, T.EOL, T.versionId); } acceptModelChanged(T, L) { if (!this._models[T]) return; this._models[T].onEvents(L); } acceptRemovedModel(T) { this._models[T] && delete this._models[T]; } computeUnicodeHighlights(T, L, W) { return LS(this, void 0, void 0, function* () { const fe = this._getModel(T); return fe ? kct.computeUnicodeHighlights(fe, L, W) : { ranges: [], hasMore: !1, ambiguousCharacterCount: 0, invisibleCharacterCount: 0, nonBasicAsciiCharacterCount: 0 }; }); } // ---- BEGIN diff -------------------------------------------------------------------------- computeDiff(T, L, W, fe) { return LS(this, void 0, void 0, function* () { const ve = this._getModel(T), Ue = this._getModel(L); return !ve || !Ue ? null : nA.computeDiff(ve, Ue, W, fe); }); } static computeDiff(T, L, W, fe) { const ve = fe === "experimental" ? Loe.experimental : Loe.smart, Ue = T.getLinesContent(), ut = L.getLinesContent(), Ct = ve.computeDiff(Ue, ut, W); return { identical: Ct.changes.length > 0 ? !1 : this._modelsAreIdentical(T, L), quitEarly: Ct.hitTimeout, changes: Ct.changes.map((Ye) => { var cn; return [Ye.originalRange.startLineNumber, Ye.originalRange.endLineNumberExclusive, Ye.modifiedRange.startLineNumber, Ye.modifiedRange.endLineNumberExclusive, (cn = Ye.innerChanges) === null || cn === void 0 ? void 0 : cn.map((En) => [ En.originalRange.startLineNumber, En.originalRange.startColumn, En.originalRange.endLineNumber, En.originalRange.endColumn, En.modifiedRange.startLineNumber, En.modifiedRange.startColumn, En.modifiedRange.endLineNumber, En.modifiedRange.endColumn ])]; }) }; } static _modelsAreIdentical(T, L) { const W = T.getLineCount(), fe = L.getLineCount(); if (W !== fe) return !1; for (let ve = 1; ve <= W; ve++) { const Ue = T.getLineContent(ve), ut = L.getLineContent(ve); if (Ue !== ut) return !1; } return !0; } computeDirtyDiff(T, L, W) { return LS(this, void 0, void 0, function* () { const fe = this._getModel(T), ve = this._getModel(L); if (!fe || !ve) return null; const Ue = fe.getLinesContent(), ut = ve.getLinesContent(); return new qRe(Ue, ut, { shouldComputeCharChanges: !1, shouldPostProcessCharChanges: !1, shouldIgnoreTrimWhitespace: W, shouldMakePrettyDiff: !0, maxComputationTime: 1e3 }).computeDiff().changes; }); } computeMoreMinimalEdits(T, L, W) { return LS(this, void 0, void 0, function* () { const fe = this._getModel(T); if (!fe) return L; const ve = []; let Ue; L = L.slice(0).sort((ut, Ct) => { if (ut.range && Ct.range) return yc.compareRangesUsingStarts(ut.range, Ct.range); const Ne = ut.range ? 0 : 1, Ye = Ct.range ? 0 : 1; return Ne - Ye; }); for (let { range: ut, text: Ct, eol: Ne } of L) { if (typeof Ne == "number" && (Ue = Ne), yc.isEmpty(ut) && !Ct) continue; const Ye = fe.getValueInRange(ut); if (Ct = Ct.replace(/\r\n|\n|\r/g, fe.eol), Ye === Ct) continue; if (Math.max(Ct.length, Ye.length) > nA._diffLimit) { ve.push({ range: ut, text: Ct }); continue; } const cn = Vlt(Ye, Ct, W), En = fe.offsetAt(yc.lift(ut).getStartPosition()); for (const ni of cn) { const Ei = fe.positionAt(En + ni.originalStart), Ni = fe.positionAt(En + ni.originalStart + ni.originalLength), wo = { text: Ct.substr(ni.modifiedStart, ni.modifiedLength), range: { startLineNumber: Ei.lineNumber, startColumn: Ei.column, endLineNumber: Ni.lineNumber, endColumn: Ni.column } }; fe.getValueInRange(wo.range) !== wo.text && ve.push(wo); } } return typeof Ue == "number" && ve.push({ eol: Ue, text: "", range: { startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0 } }), ve; }); } computeHumanReadableDiff(T, L, W) { return LS(this, void 0, void 0, function* () { const fe = this._getModel(T); if (!fe) return L; const ve = []; let Ue; L = L.slice(0).sort((ut, Ct) => { if (ut.range && Ct.range) return yc.compareRangesUsingStarts(ut.range, Ct.range); const Ne = ut.range ? 0 : 1, Ye = Ct.range ? 0 : 1; return Ne - Ye; }); for (let { range: ut, text: Ct, eol: Ne } of L) { let Ni = function(Vn, un) { return new vm(Vn.lineNumber + un.lineNumber - 1, un.lineNumber === 1 ? Vn.column + un.column - 1 : un.column); }, wo = function(Vn, un) { const Yi = []; for (let $i = un.startLineNumber; $i <= un.endLineNumber; $i++) { const ts = Vn[$i - 1]; $i === un.startLineNumber && $i === un.endLineNumber ? Yi.push(ts.substring(un.startColumn - 1, un.endColumn - 1)) : $i === un.startLineNumber ? Yi.push(ts.substring(un.startColumn - 1)) : $i === un.endLineNumber ? Yi.push(ts.substring(0, un.endColumn - 1)) : Yi.push(ts); } return Yi; }; if (typeof Ne == "number" && (Ue = Ne), yc.isEmpty(ut) && !Ct) continue; const Ye = fe.getValueInRange(ut); if (Ct = Ct.replace(/\r\n|\n|\r/g, fe.eol), Ye === Ct) continue; if (Math.max(Ct.length, Ye.length) > nA._diffLimit) { ve.push({ range: ut, text: Ct }); continue; } const cn = Ye.split(/\r\n|\n|\r/), En = Ct.split(/\r\n|\n|\r/), ni = Loe.experimental.computeDiff(cn, En, W), Ei = yc.lift(ut).getStartPosition(); for (const Vn of ni.changes) if (Vn.innerChanges) for (const un of Vn.innerChanges) ve.push({ range: yc.fromPositions(Ni(Ei, un.originalRange.getStartPosition()), Ni(Ei, un.originalRange.getEndPosition())), text: wo(En, un.modifiedRange).join(fe.eol) }); else throw new JL("The experimental diff algorithm always produces inner changes"); } return typeof Ue == "number" && ve.push({ eol: Ue, text: "", range: { startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0 } }), ve; }); } // ---- END minimal edits --------------------------------------------------------------- computeLinks(T) { return LS(this, void 0, void 0, function* () { const L = this._getModel(T); return L ? mct(L) : null; }); } textualSuggest(T, L, W, fe) { return LS(this, void 0, void 0, function* () { const ve = new ZV(!0), Ue = new RegExp(W, fe), ut = /* @__PURE__ */ new Set(); e: for (const Ct of T) { const Ne = this._getModel(Ct); if (Ne) { for (const Ye of Ne.words(Ue)) if (!(Ye === L || !isNaN(Number(Ye))) && (ut.add(Ye), ut.size > nA._suggestionsLimit)) break e; } } return { words: Array.from(ut), duration: ve.elapsed() }; }); } // ---- END suggest -------------------------------------------------------------------------- //#region -- word ranges -- computeWordRanges(T, L, W, fe) { return LS(this, void 0, void 0, function* () { const ve = this._getModel(T); if (!ve) return /* @__PURE__ */ Object.create(null); const Ue = new RegExp(W, fe), ut = /* @__PURE__ */ Object.create(null); for (let Ct = L.startLineNumber; Ct < L.endLineNumber; Ct++) { const Ne = ve.getLineWords(Ct, Ue); for (const Ye of Ne) { if (!isNaN(Number(Ye.word))) continue; let cn = ut[Ye.word]; cn || (cn = [], ut[Ye.word] = cn), cn.push({ startLineNumber: Ct, startColumn: Ye.startColumn, endLineNumber: Ct, endColumn: Ye.endColumn }); } } return ut; }); } //#endregion navigateValueSet(T, L, W, fe, ve) { return LS(this, void 0, void 0, function* () { const Ue = this._getModel(T); if (!Ue) return null; const ut = new RegExp(fe, ve); L.startColumn === L.endColumn && (L = { startLineNumber: L.startLineNumber, startColumn: L.startColumn, endLineNumber: L.endLineNumber, endColumn: L.endColumn + 1 }); const Ct = Ue.getValueInRange(L), Ne = Ue.getWordAtPosition({ lineNumber: L.startLineNumber, column: L.startColumn }, ut); if (!Ne) return null; const Ye = Ue.getValueInRange(Ne); return Foe.INSTANCE.navigateValueSet(L, Ct, Ne, Ye, W); }); } // ---- BEGIN foreign module support -------------------------------------------------------------------------- loadForeignModule(T, L, W) { const Ue = { host: blt(W, (ut, Ct) => this._host.fhr(ut, Ct)), getMirrorModels: () => this._getModels() }; return this._foreignModuleFactory ? (this._foreignModule = this._foreignModuleFactory(Ue, L), Promise.resolve(Roe(this._foreignModule))) : Promise.reject(new Error("Unexpected usage")); } // foreign method request fmr(T, L) { if (!this._foreignModule || typeof this._foreignModule[T] != "function") return Promise.reject(new Error("Missing requestHandler or method: " + T)); try { return Promise.resolve(this._foreignModule[T].apply(this._foreignModule, L)); } catch (W) { return Promise.reject(W); } } } nA._diffLimit = 1e5; nA._suggestionsLimit = 1e4; typeof importScripts == "function" && (globalThis.monaco = Sct()); let Joe = !1; function JRe(h) { if (Joe) return; Joe = !0; const T = new Glt((L) => { globalThis.postMessage(L); }, (L) => new nA(L, h)); globalThis.onmessage = (L) => { T.onmessage(L.data); }; } globalThis.onmessage = (h) => { Joe || JRe(null); }; /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ var Qct = Object.defineProperty, Zct = (h, T) => { for (var L in T) Qct(h, L, { get: T[L], enumerable: !0 }); }, KRe = {}; Zct(KRe, { EndOfLineState: () => nut, IndentStyle: () => iut, ScriptKind: () => HL, ScriptTarget: () => aut, TokenClass: () => out, createClassifier: () => eut, createLanguageService: () => XRe, displayPartsToString: () => tut, flattenDiagnosticMessageText: () => rut, typescript: () => YRe }); var zb = void 0, HV = { exports: {} }, Xb = (() => { var h = Object.defineProperty, T = Object.getOwnPropertyNames, L = (e, t) => function() { return e && (t = (0, e[T(e)[0]])(e = 0)), t; }, W = (e, t) => function() { return t || (0, e[T(e)[0]])((t = { exports: {} }).exports, t), t.exports; }, fe = (e, t) => { for (var r in t) h(e, r, { get: t[r], enumerable: !0 }); }, ve, Ue, ut, Ct = L({ "src/compiler/corePublic.ts"() { ve = "5.0", Ue = "5.0.2", ut = /* @__PURE__ */ ((e) => (e[e.LessThan = -1] = "LessThan", e[e.EqualTo = 0] = "EqualTo", e[e.GreaterThan = 1] = "GreaterThan", e))(ut || {}); } }); function Ne(e) { return e ? e.length : 0; } function Ye(e, t) { if (e) for (let r = 0; r < e.length; r++) { const i = t(e[r], r); if (i) return i; } } function cn(e, t) { if (e) for (let r = e.length - 1; r >= 0; r--) { const i = t(e[r], r); if (i) return i; } } function En(e, t) { if (e !== void 0) for (let r = 0; r < e.length; r++) { const i = t(e[r], r); if (i !== void 0) return i; } } function ni(e, t) { for (const r of e) { const i = t(r); if (i !== void 0) return i; } } function Ei(e, t, r) { let i = r; if (e) { let o = 0; for (const s of e) i = t(i, s, o), o++; } return i; } function Ni(e, t, r) { const i = []; D.assertEqual(e.length, t.length); for (let o = 0; o < e.length; o++) i.push(r(e[o], t[o], o)); return i; } function wo(e, t) { if (e.length <= 1) return e; const r = []; for (let i = 0, o = e.length; i < o; i++) i && r.push(t), r.push(e[i]); return r; } function Vn(e, t) { if (e) { for (let r = 0; r < e.length; r++) if (!t(e[r], r)) return !1; } return !0; } function un(e, t, r) { if (e !== void 0) for (let i = r ?? 0; i < e.length; i++) { const o = e[i]; if (t(o, i)) return o; } } function Yi(e, t, r) { if (e !== void 0) for (let i = r ?? e.length - 1; i >= 0; i--) { const o = e[i]; if (t(o, i)) return o; } } function $i(e, t, r) { if (e === void 0) return -1; for (let i = r ?? 0; i < e.length; i++) if (t(e[i], i)) return i; return -1; } function ts(e, t, r) { if (e === void 0) return -1; for (let i = r ?? e.length - 1; i >= 0; i--) if (t(e[i], i)) return i; return -1; } function td(e, t) { for (let r = 0; r < e.length; r++) { const i = t(e[r], r); if (i) return i; } return D.fail(); } function Ii(e, t, r = N0) { if (e) { for (const i of e) if (r(i, t)) return !0; } return !1; } function oa(e, t, r = N0) { return e.length === t.length && e.every((i, o) => r(i, t[o])); } function na(e, t, r) { for (let i = r || 0; i < e.length; i++) if (Ii(t, e.charCodeAt(i))) return i; return -1; } function xa(e, t) { let r = 0; if (e) for (let i = 0; i < e.length; i++) { const o = e[i]; t(o, i) && r++; } return r; } function yn(e, t) { if (e) { const r = e.length; let i = 0; for (; i < r && t(e[i]); ) i++; if (i < r) { const o = e.slice(0, i); for (i++; i < r; ) { const s = e[i]; t(s) && o.push(s), i++; } return o; } } return e; } function ua(e, t) { let r = 0; for (let i = 0; i < e.length; i++) t(e[i], i, e) && (e[r] = e[i], r++); e.length = r; } function ms(e) { e.length = 0; } function rn(e, t) { let r; if (e) { r = []; for (let i = 0; i < e.length; i++) r.push(t(e[i], i)); } return r; } function* Fp(e, t) { for (const r of e) yield t(r); } function Xl(e, t) { if (e) for (let r = 0; r < e.length; r++) { const i = e[r], o = t(i, r); if (i !== o) { const s = e.slice(0, r); for (s.push(o), r++; r < e.length; r++) s.push(t(e[r], r)); return s; } } return e; } function nd(e) { const t = []; for (const r of e) r && (Ga(r) ? yi(t, r) : t.push(r)); return t; } function Mo(e, t) { let r; if (e) for (let i = 0; i < e.length; i++) { const o = t(e[i], i); o && (Ga(o) ? r = yi(r, o) : r = Fn(r, o)); } return r || nt; } function ty(e, t) { const r = []; if (e) for (let i = 0; i < e.length; i++) { const o = t(e[i], i); o && (Ga(o) ? yi(r, o) : r.push(o)); } return r; } function* qD(e, t) { for (const r of e) { const i = t(r); i && (yield* i); } } function aA(e, t) { let r; if (e) for (let i = 0; i < e.length; i++) { const o = e[i], s = t(o, i); (r || o !== s || Ga(s)) && (r || (r = e.slice(0, i)), Ga(s) ? yi(r, s) : r.push(s)); } return r || e; } function JD(e, t) { const r = []; for (let i = 0; i < e.length; i++) { const o = t(e[i], i); if (o === void 0) return; r.push(o); } return r; } function _a(e, t) { const r = []; if (e) for (let i = 0; i < e.length; i++) { const o = t(e[i], i); o !== void 0 && r.push(o); } return r; } function* KD(e, t) { for (const r of e) { const i = t(r); i !== void 0 && (yield i); } } function $Re(e, t) { if (!e) return; const r = /* @__PURE__ */ new Map(); return e.forEach((i, o) => { const s = t(o, i); if (s !== void 0) { const [c, f] = s; c !== void 0 && f !== void 0 && r.set(c, f); } }), r; } function XD(e, t, r) { if (e.has(t)) return e.get(t); const i = r(); return e.set(t, i), i; } function Yb(e, t) { return e.has(t) ? !1 : (e.add(t), !0); } function* QRe(e) { yield e; } function vP(e, t, r) { let i; if (e) { i = []; const o = e.length; let s, c, f = 0, d = 0; for (; f < o; ) { for (; d < o; ) { const y = e[d]; if (c = t(y, d), d === 0) s = c; else if (c !== s) break; d++; } if (f < d) { const y = r(e.slice(f, d), s, f, d); y && i.push(y), f = d; } s = c, d++; } } return i; } function Zoe(e, t) { if (!e) return; const r = /* @__PURE__ */ new Map(); return e.forEach((i, o) => { const [s, c] = t(o, i); r.set(s, c); }), r; } function kt(e, t) { if (e) if (t) { for (const r of e) if (t(r)) return !0; } else return e.length > 0; return !1; } function ej(e, t, r) { let i; for (let o = 0; o < e.length; o++) t(e[o]) ? i = i === void 0 ? o : i : i !== void 0 && (r(i, o), i = void 0); i !== void 0 && r(i, e.length); } function ha(e, t) { return kt(t) ? kt(e) ? [...e, ...t] : t : e; } function ZRe(e, t) { return t; } function YD(e) { return e.map(ZRe); } function eNe(e, t, r) { const i = YD(e); nse(e, i, r); let o = e[i[0]]; const s = [i[0]]; for (let c = 1; c < i.length; c++) { const f = i[c], d = e[f]; t(o, d) || (s.push(f), o = d); } return s.sort(), s.map((c) => e[c]); } function tNe(e, t) { const r = []; for (const i of e) a_(r, i, t); return r; } function oA(e, t, r) { return e.length === 0 ? [] : e.length === 1 ? e.slice() : r ? eNe(e, t, r) : tNe(e, t); } function nNe(e, t) { if (e.length === 0) return nt; let r = e[0]; const i = [r]; for (let o = 1; o < e.length; o++) { const s = e[o]; switch (t(s, r)) { case !0: case 0: continue; case -1: return D.fail("Array is unsorted."); } i.push(r = s); } return i; } function tj() { return []; } function fv(e, t, r, i) { if (e.length === 0) return e.push(t), !0; const o = _v(e, t, _l, r); return o < 0 ? (e.splice(~o, 0, t), !0) : i ? (e.splice(o, 0, t), !0) : !1; } function $D(e, t, r) { return nNe(KL(e, t), r || t || Lu); } function ese(e, t) { if (e.length < 2) return !0; for (let r = 1, i = e.length; r < i; r++) if (t(e[r - 1], e[r]) === 1) return !1; return !0; } function bP(e, t, r, i) { let o = 3; if (e.length < 2) return o; let s = t(e[0]); for (let c = 1, f = e.length; c < f && o !== 0; c++) { const d = t(e[c]); o & 1 && r(s, d) > 0 && (o &= -2), o & 2 && i(s, d) > 0 && (o &= -3), s = d; } return o; } function Bp(e, t, r = N0) { if (!e || !t) return e === t; if (e.length !== t.length) return !1; for (let i = 0; i < e.length; i++) if (!r(e[i], t[i], i)) return !1; return !0; } function QD(e) { let t; if (e) for (let r = 0; r < e.length; r++) { const i = e[r]; (t || !i) && (t || (t = e.slice(0, r)), i && t.push(i)); } return t || e; } function tse(e, t, r) { if (!t || !e || t.length === 0 || e.length === 0) return t; const i = []; e: for (let o = 0, s = 0; s < t.length; s++) { s > 0 && D.assertGreaterThanOrEqual(r(t[s], t[s - 1]), 0); t: for (const c = o; o < e.length; o++) switch (o > c && D.assertGreaterThanOrEqual(r(e[o], e[o - 1]), 0), r(t[s], e[o])) { case -1: i.push(t[s]); continue e; case 0: continue e; case 1: continue t; } } return i; } function Fn(e, t) { return t === void 0 ? e : e === void 0 ? [t] : (e.push(t), e); } function sA(e, t) { return e === void 0 ? t : t === void 0 ? e : Ga(e) ? Ga(t) ? ha(e, t) : Fn(e, t) : Ga(t) ? Fn(t, e) : [e, t]; } function nj(e, t) { return t < 0 ? e.length + t : t; } function yi(e, t, r, i) { if (t === void 0 || t.length === 0) return e; if (e === void 0) return t.slice(r, i); r = r === void 0 ? 0 : nj(t, r), i = i === void 0 ? t.length : nj(t, i); for (let o = r; o < i && o < t.length; o++) t[o] !== void 0 && e.push(t[o]); return e; } function a_(e, t, r) { return Ii(e, t, r) ? !1 : (e.push(t), !0); } function ny(e, t, r) { return e ? (a_(e, t, r), e) : [t]; } function nse(e, t, r) { t.sort((i, o) => r(e[i], e[o]) || js(i, o)); } function KL(e, t) { return e.length === 0 ? e : e.slice().sort(t); } function* rNe(e) { for (let t = e.length - 1; t >= 0; t--) yield e[t]; } function ry(e, t) { const r = YD(e); return nse(e, r, t), r.map((i) => e[i]); } function rj(e, t, r, i) { for (; r < i; ) { if (e[r] !== t[r]) return !1; r++; } return !0; } function Wc(e) { return e === void 0 || e.length === 0 ? void 0 : e[0]; } function EP(e) { if (e) for (const t of e) return t; } function ss(e) { return D.assert(e.length !== 0), e[0]; } function rse(e) { for (const t of e) return t; D.fail("iterator is empty"); } function Zs(e) { return e === void 0 || e.length === 0 ? void 0 : e[e.length - 1]; } function Ho(e) { return D.assert(e.length !== 0), e[e.length - 1]; } function bm(e) { return e && e.length === 1 ? e[0] : void 0; } function ij(e) { return D.checkDefined(bm(e)); } function Em(e) { return e && e.length === 1 ? e[0] : e; } function aj(e, t, r) { const i = e.slice(0); return i[t] = r, i; } function _v(e, t, r, i, o) { return kS(e, r(t), r, i, o); } function kS(e, t, r, i, o) { if (!kt(e)) return -1; let s = o || 0, c = e.length - 1; for (; s <= c; ) { const f = s + (c - s >> 1), d = r(e[f], f); switch (i(d, t)) { case -1: s = f + 1; break; case 0: return f; case 1: c = f - 1; break; } } return ~s; } function Cu(e, t, r, i, o) { if (e && e.length > 0) { const s = e.length; if (s > 0) { let c = i === void 0 || i < 0 ? 0 : i; const f = o === void 0 || c + o > s - 1 ? s - 1 : c + o; let d; for (arguments.length <= 2 ? (d = e[c], c++) : d = r; c <= f; ) d = t(d, e[c], c), c++; return d; } } return r; } function Ns(e, t) { return oy.call(e, t); } function ZD(e, t) { return oy.call(e, t) ? e[t] : void 0; } function Xh(e) { const t = []; for (const r in e) oy.call(e, r) && t.push(r); return t; } function iNe(e) { const t = []; do { const r = Object.getOwnPropertyNames(e); for (const i of r) a_(t, i); } while (e = Object.getPrototypeOf(e)); return t; } function wS(e) { const t = []; for (const r in e) oy.call(e, r) && t.push(e[r]); return t; } function ise(e, t) { const r = new Array(e); for (let i = 0; i < e; i++) r[i] = t(i); return r; } function ko(e, t) { const r = []; for (const i of e) r.push(t ? t(i) : i); return r; } function eR(e, ...t) { for (const r of t) if (r !== void 0) for (const i in r) Ns(r, i) && (e[i] = r[i]); return e; } function ase(e, t, r = N0) { if (e === t) return !0; if (!e || !t) return !1; for (const i in e) if (oy.call(e, i) && (!oy.call(t, i) || !r(e[i], t[i]))) return !1; for (const i in t) if (oy.call(t, i) && !oy.call(e, i)) return !1; return !0; } function $b(e, t, r = _l) { const i = /* @__PURE__ */ new Map(); for (const o of e) { const s = t(o); s !== void 0 && i.set(s, r(o)); } return i; } function ose(e, t, r = _l) { const i = []; for (const o of e) i[t(o)] = r(o); return i; } function tR(e, t, r = _l) { const i = o_(); for (const o of e) i.add(t(o), r(o)); return i; } function XL(e, t, r = _l) { return ko(tR(e, t).values(), r); } function sse(e, t) { var r; const i = {}; if (e) for (const o of e) { const s = `${t(o)}`; ((r = i[s]) != null ? r : i[s] = []).push(o); } return i; } function oj(e) { const t = {}; for (const r in e) oy.call(e, r) && (t[r] = e[r]); return t; } function TP(e, t) { const r = {}; for (const i in t) oy.call(t, i) && (r[i] = t[i]); for (const i in e) oy.call(e, i) && (r[i] = e[i]); return r; } function sj(e, t) { for (const r in t) oy.call(t, r) && (e[r] = t[r]); } function Fo(e, t) { return t ? t.bind(e) : void 0; } function o_() { const e = /* @__PURE__ */ new Map(); return e.add = aNe, e.remove = oNe, e; } function aNe(e, t) { let r = this.get(e); return r ? r.push(t) : this.set(e, r = [t]), r; } function oNe(e, t) { const r = this.get(e); r && (iR(r, t), r.length || this.delete(e)); } function lse() { return o_(); } function lj(e) { const t = (e == null ? void 0 : e.slice()) || []; let r = 0; function i() { return r === t.length; } function o(...c) { t.push(...c); } function s() { if (i()) throw new Error("Queue is empty"); const c = t[r]; if (t[r] = void 0, r++, r > 100 && r > t.length >> 1) { const f = t.length - r; t.copyWithin(0, r), t.length = f, r = 0; } return c; } return { enqueue: o, dequeue: s, isEmpty: i }; } function sNe(e, t) { const r = /* @__PURE__ */ new Map(); let i = 0; function* o() { for (const c of r.values()) Ga(c) ? yield* c : yield c; } const s = { has(c) { const f = e(c); if (!r.has(f)) return !1; const d = r.get(f); if (!Ga(d)) return t(d, c); for (const y of d) if (t(y, c)) return !0; return !1; }, add(c) { const f = e(c); if (r.has(f)) { const d = r.get(f); if (Ga(d)) Ii(d, c, t) || (d.push(c), i++); else { const y = d; t(y, c) || (r.set(f, [y, c]), i++); } } else r.set(f, c), i++; return this; }, delete(c) { const f = e(c); if (!r.has(f)) return !1; const d = r.get(f); if (Ga(d)) { for (let y = 0; y < d.length; y++) if (t(d[y], c)) return d.length === 1 ? r.delete(f) : d.length === 2 ? r.set(f, d[1 - y]) : uj(d, y), i--, !0; } else if (t(d, c)) return r.delete(f), i--, !0; return !1; }, clear() { r.clear(), i = 0; }, get size() { return i; }, forEach(c) { for (const f of ko(r.values())) if (Ga(f)) for (const d of f) c(d, d, s); else { const d = f; c(d, d, s); } }, keys() { return o(); }, values() { return o(); }, *entries() { for (const c of o()) yield [c, c]; }, [Symbol.iterator]: () => o(), [Symbol.toStringTag]: r[Symbol.toStringTag] }; return s; } function Ga(e) { return Array.isArray(e); } function nR(e) { return Ga(e) ? e : [e]; } function Va(e) { return typeof e == "string"; } function iy(e) { return typeof e == "number"; } function ri(e, t) { return e !== void 0 && t(e) ? e : void 0; } function ro(e, t) { return e !== void 0 && t(e) ? e : D.fail(`Invalid cast. The supplied value ${e} did not pass the test '${D.getFunctionName(t)}'.`); } function io(e) { } function Qb() { return !1; } function Zb() { return !0; } function R0() { } function _l(e) { return e; } function cse(e) { return e.toLowerCase(); } function I_(e) { return mj.test(e) ? e.replace(mj, cse) : e; } function ja() { throw new Error("Not implemented"); } function hd(e) { let t; return () => (e && (t = e(), e = void 0), t); } function Tm(e) { const t = /* @__PURE__ */ new Map(); return (r) => { const i = `${typeof r}:${r}`; let o = t.get(i); return o === void 0 && !t.has(i) && (o = e(r), t.set(i, o)), o; }; } function lNe(e) { const t = /* @__PURE__ */ new WeakMap(); return (r) => { let i = t.get(r); return i === void 0 && !t.has(r) && (i = e(r), t.set(r, i)), i; }; } function use(e, t) { return (...r) => { let i = t.get(r); return i === void 0 && !t.has(r) && (i = e(...r), t.set(r, i)), i; }; } function cNe(e, t, r, i, o) { if (o) { const s = []; for (let c = 0; c < arguments.length; c++) s[c] = arguments[c]; return (c) => Cu(s, (f, d) => d(f), c); } else return i ? (s) => i(r(t(e(s)))) : r ? (s) => r(t(e(s))) : t ? (s) => t(e(s)) : e ? (s) => e(s) : (s) => s; } function N0(e, t) { return e === t; } function DS(e, t) { return e === t || e !== void 0 && t !== void 0 && e.toUpperCase() === t.toUpperCase(); } function RS(e, t) { return N0(e, t); } function dse(e, t) { return e === t ? 0 : e === void 0 ? -1 : t === void 0 ? 1 : e < t ? -1 : 1; } function js(e, t) { return dse(e, t); } function SP(e, t) { return js(e == null ? void 0 : e.start, t == null ? void 0 : t.start) || js(e == null ? void 0 : e.length, t == null ? void 0 : t.length); } function cj(e, t) { return Cu(e, (r, i) => t(r, i) === -1 ? r : i); } function xP(e, t) { return e === t ? 0 : e === void 0 ? -1 : t === void 0 ? 1 : (e = e.toUpperCase(), t = t.toUpperCase(), e < t ? -1 : e > t ? 1 : 0); } function fse(e, t) { return e === t ? 0 : e === void 0 ? -1 : t === void 0 ? 1 : (e = e.toLowerCase(), t = t.toLowerCase(), e < t ? -1 : e > t ? 1 : 0); } function Lu(e, t) { return dse(e, t); } function AP(e) { return e ? xP : Lu; } function _se() { return NP; } function pse(e) { NP !== e && (NP = e, gj = void 0); } function rR(e, t) { return (gj || (gj = Ase(NP)))(e, t); } function mse(e, t, r, i) { return e === t ? 0 : e === void 0 ? -1 : t === void 0 ? 1 : i(e[r], t[r]); } function e1(e, t) { return js(e ? 1 : 0, t ? 1 : 0); } function YL(e, t, r) { const i = Math.max(2, Math.floor(e.length * 0.34)); let o = Math.floor(e.length * 0.4) + 1, s; for (const c of t) { const f = r(c); if (f !== void 0 && Math.abs(f.length - e.length) <= i) { if (f === e || f.length < 3 && f.toLowerCase() !== e.toLowerCase()) continue; const d = uNe(e, f, o - 0.1); if (d === void 0) continue; D.assert(d < o), o = d, s = c; } } return s; } function uNe(e, t, r) { let i = new Array(t.length + 1), o = new Array(t.length + 1); const s = r + 0.01; for (let f = 0; f <= t.length; f++) i[f] = f; for (let f = 1; f <= e.length; f++) { const d = e.charCodeAt(f - 1), y = Math.ceil(f > r ? f - r : 1), m = Math.floor(t.length > r + f ? r + f : t.length); o[0] = f; let b = f; for (let C = 1; C < y; C++) o[C] = s; for (let C = y; C <= m; C++) { const I = e[f - 1].toLowerCase() === t[C - 1].toLowerCase() ? i[C - 1] + 0.1 : i[C - 1] + 2, O = d === t.charCodeAt(C - 1) ? i[C - 1] : Math.min(i[C] + 1, o[C - 1] + 1, I); o[C] = O, b = Math.min(b, O); } for (let C = m + 1; C <= t.length; C++) o[C] = s; if (b > r) return; const A = i; i = o, o = A; } const c = i[t.length]; return c > r ? void 0 : c; } function tc(e, t) { const r = e.length - t.length; return r >= 0 && e.indexOf(t, r) === r; } function lA(e, t) { return tc(e, t) ? e.slice(0, e.length - t.length) : e; } function hse(e, t) { return tc(e, t) ? e.slice(0, e.length - t.length) : void 0; } function lu(e, t) { return e.indexOf(t) !== -1; } function gse(e) { let t = e.length; for (let r = t - 1; r > 0; r--) { let i = e.charCodeAt(r); if (i >= 48 && i <= 57) do --r, i = e.charCodeAt(r); while (r > 0 && i >= 48 && i <= 57); else if (r > 4 && (i === 110 || i === 78)) { if (--r, i = e.charCodeAt(r), i !== 105 && i !== 73 || (--r, i = e.charCodeAt(r), i !== 109 && i !== 77)) break; --r, i = e.charCodeAt(r); } else break; if (i !== 45 && i !== 46) break; t = r; } return t === e.length ? e : e.slice(0, t); } function CP(e, t) { for (let r = 0; r < e.length; r++) if (e[r] === t) return t1(e, r), !0; return !1; } function t1(e, t) { for (let r = t; r < e.length - 1; r++) e[r] = e[r + 1]; e.pop(); } function uj(e, t) { e[t] = e[e.length - 1], e.pop(); } function iR(e, t) { return dNe(e, (r) => r === t); } function dNe(e, t) { for (let r = 0; r < e.length; r++) if (t(e[r])) return uj(e, r), !0; return !1; } function $c(e) { return e ? _l : I_; } function yse({ prefix: e, suffix: t }) { return `${e}*${t}`; } function vse(e, t) { return D.assert(LP(e, t)), t.substring(e.prefix.length, t.length - e.suffix.length); } function dj(e, t, r) { let i, o = -1; for (const s of e) { const c = t(s); LP(c, r) && c.prefix.length > o && (o = c.prefix.length, i = s); } return i; } function Ea(e, t) { return e.lastIndexOf(t, 0) === 0; } function $L(e, t) { return Ea(e, t) ? e.substr(t.length) : e; } function fj(e, t, r = _l) { return Ea(r(e), r(t)) ? e.substring(t.length) : void 0; } function LP({ prefix: e, suffix: t }, r) { return r.length >= e.length + t.length && Ea(r, e) && tc(r, t); } function IP(e, t) { return (r) => e(r) && t(r); } function Sm(...e) { return (...t) => { let r; for (const i of e) if (r = i(...t), r) return r; return r; }; } function kP(e) { return (...t) => !e(...t); } function fNe(e) { } function WE(e) { return e === void 0 ? void 0 : [e]; } function bse(e, t, r, i, o, s) { s = s || io; let c = 0, f = 0; const d = e.length, y = t.length; let m = !1; for (; c < d && f < y; ) { const b = e[c], A = t[f], C = r(b, A); C === -1 ? (i(b), c++, m = !0) : C === 1 ? (o(A), f++, m = !0) : (s(A, b), c++, f++); } for (; c < d; ) i(e[c++]), m = !0; for (; f < y; ) o(t[f++]), m = !0; return m; } function Ese(e) { const t = []; return Tse(e, t, void 0, 0), t; } function Tse(e, t, r, i) { for (const o of e[i]) { let s; r ? (s = r.slice(), s.push(o)) : s = [o], i === e.length - 1 ? t.push(s) : Tse(e, t, s, i + 1); } } function NS(e, t, r = " ") { return t <= e.length ? e : r.repeat(t - e.length) + e; } function _Ne(e, t, r = " ") { return t <= e.length ? e : e + r.repeat(t - e.length); } function wP(e, t) { if (e) { const r = e.length; let i = 0; for (; i < r && t(e[i]); ) i++; return e.slice(0, i); } } function Sse(e, t) { if (e) { const r = e.length; let i = 0; for (; i < r && t(e[i]); ) i++; return e.slice(i); } } function pNe(e) { let t = e.length - 1; for (; t >= 0 && Zh(e.charCodeAt(t)); ) t--; return e.slice(0, t + 1); } function _j() { return typeof process < "u" && process.nextTick && !process.browser && typeof HV == "object"; } var nt, DP, xse, pj, ay, oy, RP, mj, hj, Ase, gj, NP, n1, aR, QL, mNe = L({ "src/compiler/core.ts"() { Ra(), nt = [], DP = /* @__PURE__ */ new Map(), xse = /* @__PURE__ */ new Set(), pj = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.CaseSensitive = 1] = "CaseSensitive", e[e.CaseInsensitive = 2] = "CaseInsensitive", e[e.Both = 3] = "Both", e))(pj || {}), ay = Array.prototype.at ? (e, t) => e == null ? void 0 : e.at(t) : (e, t) => { if (e && (t = nj(e, t), t < e.length)) return e[t]; }, oy = Object.prototype.hasOwnProperty, RP = { push: io, length: 0 }, mj = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g, hj = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Normal = 1] = "Normal", e[e.Aggressive = 2] = "Aggressive", e[e.VeryAggressive = 3] = "VeryAggressive", e))(hj || {}), Ase = (() => { let e, t; const r = f(); return d; function i(y, m, b) { if (y === m) return 0; if (y === void 0) return -1; if (m === void 0) return 1; const A = b(y, m); return A < 0 ? -1 : A > 0 ? 1 : 0; } function o(y) { const m = new Intl.Collator(y, { usage: "sort", sensitivity: "variant" }).compare; return (b, A) => i(b, A, m); } function s(y) { if (y !== void 0) return c(); return (b, A) => i(b, A, m); function m(b, A) { return b.localeCompare(A); } } function c() { return (b, A) => i(b, A, y); function y(b, A) { return m(b.toUpperCase(), A.toUpperCase()) || m(b, A); } function m(b, A) { return b < A ? -1 : b > A ? 1 : 0; } } function f() { return typeof Intl == "object" && typeof Intl.Collator == "function" ? o : typeof String.prototype.localeCompare == "function" && typeof String.prototype.toLocaleUpperCase == "function" && "a".localeCompare("B") < 0 ? s : c; } function d(y) { return y === void 0 ? e || (e = r(y)) : y === "en-US" ? t || (t = r(y)) : r(y); } })(), n1 = String.prototype.trim ? (e) => e.trim() : (e) => aR(QL(e)), aR = String.prototype.trimEnd ? (e) => e.trimEnd() : pNe, QL = String.prototype.trimStart ? (e) => e.trimStart() : (e) => e.replace(/^\s+/g, ""); } }), yj, D, hNe = L({ "src/compiler/debug.ts"() { Ra(), Ra(), yj = /* @__PURE__ */ ((e) => (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))(yj || {}), ((e) => { let t = 0; e.currentLogLevel = 2, e.isDebugging = !1; function r(Ht) { return e.currentLogLevel <= Ht; } e.shouldLog = r; function i(Ht, ln) { e.loggingHost && r(Ht) && e.loggingHost.log(Ht, ln); } function o(Ht) { i(3, Ht); } e.log = o, ((Ht) => { function ln(_i) { i(1, _i); } Ht.error = ln; function rr(_i) { i(2, _i); } Ht.warn = rr; function lr(_i) { i(3, _i); } Ht.log = lr; function Di(_i) { i(4, _i); } Ht.trace = Di; })(o = e.log || (e.log = {})); const s = {}; function c() { return t; } e.getAssertionLevel = c; function f(Ht) { const ln = t; if (t = Ht, Ht > ln) for (const rr of Xh(s)) { const lr = s[rr]; lr !== void 0 && e[rr] !== lr.assertion && Ht >= lr.level && (e[rr] = lr, s[rr] = void 0); } } e.setAssertionLevel = f; function d(Ht) { return t >= Ht; } e.shouldAssert = d; function y(Ht, ln) { return d(Ht) ? !0 : (s[ln] = { level: Ht, assertion: e[ln] }, e[ln] = io, !1); } function m(Ht, ln) { const rr = new Error(Ht ? `Debug Failure. ${Ht}` : "Debug Failure."); throw Error.captureStackTrace && Error.captureStackTrace(rr, ln || m), rr; } e.fail = m; function b(Ht, ln, rr) { return m(`${ln || "Unexpected node."}\r Node ${$e(Ht.kind)} was unexpected.`, rr || b); } e.failBadSyntaxKind = b; function A(Ht, ln, rr, lr) { Ht || (ln = ln ? `False expression: ${ln}` : "False expression.", rr && (ln += `\r Verbose Debug Information: ` + (typeof rr == "string" ? rr : rr())), m(ln, lr || A)); } e.assert = A; function C(Ht, ln, rr, lr, Di) { if (Ht !== ln) { const _i = rr ? lr ? `${rr} ${lr}` : rr : ""; m(`Expected ${Ht} === ${ln}. ${_i}`, Di || C); } } e.assertEqual = C; function I(Ht, ln, rr, lr) { Ht >= ln && m(`Expected ${Ht} < ${ln}. ${rr || ""}`, lr || I); } e.assertLessThan = I; function O(Ht, ln, rr) { Ht > ln && m(`Expected ${Ht} <= ${ln}`, rr || O); } e.assertLessThanOrEqual = O; function k(Ht, ln, rr) { Ht < ln && m(`Expected ${Ht} >= ${ln}`, rr || k); } e.assertGreaterThanOrEqual = k; function B(Ht, ln, rr) { Ht == null && m(ln, rr || B); } e.assertIsDefined = B; function U(Ht, ln, rr) { return B(Ht, ln, rr || U), Ht; } e.checkDefined = U; function j(Ht, ln, rr) { for (const lr of Ht) B(lr, ln, rr || j); } e.assertEachIsDefined = j; function te(Ht, ln, rr) { return j(Ht, ln, rr || te), Ht; } e.checkEachDefined = te; function X(Ht, ln = "Illegal value:", rr) { const lr = typeof Ht == "object" && Ns(Ht, "kind") && Ns(Ht, "pos") ? "SyntaxKind: " + $e(Ht.kind) : JSON.stringify(Ht); return m(`${ln} ${lr}`, rr || X); } e.assertNever = X; function Y(Ht, ln, rr, lr) { y(1, "assertEachNode") && A(ln === void 0 || Vn(Ht, ln), rr || "Unexpected node.", () => `Node array did not pass test '${le(ln)}'.`, lr || Y); } e.assertEachNode = Y; function P(Ht, ln, rr, lr) { y(1, "assertNode") && A(Ht !== void 0 && (ln === void 0 || ln(Ht)), rr || "Unexpected node.", () => `Node ${$e(Ht == null ? void 0 : Ht.kind)} did not pass test '${le(ln)}'.`, lr || P); } e.assertNode = P; function ue(Ht, ln, rr, lr) { y(1, "assertNotNode") && A(Ht === void 0 || ln === void 0 || !ln(Ht), rr || "Unexpected node.", () => `Node ${$e(Ht.kind)} should not have passed test '${le(ln)}'.`, lr || ue); } e.assertNotNode = ue; function ne(Ht, ln, rr, lr) { y(1, "assertOptionalNode") && A(ln === void 0 || Ht === void 0 || ln(Ht), rr || "Unexpected node.", () => `Node ${$e(Ht == null ? void 0 : Ht.kind)} did not pass test '${le(ln)}'.`, lr || ne); } e.assertOptionalNode = ne; function ge(Ht, ln, rr, lr) { y(1, "assertOptionalToken") && A(ln === void 0 || Ht === void 0 || Ht.kind === ln, rr || "Unexpected node.", () => `Node ${$e(Ht == null ? void 0 : Ht.kind)} was not a '${$e(ln)}' token.`, lr || ge); } e.assertOptionalToken = ge; function ie(Ht, ln, rr) { y(1, "assertMissingNode") && A(Ht === void 0, ln || "Unexpected node.", () => `Node ${$e(Ht.kind)} was unexpected'.`, rr || ie); } e.assertMissingNode = ie; function H(Ht) { } e.type = H; function le(Ht) { if (typeof Ht != "function") return ""; if (Ns(Ht, "name")) return Ht.name; { const ln = Function.prototype.toString.call(Ht), rr = /^function\s+([\w\$]+)\s*\(/.exec(ln); return rr ? rr[1] : ""; } } e.getFunctionName = le; function pe(Ht) { return `{ name: ${Zi(Ht.escapedName)}; flags: ${Ke(Ht.flags)}; declarations: ${rn(Ht.declarations, (ln) => $e(ln.kind))} }`; } e.formatSymbol = pe; function ye(Ht = 0, ln, rr) { const lr = ee(ln); if (Ht === 0) return lr.length > 0 && lr[0][0] === 0 ? lr[0][1] : "0"; if (rr) { const Di = []; let _i = Ht; for (const [Rn, en] of lr) { if (Rn > Ht) break; Rn !== 0 && Rn & Ht && (Di.push(en), _i &= ~Rn); } if (_i === 0) return Di.join("|"); } else for (const [Di, _i] of lr) if (Di === Ht) return _i; return Ht.toString(); } e.formatEnum = ye; const Te = /* @__PURE__ */ new Map(); function ee(Ht) { const ln = Te.get(Ht); if (ln) return ln; const rr = []; for (const Di in Ht) { const _i = Ht[Di]; typeof _i == "number" && rr.push([_i, Di]); } const lr = ry(rr, (Di, _i) => js(Di[0], _i[0])); return Te.set(Ht, lr), lr; } function $e(Ht) { return ye(Ht, BP, !1); } e.formatSyntaxKind = $e; function Ge(Ht) { return ye(Ht, YP, !1); } e.formatSnippetKind = Ge; function Fe(Ht) { return ye(Ht, GP, !0); } e.formatNodeFlags = Fe; function We(Ht) { return ye(Ht, UP, !0); } e.formatModifierFlags = We; function Re(Ht) { return ye(Ht, XP, !0); } e.formatTransformFlags = Re; function Pe(Ht) { return ye(Ht, $P, !0); } e.formatEmitFlags = Pe; function Ke(Ht) { return ye(Ht, WP, !0); } e.formatSymbolFlags = Ke; function He(Ht) { return ye(Ht, zP, !0); } e.formatTypeFlags = He; function Me(Ht) { return ye(Ht, JP, !0); } e.formatSignatureFlags = Me; function ot(Ht) { return ye(Ht, qP, !0); } e.formatObjectFlags = ot; function At(Ht) { return ye(Ht, cR, !0); } e.formatFlowFlags = At; function bt(Ht) { return ye(Ht, VP, !0); } e.formatRelationComparisonResult = bt; function Vt(Ht) { return ye(Ht, x5, !0); } e.formatCheckMode = Vt; function et(Ht) { return ye(Ht, A5, !0); } e.formatSignatureCheckMode = et; function it(Ht) { return ye(Ht, T5, !0); } e.formatTypeFacts = it; let nn = !1, Xt; function On(Ht) { "__debugFlowFlags" in Ht || Object.defineProperties(Ht, { __tsDebuggerDisplay: { value() { const ln = 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", rr = this.flags & ~(2048 - 1); return `${ln}${rr ? ` (${At(rr)})` : ""}`; } }, __debugFlowFlags: { get() { return ye(this.flags, cR, !0); } }, __debugToString: { value() { return gn(this); } } }); } function Hn(Ht) { nn && (typeof Object.setPrototypeOf == "function" ? (Xt || (Xt = Object.create(Object.prototype), On(Xt)), Object.setPrototypeOf(Ht, Xt)) : On(Ht)); } e.attachFlowNodeDebugInfo = Hn; let In; function Yt(Ht) { "__tsDebuggerDisplay" in Ht || Object.defineProperties(Ht, { __tsDebuggerDisplay: { value(ln) { return ln = String(ln).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/, "]"), `NodeArray ${ln}`; } } }); } function fr(Ht) { nn && (typeof Object.setPrototypeOf == "function" ? (In || (In = Object.create(Array.prototype), Yt(In)), Object.setPrototypeOf(Ht, In)) : Yt(Ht)); } e.attachNodeArrayDebugInfo = fr; function xi() { if (nn) return; const Ht = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(); Object.defineProperties(Fc.getSymbolConstructor().prototype, { __tsDebuggerDisplay: { value() { const lr = this.flags & 33554432 ? "TransientSymbol" : "Symbol", Di = this.flags & -33554433; return `${lr} '${Nl(this)}'${Di ? ` (${Ke(Di)})` : ""}`; } }, __debugFlags: { get() { return Ke(this.flags); } } }), Object.defineProperties(Fc.getTypeConstructor().prototype, { __tsDebuggerDisplay: { value() { const lr = 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 & 67359327 ? `IntrinsicType ${this.intrinsicName}` : 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", Di = this.flags & 524288 ? this.objectFlags & -1344 : 0; return `${lr}${this.symbol ? ` '${Nl(this.symbol)}'` : ""}${Di ? ` (${ot(Di)})` : ""}`; } }, __debugFlags: { get() { return He(this.flags); } }, __debugObjectFlags: { get() { return this.flags & 524288 ? ot(this.objectFlags) : ""; } }, __debugTypeToString: { value() { let lr = Ht.get(this); return lr === void 0 && (lr = this.checker.typeToString(this), Ht.set(this, lr)), lr; } } }), Object.defineProperties(Fc.getSignatureConstructor().prototype, { __debugFlags: { get() { return Me(this.flags); } }, __debugSignatureToString: { value() { var lr; return (lr = this.checker) == null ? void 0 : lr.signatureToString(this); } } }); const rr = [ Fc.getNodeConstructor(), Fc.getIdentifierConstructor(), Fc.getTokenConstructor(), Fc.getSourceFileConstructor() ]; for (const lr of rr) Ns(lr.prototype, "__debugKind") || Object.defineProperties(lr.prototype, { __tsDebuggerDisplay: { value() { return `${El(this) ? "GeneratedIdentifier" : Ve(this) ? `Identifier '${Or(this)}'` : ki(this) ? `PrivateIdentifier '${Or(this)}'` : Go(this) ? `StringLiteral ${JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")}` : __(this) ? `NumericLiteral ${this.text}` : h7(this) ? `BigIntLiteral ${this.text}n` : Ol(this) ? "TypeParameterDeclaration" : Ma(this) ? "ParameterDeclaration" : jl(this) ? "ConstructorDeclaration" : U_(this) ? "GetAccessorDeclaration" : Kf(this) ? "SetAccessorDeclaration" : sC(this) ? "CallSignatureDeclaration" : yO(this) ? "ConstructSignatureDeclaration" : hx(this) ? "IndexSignatureDeclaration" : b7(this) ? "TypePredicateNode" : V_(this) ? "TypeReferenceNode" : Eh(this) ? "FunctionTypeNode" : gk(this) ? "ConstructorTypeNode" : yk(this) ? "TypeQueryNode" : rf(this) ? "TypeLiteralNode" : Yq(this) ? "ArrayTypeNode" : lC(this) ? "TupleTypeNode" : $q(this) ? "OptionalTypeNode" : Qq(this) ? "RestTypeNode" : gx(this) ? "UnionTypeNode" : vO(this) ? "IntersectionTypeNode" : cC(this) ? "ConditionalTypeNode" : uC(this) ? "InferTypeNode" : yx(this) ? "ParenthesizedTypeNode" : E7(this) ? "ThisTypeNode" : vx(this) ? "TypeOperatorNode" : bx(this) ? "IndexedAccessTypeNode" : bk(this) ? "MappedTypeNode" : X0(this) ? "LiteralTypeNode" : vk(this) ? "NamedTupleMember" : dg(this) ? "ImportTypeNode" : $e(this.kind)}${this.flags ? ` (${Fe(this.flags)})` : ""}`; } }, __debugKind: { get() { return $e(this.kind); } }, __debugNodeFlags: { get() { return Fe(this.flags); } }, __debugModifierFlags: { get() { return We(Fue(this)); } }, __debugTransformFlags: { get() { return Re(this.transformFlags); } }, __debugIsParseTreeNode: { get() { return uI(this); } }, __debugEmitFlags: { get() { return Pe(ho(this)); } }, __debugGetText: { value(Di) { if ($s(this)) return ""; let _i = ln.get(this); if (_i === void 0) { const Rn = ya(this), en = Rn && Zn(Rn); _i = en ? f1(en, Rn, Di) : "", ln.set(this, _i); } return _i; } } }); nn = !0; } e.enableDebugInfo = xi; function Ji(Ht) { const ln = Ht & 7; let rr = ln === 0 ? "in out" : ln === 3 ? "[bivariant]" : ln === 2 ? "in" : ln === 1 ? "out" : ln === 4 ? "[independent]" : ""; return Ht & 8 ? rr += " (unmeasurable)" : Ht & 16 && (rr += " (unreliable)"), rr; } e.formatVariance = Ji; class Ki { __debugToString() { var ln; switch (this.kind) { case 3: return ((ln = this.debugInfo) == null ? void 0 : ln.call(this)) || "(function mapper)"; case 0: return `${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`; case 1: return Ni(this.sources, this.targets || rn(this.sources, () => "any"), (rr, lr) => `${rr.__debugTypeToString()} -> ${typeof lr == "string" ? lr : lr.__debugTypeToString()}`).join(", "); case 2: return Ni(this.sources, this.targets, (rr, lr) => `${rr.__debugTypeToString()} -> ${lr().__debugTypeToString()}`).join(", "); case 5: case 4: return `m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` `)}`; default: return X(this); } } } e.DebugTypeMapper = Ki; function Rr(Ht) { return e.isDebugging ? Object.setPrototypeOf(Ht, Ki.prototype) : Ht; } e.attachDebugPrototypeIfDebug = Rr; function xt(Ht) { return console.log(gn(Ht)); } e.printControlFlowGraph = xt; function gn(Ht) { let ln = -1; function rr(K) { return K.id || (K.id = ln, ln--), K.id; } let lr; ((K) => { K.lr = "─", K.ud = "│", K.dr = "╭", K.dl = "╮", K.ul = "╯", K.ur = "╰", K.udr = "├", K.udl = "┤", K.dlr = "┬", K.ulr = "┴", K.udlr = "╫"; })(lr || (lr = {})); let Di; ((K) => { K[K.None = 0] = "None", K[K.Up = 1] = "Up", K[K.Down = 2] = "Down", K[K.Left = 4] = "Left", K[K.Right = 8] = "Right", K[K.UpDown = 3] = "UpDown", K[K.LeftRight = 12] = "LeftRight", K[K.UpLeft = 5] = "UpLeft", K[K.UpRight = 9] = "UpRight", K[K.DownLeft = 6] = "DownLeft", K[K.DownRight = 10] = "DownRight", K[K.UpDownLeft = 7] = "UpDownLeft", K[K.UpDownRight = 11] = "UpDownRight", K[K.UpLeftRight = 13] = "UpLeftRight", K[K.DownLeftRight = 14] = "DownLeftRight", K[K.UpDownLeftRight = 15] = "UpDownLeftRight", K[K.NoChildren = 16] = "NoChildren"; })(Di || (Di = {})); const _i = 2032, Rn = 882, en = /* @__PURE__ */ Object.create(null), Pn = [], xr = me(Ht, /* @__PURE__ */ new Set()); for (const K of Pn) K.text = br(K.flowNode, K.circular), je(K); const Ur = Qe(xr), Ie = Je(Ur); return Ut(xr, 0), ce(); function gt(K) { return !!(K.flags & 128); } function Nt(K) { return !!(K.flags & 12) && !!K.antecedents; } function xe(K) { return !!(K.flags & _i); } function _t(K) { return !!(K.flags & Rn); } function _e(K) { const Oe = []; for (const Z of K.edges) Z.source === K && Oe.push(Z.target); return Oe; } function re(K) { const Oe = []; for (const Z of K.edges) Z.target === K && Oe.push(Z.source); return Oe; } function me(K, Oe) { const Z = rr(K); let we = en[Z]; if (we && Oe.has(K)) return we.circular = !0, we = { id: -1, flowNode: K, edges: [], text: "", lane: -1, endLane: -1, level: -1, circular: "circularity" }, Pn.push(we), we; if (Oe.add(K), !we) if (en[Z] = we = { id: Z, flowNode: K, edges: [], text: "", lane: -1, endLane: -1, level: -1, circular: !1 }, Pn.push(we), Nt(K)) for (const q of K.antecedents) V(we, q, Oe); else xe(K) && V(we, K.antecedent, Oe); return Oe.delete(K), we; } function V(K, Oe, Z) { const we = me(Oe, Z), q = { source: K, target: we }; K.edges.push(q), we.edges.push(q); } function je(K) { if (K.level !== -1) return K.level; let Oe = 0; for (const Z of re(K)) Oe = Math.max(Oe, je(Z) + 1); return K.level = Oe; } function Qe(K) { let Oe = 0; for (const Z of _e(K)) Oe = Math.max(Oe, Qe(Z)); return Oe + 1; } function Je(K) { const Oe = Wt(Array(K), 0); for (const Z of Pn) Oe[Z.level] = Math.max(Oe[Z.level], Z.text.length); return Oe; } function Ut(K, Oe) { if (K.lane === -1) { K.lane = Oe, K.endLane = Oe; const Z = _e(K); for (let we = 0; we < Z.length; we++) { we > 0 && Oe++; const q = Z[we]; Ut(q, Oe), q.endLane > K.endLane && (Oe = q.endLane); } K.endLane = Oe; } } function on(K) { if (K & 2) return "Start"; if (K & 4) return "Branch"; if (K & 8) return "Loop"; if (K & 16) return "Assignment"; if (K & 32) return "True"; if (K & 64) return "False"; if (K & 128) return "SwitchClause"; if (K & 256) return "ArrayMutation"; if (K & 512) return "Call"; if (K & 1024) return "ReduceLabel"; if (K & 1) return "Unreachable"; throw new Error(); } function Sn(K) { const Oe = Zn(K); return f1(Oe, K, !1); } function br(K, Oe) { let Z = on(K.flags); if (Oe && (Z = `${Z}#${rr(K)}`), _t(K)) K.node && (Z += ` (${Sn(K.node)})`); else if (gt(K)) { const we = []; for (let q = K.clauseStart; q < K.clauseEnd; q++) { const Rt = K.switchStatement.caseBlock.clauses[q]; CO(Rt) ? we.push("default") : we.push(Sn(Rt.expression)); } Z += ` (${we.join(", ")})`; } return Oe === "circularity" ? `Circular(${Z})` : Z; } function ce() { const K = Ie.length, Oe = Pn.reduce((ht, dt) => Math.max(ht, dt.lane), 0) + 1, Z = Wt(Array(Oe), ""), we = Ie.map(() => Array(Oe)), q = Ie.map(() => Wt(Array(Oe), 0)); for (const ht of Pn) { we[ht.level][ht.lane] = ht; const dt = _e(ht); for (let $n = 0; $n < dt.length; $n++) { const ii = dt[$n]; let Ti = 8; ii.lane === ht.lane && (Ti |= 4), $n > 0 && (Ti |= 1), $n < dt.length - 1 && (Ti |= 2), q[ht.level][ii.lane] |= Ti; } dt.length === 0 && (q[ht.level][ht.lane] |= 16); const dn = re(ht); for (let $n = 0; $n < dn.length; $n++) { const ii = dn[$n]; let Ti = 4; $n > 0 && (Ti |= 1), $n < dn.length - 1 && (Ti |= 2), q[ht.level - 1][ii.lane] |= Ti; } } for (let ht = 0; ht < K; ht++) for (let dt = 0; dt < Oe; dt++) { const dn = ht > 0 ? q[ht - 1][dt] : 0, $n = dt > 0 ? q[ht][dt - 1] : 0; let ii = q[ht][dt]; ii || (dn & 8 && (ii |= 12), $n & 2 && (ii |= 3), q[ht][dt] = ii); } for (let ht = 0; ht < K; ht++) for (let dt = 0; dt < Z.length; dt++) { const dn = q[ht][dt], $n = dn & 4 ? "─" : " ", ii = we[ht][dt]; ii ? (Rt(dt, ii.text), ht < K - 1 && (Rt(dt, " "), Rt(dt, rt($n, Ie[ht] - ii.text.length)))) : ht < K - 1 && Rt(dt, rt($n, Ie[ht] + 1)), Rt(dt, pt(dn)), Rt(dt, dn & 8 && ht < K - 1 && !we[ht + 1][dt] ? "─" : " "); } return ` ${Z.join(` `)} `; function Rt(ht, dt) { Z[ht] += dt; } } function pt(K) { switch (K) { case 3: return "│"; case 12: return "─"; case 5: return "╯"; case 9: return "╰"; case 6: return "╮"; case 10: return "╭"; case 7: return "┤"; case 11: return "├"; case 13: return "┴"; case 14: return "┬"; case 15: return "╫"; } return " "; } function Wt(K, Oe) { if (K.fill) K.fill(Oe); else for (let Z = 0; Z < K.length; Z++) K[Z] = Oe; return K; } function rt(K, Oe) { if (K.repeat) return Oe > 0 ? K.repeat(Oe) : ""; let Z = ""; for (; Z.length < Oe; ) Z += K; return Z; } } e.formatControlFlowGraph = gn; })(D || (D = {})); } }); function Cse(e) { const t = Ise.exec(e); if (!t) return; const [, r, i = "0", o = "0", s = "", c = ""] = t; if (!(s && !kse.test(s)) && !(c && !Dse.test(c))) return { major: parseInt(r, 10), minor: parseInt(i, 10), patch: parseInt(o, 10), prerelease: s, build: c }; } function gNe(e, t) { if (e === t) return 0; if (e.length === 0) return t.length === 0 ? 0 : 1; if (t.length === 0) return -1; const r = Math.min(e.length, t.length); for (let i = 0; i < r; i++) { const o = e[i], s = t[i]; if (o === s) continue; const c = bj.test(o), f = bj.test(s); if (c || f) { if (c !== f) return c ? -1 : 1; const d = js(+o, +s); if (d) return d; } else { const d = Lu(o, s); if (d) return d; } } return js(e.length, t.length); } function Lse(e) { const t = []; for (let r of n1(e).split(Nse)) { if (!r) continue; const i = []; r = n1(r); const o = Mse.exec(r); if (o) { if (!yNe(o[1], o[2], i)) return; } else for (const s of r.split(Ose)) { const c = Fse.exec(n1(s)); if (!c || !vNe(c[1], c[2], i)) return; } t.push(i); } return t; } function vj(e) { const t = Pse.exec(e); if (!t) return; const [, r, i = "*", o = "*", s, c] = t; return { version: new k_(Uf(r) ? 0 : parseInt(r, 10), Uf(r) || Uf(i) ? 0 : parseInt(i, 10), Uf(r) || Uf(i) || Uf(o) ? 0 : parseInt(o, 10), s, c), major: r, minor: i, patch: o }; } function yNe(e, t, r) { const i = vj(e); if (!i) return !1; const o = vj(t); return o ? (Uf(i.major) || r.push(Gp(">=", i.version)), Uf(o.major) || r.push(Uf(o.minor) ? Gp("<", o.version.increment("major")) : Uf(o.patch) ? Gp("<", o.version.increment("minor")) : Gp("<=", o.version)), !0) : !1; } function vNe(e, t, r) { const i = vj(t); if (!i) return !1; const { version: o, major: s, minor: c, patch: f } = i; if (Uf(s)) (e === "<" || e === ">") && r.push(Gp("<", k_.zero)); else switch (e) { case "~": r.push(Gp(">=", o)), r.push(Gp("<", o.increment(Uf(c) ? "major" : "minor"))); break; case "^": r.push(Gp(">=", o)), r.push(Gp("<", o.increment(o.major > 0 || Uf(c) ? "major" : o.minor > 0 || Uf(f) ? "minor" : "patch"))); break; case "<": case ">=": r.push(Uf(c) || Uf(f) ? Gp(e, o.with({ prerelease: "0" })) : Gp(e, o)); break; case "<=": case ">": r.push(Uf(c) ? Gp(e === "<=" ? "<" : ">=", o.increment("major").with({ prerelease: "0" })) : Uf(f) ? Gp(e === "<=" ? "<" : ">=", o.increment("minor").with({ prerelease: "0" })) : Gp(e, o)); break; case "=": case void 0: Uf(c) || Uf(f) ? (r.push(Gp(">=", o.with({ prerelease: "0" }))), r.push(Gp("<", o.increment(Uf(c) ? "major" : "minor").with({ prerelease: "0" })))) : r.push(Gp("=", o)); break; default: return !1; } return !0; } function Uf(e) { return e === "*" || e === "x" || e === "X"; } function Gp(e, t) { return { operator: e, operand: t }; } function bNe(e, t) { if (t.length === 0) return !0; for (const r of t) if (ENe(e, r)) return !0; return !1; } function ENe(e, t) { for (const r of t) if (!TNe(e, r.operator, r.operand)) return !1; return !0; } function TNe(e, t, r) { const i = e.compareTo(r); switch (t) { case "<": return i < 0; case "<=": return i <= 0; case ">": return i > 0; case ">=": return i >= 0; case "=": return i === 0; default: return D.assertNever(t); } } function SNe(e) { return rn(e, xNe).join(" || ") || "*"; } function xNe(e) { return rn(e, ANe).join(" "); } function ANe(e) { return `${e.operator}${e.operand}`; } var Ise, kse, wse, Dse, Rse, bj, OS, k_, cA, Nse, Ose, Pse, Mse, Fse, CNe = L({ "src/compiler/semver.ts"() { Ra(), Ise = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i, kse = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i, wse = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i, Dse = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i, Rse = /^[a-z0-9-]+$/i, bj = /^(0|[1-9]\d*)$/, OS = class { constructor(e, t = 0, r = 0, i = "", o = "") { typeof e == "string" && ({ major: e, minor: t, patch: r, prerelease: i, build: o } = D.checkDefined(Cse(e), "Invalid version")), D.assert(e >= 0, "Invalid argument: major"), D.assert(t >= 0, "Invalid argument: minor"), D.assert(r >= 0, "Invalid argument: patch"); const s = i ? Ga(i) ? i : i.split(".") : nt, c = o ? Ga(o) ? o : o.split(".") : nt; D.assert(Vn(s, (f) => wse.test(f)), "Invalid argument: prerelease"), D.assert(Vn(c, (f) => Rse.test(f)), "Invalid argument: build"), this.major = e, this.minor = t, this.patch = r, this.prerelease = s, this.build = c; } static tryParse(e) { const t = Cse(e); if (!t) return; const { major: r, minor: i, patch: o, prerelease: s, build: c } = t; return new OS(r, i, o, s, c); } compareTo(e) { return this === e ? 0 : e === void 0 ? 1 : js(this.major, e.major) || js(this.minor, e.minor) || js(this.patch, e.patch) || gNe(this.prerelease, e.prerelease); } increment(e) { switch (e) { case "major": return new OS(this.major + 1, 0, 0); case "minor": return new OS(this.major, this.minor + 1, 0); case "patch": return new OS(this.major, this.minor, this.patch + 1); default: return D.assertNever(e); } } with(e) { const { major: t = this.major, minor: r = this.minor, patch: i = this.patch, prerelease: o = this.prerelease, build: s = this.build } = e; return new OS(t, r, i, o, s); } toString() { let e = `${this.major}.${this.minor}.${this.patch}`; return kt(this.prerelease) && (e += `-${this.prerelease.join(".")}`), kt(this.build) && (e += `+${this.build.join(".")}`), e; } }, k_ = OS, k_.zero = new OS(0, 0, 0, ["0"]), cA = class { constructor(e) { this._alternatives = e ? D.checkDefined(Lse(e), "Invalid range spec.") : nt; } static tryParse(e) { const t = Lse(e); if (t) { const r = new cA(""); return r._alternatives = t, r; } } test(e) { return typeof e == "string" && (e = new k_(e)), bNe(e, this._alternatives); } toString() { return SNe(this._alternatives); } }, Nse = /\|\|/g, Ose = /\s+/g, Pse = /^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i, Mse = /^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i, Fse = /^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i; } }); function Bse(e, t) { return typeof e == "object" && typeof e.timeOrigin == "number" && typeof e.mark == "function" && typeof e.measure == "function" && typeof e.now == "function" && typeof e.clearMarks == "function" && typeof e.clearMeasures == "function" && typeof t == "function"; } function LNe() { if (typeof performance == "object" && typeof PerformanceObserver == "function" && Bse(performance, PerformanceObserver)) return { shouldWriteNativeEvents: !0, performance, PerformanceObserver }; } function INe() { if (_j()) try { let e; const { performance: t, PerformanceObserver: r } = zb("perf_hooks"); if (Bse(t, r)) { e = t; const i = new k_(process.versions.node); return new cA("<12.16.3 || 13 <13.13").test(i) && (e = { get timeOrigin() { return t.timeOrigin; }, now() { return t.now(); }, mark(s) { return t.mark(s); }, measure(s, c = "nodeStart", f) { f === void 0 && (f = "__performance.measure-fix__", t.mark(f)), t.measure(s, c, f), f === "__performance.measure-fix__" && t.clearMarks("__performance.measure-fix__"); }, clearMarks(s) { return t.clearMarks(s); }, clearMeasures(s) { return t.clearMeasures(s); } }), { shouldWriteNativeEvents: !1, performance: e, PerformanceObserver: r }; } } catch { } } function Gse() { return OP; } var OP, Ej, nl, kNe = L({ "src/compiler/performanceCore.ts"() { Ra(), OP = LNe() || INe(), Ej = OP == null ? void 0 : OP.performance, nl = Ej ? () => Ej.now() : Date.now ? Date.now : () => +/* @__PURE__ */ new Date(); } }), Use, oR, Vse, Up, wNe = L({ "src/compiler/perfLogger.ts"() { Ra(), Use = { logEvent: io, logErrEvent: io, logPerfEvent: io, logInfoEvent: io, logStartCommand: io, logStopCommand: io, logStartUpdateProgram: io, logStopUpdateProgram: io, logStartUpdateGraph: io, logStopUpdateGraph: io, logStartResolveModule: io, logStopResolveModule: io, logStartParseSourceFile: io, logStopParseSourceFile: io, logStartReadFile: io, logStopReadFile: io, logStartBindFile: io, logStopBindFile: io, logStartScheduledOperation: io, logStopScheduledOperation: io }; try { const e = (Vse = process.env.TS_ETW_MODULE_PATH) != null ? Vse : "./node_modules/@microsoft/typescript-etw"; oR = zb(e); } catch { oR = void 0; } Up = oR != null && oR.logEvent ? oR : Use; } }); function jse(e, t, r, i) { return e ? PP(t, r, i) : MP; } function PP(e, t, r) { let i = 0; return { enter: o, exit: s }; function o() { ++i === 1 && rl(t); } function s() { --i === 0 ? (rl(r), Vf(e, t, r)) : i < 0 && D.fail("enter/exit count does not match."); } } function rl(e) { var t; if (PS) { const r = (t = uA.get(e)) != null ? t : 0; uA.set(e, r + 1), MS.set(e, nl()), r1 == null || r1.mark(e), typeof onProfilerEvent == "function" && onProfilerEvent(e); } } function Vf(e, t, r) { var i, o; if (PS) { const s = (i = r !== void 0 ? MS.get(r) : void 0) != null ? i : nl(), c = (o = t !== void 0 ? MS.get(t) : void 0) != null ? o : Tj, f = FS.get(e) || 0; FS.set(e, f + (s - c)), r1 == null || r1.measure(e, t, r); } } function DNe(e) { return uA.get(e) || 0; } function RNe(e) { return FS.get(e) || 0; } function NNe(e) { FS.forEach((t, r) => e(r, t)); } function ONe(e) { MS.forEach((t, r) => e(r)); } function PNe(e) { e !== void 0 ? FS.delete(e) : FS.clear(), r1 == null || r1.clearMeasures(e); } function MNe(e) { e !== void 0 ? (uA.delete(e), MS.delete(e)) : (uA.clear(), MS.clear()), r1 == null || r1.clearMarks(e); } function FNe() { return PS; } function BNe(e = zc) { var t; return PS || (PS = !0, ZL || (ZL = Gse()), ZL && (Tj = ZL.performance.timeOrigin, (ZL.shouldWriteNativeEvents || (t = e == null ? void 0 : e.cpuProfilingEnabled) != null && t.call(e) || e != null && e.debugMode) && (r1 = ZL.performance))), !0; } function GNe() { PS && (MS.clear(), uA.clear(), FS.clear(), r1 = void 0, PS = !1); } var ZL, r1, MP, PS, Tj, MS, uA, FS, UNe = L({ "src/compiler/performance.ts"() { Ra(), MP = { enter: io, exit: io }, PS = !1, Tj = nl(), MS = /* @__PURE__ */ new Map(), uA = /* @__PURE__ */ new Map(), FS = /* @__PURE__ */ new Map(); } }), sR = {}; fe(sR, { clearMarks: () => MNe, clearMeasures: () => PNe, createTimer: () => PP, createTimerIf: () => jse, disable: () => GNe, enable: () => BNe, forEachMark: () => ONe, forEachMeasure: () => NNe, getCount: () => DNe, getDuration: () => RNe, isEnabled: () => FNe, mark: () => rl, measure: () => Vf, nullTimer: () => MP }); var i1 = L({ "src/compiler/_namespaces/ts.performance.ts"() { UNe(); } }), hi, lR, Hse, Wse, VNe = L({ "src/compiler/tracing.ts"() { Ra(), i1(), ((e) => { let t, r = 0, i = 0, o; const s = []; let c; const f = []; function d(Y, P, ue) { if (D.assert(!hi, "Tracing already started"), t === void 0) try { t = zb("fs"); } catch (le) { throw new Error(`tracing requires having fs (original error: ${le.message || le})`); } o = Y, s.length = 0, c === void 0 && (c = Oi(P, "legend.json")), t.existsSync(P) || t.mkdirSync(P, { recursive: !0 }); const ne = o === "build" ? `.${process.pid}-${++r}` : o === "server" ? `.${process.pid}` : "", ge = Oi(P, `trace${ne}.json`), ie = Oi(P, `types${ne}.json`); f.push({ configFilePath: ue, tracePath: ge, typesPath: ie }), i = t.openSync(ge, "w"), hi = e; const H = { cat: "__metadata", ph: "M", ts: 1e3 * nl(), pid: 1, tid: 1 }; t.writeSync(i, `[ ` + [ { name: "process_name", args: { name: "tsc" }, ...H }, { name: "thread_name", args: { name: "Main" }, ...H }, { name: "TracingStartedInBrowser", ...H, cat: "disabled-by-default-devtools.timeline" } ].map((le) => JSON.stringify(le)).join(`, `)); } e.startTracing = d; function y() { D.assert(hi, "Tracing is not in progress"), D.assert(!!s.length == (o !== "server")), t.writeSync(i, ` ] `), t.closeSync(i), hi = void 0, s.length ? te(s) : f[f.length - 1].typesPath = void 0; } e.stopTracing = y; function m(Y) { o !== "server" && s.push(Y); } e.recordType = m, ((Y) => { Y.Parse = "parse", Y.Program = "program", Y.Bind = "bind", Y.Check = "check", Y.CheckTypes = "checkTypes", Y.Emit = "emit", Y.Session = "session"; })(e.Phase || (e.Phase = {})); function b(Y, P, ue) { U("I", Y, P, ue, '"s":"g"'); } e.instant = b; const A = []; function C(Y, P, ue, ne = !1) { ne && U("B", Y, P, ue), A.push({ phase: Y, name: P, args: ue, time: 1e3 * nl(), separateBeginAndEnd: ne }); } e.push = C; function I(Y) { D.assert(A.length > 0), B(A.length - 1, 1e3 * nl(), Y), A.length--; } e.pop = I; function O() { const Y = 1e3 * nl(); for (let P = A.length - 1; P >= 0; P--) B(P, Y); A.length = 0; } e.popAll = O; const k = 1e3 * 10; function B(Y, P, ue) { const { phase: ne, name: ge, args: ie, time: H, separateBeginAndEnd: le } = A[Y]; le ? (D.assert(!ue, "`results` are not supported for events with `separateBeginAndEnd`"), U("E", ne, ge, ie, void 0, P)) : k - H % k <= P - H && U("X", ne, ge, { ...ie, results: ue }, `"dur":${P - H}`, H); } function U(Y, P, ue, ne, ge, ie = 1e3 * nl()) { o === "server" && P === "checkTypes" || (rl("beginTracing"), t.writeSync(i, `, {"pid":1,"tid":1,"ph":"${Y}","cat":"${P}","ts":${ie},"name":"${ue}"`), ge && t.writeSync(i, `,${ge}`), ne && t.writeSync(i, `,"args":${JSON.stringify(ne)}`), t.writeSync(i, "}"), rl("endTracing"), Vf("Tracing", "beginTracing", "endTracing")); } function j(Y) { const P = Zn(Y); return P ? { path: P.path, start: ue(il(P, Y.pos)), end: ue(il(P, Y.end)) } : void 0; function ue(ne) { return { line: ne.line + 1, character: ne.character + 1 }; } } function te(Y) { var P, ue, ne, ge, ie, H, le, pe, ye, Te, ee, $e, Ge, Fe, We, Re, Pe, Ke, He, Me, ot, At; rl("beginDumpTypes"); const bt = f[f.length - 1].typesPath, Vt = t.openSync(bt, "w"), et = /* @__PURE__ */ new Map(); t.writeSync(Vt, "["); const it = Y.length; for (let nn = 0; nn < it; nn++) { const Xt = Y[nn], On = Xt.objectFlags, Hn = (P = Xt.aliasSymbol) != null ? P : Xt.symbol; let In; if (On & 16 | Xt.flags & 2944) try { In = (ue = Xt.checker) == null ? void 0 : ue.typeToString(Xt); } catch { In = void 0; } let Yt = {}; if (Xt.flags & 8388608) { const ln = Xt; Yt = { indexedAccessObjectType: (ne = ln.objectType) == null ? void 0 : ne.id, indexedAccessIndexType: (ge = ln.indexType) == null ? void 0 : ge.id }; } let fr = {}; if (On & 4) { const ln = Xt; fr = { instantiatedType: (ie = ln.target) == null ? void 0 : ie.id, typeArguments: (H = ln.resolvedTypeArguments) == null ? void 0 : H.map((rr) => rr.id), referenceLocation: j(ln.node) }; } let xi = {}; if (Xt.flags & 16777216) { const ln = Xt; xi = { conditionalCheckType: (le = ln.checkType) == null ? void 0 : le.id, conditionalExtendsType: (pe = ln.extendsType) == null ? void 0 : pe.id, conditionalTrueType: (Te = (ye = ln.resolvedTrueType) == null ? void 0 : ye.id) != null ? Te : -1, conditionalFalseType: ($e = (ee = ln.resolvedFalseType) == null ? void 0 : ee.id) != null ? $e : -1 }; } let Ji = {}; if (Xt.flags & 33554432) { const ln = Xt; Ji = { substitutionBaseType: (Ge = ln.baseType) == null ? void 0 : Ge.id, constraintType: (Fe = ln.constraint) == null ? void 0 : Fe.id }; } let Ki = {}; if (On & 1024) { const ln = Xt; Ki = { reverseMappedSourceType: (We = ln.source) == null ? void 0 : We.id, reverseMappedMappedType: (Re = ln.mappedType) == null ? void 0 : Re.id, reverseMappedConstraintType: (Pe = ln.constraintType) == null ? void 0 : Pe.id }; } let Rr = {}; if (On & 256) { const ln = Xt; Rr = { evolvingArrayElementType: ln.elementType.id, evolvingArrayFinalType: (Ke = ln.finalArrayType) == null ? void 0 : Ke.id }; } let xt; const gn = Xt.checker.getRecursionIdentity(Xt); gn && (xt = et.get(gn), xt || (xt = et.size, et.set(gn, xt))); const Ht = { id: Xt.id, intrinsicName: Xt.intrinsicName, symbolName: (Hn == null ? void 0 : Hn.escapedName) && Zi(Hn.escapedName), recursionId: xt, isTuple: On & 8 ? !0 : void 0, unionTypes: Xt.flags & 1048576 ? (He = Xt.types) == null ? void 0 : He.map((ln) => ln.id) : void 0, intersectionTypes: Xt.flags & 2097152 ? Xt.types.map((ln) => ln.id) : void 0, aliasTypeArguments: (Me = Xt.aliasTypeArguments) == null ? void 0 : Me.map((ln) => ln.id), keyofType: Xt.flags & 4194304 ? (ot = Xt.type) == null ? void 0 : ot.id : void 0, ...Yt, ...fr, ...xi, ...Ji, ...Ki, ...Rr, destructuringPattern: j(Xt.pattern), firstDeclaration: j((At = Hn == null ? void 0 : Hn.declarations) == null ? void 0 : At[0]), flags: D.formatTypeFlags(Xt.flags).split("|"), display: In }; t.writeSync(Vt, JSON.stringify(Ht)), nn < it - 1 && t.writeSync(Vt, `, `); } t.writeSync(Vt, `] `), t.closeSync(Vt), rl("endDumpTypes"), Vf("Dump types", "beginDumpTypes", "endDumpTypes"); } function X() { c && t.writeFileSync(c, JSON.stringify(f)); } e.dumpLegend = X; })(lR || (lR = {})), Hse = lR.startTracing, Wse = lR.dumpLegend; } }); function FP(e, t = !0) { const r = uR[e.category]; return t ? r.toLowerCase() : r; } var BP, GP, UP, Sj, VP, jP, xj, cR, Aj, eI, HP, Cj, Lj, Ij, kj, wj, Dj, Rj, Nj, Oj, Pj, Mj, Fj, Bj, Gj, WP, Uj, Vj, jj, Hj, zP, qP, Wj, zj, qj, Jj, Kj, JP, Xj, Yj, $j, Qj, Zj, eH, uR, dR, tH, nH, rH, iH, KP, aH, oH, sH, lH, cH, uH, dH, fH, _H, XP, YP, $P, pH, mH, hH, gH, yH, vH, bH, EH, fR, zse = L({ "src/compiler/types.ts"() { BP = /* @__PURE__ */ ((e) => (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.NumericLiteral = 8] = "NumericLiteral", e[e.BigIntLiteral = 9] = "BigIntLiteral", e[e.StringLiteral = 10] = "StringLiteral", e[e.JsxText = 11] = "JsxText", e[e.JsxTextAllWhiteSpaces = 12] = "JsxTextAllWhiteSpaces", e[e.RegularExpressionLiteral = 13] = "RegularExpressionLiteral", e[e.NoSubstitutionTemplateLiteral = 14] = "NoSubstitutionTemplateLiteral", e[e.TemplateHead = 15] = "TemplateHead", e[e.TemplateMiddle = 16] = "TemplateMiddle", e[e.TemplateTail = 17] = "TemplateTail", e[e.OpenBraceToken = 18] = "OpenBraceToken", e[e.CloseBraceToken = 19] = "CloseBraceToken", e[e.OpenParenToken = 20] = "OpenParenToken", e[e.CloseParenToken = 21] = "CloseParenToken", e[e.OpenBracketToken = 22] = "OpenBracketToken", e[e.CloseBracketToken = 23] = "CloseBracketToken", e[e.DotToken = 24] = "DotToken", e[e.DotDotDotToken = 25] = "DotDotDotToken", e[e.SemicolonToken = 26] = "SemicolonToken", e[e.CommaToken = 27] = "CommaToken", e[e.QuestionDotToken = 28] = "QuestionDotToken", e[e.LessThanToken = 29] = "LessThanToken", e[e.LessThanSlashToken = 30] = "LessThanSlashToken", e[e.GreaterThanToken = 31] = "GreaterThanToken", e[e.LessThanEqualsToken = 32] = "LessThanEqualsToken", e[e.GreaterThanEqualsToken = 33] = "GreaterThanEqualsToken", e[e.EqualsEqualsToken = 34] = "EqualsEqualsToken", e[e.ExclamationEqualsToken = 35] = "ExclamationEqualsToken", e[e.EqualsEqualsEqualsToken = 36] = "EqualsEqualsEqualsToken", e[e.ExclamationEqualsEqualsToken = 37] = "ExclamationEqualsEqualsToken", e[e.EqualsGreaterThanToken = 38] = "EqualsGreaterThanToken", e[e.PlusToken = 39] = "PlusToken", e[e.MinusToken = 40] = "MinusToken", e[e.AsteriskToken = 41] = "AsteriskToken", e[e.AsteriskAsteriskToken = 42] = "AsteriskAsteriskToken", e[e.SlashToken = 43] = "SlashToken", e[e.PercentToken = 44] = "PercentToken", e[e.PlusPlusToken = 45] = "PlusPlusToken", e[e.MinusMinusToken = 46] = "MinusMinusToken", e[e.LessThanLessThanToken = 47] = "LessThanLessThanToken", e[e.GreaterThanGreaterThanToken = 48] = "GreaterThanGreaterThanToken", e[e.GreaterThanGreaterThanGreaterThanToken = 49] = "GreaterThanGreaterThanGreaterThanToken", e[e.AmpersandToken = 50] = "AmpersandToken", e[e.BarToken = 51] = "BarToken", e[e.CaretToken = 52] = "CaretToken", e[e.ExclamationToken = 53] = "ExclamationToken", e[e.TildeToken = 54] = "TildeToken", e[e.AmpersandAmpersandToken = 55] = "AmpersandAmpersandToken", e[e.BarBarToken = 56] = "BarBarToken", e[e.QuestionToken = 57] = "QuestionToken", e[e.ColonToken = 58] = "ColonToken", e[e.AtToken = 59] = "AtToken", e[e.QuestionQuestionToken = 60] = "QuestionQuestionToken", e[e.BacktickToken = 61] = "BacktickToken", e[e.HashToken = 62] = "HashToken", e[e.EqualsToken = 63] = "EqualsToken", e[e.PlusEqualsToken = 64] = "PlusEqualsToken", e[e.MinusEqualsToken = 65] = "MinusEqualsToken", e[e.AsteriskEqualsToken = 66] = "AsteriskEqualsToken", e[e.AsteriskAsteriskEqualsToken = 67] = "AsteriskAsteriskEqualsToken", e[e.SlashEqualsToken = 68] = "SlashEqualsToken", e[e.PercentEqualsToken = 69] = "PercentEqualsToken", e[e.LessThanLessThanEqualsToken = 70] = "LessThanLessThanEqualsToken", e[e.GreaterThanGreaterThanEqualsToken = 71] = "GreaterThanGreaterThanEqualsToken", e[e.GreaterThanGreaterThanGreaterThanEqualsToken = 72] = "GreaterThanGreaterThanGreaterThanEqualsToken", e[e.AmpersandEqualsToken = 73] = "AmpersandEqualsToken", e[e.BarEqualsToken = 74] = "BarEqualsToken", e[e.BarBarEqualsToken = 75] = "BarBarEqualsToken", e[e.AmpersandAmpersandEqualsToken = 76] = "AmpersandAmpersandEqualsToken", e[e.QuestionQuestionEqualsToken = 77] = "QuestionQuestionEqualsToken", e[e.CaretEqualsToken = 78] = "CaretEqualsToken", e[e.Identifier = 79] = "Identifier", e[e.PrivateIdentifier = 80] = "PrivateIdentifier", e[e.BreakKeyword = 81] = "BreakKeyword", e[e.CaseKeyword = 82] = "CaseKeyword", e[e.CatchKeyword = 83] = "CatchKeyword", e[e.ClassKeyword = 84] = "ClassKeyword", e[e.ConstKeyword = 85] = "ConstKeyword", e[e.ContinueKeyword = 86] = "ContinueKeyword", e[e.DebuggerKeyword = 87] = "DebuggerKeyword", e[e.DefaultKeyword = 88] = "DefaultKeyword", e[e.DeleteKeyword = 89] = "DeleteKeyword", e[e.DoKeyword = 90] = "DoKeyword", e[e.ElseKeyword = 91] = "ElseKeyword", e[e.EnumKeyword = 92] = "EnumKeyword", e[e.ExportKeyword = 93] = "ExportKeyword", e[e.ExtendsKeyword = 94] = "ExtendsKeyword", e[e.FalseKeyword = 95] = "FalseKeyword", e[e.FinallyKeyword = 96] = "FinallyKeyword", e[e.ForKeyword = 97] = "ForKeyword", e[e.FunctionKeyword = 98] = "FunctionKeyword", e[e.IfKeyword = 99] = "IfKeyword", e[e.ImportKeyword = 100] = "ImportKeyword", e[e.InKeyword = 101] = "InKeyword", e[e.InstanceOfKeyword = 102] = "InstanceOfKeyword", e[e.NewKeyword = 103] = "NewKeyword", e[e.NullKeyword = 104] = "NullKeyword", e[e.ReturnKeyword = 105] = "ReturnKeyword", e[e.SuperKeyword = 106] = "SuperKeyword", e[e.SwitchKeyword = 107] = "SwitchKeyword", e[e.ThisKeyword = 108] = "ThisKeyword", e[e.ThrowKeyword = 109] = "ThrowKeyword", e[e.TrueKeyword = 110] = "TrueKeyword", e[e.TryKeyword = 111] = "TryKeyword", e[e.TypeOfKeyword = 112] = "TypeOfKeyword", e[e.VarKeyword = 113] = "VarKeyword", e[e.VoidKeyword = 114] = "VoidKeyword", e[e.WhileKeyword = 115] = "WhileKeyword", e[e.WithKeyword = 116] = "WithKeyword", e[e.ImplementsKeyword = 117] = "ImplementsKeyword", e[e.InterfaceKeyword = 118] = "InterfaceKeyword", e[e.LetKeyword = 119] = "LetKeyword", e[e.PackageKeyword = 120] = "PackageKeyword", e[e.PrivateKeyword = 121] = "PrivateKeyword", e[e.ProtectedKeyword = 122] = "ProtectedKeyword", e[e.PublicKeyword = 123] = "PublicKeyword", e[e.StaticKeyword = 124] = "StaticKeyword", e[e.YieldKeyword = 125] = "YieldKeyword", e[e.AbstractKeyword = 126] = "AbstractKeyword", e[e.AccessorKeyword = 127] = "AccessorKeyword", e[e.AsKeyword = 128] = "AsKeyword", e[e.AssertsKeyword = 129] = "AssertsKeyword", e[e.AssertKeyword = 130] = "AssertKeyword", e[e.AnyKeyword = 131] = "AnyKeyword", e[e.AsyncKeyword = 132] = "AsyncKeyword", e[e.AwaitKeyword = 133] = "AwaitKeyword", e[e.BooleanKeyword = 134] = "BooleanKeyword", e[e.ConstructorKeyword = 135] = "ConstructorKeyword", e[e.DeclareKeyword = 136] = "DeclareKeyword", e[e.GetKeyword = 137] = "GetKeyword", e[e.InferKeyword = 138] = "InferKeyword", e[e.IntrinsicKeyword = 139] = "IntrinsicKeyword", e[e.IsKeyword = 140] = "IsKeyword", e[e.KeyOfKeyword = 141] = "KeyOfKeyword", e[e.ModuleKeyword = 142] = "ModuleKeyword", e[e.NamespaceKeyword = 143] = "NamespaceKeyword", e[e.NeverKeyword = 144] = "NeverKeyword", e[e.OutKeyword = 145] = "OutKeyword", e[e.ReadonlyKeyword = 146] = "ReadonlyKeyword", e[e.RequireKeyword = 147] = "RequireKeyword", e[e.NumberKeyword = 148] = "NumberKeyword", e[e.ObjectKeyword = 149] = "ObjectKeyword", e[e.SatisfiesKeyword = 150] = "SatisfiesKeyword", e[e.SetKeyword = 151] = "SetKeyword", e[e.StringKeyword = 152] = "StringKeyword", e[e.SymbolKeyword = 153] = "SymbolKeyword", e[e.TypeKeyword = 154] = "TypeKeyword", e[e.UndefinedKeyword = 155] = "UndefinedKeyword", e[e.UniqueKeyword = 156] = "UniqueKeyword", e[e.UnknownKeyword = 157] = "UnknownKeyword", e[e.FromKeyword = 158] = "FromKeyword", e[e.GlobalKeyword = 159] = "GlobalKeyword", e[e.BigIntKeyword = 160] = "BigIntKeyword", e[e.OverrideKeyword = 161] = "OverrideKeyword", e[e.OfKeyword = 162] = "OfKeyword", e[e.QualifiedName = 163] = "QualifiedName", e[e.ComputedPropertyName = 164] = "ComputedPropertyName", e[e.TypeParameter = 165] = "TypeParameter", e[e.Parameter = 166] = "Parameter", e[e.Decorator = 167] = "Decorator", e[e.PropertySignature = 168] = "PropertySignature", e[e.PropertyDeclaration = 169] = "PropertyDeclaration", e[e.MethodSignature = 170] = "MethodSignature", e[e.MethodDeclaration = 171] = "MethodDeclaration", e[e.ClassStaticBlockDeclaration = 172] = "ClassStaticBlockDeclaration", e[e.Constructor = 173] = "Constructor", e[e.GetAccessor = 174] = "GetAccessor", e[e.SetAccessor = 175] = "SetAccessor", e[e.CallSignature = 176] = "CallSignature", e[e.ConstructSignature = 177] = "ConstructSignature", e[e.IndexSignature = 178] = "IndexSignature", e[e.TypePredicate = 179] = "TypePredicate", e[e.TypeReference = 180] = "TypeReference", e[e.FunctionType = 181] = "FunctionType", e[e.ConstructorType = 182] = "ConstructorType", e[e.TypeQuery = 183] = "TypeQuery", e[e.TypeLiteral = 184] = "TypeLiteral", e[e.ArrayType = 185] = "ArrayType", e[e.TupleType = 186] = "TupleType", e[e.OptionalType = 187] = "OptionalType", e[e.RestType = 188] = "RestType", e[e.UnionType = 189] = "UnionType", e[e.IntersectionType = 190] = "IntersectionType", e[e.ConditionalType = 191] = "ConditionalType", e[e.InferType = 192] = "InferType", e[e.ParenthesizedType = 193] = "ParenthesizedType", e[e.ThisType = 194] = "ThisType", e[e.TypeOperator = 195] = "TypeOperator", e[e.IndexedAccessType = 196] = "IndexedAccessType", e[e.MappedType = 197] = "MappedType", e[e.LiteralType = 198] = "LiteralType", e[e.NamedTupleMember = 199] = "NamedTupleMember", e[e.TemplateLiteralType = 200] = "TemplateLiteralType", e[e.TemplateLiteralTypeSpan = 201] = "TemplateLiteralTypeSpan", e[e.ImportType = 202] = "ImportType", e[e.ObjectBindingPattern = 203] = "ObjectBindingPattern", e[e.ArrayBindingPattern = 204] = "ArrayBindingPattern", e[e.BindingElement = 205] = "BindingElement", e[e.ArrayLiteralExpression = 206] = "ArrayLiteralExpression", e[e.ObjectLiteralExpression = 207] = "ObjectLiteralExpression", e[e.PropertyAccessExpression = 208] = "PropertyAccessExpression", e[e.ElementAccessExpression = 209] = "ElementAccessExpression", e[e.CallExpression = 210] = "CallExpression", e[e.NewExpression = 211] = "NewExpression", e[e.TaggedTemplateExpression = 212] = "TaggedTemplateExpression", e[e.TypeAssertionExpression = 213] = "TypeAssertionExpression", e[e.ParenthesizedExpression = 214] = "ParenthesizedExpression", e[e.FunctionExpression = 215] = "FunctionExpression", e[e.ArrowFunction = 216] = "ArrowFunction", e[e.DeleteExpression = 217] = "DeleteExpression", e[e.TypeOfExpression = 218] = "TypeOfExpression", e[e.VoidExpression = 219] = "VoidExpression", e[e.AwaitExpression = 220] = "AwaitExpression", e[e.PrefixUnaryExpression = 221] = "PrefixUnaryExpression", e[e.PostfixUnaryExpression = 222] = "PostfixUnaryExpression", e[e.BinaryExpression = 223] = "BinaryExpression", e[e.ConditionalExpression = 224] = "ConditionalExpression", e[e.TemplateExpression = 225] = "TemplateExpression", e[e.YieldExpression = 226] = "YieldExpression", e[e.SpreadElement = 227] = "SpreadElement", e[e.ClassExpression = 228] = "ClassExpression", e[e.OmittedExpression = 229] = "OmittedExpression", e[e.ExpressionWithTypeArguments = 230] = "ExpressionWithTypeArguments", e[e.AsExpression = 231] = "AsExpression", e[e.NonNullExpression = 232] = "NonNullExpression", e[e.MetaProperty = 233] = "MetaProperty", e[e.SyntheticExpression = 234] = "SyntheticExpression", e[e.SatisfiesExpression = 235] = "SatisfiesExpression", e[e.TemplateSpan = 236] = "TemplateSpan", e[e.SemicolonClassElement = 237] = "SemicolonClassElement", e[e.Block = 238] = "Block", e[e.EmptyStatement = 239] = "EmptyStatement", e[e.VariableStatement = 240] = "VariableStatement", e[e.ExpressionStatement = 241] = "ExpressionStatement", e[e.IfStatement = 242] = "IfStatement", e[e.DoStatement = 243] = "DoStatement", e[e.WhileStatement = 244] = "WhileStatement", e[e.ForStatement = 245] = "ForStatement", e[e.ForInStatement = 246] = "ForInStatement", e[e.ForOfStatement = 247] = "ForOfStatement", e[e.ContinueStatement = 248] = "ContinueStatement", e[e.BreakStatement = 249] = "BreakStatement", e[e.ReturnStatement = 250] = "ReturnStatement", e[e.WithStatement = 251] = "WithStatement", e[e.SwitchStatement = 252] = "SwitchStatement", e[e.LabeledStatement = 253] = "LabeledStatement", e[e.ThrowStatement = 254] = "ThrowStatement", e[e.TryStatement = 255] = "TryStatement", e[e.DebuggerStatement = 256] = "DebuggerStatement", e[e.VariableDeclaration = 257] = "VariableDeclaration", e[e.VariableDeclarationList = 258] = "VariableDeclarationList", e[e.FunctionDeclaration = 259] = "FunctionDeclaration", e[e.ClassDeclaration = 260] = "ClassDeclaration", e[e.InterfaceDeclaration = 261] = "InterfaceDeclaration", e[e.TypeAliasDeclaration = 262] = "TypeAliasDeclaration", e[e.EnumDeclaration = 263] = "EnumDeclaration", e[e.ModuleDeclaration = 264] = "ModuleDeclaration", e[e.ModuleBlock = 265] = "ModuleBlock", e[e.CaseBlock = 266] = "CaseBlock", e[e.NamespaceExportDeclaration = 267] = "NamespaceExportDeclaration", e[e.ImportEqualsDeclaration = 268] = "ImportEqualsDeclaration", e[e.ImportDeclaration = 269] = "ImportDeclaration", e[e.ImportClause = 270] = "ImportClause", e[e.NamespaceImport = 271] = "NamespaceImport", e[e.NamedImports = 272] = "NamedImports", e[e.ImportSpecifier = 273] = "ImportSpecifier", e[e.ExportAssignment = 274] = "ExportAssignment", e[e.ExportDeclaration = 275] = "ExportDeclaration", e[e.NamedExports = 276] = "NamedExports", e[e.NamespaceExport = 277] = "NamespaceExport", e[e.ExportSpecifier = 278] = "ExportSpecifier", e[e.MissingDeclaration = 279] = "MissingDeclaration", e[e.ExternalModuleReference = 280] = "ExternalModuleReference", e[e.JsxElement = 281] = "JsxElement", e[e.JsxSelfClosingElement = 282] = "JsxSelfClosingElement", e[e.JsxOpeningElement = 283] = "JsxOpeningElement", e[e.JsxClosingElement = 284] = "JsxClosingElement", e[e.JsxFragment = 285] = "JsxFragment", e[e.JsxOpeningFragment = 286] = "JsxOpeningFragment", e[e.JsxClosingFragment = 287] = "JsxClosingFragment", e[e.JsxAttribute = 288] = "JsxAttribute", e[e.JsxAttributes = 289] = "JsxAttributes", e[e.JsxSpreadAttribute = 290] = "JsxSpreadAttribute", e[e.JsxExpression = 291] = "JsxExpression", e[e.CaseClause = 292] = "CaseClause", e[e.DefaultClause = 293] = "DefaultClause", e[e.HeritageClause = 294] = "HeritageClause", e[e.CatchClause = 295] = "CatchClause", e[e.AssertClause = 296] = "AssertClause", e[e.AssertEntry = 297] = "AssertEntry", e[e.ImportTypeAssertionContainer = 298] = "ImportTypeAssertionContainer", e[e.PropertyAssignment = 299] = "PropertyAssignment", e[e.ShorthandPropertyAssignment = 300] = "ShorthandPropertyAssignment", e[e.SpreadAssignment = 301] = "SpreadAssignment", e[e.EnumMember = 302] = "EnumMember", e[e.UnparsedPrologue = 303] = "UnparsedPrologue", e[e.UnparsedPrepend = 304] = "UnparsedPrepend", e[e.UnparsedText = 305] = "UnparsedText", e[e.UnparsedInternalText = 306] = "UnparsedInternalText", e[e.UnparsedSyntheticReference = 307] = "UnparsedSyntheticReference", e[e.SourceFile = 308] = "SourceFile", e[e.Bundle = 309] = "Bundle", e[e.UnparsedSource = 310] = "UnparsedSource", e[e.InputFiles = 311] = "InputFiles", e[e.JSDocTypeExpression = 312] = "JSDocTypeExpression", e[e.JSDocNameReference = 313] = "JSDocNameReference", e[e.JSDocMemberName = 314] = "JSDocMemberName", e[e.JSDocAllType = 315] = "JSDocAllType", e[e.JSDocUnknownType = 316] = "JSDocUnknownType", e[e.JSDocNullableType = 317] = "JSDocNullableType", e[e.JSDocNonNullableType = 318] = "JSDocNonNullableType", e[e.JSDocOptionalType = 319] = "JSDocOptionalType", e[e.JSDocFunctionType = 320] = "JSDocFunctionType", e[e.JSDocVariadicType = 321] = "JSDocVariadicType", e[e.JSDocNamepathType = 322] = "JSDocNamepathType", e[e.JSDoc = 323] = "JSDoc", e[e.JSDocComment = 323] = "JSDocComment", e[e.JSDocText = 324] = "JSDocText", e[e.JSDocTypeLiteral = 325] = "JSDocTypeLiteral", e[e.JSDocSignature = 326] = "JSDocSignature", e[e.JSDocLink = 327] = "JSDocLink", e[e.JSDocLinkCode = 328] = "JSDocLinkCode", e[e.JSDocLinkPlain = 329] = "JSDocLinkPlain", e[e.JSDocTag = 330] = "JSDocTag", e[e.JSDocAugmentsTag = 331] = "JSDocAugmentsTag", e[e.JSDocImplementsTag = 332] = "JSDocImplementsTag", e[e.JSDocAuthorTag = 333] = "JSDocAuthorTag", e[e.JSDocDeprecatedTag = 334] = "JSDocDeprecatedTag", e[e.JSDocClassTag = 335] = "JSDocClassTag", e[e.JSDocPublicTag = 336] = "JSDocPublicTag", e[e.JSDocPrivateTag = 337] = "JSDocPrivateTag", e[e.JSDocProtectedTag = 338] = "JSDocProtectedTag", e[e.JSDocReadonlyTag = 339] = "JSDocReadonlyTag", e[e.JSDocOverrideTag = 340] = "JSDocOverrideTag", e[e.JSDocCallbackTag = 341] = "JSDocCallbackTag", e[e.JSDocOverloadTag = 342] = "JSDocOverloadTag", e[e.JSDocEnumTag = 343] = "JSDocEnumTag", e[e.JSDocParameterTag = 344] = "JSDocParameterTag", e[e.JSDocReturnTag = 345] = "JSDocReturnTag", e[e.JSDocThisTag = 346] = "JSDocThisTag", e[e.JSDocTypeTag = 347] = "JSDocTypeTag", e[e.JSDocTemplateTag = 348] = "JSDocTemplateTag", e[e.JSDocTypedefTag = 349] = "JSDocTypedefTag", e[e.JSDocSeeTag = 350] = "JSDocSeeTag", e[e.JSDocPropertyTag = 351] = "JSDocPropertyTag", e[e.JSDocThrowsTag = 352] = "JSDocThrowsTag", e[e.JSDocSatisfiesTag = 353] = "JSDocSatisfiesTag", e[e.SyntaxList = 354] = "SyntaxList", e[e.NotEmittedStatement = 355] = "NotEmittedStatement", e[e.PartiallyEmittedExpression = 356] = "PartiallyEmittedExpression", e[e.CommaListExpression = 357] = "CommaListExpression", e[e.MergeDeclarationMarker = 358] = "MergeDeclarationMarker", e[e.EndOfDeclarationMarker = 359] = "EndOfDeclarationMarker", e[e.SyntheticReferenceExpression = 360] = "SyntheticReferenceExpression", e[e.Count = 361] = "Count", e[e.FirstAssignment = 63] = "FirstAssignment", e[e.LastAssignment = 78] = "LastAssignment", e[e.FirstCompoundAssignment = 64] = "FirstCompoundAssignment", e[e.LastCompoundAssignment = 78] = "LastCompoundAssignment", e[e.FirstReservedWord = 81] = "FirstReservedWord", e[e.LastReservedWord = 116] = "LastReservedWord", e[e.FirstKeyword = 81] = "FirstKeyword", e[e.LastKeyword = 162] = "LastKeyword", e[e.FirstFutureReservedWord = 117] = "FirstFutureReservedWord", e[e.LastFutureReservedWord = 125] = "LastFutureReservedWord", e[e.FirstTypeNode = 179] = "FirstTypeNode", e[e.LastTypeNode = 202] = "LastTypeNode", e[e.FirstPunctuation = 18] = "FirstPunctuation", e[e.LastPunctuation = 78] = "LastPunctuation", e[e.FirstToken = 0] = "FirstToken", e[e.LastToken = 162] = "LastToken", e[e.FirstTriviaToken = 2] = "FirstTriviaToken", e[e.LastTriviaToken = 7] = "LastTriviaToken", e[e.FirstLiteralToken = 8] = "FirstLiteralToken", e[e.LastLiteralToken = 14] = "LastLiteralToken", e[e.FirstTemplateToken = 14] = "FirstTemplateToken", e[e.LastTemplateToken = 17] = "LastTemplateToken", e[e.FirstBinaryOperator = 29] = "FirstBinaryOperator", e[e.LastBinaryOperator = 78] = "LastBinaryOperator", e[e.FirstStatement = 240] = "FirstStatement", e[e.LastStatement = 256] = "LastStatement", e[e.FirstNode = 163] = "FirstNode", e[e.FirstJSDocNode = 312] = "FirstJSDocNode", e[e.LastJSDocNode = 353] = "LastJSDocNode", e[e.FirstJSDocTagNode = 330] = "FirstJSDocTagNode", e[e.LastJSDocTagNode = 353] = "LastJSDocTagNode", e[e.FirstContextualKeyword = 126] = "FirstContextualKeyword", e[e.LastContextualKeyword = 162] = "LastContextualKeyword", e))(BP || {}), GP = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Let = 1] = "Let", e[e.Const = 2] = "Const", e[e.NestedNamespace = 4] = "NestedNamespace", e[e.Synthesized = 8] = "Synthesized", e[e.Namespace = 16] = "Namespace", e[e.OptionalChain = 32] = "OptionalChain", e[e.ExportContext = 64] = "ExportContext", e[e.ContainsThis = 128] = "ContainsThis", e[e.HasImplicitReturn = 256] = "HasImplicitReturn", e[e.HasExplicitReturn = 512] = "HasExplicitReturn", e[e.GlobalAugmentation = 1024] = "GlobalAugmentation", e[e.HasAsyncFunctions = 2048] = "HasAsyncFunctions", e[e.DisallowInContext = 4096] = "DisallowInContext", e[e.YieldContext = 8192] = "YieldContext", e[e.DecoratorContext = 16384] = "DecoratorContext", e[e.AwaitContext = 32768] = "AwaitContext", e[e.DisallowConditionalTypesContext = 65536] = "DisallowConditionalTypesContext", e[e.ThisNodeHasError = 131072] = "ThisNodeHasError", e[e.JavaScriptFile = 262144] = "JavaScriptFile", e[e.ThisNodeOrAnySubNodesHasError = 524288] = "ThisNodeOrAnySubNodesHasError", e[e.HasAggregatedChildData = 1048576] = "HasAggregatedChildData", e[e.PossiblyContainsDynamicImport = 2097152] = "PossiblyContainsDynamicImport", e[e.PossiblyContainsImportMeta = 4194304] = "PossiblyContainsImportMeta", e[e.JSDoc = 8388608] = "JSDoc", e[e.Ambient = 16777216] = "Ambient", e[e.InWithStatement = 33554432] = "InWithStatement", e[e.JsonFile = 67108864] = "JsonFile", e[e.TypeCached = 134217728] = "TypeCached", e[e.Deprecated = 268435456] = "Deprecated", e[e.BlockScoped = 3] = "BlockScoped", e[e.ReachabilityCheckFlags = 768] = "ReachabilityCheckFlags", e[e.ReachabilityAndEmitFlags = 2816] = "ReachabilityAndEmitFlags", e[e.ContextFlags = 50720768] = "ContextFlags", e[e.TypeExcludesFlags = 40960] = "TypeExcludesFlags", e[e.PermanentlySetIncrementalFlags = 6291456] = "PermanentlySetIncrementalFlags", e[e.IdentifierHasExtendedUnicodeEscape = 128] = "IdentifierHasExtendedUnicodeEscape", e[e.IdentifierIsInJSDocNamespace = 2048] = "IdentifierIsInJSDocNamespace", e))(GP || {}), UP = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Export = 1] = "Export", e[e.Ambient = 2] = "Ambient", e[e.Public = 4] = "Public", e[e.Private = 8] = "Private", e[e.Protected = 16] = "Protected", e[e.Static = 32] = "Static", e[e.Readonly = 64] = "Readonly", e[e.Accessor = 128] = "Accessor", e[e.Abstract = 256] = "Abstract", e[e.Async = 512] = "Async", e[e.Default = 1024] = "Default", e[e.Const = 2048] = "Const", e[e.HasComputedJSDocModifiers = 4096] = "HasComputedJSDocModifiers", e[e.Deprecated = 8192] = "Deprecated", e[e.Override = 16384] = "Override", e[e.In = 32768] = "In", e[e.Out = 65536] = "Out", e[e.Decorator = 131072] = "Decorator", e[e.HasComputedFlags = 536870912] = "HasComputedFlags", e[e.AccessibilityModifier = 28] = "AccessibilityModifier", e[e.ParameterPropertyModifier = 16476] = "ParameterPropertyModifier", e[e.NonPublicAccessibilityModifier = 24] = "NonPublicAccessibilityModifier", e[e.TypeScriptModifier = 117086] = "TypeScriptModifier", e[e.ExportDefault = 1025] = "ExportDefault", e[e.All = 258047] = "All", e[e.Modifier = 126975] = "Modifier", e))(UP || {}), Sj = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.IntrinsicNamedElement = 1] = "IntrinsicNamedElement", e[e.IntrinsicIndexedElement = 2] = "IntrinsicIndexedElement", e[e.IntrinsicElement = 3] = "IntrinsicElement", e))(Sj || {}), VP = /* @__PURE__ */ ((e) => (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))(VP || {}), jP = /* @__PURE__ */ ((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))(jP || {}), xj = /* @__PURE__ */ ((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.BinaryOrOctalSpecifier = 384] = "BinaryOrOctalSpecifier", e[e.NumericLiteralFlags = 1008] = "NumericLiteralFlags", e[e.TemplateLiteralLikeFlags = 2048] = "TemplateLiteralLikeFlags", e))(xj || {}), cR = /* @__PURE__ */ ((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))(cR || {}), Aj = /* @__PURE__ */ ((e) => (e[e.ExpectError = 0] = "ExpectError", e[e.Ignore = 1] = "Ignore", e))(Aj || {}), eI = class { }, HP = /* @__PURE__ */ ((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))(HP || {}), Cj = /* @__PURE__ */ ((e) => (e[e.FilePreprocessingReferencedDiagnostic = 0] = "FilePreprocessingReferencedDiagnostic", e[e.FilePreprocessingFileExplainingDiagnostic = 1] = "FilePreprocessingFileExplainingDiagnostic", e[e.ResolutionDiagnostics = 2] = "ResolutionDiagnostics", e))(Cj || {}), Lj = /* @__PURE__ */ ((e) => (e[e.Js = 0] = "Js", e[e.Dts = 1] = "Dts", e))(Lj || {}), Ij = /* @__PURE__ */ ((e) => (e[e.Not = 0] = "Not", e[e.SafeModules = 1] = "SafeModules", e[e.Completely = 2] = "Completely", e))(Ij || {}), kj = /* @__PURE__ */ ((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))(kj || {}), wj = /* @__PURE__ */ ((e) => (e[e.Ok = 0] = "Ok", e[e.NeedsOverride = 1] = "NeedsOverride", e[e.HasInvalidOverride = 2] = "HasInvalidOverride", e))(wj || {}), Dj = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Literal = 1] = "Literal", e[e.Subtype = 2] = "Subtype", e))(Dj || {}), Rj = /* @__PURE__ */ ((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))(Rj || {}), Nj = /* @__PURE__ */ ((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.AllowNodeModulesRelativePaths = 67108864] = "AllowNodeModulesRelativePaths", e[e.DoNotIncludeSymbolChain = 134217728] = "DoNotIncludeSymbolChain", e[e.IgnoreErrors = 70221824] = "IgnoreErrors", e[e.InObjectTypeLiteral = 4194304] = "InObjectTypeLiteral", e[e.InTypeAlias = 8388608] = "InTypeAlias", e[e.InInitialEntityName = 16777216] = "InInitialEntityName", e))(Nj || {}), Oj = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.NoTruncation = 1] = "NoTruncation", e[e.WriteArrayAsGenericType = 2] = "WriteArrayAsGenericType", 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 = 848330091] = "NodeBuilderFlagsMask", e))(Oj || {}), Pj = /* @__PURE__ */ ((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))(Pj || {}), Mj = /* @__PURE__ */ ((e) => (e[e.Accessible = 0] = "Accessible", e[e.NotAccessible = 1] = "NotAccessible", e[e.CannotBeNamed = 2] = "CannotBeNamed", e))(Mj || {}), Fj = /* @__PURE__ */ ((e) => (e[e.UnionOrIntersection = 0] = "UnionOrIntersection", e[e.Spread = 1] = "Spread", e))(Fj || {}), Bj = /* @__PURE__ */ ((e) => (e[e.This = 0] = "This", e[e.Identifier = 1] = "Identifier", e[e.AssertsThis = 2] = "AssertsThis", e[e.AssertsIdentifier = 3] = "AssertsIdentifier", e))(Bj || {}), Gj = /* @__PURE__ */ ((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))(Gj || {}), WP = /* @__PURE__ */ ((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 = 67108863] = "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))(WP || {}), Uj = /* @__PURE__ */ ((e) => (e[e.Numeric = 0] = "Numeric", e[e.Literal = 1] = "Literal", e))(Uj || {}), Vj = /* @__PURE__ */ ((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))(Vj || {}), jj = /* @__PURE__ */ ((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))(jj || {}), Hj = /* @__PURE__ */ ((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.ClassWithBodyScopedClassBinding = 65536] = "ClassWithBodyScopedClassBinding", e[e.BodyScopedClassBinding = 131072] = "BodyScopedClassBinding", e[e.NeedsLoopOutParameter = 262144] = "NeedsLoopOutParameter", e[e.AssignmentsMarked = 524288] = "AssignmentsMarked", e[e.ClassWithConstructorReference = 1048576] = "ClassWithConstructorReference", e[e.ConstructorReferenceInClass = 2097152] = "ConstructorReferenceInClass", e[e.ContainsClassWithPrivateIdentifiers = 4194304] = "ContainsClassWithPrivateIdentifiers", e[e.ContainsSuperPropertyInStaticInitializer = 8388608] = "ContainsSuperPropertyInStaticInitializer", e[e.InCheckIdentifier = 16777216] = "InCheckIdentifier", e))(Hj || {}), zP = /* @__PURE__ */ ((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.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.Primitive = 134348796] = "Primitive", 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.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 = 205258751] = "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.NotPrimitiveUnion = 36323363] = "NotPrimitiveUnion", e))(zP || {}), qP = /* @__PURE__ */ ((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.ObjectTypeKindMask = 1343] = "ObjectTypeKindMask", e[e.ContainsSpread = 2097152] = "ContainsSpread", e[e.ObjectRestType = 4194304] = "ObjectRestType", e[e.InstantiationExpressionType = 8388608] = "InstantiationExpressionType", 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))(qP || {}), Wj = /* @__PURE__ */ ((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))(Wj || {}), zj = /* @__PURE__ */ ((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))(zj || {}), qj = /* @__PURE__ */ ((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))(qj || {}), Jj = /* @__PURE__ */ ((e) => (e[e.Component = 0] = "Component", e[e.Function = 1] = "Function", e[e.Mixed = 2] = "Mixed", e))(Jj || {}), Kj = /* @__PURE__ */ ((e) => (e[e.Call = 0] = "Call", e[e.Construct = 1] = "Construct", e))(Kj || {}), JP = /* @__PURE__ */ ((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.PropagatingFlags = 39] = "PropagatingFlags", e[e.CallChainFlags = 24] = "CallChainFlags", e))(JP || {}), Xj = /* @__PURE__ */ ((e) => (e[e.String = 0] = "String", e[e.Number = 1] = "Number", e))(Xj || {}), Yj = /* @__PURE__ */ ((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))(Yj || {}), $j = /* @__PURE__ */ ((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))($j || {}), Qj = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.NoDefault = 1] = "NoDefault", e[e.AnyDefault = 2] = "AnyDefault", e[e.SkippedGenericFunction = 4] = "SkippedGenericFunction", e))(Qj || {}), Zj = /* @__PURE__ */ ((e) => (e[e.False = 0] = "False", e[e.Unknown = 1] = "Unknown", e[e.Maybe = 3] = "Maybe", e[e.True = -1] = "True", e))(Zj || {}), eH = /* @__PURE__ */ ((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))(eH || {}), uR = /* @__PURE__ */ ((e) => (e[e.Warning = 0] = "Warning", e[e.Error = 1] = "Error", e[e.Suggestion = 2] = "Suggestion", e[e.Message = 3] = "Message", e))(uR || {}), dR = /* @__PURE__ */ ((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))(dR || {}), tH = /* @__PURE__ */ ((e) => (e[e.Legacy = 1] = "Legacy", e[e.Auto = 2] = "Auto", e[e.Force = 3] = "Force", e))(tH || {}), nH = /* @__PURE__ */ ((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))(nH || {}), rH = /* @__PURE__ */ ((e) => (e[e.UseFsEvents = 0] = "UseFsEvents", e[e.FixedPollingInterval = 1] = "FixedPollingInterval", e[e.DynamicPriorityPolling = 2] = "DynamicPriorityPolling", e[e.FixedChunkSizePolling = 3] = "FixedChunkSizePolling", e))(rH || {}), iH = /* @__PURE__ */ ((e) => (e[e.FixedInterval = 0] = "FixedInterval", e[e.PriorityInterval = 1] = "PriorityInterval", e[e.DynamicPriority = 2] = "DynamicPriority", e[e.FixedChunkSize = 3] = "FixedChunkSize", e))(iH || {}), KP = /* @__PURE__ */ ((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))(KP || {}), aH = /* @__PURE__ */ ((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))(aH || {}), oH = /* @__PURE__ */ ((e) => (e[e.Remove = 0] = "Remove", e[e.Preserve = 1] = "Preserve", e[e.Error = 2] = "Error", e))(oH || {}), sH = /* @__PURE__ */ ((e) => (e[e.CarriageReturnLineFeed = 0] = "CarriageReturnLineFeed", e[e.LineFeed = 1] = "LineFeed", e))(sH || {}), lH = /* @__PURE__ */ ((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))(lH || {}), cH = /* @__PURE__ */ ((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.ESNext = 99] = "ESNext", e[e.JSON = 100] = "JSON", e[e.Latest = 99] = "Latest", e))(cH || {}), uH = /* @__PURE__ */ ((e) => (e[e.Standard = 0] = "Standard", e[e.JSX = 1] = "JSX", e))(uH || {}), dH = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Recursive = 1] = "Recursive", e))(dH || {}), fH = /* @__PURE__ */ ((e) => (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._ = 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))(fH || {}), _H = /* @__PURE__ */ ((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))(_H || {}), XP = /* @__PURE__ */ ((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))(XP || {}), YP = /* @__PURE__ */ ((e) => (e[e.TabStop = 0] = "TabStop", e[e.Placeholder = 1] = "Placeholder", e[e.Choice = 2] = "Choice", e[e.Variable = 3] = "Variable", e))(YP || {}), $P = /* @__PURE__ */ ((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.HasEndOfDeclarationMarker = 8388608] = "HasEndOfDeclarationMarker", e[e.Iterator = 16777216] = "Iterator", e[e.NoAsciiEscaping = 33554432] = "NoAsciiEscaping", e))($P || {}), pH = /* @__PURE__ */ ((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))(pH || {}), mH = /* @__PURE__ */ ((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.CreateBinding = 4194304] = "CreateBinding", e[e.SetFunctionName = 8388608] = "SetFunctionName", e[e.PropKey = 16777216] = "PropKey", 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))(mH || {}), hH = /* @__PURE__ */ ((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))(hH || {}), gH = /* @__PURE__ */ ((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))(gH || {}), yH = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.InParameters = 1] = "InParameters", e[e.VariablesHoistedInParameters = 2] = "VariablesHoistedInParameters", e))(yH || {}), vH = /* @__PURE__ */ ((e) => (e.Prologue = "prologue", e.EmitHelpers = "emitHelpers", e.NoDefaultLib = "no-default-lib", e.Reference = "reference", e.Type = "type", e.TypeResolutionModeRequire = "type-require", e.TypeResolutionModeImport = "type-import", e.Lib = "lib", e.Prepend = "prepend", e.Text = "text", e.Internal = "internal", e))(vH || {}), bH = /* @__PURE__ */ ((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.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))(bH || {}), EH = /* @__PURE__ */ ((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))(EH || {}), fR = { 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 } ], 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 } }; } }); function _R(e) { let t = 5381; for (let r = 0; r < e.length; r++) t = (t << 5) + t + e.charCodeAt(r); return t.toString(); } function jNe() { Error.stackTraceLimit < 100 && (Error.stackTraceLimit = 100); } function BS(e, t) { return e.getModifiedTime(t) || Yh; } function TH(e) { return { [250]: e.Low, [500]: e.Medium, [2e3]: e.High }; } function HNe(e) { if (!e.getEnvironmentVariable) return; const t = o("TSC_WATCH_POLLINGINTERVAL", QP); hR = s("TSC_WATCH_POLLINGCHUNKSIZE", mR) || hR, gR = s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", mR) || gR; function r(c, f) { return e.getEnvironmentVariable(`${c}_${f.toUpperCase()}`); } function i(c) { let f; return d("Low"), d("Medium"), d("High"), f; function d(y) { const m = r(c, y); m && ((f || (f = {}))[y] = Number(m)); } } function o(c, f) { const d = i(c); if (d) return y("Low"), y("Medium"), y("High"), !0; return !1; function y(m) { f[m] = d[m] || f[m]; } } function s(c, f) { const d = i(c); return (t || d) && TH(d ? { ...f, ...d } : f); } } function qse(e, t, r, i, o) { let s = r; for (let f = t.length; i && f; c(), f--) { const d = t[r]; if (d) { if (d.isClosed) { t[r] = void 0; continue; } } else continue; i--; const y = JNe(d, BS(e, d.fileName)); if (d.isClosed) { t[r] = void 0; continue; } o == null || o(d, r, y), t[r] && (s < r && (t[s] = d, t[r] = void 0), s++); } return r; function c() { r++, r === t.length && (s < r && (t.length = s), r = 0, s = 0); } } function WNe(e) { const t = [], r = [], i = f(250), o = f(500), s = f(2e3); return c; function c(k, B, U) { const j = { fileName: k, callback: B, unchangedPolls: 0, mtime: BS(e, k) }; return t.push(j), A(j, U), { close: () => { j.isClosed = !0, iR(t, j); } }; } function f(k) { const B = []; return B.pollingInterval = k, B.pollIndex = 0, B.pollScheduled = !1, B; } function d(k) { k.pollIndex = m(k, k.pollingInterval, k.pollIndex, hR[k.pollingInterval]), k.length ? O(k.pollingInterval) : (D.assert(k.pollIndex === 0), k.pollScheduled = !1); } function y(k) { m(r, 250, 0, r.length), d(k), !k.pollScheduled && r.length && O(250); } function m(k, B, U, j) { return qse(e, k, U, j, te); function te(X, Y, P) { P ? (X.unchangedPolls = 0, k !== r && (k[Y] = void 0, C(X))) : X.unchangedPolls !== gR[B] ? X.unchangedPolls++ : k === r ? (X.unchangedPolls = 1, k[Y] = void 0, A(X, 250)) : B !== 2e3 && (X.unchangedPolls++, k[Y] = void 0, A(X, B === 250 ? 500 : 2e3)); } } function b(k) { switch (k) { case 250: return i; case 500: return o; case 2e3: return s; } } function A(k, B) { b(B).push(k), I(B); } function C(k) { r.push(k), I(250); } function I(k) { b(k).pollScheduled || O(k); } function O(k) { b(k).pollScheduled = e.setTimeout(k === 250 ? y : d, k, b(k)); } } function zNe(e, t) { const r = o_(), i = /* @__PURE__ */ new Map(), o = $c(t); return s; function s(f, d, y, m) { const b = o(f); r.add(b, d); const A = fi(b) || ".", C = i.get(A) || c(fi(f) || ".", A, m); return C.referenceCount++, { close: () => { C.referenceCount === 1 ? (C.close(), i.delete(A)) : C.referenceCount--, r.remove(b, d); } }; } function c(f, d, y) { const m = e(f, 1, (b, A, C) => { if (!Va(A)) return; const I = Na(A, f), O = I && r.get(o(I)); if (O) for (const k of O) k(I, 1, C); }, !1, 500, y); return m.referenceCount = 0, i.set(d, m), m; } } function qNe(e) { const t = []; let r = 0, i; return o; function o(f, d) { const y = { fileName: f, callback: d, mtime: BS(e, f) }; return t.push(y), c(), { close: () => { y.isClosed = !0, iR(t, y); } }; } function s() { i = void 0, r = qse(e, t, r, hR[250]), c(); } function c() { !t.length || i || (i = e.setTimeout(s, 2e3)); } } function Jse(e, t, r, i, o) { const c = $c(t)(r), f = e.get(c); return f ? f.callbacks.push(i) : e.set(c, { watcher: o((d, y, m) => { var b; return (b = e.get(c)) == null ? void 0 : b.callbacks.slice().forEach((A) => A(d, y, m)); }), callbacks: [i] }), { close: () => { const d = e.get(c); d && (!CP(d.callbacks, i) || d.callbacks.length || (e.delete(c), Hm(d))); } }; } function JNe(e, t) { const r = e.mtime.getTime(), i = t.getTime(); return r !== i ? (e.mtime = t, e.callback(e.fileName, Kse(r, i), t), !0) : !1; } function Kse(e, t) { return e === 0 ? 0 : t === 0 ? 2 : 1; } function pR(e) { return xH(e); } function Xse(e) { xH = e; } function KNe({ watchDirectory: e, useCaseSensitiveFileNames: t, getCurrentDirectory: r, getAccessibleSortedChildDirectories: i, fileSystemEntryExists: o, realpath: s, setTimeout: c, clearTimeout: f }) { const d = /* @__PURE__ */ new Map(), y = o_(), m = /* @__PURE__ */ new Map(); let b; const A = AP(!t), C = $c(t); return (P, ue, ne, ge) => ne ? I(P, ge, ue) : e(P, ue, ne, ge); function I(P, ue, ne) { const ge = C(P); let ie = d.get(ge); ie ? ie.refCount++ : (ie = { watcher: e(P, (le) => { X(le, ue) || (ue != null && ue.synchronousWatchDirectory ? (O(ge, le), te(P, ge, ue)) : k(P, ge, le, ue)); }, !1, ue), refCount: 1, childWatches: nt }, d.set(ge, ie), te(P, ge, ue)); const H = ne && { dirName: P, callback: ne }; return H && y.add(ge, H), { dirName: P, close: () => { const le = D.checkDefined(d.get(ge)); H && y.remove(ge, H), le.refCount--, !le.refCount && (d.delete(ge), Hm(le), le.childWatches.forEach(Pm)); } }; } function O(P, ue, ne) { let ge, ie; Va(ue) ? ge = ue : ie = ue, y.forEach((H, le) => { if (!(ie && ie.get(le) === !0) && (le === P || Ea(P, le) && P[le.length] === Os)) if (ie) if (ne) { const pe = ie.get(le); pe ? pe.push(...ne) : ie.set(le, ne.slice()); } else ie.set(le, !0); else H.forEach(({ callback: pe }) => pe(ge)); }); } function k(P, ue, ne, ge) { const ie = d.get(ue); if (ie && o(P, 1)) { B(P, ue, ne, ge); return; } O(ue, ne), j(ie); } function B(P, ue, ne, ge) { const ie = m.get(ue); ie ? ie.fileNames.push(ne) : m.set(ue, { dirName: P, options: ge, fileNames: [ne] }), b && (f(b), b = void 0), b = c(U, 1e3); } function U() { b = void 0, pR(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`); const P = nl(), ue = /* @__PURE__ */ new Map(); for (; !b && m.size; ) { const ge = m.entries().next(); D.assert(!ge.done); const { value: [ie, { dirName: H, options: le, fileNames: pe }] } = ge; m.delete(ie); const ye = te(H, ie, le); O(ie, ue, ye ? void 0 : pe); } pR(`sysLog:: invokingWatchers:: Elapsed:: ${nl() - P}ms:: ${m.size}`), y.forEach((ge, ie) => { const H = ue.get(ie); H && ge.forEach(({ callback: le, dirName: pe }) => { Ga(H) ? H.forEach(le) : le(pe); }); }); const ne = nl() - P; pR(`sysLog:: Elapsed:: ${ne}ms:: onTimerToUpdateChildWatches:: ${m.size} ${b}`); } function j(P) { if (!P) return; const ue = P.childWatches; P.childWatches = nt; for (const ne of ue) ne.close(), j(d.get(C(ne.dirName))); } function te(P, ue, ne) { const ge = d.get(ue); if (!ge) return !1; let ie; const H = bse(o(P, 1) ? _a(i(P), (ye) => { const Te = Na(ye, P); return !X(Te, ne) && A(Te, Wo(s(Te))) === 0 ? Te : void 0; }) : nt, ge.childWatches, (ye, Te) => A(ye, Te.dirName), le, Pm, pe); return ge.childWatches = ie || nt, H; function le(ye) { const Te = I(ye, ne); pe(Te); } function pe(ye) { (ie || (ie = [])).push(ye); } } function X(P, ue) { return kt(yR, (ne) => Y(P, ne)) || Yse(P, ue, t, r); } function Y(P, ue) { return lu(P, ue) ? !0 : t ? !1 : lu(C(P), ue); } } function XNe(e) { return (t, r, i) => e(r === 1 ? "change" : "rename", "", i); } function YNe(e, t, r) { return (i, o, s) => { i === "rename" ? (s || (s = r(e) || Yh), t(e, s !== Yh ? 0 : 2, s)) : t(e, 1, s); }; } function Yse(e, t, r, i) { return ((t == null ? void 0 : t.excludeDirectories) || (t == null ? void 0 : t.excludeFiles)) && (X7(e, t == null ? void 0 : t.excludeFiles, r, i()) || X7(e, t == null ? void 0 : t.excludeDirectories, r, i())); } function $se(e, t, r, i, o) { return (s, c) => { if (s === "rename") { const f = c ? Wo(Oi(e, c)) : e; (!c || !Yse(f, r, i, o)) && t(f); } }; } function Qse({ pollingWatchFileWorker: e, getModifiedTime: t, setTimeout: r, clearTimeout: i, fsWatchWorker: o, fileSystemEntryExists: s, useCaseSensitiveFileNames: c, getCurrentDirectory: f, fsSupportsRecursiveFsWatch: d, getAccessibleSortedChildDirectories: y, realpath: m, tscWatchFile: b, useNonPollingWatchers: A, tscWatchDirectory: C, inodeWatching: I, sysLog: O }) { const k = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(); let j, te, X, Y, P = !1; return { watchFile: ue, watchDirectory: le }; function ue(Ge, Fe, We, Re) { Re = ie(Re, A); const Pe = D.checkDefined(Re.watchFile); switch (Pe) { case 0: return Te(Ge, Fe, 250, void 0); case 1: return Te(Ge, Fe, We, void 0); case 2: return ne()(Ge, Fe, We, void 0); case 3: return ge()(Ge, Fe, void 0, void 0); case 4: return ee(Ge, 0, YNe(Ge, Fe, t), !1, We, E8(Re)); case 5: return X || (X = zNe(ee, c)), X(Ge, Fe, We, E8(Re)); default: D.assertNever(Pe); } } function ne() { return j || (j = WNe({ getModifiedTime: t, setTimeout: r })); } function ge() { return te || (te = qNe({ getModifiedTime: t, setTimeout: r })); } function ie(Ge, Fe) { if (Ge && Ge.watchFile !== void 0) return Ge; switch (b) { case "PriorityPollingInterval": return { watchFile: 1 }; case "DynamicPriorityPolling": return { watchFile: 2 }; case "UseFsEvents": return H(4, 1, Ge); case "UseFsEventsWithFallbackDynamicPolling": return H(4, 2, Ge); case "UseFsEventsOnParentDirectory": Fe = !0; default: return Fe ? H(5, 1, Ge) : { watchFile: 4 }; } } function H(Ge, Fe, We) { const Re = We == null ? void 0 : We.fallbackPolling; return { watchFile: Ge, fallbackPolling: Re === void 0 ? Fe : Re }; } function le(Ge, Fe, We, Re) { return d ? ee(Ge, 1, $se(Ge, Fe, Re, c, f), We, 500, E8(Re)) : (Y || (Y = KNe({ useCaseSensitiveFileNames: c, getCurrentDirectory: f, fileSystemEntryExists: s, getAccessibleSortedChildDirectories: y, watchDirectory: pe, realpath: m, setTimeout: r, clearTimeout: i })), Y(Ge, Fe, We, Re)); } function pe(Ge, Fe, We, Re) { D.assert(!We); const Pe = ye(Re), Ke = D.checkDefined(Pe.watchDirectory); switch (Ke) { case 1: return Te(Ge, () => Fe(Ge), 500, void 0); case 2: return ne()(Ge, () => Fe(Ge), 500, void 0); case 3: return ge()(Ge, () => Fe(Ge), void 0, void 0); case 0: return ee(Ge, 1, $se(Ge, Fe, Re, c, f), We, 500, E8(Pe)); default: D.assertNever(Ke); } } function ye(Ge) { if (Ge && Ge.watchDirectory !== void 0) return Ge; switch (C) { case "RecursiveDirectoryUsingFsWatchFile": return { watchDirectory: 1 }; case "RecursiveDirectoryUsingDynamicPriorityPolling": return { watchDirectory: 2 }; default: const Fe = Ge == null ? void 0 : Ge.fallbackPolling; return { watchDirectory: 0, fallbackPolling: Fe !== void 0 ? Fe : void 0 }; } } function Te(Ge, Fe, We, Re) { return Jse(k, c, Ge, Fe, (Pe) => e(Ge, Pe, We, Re)); } function ee(Ge, Fe, We, Re, Pe, Ke) { return Jse(Re ? U : B, c, Ge, We, (He) => $e(Ge, Fe, He, Re, Pe, Ke)); } function $e(Ge, Fe, We, Re, Pe, Ke) { let He, Me; I && (He = Ge.substring(Ge.lastIndexOf(Os)), Me = He.slice(Os.length)); let ot = s(Ge, Fe) ? bt() : it(); return { close: () => { ot && (ot.close(), ot = void 0); } }; function At(nn) { ot && (O(`sysLog:: ${Ge}:: Changing watcher to ${nn === bt ? "Present" : "Missing"}FileSystemEntryWatcher`), ot.close(), ot = nn()); } function bt() { if (P) return O(`sysLog:: ${Ge}:: Defaulting to watchFile`), et(); try { const nn = o(Ge, Re, I ? Vt : We); return nn.on("error", () => { We("rename", ""), At(it); }), nn; } catch (nn) { return P || (P = nn.code === "ENOSPC"), O(`sysLog:: ${Ge}:: Changing to watchFile`), et(); } } function Vt(nn, Xt) { let On; if (Xt && tc(Xt, "~") && (On = Xt, Xt = Xt.slice(0, Xt.length - 1)), nn === "rename" && (!Xt || Xt === Me || tc(Xt, He))) { const Hn = t(Ge) || Yh; On && We(nn, On, Hn), We(nn, Xt, Hn), I ? At(Hn === Yh ? it : bt) : Hn === Yh && At(it); } else On && We(nn, On), We(nn, Xt); } function et() { return ue(Ge, XNe(We), Pe, Ke); } function it() { return ue(Ge, (nn, Xt, On) => { Xt === 0 && (On || (On = t(Ge) || Yh), On !== Yh && (We("rename", "", On), At(bt))); }, Pe, Ke); } } } function Zse(e) { const t = e.writeFile; e.writeFile = (r, i, o) => Ez(r, i, !!o, (s, c, f) => t.call(e, s, c, f), (s) => e.createDirectory(s), (s) => e.directoryExists(s)); } function $Ne(e) { zc = e; } var SH, QP, Yh, mR, hR, gR, yR, xH, AH, zc, QNe = L({ "src/compiler/sys.ts"() { Ra(), SH = /* @__PURE__ */ ((e) => (e[e.Created = 0] = "Created", e[e.Changed = 1] = "Changed", e[e.Deleted = 2] = "Deleted", e))(SH || {}), QP = /* @__PURE__ */ ((e) => (e[e.High = 2e3] = "High", e[e.Medium = 500] = "Medium", e[e.Low = 250] = "Low", e))(QP || {}), Yh = /* @__PURE__ */ new Date(0), mR = { Low: 32, Medium: 64, High: 256 }, hR = TH(mR), gR = TH(mR), yR = ["/node_modules/.", "/.git", "/.#"], xH = io, AH = /* @__PURE__ */ ((e) => (e[e.File = 0] = "File", e[e.Directory = 1] = "Directory", e))(AH || {}), zc = (() => { const e = "\uFEFF"; function t() { const i = /^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/, o = zb("fs"), s = zb("path"), c = zb("os"); let f; try { f = zb("crypto"); } catch { f = void 0; } let d, y = "./profile.cpuprofile"; const m = zb("buffer").Buffer, b = process.platform === "linux" || process.platform === "darwin", A = c.platform(), C = ge(), I = o.realpathSync.native ? process.platform === "win32" ? Pe : o.realpathSync.native : o.realpathSync, O = __filename.endsWith("sys.js") ? s.join(s.dirname(__dirname), "__fake__.js") : __filename, k = process.platform === "win32" || process.platform === "darwin", B = hd(() => process.cwd()), { watchFile: U, watchDirectory: j } = Qse({ pollingWatchFileWorker: H, getModifiedTime: He, setTimeout, clearTimeout, fsWatchWorker: le, useCaseSensitiveFileNames: C, getCurrentDirectory: B, fileSystemEntryExists: Ge, fsSupportsRecursiveFsWatch: k, getAccessibleSortedChildDirectories: (bt) => ee(bt).directories, realpath: Ke, tscWatchFile: process.env.TSC_WATCHFILE, useNonPollingWatchers: process.env.TSC_NONPOLLING_WATCHER, tscWatchDirectory: process.env.TSC_WATCHDIRECTORY, inodeWatching: b, sysLog: pR }), te = { args: process.argv.slice(2), newLine: c.EOL, useCaseSensitiveFileNames: C, write(bt) { process.stdout.write(bt); }, getWidthOfTerminal() { return process.stdout.columns; }, writeOutputIsTTY() { return process.stdout.isTTY; }, readFile: ye, writeFile: Te, watchFile: U, watchDirectory: j, resolvePath: (bt) => s.resolve(bt), fileExists: Fe, directoryExists: We, createDirectory(bt) { if (!te.directoryExists(bt)) try { o.mkdirSync(bt); } catch (Vt) { if (Vt.code !== "EEXIST") throw Vt; } }, getExecutingFilePath() { return O; }, getCurrentDirectory: B, getDirectories: Re, getEnvironmentVariable(bt) { return process.env[bt] || ""; }, readDirectory: $e, getModifiedTime: He, setModifiedTime: Me, deleteFile: ot, createHash: f ? At : _R, createSHA256Hash: f ? At : void 0, getMemoryUsage() { return global.gc && global.gc(), process.memoryUsage().heapUsed; }, getFileSize(bt) { try { const Vt = X(bt); if (Vt != null && Vt.isFile()) return Vt.size; } catch { } return 0; }, exit(bt) { ue(() => process.exit(bt)); }, enableCPUProfiler: Y, disableCPUProfiler: ue, cpuProfilingEnabled: () => !!d || Ii(process.execArgv, "--cpu-prof") || Ii(process.execArgv, "--prof"), realpath: Ke, debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || kt(process.execArgv, (bt) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(bt)), tryEnableSourceMapsForHost() { try { zb("source-map-support").install(); } catch { } }, setTimeout, clearTimeout, clearScreen: () => { process.stdout.write("\x1Bc"); }, setBlocking: () => { process.stdout && process.stdout._handle && process.stdout._handle.setBlocking && process.stdout._handle.setBlocking(!0); }, bufferFrom: ne, base64decode: (bt) => ne(bt, "base64").toString("utf8"), base64encode: (bt) => ne(bt).toString("base64"), require: (bt, Vt) => { try { const et = Dpe(Vt, bt, te); return { module: zb(et), modulePath: et, error: void 0 }; } catch (et) { return { module: void 0, modulePath: void 0, error: et }; } } }; return te; function X(bt) { return o.statSync(bt, { throwIfNoEntry: !1 }); } function Y(bt, Vt) { if (d) return Vt(), !1; const et = zb("inspector"); if (!et || !et.Session) return Vt(), !1; const it = new et.Session(); return it.connect(), it.post("Profiler.enable", () => { it.post("Profiler.start", () => { d = it, y = bt, Vt(); }); }), !0; } function P(bt) { let Vt = 0; const et = /* @__PURE__ */ new Map(), it = qc(s.dirname(O)), nn = `file://${Vp(it) === 1 ? "" : "/"}${it}`; for (const Xt of bt.nodes) if (Xt.callFrame.url) { const On = qc(Xt.callFrame.url); hv(nn, On, C) ? Xt.callFrame.url = GS(nn, On, nn, $c(C), !0) : i.test(On) || (Xt.callFrame.url = (et.has(On) ? et : et.set(On, `external${Vt}.js`)).get(On), Vt++); } return bt; } function ue(bt) { if (d && d !== "stopping") { const Vt = d; return d.post("Profiler.stop", (et, { profile: it }) => { var nn; if (!et) { try { (nn = X(y)) != null && nn.isDirectory() && (y = s.join(y, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`)); } catch { } try { o.mkdirSync(s.dirname(y), { recursive: !0 }); } catch { } o.writeFileSync(y, JSON.stringify(P(it))); } d = void 0, Vt.disconnect(), bt(); }), d = "stopping", !0; } else return bt(), !1; } function ne(bt, Vt) { return m.from && m.from !== Int8Array.from ? m.from(bt, Vt) : new m(bt, Vt); } function ge() { return A === "win32" || A === "win64" ? !1 : !Fe(ie(__filename)); } function ie(bt) { return bt.replace(/\w/g, (Vt) => { const et = Vt.toUpperCase(); return Vt === et ? Vt.toLowerCase() : et; }); } function H(bt, Vt, et) { o.watchFile(bt, { persistent: !0, interval: et }, nn); let it; return { close: () => o.unwatchFile(bt, nn) }; function nn(Xt, On) { const Hn = +On.mtime == 0 || it === 2; if (+Xt.mtime == 0) { if (Hn) return; it = 2; } else if (Hn) it = 0; else { if (+Xt.mtime == +On.mtime) return; it = 1; } Vt(bt, it, Xt.mtime); } } function le(bt, Vt, et) { return o.watch(bt, k ? { persistent: !0, recursive: !!Vt } : { persistent: !0 }, et); } function pe(bt, Vt) { let et; try { et = o.readFileSync(bt); } catch { return; } let it = et.length; if (it >= 2 && et[0] === 254 && et[1] === 255) { it &= -2; for (let nn = 0; nn < it; nn += 2) { const Xt = et[nn]; et[nn] = et[nn + 1], et[nn + 1] = Xt; } return et.toString("utf16le", 2); } return it >= 2 && et[0] === 255 && et[1] === 254 ? et.toString("utf16le", 2) : it >= 3 && et[0] === 239 && et[1] === 187 && et[2] === 191 ? et.toString("utf8", 3) : et.toString("utf8"); } function ye(bt, Vt) { Up.logStartReadFile(bt); const et = pe(bt); return Up.logStopReadFile(), et; } function Te(bt, Vt, et) { Up.logEvent("WriteFile: " + bt), et && (Vt = e + Vt); let it; try { it = o.openSync(bt, "w"), o.writeSync(it, Vt, void 0, "utf8"); } finally { it !== void 0 && o.closeSync(it); } } function ee(bt) { Up.logEvent("ReadDir: " + (bt || ".")); try { const Vt = o.readdirSync(bt || ".", { withFileTypes: !0 }), et = [], it = []; for (const nn of Vt) { const Xt = typeof nn == "string" ? nn : nn.name; if (Xt === "." || Xt === "..") continue; let On; if (typeof nn == "string" || nn.isSymbolicLink()) { const Hn = Oi(bt, Xt); try { if (On = X(Hn), !On) continue; } catch { continue; } } else On = nn; On.isFile() ? et.push(Xt) : On.isDirectory() && it.push(Xt); } return et.sort(), it.sort(), { files: et, directories: it }; } catch { return V3; } } function $e(bt, Vt, et, it, nn) { return Yz(bt, Vt, et, it, C, process.cwd(), nn, ee, Ke); } function Ge(bt, Vt) { const et = Error.stackTraceLimit; Error.stackTraceLimit = 0; try { const it = X(bt); if (!it) return !1; switch (Vt) { case 0: return it.isFile(); case 1: return it.isDirectory(); default: return !1; } } catch { return !1; } finally { Error.stackTraceLimit = et; } } function Fe(bt) { return Ge(bt, 0); } function We(bt) { return Ge(bt, 1); } function Re(bt) { return ee(bt).directories.slice(); } function Pe(bt) { return bt.length < 260 ? o.realpathSync.native(bt) : o.realpathSync(bt); } function Ke(bt) { try { return I(bt); } catch { return bt; } } function He(bt) { var Vt; const et = Error.stackTraceLimit; Error.stackTraceLimit = 0; try { return (Vt = X(bt)) == null ? void 0 : Vt.mtime; } catch { return; } finally { Error.stackTraceLimit = et; } } function Me(bt, Vt) { try { o.utimesSync(bt, Vt, Vt); } catch { return; } } function ot(bt) { try { return o.unlinkSync(bt); } catch { return; } } function At(bt) { const Vt = f.createHash("sha256"); return Vt.update(bt), Vt.digest("hex"); } } let r; return _j() && (r = t()), r && Zse(r), r; })(), zc && zc.getEnvironmentVariable && (HNe(zc), D.setAssertionLevel(/^development$/i.test(zc.getEnvironmentVariable("NODE_ENV")) ? 1 : 0)), zc && zc.debugMode && (D.isDebugging = !0); } }); function CH(e) { return e === 47 || e === 92; } function ele(e) { return vR(e) < 0; } function xm(e) { return vR(e) > 0; } function ZNe(e) { const t = vR(e); return t > 0 && t === e.length; } function tI(e) { return vR(e) !== 0; } function gf(e) { return /^\.\.?($|[\\/])/.test(e); } function LH(e) { return !tI(e) && !gf(e); } function dA(e) { return lu(cu(e), "."); } function oc(e, t) { return e.length > t.length && tc(e, t); } function vc(e, t) { for (const r of t) if (oc(e, r)) return !0; return !1; } function pv(e) { return e.length > 0 && CH(e.charCodeAt(e.length - 1)); } function tle(e) { return e >= 97 && e <= 122 || e >= 65 && e <= 90; } function eOe(e, t) { const r = e.charCodeAt(t); if (r === 58) return t + 1; if (r === 37 && e.charCodeAt(t + 1) === 51) { const i = e.charCodeAt(t + 2); if (i === 97 || i === 65) return t + 3; } return -1; } function vR(e) { if (!e) return 0; const t = e.charCodeAt(0); if (t === 47 || t === 92) { if (e.charCodeAt(1) !== t) return 1; const i = e.indexOf(t === 47 ? Os : TR, 2); return i < 0 ? e.length : i + 1; } if (tle(t) && e.charCodeAt(1) === 58) { const i = e.charCodeAt(2); if (i === 47 || i === 92) return 3; if (e.length === 2) return 2; } const r = e.indexOf(NH); if (r !== -1) { const i = r + NH.length, o = e.indexOf(Os, i); if (o !== -1) { const s = e.slice(0, r), c = e.slice(i, o); if (s === "file" && (c === "" || c === "localhost") && tle(e.charCodeAt(o + 1))) { const f = eOe(e, o + 2); if (f !== -1) { if (e.charCodeAt(f) === 47) return ~(f + 1); if (f === e.length) return ~f; } } return ~(o + 1); } return ~e.length; } return 0; } function Vp(e) { const t = vR(e); return t < 0 ? ~t : t; } function fi(e) { e = qc(e); const t = Vp(e); return t === e.length ? e : (e = qE(e), e.slice(0, Math.max(t, e.lastIndexOf(Os)))); } function cu(e, t, r) { if (e = qc(e), Vp(e) === e.length) return ""; e = qE(e); const o = e.slice(Math.max(Vp(e), e.lastIndexOf(Os) + 1)), s = t !== void 0 && r !== void 0 ? ZP(o, t, r) : void 0; return s ? o.slice(0, o.length - s.length) : o; } function nle(e, t, r) { if (Ea(t, ".") || (t = "." + t), e.length >= t.length && e.charCodeAt(e.length - t.length) === 46) { const i = e.slice(e.length - t.length); if (r(i, t)) return i; } } function tOe(e, t, r) { if (typeof t == "string") return nle(e, t, r) || ""; for (const i of t) { const o = nle(e, i, r); if (o) return o; } return ""; } function ZP(e, t, r) { if (t) return tOe(qE(e), t, r ? DS : RS); const i = cu(e), o = i.lastIndexOf("."); return o >= 0 ? i.substring(o) : ""; } function nOe(e, t) { const r = e.substring(0, t), i = e.substring(t).split(Os); return i.length && !Zs(i) && i.pop(), [r, ...i]; } function rd(e, t = "") { return e = Oi(t, e), nOe(e, Vp(e)); } function a1(e) { return e.length === 0 ? "" : (e[0] && Iu(e[0])) + e.slice(1).join(Os); } function qc(e) { return e.indexOf("\\") !== -1 ? e.replace(rle, Os) : e; } function zE(e) { if (!kt(e)) return []; const t = [e[0]]; for (let r = 1; r < e.length; r++) { const i = e[r]; if (i && i !== ".") { if (i === "..") { if (t.length > 1) { if (t[t.length - 1] !== "..") { t.pop(); continue; } } else if (t[0]) continue; } t.push(i); } } return t; } function Oi(e, ...t) { e && (e = qc(e)); for (let r of t) r && (r = qc(r), !e || Vp(r) !== 0 ? e = r : e = Iu(e) + r); return e; } function mv(e, ...t) { return Wo(kt(t) ? Oi(e, ...t) : qc(e)); } function bR(e, t) { return zE(rd(e, t)); } function Na(e, t) { return a1(bR(e, t)); } function Wo(e) { if (e = qc(e), !SR.test(e)) return e; const t = e.replace(/\/\.\//g, "/").replace(/^\.\//, ""); if (t !== e && (e = t, !SR.test(e))) return e; const r = a1(zE(rd(e))); return r && pv(e) ? Iu(r) : r; } function rOe(e) { return e.length === 0 ? "" : e.slice(1).join(Os); } function IH(e, t) { return rOe(bR(e, t)); } function Hs(e, t, r) { const i = xm(e) ? Wo(e) : Na(e, t); return r(i); } function qE(e) { return pv(e) ? e.substr(0, e.length - 1) : e; } function Iu(e) { return pv(e) ? e : e + Os; } function o1(e) { return !tI(e) && !gf(e) ? "./" + e : e; } function kH(e, t, r, i) { const o = r !== void 0 && i !== void 0 ? ZP(e, r, i) : ZP(e); return o ? e.slice(0, e.length - o.length) + (Ea(t, ".") ? t : "." + t) : e; } function wH(e, t, r) { if (e === t) return 0; if (e === void 0) return -1; if (t === void 0) return 1; const i = e.substring(0, Vp(e)), o = t.substring(0, Vp(t)), s = xP(i, o); if (s !== 0) return s; const c = e.substring(i.length), f = t.substring(o.length); if (!SR.test(c) && !SR.test(f)) return r(c, f); const d = zE(rd(e)), y = zE(rd(t)), m = Math.min(d.length, y.length); for (let b = 1; b < m; b++) { const A = r(d[b], y[b]); if (A !== 0) return A; } return js(d.length, y.length); } function iOe(e, t) { return wH(e, t, Lu); } function aOe(e, t) { return wH(e, t, xP); } function JE(e, t, r, i) { return typeof r == "string" ? (e = Oi(r, e), t = Oi(r, t)) : typeof r == "boolean" && (i = r), wH(e, t, AP(i)); } function hv(e, t, r, i) { if (typeof r == "string" ? (e = Oi(r, e), t = Oi(r, t)) : typeof r == "boolean" && (i = r), e === void 0 || t === void 0) return !1; if (e === t) return !0; const o = zE(rd(e)), s = zE(rd(t)); if (s.length < o.length) return !1; const c = i ? DS : RS; for (let f = 0; f < o.length; f++) if (!(f === 0 ? DS : c)(o[f], s[f])) return !1; return !0; } function DH(e, t, r) { const i = r(e), o = r(t); return Ea(i, o + "/") || Ea(i, o + "\\"); } function RH(e, t, r, i) { const o = zE(rd(e)), s = zE(rd(t)); let c; for (c = 0; c < o.length && c < s.length; c++) { const y = i(o[c]), m = i(s[c]); if (!(c === 0 ? DS : r)(y, m)) break; } if (c === 0) return s; const f = s.slice(c), d = []; for (; c < o.length; c++) d.push(".."); return ["", ...d, ...f]; } function Am(e, t, r) { D.assert(Vp(e) > 0 == Vp(t) > 0, "Paths must either both be absolute or both be relative"); const s = RH(e, t, (typeof r == "boolean" ? r : !1) ? DS : RS, typeof r == "function" ? r : _l); return a1(s); } function nI(e, t, r) { return xm(e) ? GS(t, e, t, r, !1) : e; } function ER(e, t, r) { return o1(Am(fi(e), t, r)); } function GS(e, t, r, i, o) { const s = RH(mv(r, e), mv(r, t), RS, i), c = s[0]; if (o && xm(c)) { const f = c.charAt(0) === Os ? "file://" : "file:///"; s[0] = f + c; } return a1(s); } function $h(e, t) { for (; ; ) { const r = t(e); if (r !== void 0) return r; const i = fi(e); if (i === e) return; e = i; } } function eM(e) { return tc(e, "/node_modules"); } var Os, TR, NH, rle, SR, oOe = L({ "src/compiler/path.ts"() { Ra(), Os = "/", TR = "\\", NH = "://", rle = /\\/g, SR = /(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/; } }); function E(e, t, r, i, o, s, c) { return { code: e, category: t, key: r, message: i, reportsUnnecessary: o, elidedInCompatabilityPyramid: s, reportsDeprecated: c }; } var _, sOe = L({ "src/compiler/diagnosticInformationMap.generated.ts"() { zse(), _ = { Unterminated_string_literal: E(1002, 1, "Unterminated_string_literal_1002", "Unterminated string literal."), Identifier_expected: E(1003, 1, "Identifier_expected_1003", "Identifier expected."), _0_expected: E(1005, 1, "_0_expected_1005", "'{0}' expected."), A_file_cannot_have_a_reference_to_itself: E(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: E(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: E(1009, 1, "Trailing_comma_not_allowed_1009", "Trailing comma not allowed."), Asterisk_Slash_expected: E(1010, 1, "Asterisk_Slash_expected_1010", "'*/' expected."), An_element_access_expression_should_take_an_argument: E(1011, 1, "An_element_access_expression_should_take_an_argument_1011", "An element access expression should take an argument."), Unexpected_token: E(1012, 1, "Unexpected_token_1012", "Unexpected token."), A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(1025, 1, "An_index_signature_cannot_have_a_trailing_comma_1025", "An index signature cannot have a trailing comma."), Accessibility_modifier_already_seen: E(1028, 1, "Accessibility_modifier_already_seen_1028", "Accessibility modifier already seen."), _0_modifier_must_precede_1_modifier: E(1029, 1, "_0_modifier_must_precede_1_modifier_1029", "'{0}' modifier must precede '{1}' modifier."), _0_modifier_already_seen: E(1030, 1, "_0_modifier_already_seen_1030", "'{0}' modifier already seen."), _0_modifier_cannot_appear_on_class_elements_of_this_kind: E(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: E(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: E(1035, 1, "Only_ambient_modules_can_use_quoted_names_1035", "Only ambient modules can use quoted names."), Statements_are_not_allowed_in_ambient_contexts: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(1047, 1, "A_rest_parameter_cannot_be_optional_1047", "A rest parameter cannot be optional."), A_rest_parameter_cannot_have_an_initializer: E(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: E(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: E(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: E(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: E(1053, 1, "A_set_accessor_cannot_have_rest_parameter_1053", "A 'set' accessor cannot have rest parameter."), A_get_accessor_cannot_have_parameters: E(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_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value: E(1055, 1, "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055", "Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."), Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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}>'?"), In_ambient_enum_declarations_member_initializer_must_be_constant_expression: E(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: E(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: E(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: E(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: E(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: E(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: E(1084, 1, "Invalid_reference_directive_syntax_1084", "Invalid 'reference' directive syntax."), Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0: E(1085, 1, "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085", "Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."), _0_modifier_cannot_appear_on_a_constructor_declaration: E(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: E(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: E(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: E(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: E(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: E(1094, 1, "An_accessor_cannot_have_type_parameters_1094", "An accessor cannot have type parameters."), A_set_accessor_cannot_have_a_return_type_annotation: E(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: E(1096, 1, "An_index_signature_must_have_exactly_one_parameter_1096", "An index signature must have exactly one parameter."), _0_list_cannot_be_empty: E(1097, 1, "_0_list_cannot_be_empty_1097", "'{0}' list cannot be empty."), Type_parameter_list_cannot_be_empty: E(1098, 1, "Type_parameter_list_cannot_be_empty_1098", "Type parameter list cannot be empty."), Type_argument_list_cannot_be_empty: E(1099, 1, "Type_argument_list_cannot_be_empty_1099", "Type argument list cannot be empty."), Invalid_use_of_0_in_strict_mode: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(1109, 1, "Expression_expected_1109", "Expression expected."), Type_expected: E(1110, 1, "Type_expected_1110", "Type expected."), A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: E(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: E(1114, 1, "Duplicate_label_0_1114", "Duplicate label '{0}'."), A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: E(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: E(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: E(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: E(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: E(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: E(1120, 1, "An_export_assignment_cannot_have_modifiers_1120", "An export assignment cannot have modifiers."), Octal_literals_are_not_allowed_in_strict_mode: E(1121, 1, "Octal_literals_are_not_allowed_in_strict_mode_1121", "Octal literals are not allowed in strict mode."), Variable_declaration_list_cannot_be_empty: E(1123, 1, "Variable_declaration_list_cannot_be_empty_1123", "Variable declaration list cannot be empty."), Digit_expected: E(1124, 1, "Digit_expected_1124", "Digit expected."), Hexadecimal_digit_expected: E(1125, 1, "Hexadecimal_digit_expected_1125", "Hexadecimal digit expected."), Unexpected_end_of_text: E(1126, 1, "Unexpected_end_of_text_1126", "Unexpected end of text."), Invalid_character: E(1127, 1, "Invalid_character_1127", "Invalid character."), Declaration_or_statement_expected: E(1128, 1, "Declaration_or_statement_expected_1128", "Declaration or statement expected."), Statement_expected: E(1129, 1, "Statement_expected_1129", "Statement expected."), case_or_default_expected: E(1130, 1, "case_or_default_expected_1130", "'case' or 'default' expected."), Property_or_signature_expected: E(1131, 1, "Property_or_signature_expected_1131", "Property or signature expected."), Enum_member_expected: E(1132, 1, "Enum_member_expected_1132", "Enum member expected."), Variable_declaration_expected: E(1134, 1, "Variable_declaration_expected_1134", "Variable declaration expected."), Argument_expression_expected: E(1135, 1, "Argument_expression_expected_1135", "Argument expression expected."), Property_assignment_expected: E(1136, 1, "Property_assignment_expected_1136", "Property assignment expected."), Expression_or_comma_expected: E(1137, 1, "Expression_or_comma_expected_1137", "Expression or comma expected."), Parameter_declaration_expected: E(1138, 1, "Parameter_declaration_expected_1138", "Parameter declaration expected."), Type_parameter_declaration_expected: E(1139, 1, "Type_parameter_declaration_expected_1139", "Type parameter declaration expected."), Type_argument_expected: E(1140, 1, "Type_argument_expected_1140", "Type argument expected."), String_literal_expected: E(1141, 1, "String_literal_expected_1141", "String literal expected."), Line_break_not_permitted_here: E(1142, 1, "Line_break_not_permitted_here_1142", "Line break not permitted here."), or_expected: E(1144, 1, "or_expected_1144", "'{' or ';' expected."), or_JSX_element_expected: E(1145, 1, "or_JSX_element_expected_1145", "'{' or JSX element expected."), Declaration_expected: E(1146, 1, "Declaration_expected_1146", "Declaration expected."), Import_declarations_in_a_namespace_cannot_reference_a_module: E(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: E(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: E(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."), const_declarations_must_be_initialized: E(1155, 1, "const_declarations_must_be_initialized_1155", "'const' declarations must be initialized."), const_declarations_can_only_be_declared_inside_a_block: E(1156, 1, "const_declarations_can_only_be_declared_inside_a_block_1156", "'const' declarations can only be declared inside a block."), let_declarations_can_only_be_declared_inside_a_block: E(1157, 1, "let_declarations_can_only_be_declared_inside_a_block_1157", "'let' declarations can only be declared inside a block."), Unterminated_template_literal: E(1160, 1, "Unterminated_template_literal_1160", "Unterminated template literal."), Unterminated_regular_expression_literal: E(1161, 1, "Unterminated_regular_expression_literal_1161", "Unterminated regular expression literal."), An_object_member_cannot_be_declared_optional: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(1172, 1, "extends_clause_already_seen_1172", "'extends' clause already seen."), extends_clause_must_precede_implements_clause: E(1173, 1, "extends_clause_must_precede_implements_clause_1173", "'extends' clause must precede 'implements' clause."), Classes_can_only_extend_a_single_class: E(1174, 1, "Classes_can_only_extend_a_single_class_1174", "Classes can only extend a single class."), implements_clause_already_seen: E(1175, 1, "implements_clause_already_seen_1175", "'implements' clause already seen."), Interface_declaration_cannot_have_implements_clause: E(1176, 1, "Interface_declaration_cannot_have_implements_clause_1176", "Interface declaration cannot have 'implements' clause."), Binary_digit_expected: E(1177, 1, "Binary_digit_expected_1177", "Binary digit expected."), Octal_digit_expected: E(1178, 1, "Octal_digit_expected_1178", "Octal digit expected."), Unexpected_token_expected: E(1179, 1, "Unexpected_token_expected_1179", "Unexpected token. '{' expected."), Property_destructuring_pattern_expected: E(1180, 1, "Property_destructuring_pattern_expected_1180", "Property destructuring pattern expected."), Array_element_destructuring_pattern_expected: E(1181, 1, "Array_element_destructuring_pattern_expected_1181", "Array element destructuring pattern expected."), A_destructuring_declaration_must_have_an_initializer: E(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: E(1183, 1, "An_implementation_cannot_be_declared_in_ambient_contexts_1183", "An implementation cannot be declared in ambient contexts."), Modifiers_cannot_appear_here: E(1184, 1, "Modifiers_cannot_appear_here_1184", "Modifiers cannot appear here."), Merge_conflict_marker_encountered: E(1185, 1, "Merge_conflict_marker_encountered_1185", "Merge conflict marker encountered."), A_rest_element_cannot_have_an_initializer: E(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: E(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: E(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: E(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: E(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: E(1191, 1, "An_import_declaration_cannot_have_modifiers_1191", "An import declaration cannot have modifiers."), Module_0_has_no_default_export: E(1192, 1, "Module_0_has_no_default_export_1192", "Module '{0}' has no default export."), An_export_declaration_cannot_have_modifiers: E(1193, 1, "An_export_declaration_cannot_have_modifiers_1193", "An export declaration cannot have modifiers."), Export_declarations_are_not_permitted_in_a_namespace: E(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: E(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: E(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: E(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: E(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: E(1199, 1, "Unterminated_Unicode_escape_sequence_1199", "Unterminated Unicode escape sequence."), Line_terminator_not_permitted_before_arrow: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(1223, 1, "_0_tag_already_specified_1223", "'{0}' tag already specified."), Signature_0_must_be_a_type_predicate: E(1224, 1, "Signature_0_must_be_a_type_predicate_1224", "Signature '{0}' must be a type predicate."), Cannot_find_parameter_0: E(1225, 1, "Cannot_find_parameter_0_1225", "Cannot find parameter '{0}'."), Type_predicate_0_is_not_assignable_to_1: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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_ES3_or_ES5: E(1250, 1, "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250", "Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."), Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode: E(1251, 1, "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251", "Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."), Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode: E(1252, 1, "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252", "Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."), A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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."), with_statements_are_not_allowed_in_an_async_function_block: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(1348, 1, "Non_simple_parameter_declared_here_1348", "Non-simple parameter declared here."), use_strict_directive_used_here: E(1349, 1, "use_strict_directive_used_here_1349", "'use strict' directive used here."), Print_the_final_configuration_instead_of_building: E(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: E(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: E(1352, 1, "A_bigint_literal_cannot_use_exponential_notation_1352", "A bigint literal cannot use exponential notation."), A_bigint_literal_must_be_an_integer: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(1364, 3, "Convert_to_type_only_export_1364", "Convert to type-only export"), Convert_all_re_exported_types_to_type_only_exports: E(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: E(1366, 3, "Split_into_two_separate_import_declarations_1366", "Split into two separate import declarations"), Split_all_invalid_type_only_imports: E(1367, 3, "Split_all_invalid_type_only_imports_1367", "Split all invalid type-only imports"), Class_constructor_may_not_be_a_generator: E(1368, 1, "Class_constructor_may_not_be_a_generator_1368", "Class constructor may not be a generator."), Did_you_mean_0: E(1369, 3, "Did_you_mean_0_1369", "Did you mean '{0}'?"), This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: E(1371, 1, "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371", "This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."), Convert_to_type_only_import: E(1373, 3, "Convert_to_type_only_import_1373", "Convert to type-only import"), Convert_all_imports_not_used_as_a_value_to_type_only_imports: E(1374, 3, "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374", "Convert all imports not used as a value to type-only imports"), 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: E(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: E(1376, 3, "_0_was_imported_here_1376", "'{0}' was imported here."), _0_was_exported_here: E(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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: E(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', or 'nodenext', and the 'target' option is set to 'es2017' or higher."), An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: E(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: E(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: E(1381, 1, "Unexpected_token_Did_you_mean_or_rbrace_1381", "Unexpected token. Did you mean `{'}'}` or `}`?"), Unexpected_token_Did_you_mean_or_gt: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(1392, 1, "An_import_alias_cannot_use_import_type_1392", "An import alias cannot use 'import type'"), Imported_via_0_from_file_1: E(1393, 3, "Imported_via_0_from_file_1_1393", "Imported via {0} from file '{1}'"), Imported_via_0_from_file_1_with_packageId_2: E(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: E(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: E(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: E(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: E(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: E(1399, 3, "File_is_included_via_import_here_1399", "File is included via import here."), Referenced_via_0_from_file_1: E(1400, 3, "Referenced_via_0_from_file_1_1400", "Referenced via '{0}' from file '{1}'"), File_is_included_via_reference_here: E(1401, 3, "File_is_included_via_reference_here_1401", "File is included via reference here."), Type_library_referenced_via_0_from_file_1: E(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: E(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: E(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: E(1405, 3, "Library_referenced_via_0_from_file_1_1405", "Library referenced via '{0}' from file '{1}'"), File_is_included_via_library_reference_here: E(1406, 3, "File_is_included_via_library_reference_here_1406", "File is included via library reference here."), Matched_by_include_pattern_0_in_1: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(1422, 3, "Library_0_specified_in_compilerOptions_1422", "Library '{0}' specified in compilerOptions"), File_is_library_specified_here: E(1423, 3, "File_is_library_specified_here_1423", "File is library specified here."), Default_library: E(1424, 3, "Default_library_1424", "Default library"), Default_library_for_target_0: E(1425, 3, "Default_library_for_target_0_1425", "Default library for target '{0}'"), File_is_default_library_for_target_specified_here: E(1426, 3, "File_is_default_library_for_target_specified_here_1426", "File is default library for target specified here."), Root_file_specified_for_compilation: E(1427, 3, "Root_file_specified_for_compilation_1427", "Root file specified for compilation"), File_is_output_of_project_reference_source_0: E(1428, 3, "File_is_output_of_project_reference_source_0_1428", "File is output of project reference source '{0}'"), File_redirects_to_file_0: E(1429, 3, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"), The_file_is_in_the_program_because_Colon: E(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: E(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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: E(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', or 'nodenext', and the 'target' option is set to 'es2017' or higher."), Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters: E(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: E(1434, 1, "Unexpected_keyword_or_identifier_1434", "Unexpected keyword or identifier."), Unknown_keyword_or_identifier_Did_you_mean_0: E(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: E(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: E(1437, 1, "Namespace_must_be_given_a_name_1437", "Namespace must be given a name."), Interface_must_be_given_a_name: E(1438, 1, "Interface_must_be_given_a_name_1438", "Interface must be given a name."), Type_alias_must_be_given_a_name: E(1439, 1, "Type_alias_must_be_given_a_name_1439", "Type alias must be given a name."), Variable_declaration_not_allowed_at_this_location: E(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: E(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: E(1442, 1, "Expected_for_property_initializer_1442", "Expected '=' for property initializer."), Module_declaration_names_may_only_use_or_quoted_strings: E(1443, 1, "Module_declaration_names_may_only_use_or_quoted_strings_1443", `Module declaration names may only use ' or " quoted strings.`), _0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled: E(1444, 1, "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444", "'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."), _0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled: E(1446, 1, "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446", "'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."), _0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled: E(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: E(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_assertion_as_arguments: E(1450, 3, "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450", "Dynamic imports can only accept a module specifier and an optional assertion 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: E(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_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext: E(1452, 1, "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452", "'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."), resolution_mode_should_be_either_require_or_import: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(1461, 3, "File_is_CommonJS_module_because_package_json_was_not_found_1461", "File is CommonJS module because 'package.json' was not found"), The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(1486, 1, "Decorator_used_before_export_here_1486", "Decorator used before 'export' here."), The_types_of_0_are_incompatible_between_these_types: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2211, 3, "Add_extends_constraint_2211", "Add `extends` constraint."), Add_extends_constraint_to_all_type_parameters: E(2212, 3, "Add_extends_constraint_to_all_type_parameters_2212", "Add `extends` constraint to all type parameters"), Duplicate_identifier_0: E(2300, 1, "Duplicate_identifier_0_2300", "Duplicate identifier '{0}'."), Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: E(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: E(2302, 1, "Static_members_cannot_reference_class_type_parameters_2302", "Static members cannot reference class type parameters."), Circular_definition_of_import_alias_0: E(2303, 1, "Circular_definition_of_import_alias_0_2303", "Circular definition of import alias '{0}'."), Cannot_find_name_0: E(2304, 1, "Cannot_find_name_0_2304", "Cannot find name '{0}'."), Module_0_has_no_exported_member_1: E(2305, 1, "Module_0_has_no_exported_member_1_2305", "Module '{0}' has no exported member '{1}'."), File_0_is_not_a_module: E(2306, 1, "File_0_is_not_a_module_2306", "File '{0}' is not a module."), Cannot_find_module_0_or_its_corresponding_type_declarations: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2314, 1, "Generic_type_0_requires_1_type_argument_s_2314", "Generic type '{0}' requires {1} type argument(s)."), Type_0_is_not_generic: E(2315, 1, "Type_0_is_not_generic_2315", "Type '{0}' is not generic."), Global_type_0_must_be_a_class_or_interface_type: E(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: E(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: E(2318, 1, "Cannot_find_global_type_0_2318", "Cannot find global type '{0}'."), Named_property_0_of_types_1_and_2_are_not_identical: E(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: E(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: E(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: E(2322, 1, "Type_0_is_not_assignable_to_type_1_2322", "Type '{0}' is not assignable to type '{1}'."), Cannot_redeclare_exported_variable_0: E(2323, 1, "Cannot_redeclare_exported_variable_0_2323", "Cannot redeclare exported variable '{0}'."), Property_0_is_missing_in_type_1: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2332, 1, "this_cannot_be_referenced_in_current_location_2332", "'this' cannot be referenced in current location."), this_cannot_be_referenced_in_constructor_arguments: E(2333, 1, "this_cannot_be_referenced_in_constructor_arguments_2333", "'this' cannot be referenced in constructor arguments."), this_cannot_be_referenced_in_a_static_property_initializer: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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}'."), Call_target_does_not_contain_any_signatures: E(2346, 1, "Call_target_does_not_contain_any_signatures_2346", "Call target does not contain any signatures."), Untyped_function_calls_may_not_accept_type_arguments: E(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: E(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: E(2349, 1, "This_expression_is_not_callable_2349", "This expression is not callable."), Only_a_void_function_can_be_called_with_the_new_keyword: E(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: E(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: E(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: E(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: E(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_void_nor_any_must_return_a_value: E(2355, 1, "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355", "A function whose declared type is neither 'void' nor 'any' must return a value."), An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type: E(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: E(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: E(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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type: E(2359, 1, "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359", "The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."), The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2372, 1, "Parameter_0_cannot_reference_itself_2372", "Parameter '{0}' cannot reference itself."), Parameter_0_cannot_reference_identifier_1_declared_after_it: E(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: E(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: E(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: E(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: E(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: E(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: E(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."), The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type: E(2380, 1, "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380", "The return type of a 'get' accessor must be assignable to its 'set' accessor type"), Overload_signatures_must_all_be_exported_or_non_exported: E(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: E(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: E(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: E(2386, 1, "Overload_signatures_must_all_be_optional_or_required_2386", "Overload signatures must all be optional or required."), Function_overload_must_be_static: E(2387, 1, "Function_overload_must_be_static_2387", "Function overload must be static."), Function_overload_must_not_be_static: E(2388, 1, "Function_overload_must_not_be_static_2388", "Function overload must not be static."), Function_implementation_name_must_be_0: E(2389, 1, "Function_implementation_name_must_be_0_2389", "Function implementation name must be '{0}'."), Constructor_implementation_is_missing: E(2390, 1, "Constructor_implementation_is_missing_2390", "Constructor implementation is missing."), Function_implementation_is_missing_or_not_immediately_following_the_declaration: E(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: E(2392, 1, "Multiple_constructor_implementations_are_not_allowed_2392", "Multiple constructor implementations are not allowed."), Duplicate_function_implementation: E(2393, 1, "Duplicate_function_implementation_2393", "Duplicate function implementation."), This_overload_signature_is_not_compatible_with_its_implementation_signature: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2414, 1, "Class_name_cannot_be_0_2414", "Class name cannot be '{0}'."), Class_0_incorrectly_extends_base_class_1: E(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: E(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: E(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: E(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: E(2419, 1, "Types_of_construct_signatures_are_incompatible_2419", "Types of construct signatures are incompatible."), Class_0_incorrectly_implements_interface_1: E(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: E(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: E(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: E(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: E(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: E(2427, 1, "Interface_name_cannot_be_0_2427", "Interface name cannot be '{0}'."), All_declarations_of_0_must_have_identical_type_parameters: E(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: E(2430, 1, "Interface_0_incorrectly_extends_interface_1_2430", "Interface '{0}' incorrectly extends interface '{1}'."), Enum_name_cannot_be_0: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2449, 1, "Class_0_used_before_its_declaration_2449", "Class '{0}' used before its declaration."), Enum_0_used_before_its_declaration: E(2450, 1, "Enum_0_used_before_its_declaration_2450", "Enum '{0}' used before its declaration."), Cannot_redeclare_block_scoped_variable_0: E(2451, 1, "Cannot_redeclare_block_scoped_variable_0_2451", "Cannot redeclare block-scoped variable '{0}'."), An_enum_member_cannot_have_a_numeric_name: E(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: E(2454, 1, "Variable_0_is_used_before_being_assigned_2454", "Variable '{0}' is used before being assigned."), Type_alias_0_circularly_references_itself: E(2456, 1, "Type_alias_0_circularly_references_itself_2456", "Type alias '{0}' circularly references itself."), Type_alias_name_cannot_be_0: E(2457, 1, "Type_alias_name_cannot_be_0_2457", "Type alias name cannot be '{0}'."), An_AMD_module_cannot_have_multiple_name_assignments: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2468, 1, "Cannot_find_global_value_0_2468", "Cannot find global value '{0}'."), The_0_operator_cannot_be_applied_to_type_symbol: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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_ES3_and_ES5_Consider_using_a_standard_function_expression: E(2496, 1, "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496", "The 'arguments' object cannot be referenced in an arrow function in ES3 and 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: E(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: E(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: E(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: E(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: E(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: E(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: E(2503, 1, "Cannot_find_namespace_0_2503", "Cannot find namespace '{0}'."), Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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_ES3_and_ES5_Consider_using_a_standard_function_or_method: E(2522, 1, "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522", "The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."), yield_expressions_cannot_be_used_in_a_parameter_initializer: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2530, 1, "Property_0_is_incompatible_with_index_signature_2530", "Property '{0}' is incompatible with index signature."), Object_is_possibly_null: E(2531, 1, "Object_is_possibly_null_2531", "Object is possibly 'null'."), Object_is_possibly_undefined: E(2532, 1, "Object_is_possibly_undefined_2532", "Object is possibly 'undefined'."), Object_is_possibly_null_or_undefined: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2554, 1, "Expected_0_arguments_but_got_1_2554", "Expected {0} arguments, but got {1}."), Expected_at_least_0_arguments_but_got_1: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2571, 1, "Object_is_of_type_unknown_2571", "Object is of type 'unknown'."), A_rest_element_type_must_be_an_array_type: E(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: E(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: E(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: E(2577, 1, "Return_type_annotation_circularly_references_itself_2577", "Return type annotation circularly references itself."), Unused_ts_expect_error_directive: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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."), Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: E(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."), A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: E(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: E(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: E(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}'."), JSX_expressions_must_have_one_parent_element: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: E(2705, 1, "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705", "An async function or method in ES5/ES3 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: E(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: E(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: E(2708, 1, "Cannot_use_namespace_0_as_a_value_2708", "Cannot use namespace '{0}' as a value."), Cannot_use_namespace_0_as_a_type: E(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: E(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: E(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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: E(2712, 1, "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712", "A dynamic import call in ES5/ES3 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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2728, 3, "_0_is_declared_here_2728", "'{0}' is declared here."), Property_0_is_used_before_its_initialization: E(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: E(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: E(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: E(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: E(2733, 1, "Property_0_was_also_declared_here_2733", "Property '{0}' was also declared here."), Are_you_missing_a_semicolon: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2750, 1, "The_implementation_signature_is_declared_here_2750", "The implementation signature is declared here."), Circularity_originates_in_type_at_this_location: E(2751, 1, "Circularity_originates_in_type_at_this_location_2751", "Circularity originates in type at this location."), The_first_export_default_is_here: E(2752, 1, "The_first_export_default_is_here_2752", "The first export default is here."), Another_export_default_is_here: E(2753, 1, "Another_export_default_is_here_2753", "Another export default is here."), super_may_not_use_type_arguments: E(2754, 1, "super_may_not_use_type_arguments_2754", "'super' may not use type arguments."), No_constituent_of_type_0_is_callable: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2769, 1, "No_overload_matches_this_call_2769", "No overload matches this call."), The_last_overload_gave_the_following_error: E(2770, 1, "The_last_overload_gave_the_following_error_2770", "The last overload gave the following error."), The_last_overload_is_declared_here: E(2771, 1, "The_last_overload_is_declared_here_2771", "The last overload is declared here."), Overload_0_of_1_2_gave_the_following_error: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(2785, 1, "This_spread_always_overwrites_this_property_2785", "This spread always overwrites this property."), _0_cannot_be_used_as_a_JSX_component: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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_or_nodenext: E(2821, 1, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821", "Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."), Import_assertions_cannot_be_used_with_type_only_imports_or_exports: E(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."), Cannot_find_namespace_0_Did_you_mean_1: E(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: E(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: E(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_transpile_to_commonjs_require_calls: E(2836, 1, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836", "Import assertions are not allowed on statements that transpile to commonjs 'require' calls."), Import_assertion_values_must_be_string_literal_expressions: E(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: E(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: E(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_an_interface_can_only_extend_named_types_and_classes: E(2840, 1, "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840", "An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"), The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: E(2841, 1, "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841", "The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."), _0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation: E(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: E(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: E(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: E(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: E(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?"), Import_declaration_0_is_using_private_name_1: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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}'."), Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict: E(4090, 1, "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090", "Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."), Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(4109, 1, "Type_arguments_for_0_circularly_reference_themselves_4109", "Type arguments for '{0}' circularly reference themselves."), Tuple_type_arguments_circularly_reference_themselves: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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'."), resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: E(4125, 1, "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125", "'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."), The_current_host_does_not_support_the_0_option: E(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: E(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: E(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: E(5012, 1, "Cannot_read_file_0_Colon_1_5012", "Cannot read file '{0}': {1}."), Failed_to_parse_file_0_Colon_1: E(5014, 1, "Failed_to_parse_file_0_Colon_1_5014", "Failed to parse file '{0}': {1}."), Unknown_compiler_option_0: E(5023, 1, "Unknown_compiler_option_0_5023", "Unknown compiler option '{0}'."), Compiler_option_0_requires_a_value_of_type_1: E(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: E(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: E(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: E(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: E(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_cannot_be_specified_when_option_target_is_ES3: E(5048, 1, "Option_0_cannot_be_specified_when_option_target_is_ES3_5048", "Option '{0}' cannot be specified when option 'target' is 'ES3'."), Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext: E(5071, 1, "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071", "Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."), Unknown_build_option_0: E(5072, 1, "Unknown_build_option_0_5072", "Unknown build option '{0}'."), Build_option_0_requires_a_value_of_type_1: E(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: E(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: E(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: E(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: E(5077, 1, "Unknown_build_option_0_Did_you_mean_1_5077", "Unknown build option '{0}'. Did you mean '{1}'?"), Unknown_watch_option_0: E(5078, 1, "Unknown_watch_option_0_5078", "Unknown watch option '{0}'."), Unknown_watch_option_0_Did_you_mean_1: E(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: E(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: E(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: E(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: E(5083, 1, "Cannot_read_file_0_5083", "Cannot read file '{0}'."), Tuple_members_must_all_have_names_or_all_not_have_names: E(5084, 1, "Tuple_members_must_all_have_names_or_all_not_have_names_5084", "Tuple members must all have names or all not have names."), A_tuple_member_cannot_be_both_optional_and_rest: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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_es2015_or_later: E(5095, 1, "Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095", "Option '{0}' can only be used when 'module' is set to 'es2015' or later."), Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set: E(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: E(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: E(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: E(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: E(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: E(5103, 1, "Invalid_value_for_ignoreDeprecations_5103", "Invalid value for '--ignoreDeprecations'."), Option_0_is_redundant_and_cannot_be_specified_with_option_1: E(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: E(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: E(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: E(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: E(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."), Generates_a_sourcemap_for_each_corresponding_d_ts_file: E(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: E(6001, 3, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."), Generates_corresponding_d_ts_file: E(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: E(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: E(6005, 3, "Watch_input_files_6005", "Watch input files."), Redirect_output_structure_to_the_directory: E(6006, 3, "Redirect_output_structure_to_the_directory_6006", "Redirect output structure to the directory."), Do_not_erase_const_enum_declarations_in_generated_code: E(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: E(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: E(6009, 3, "Do_not_emit_comments_to_output_6009", "Do not emit comments to output."), Do_not_emit_outputs: E(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: E(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: E(6012, 3, "Skip_type_checking_of_declaration_files_6012", "Skip type checking of declaration files."), Do_not_resolve_the_real_path_of_symlinks: E(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: E(6014, 3, "Only_emit_d_ts_declaration_files_6014", "Only emit '.d.ts' declaration files."), Specify_ECMAScript_target_version: E(6015, 3, "Specify_ECMAScript_target_version_6015", "Specify ECMAScript target version."), Specify_module_code_generation: E(6016, 3, "Specify_module_code_generation_6016", "Specify module code generation."), Print_this_message: E(6017, 3, "Print_this_message_6017", "Print this message."), Print_the_compiler_s_version: E(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: E(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: E(6023, 3, "Syntax_Colon_0_6023", "Syntax: {0}"), options: E(6024, 3, "options_6024", "options"), file: E(6025, 3, "file_6025", "file"), Examples_Colon_0: E(6026, 3, "Examples_Colon_0_6026", "Examples: {0}"), Options_Colon: E(6027, 3, "Options_Colon_6027", "Options:"), Version_0: E(6029, 3, "Version_0_6029", "Version {0}"), Insert_command_line_options_and_files_from_a_file: E(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: E(6031, 3, "Starting_compilation_in_watch_mode_6031", "Starting compilation in watch mode..."), File_change_detected_Starting_incremental_compilation: E(6032, 3, "File_change_detected_Starting_incremental_compilation_6032", "File change detected. Starting incremental compilation..."), KIND: E(6034, 3, "KIND_6034", "KIND"), FILE: E(6035, 3, "FILE_6035", "FILE"), VERSION: E(6036, 3, "VERSION_6036", "VERSION"), LOCATION: E(6037, 3, "LOCATION_6037", "LOCATION"), DIRECTORY: E(6038, 3, "DIRECTORY_6038", "DIRECTORY"), STRATEGY: E(6039, 3, "STRATEGY_6039", "STRATEGY"), FILE_OR_DIRECTORY: E(6040, 3, "FILE_OR_DIRECTORY_6040", "FILE OR DIRECTORY"), Errors_Files: E(6041, 3, "Errors_Files_6041", "Errors Files"), Generates_corresponding_map_file: E(6043, 3, "Generates_corresponding_map_file_6043", "Generates corresponding '.map' file."), Compiler_option_0_expects_an_argument: E(6044, 1, "Compiler_option_0_expects_an_argument_6044", "Compiler option '{0}' expects an argument."), Unterminated_quoted_string_in_response_file_0: E(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: E(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: E(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: E(6050, 1, "Unable_to_open_file_0_6050", "Unable to open file '{0}'."), Corrupted_locale_file_0: E(6051, 1, "Corrupted_locale_file_0_6051", "Corrupted locale file {0}."), Raise_error_on_expressions_and_declarations_with_an_implied_any_type: E(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: E(6053, 1, "File_0_not_found_6053", "File '{0}' not found."), File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1: E(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: E(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: E(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: E(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: E(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: E(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: E(6061, 3, "NEWLINE_6061", "NEWLINE"), Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line: E(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: E(6065, 3, "Enables_experimental_support_for_ES7_decorators_6065", "Enables experimental support for ES7 decorators."), Enables_experimental_support_for_emitting_type_metadata_for_decorators: E(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: E(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: E(6071, 3, "Successfully_created_a_tsconfig_json_file_6071", "Successfully created a tsconfig.json file."), Suppress_excess_property_checks_for_object_literals: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6080, 3, "Specify_JSX_code_generation_6080", "Specify JSX code generation."), File_0_has_an_unsupported_extension_so_skipping_it: E(6081, 3, "File_0_has_an_unsupported_extension_so_skipping_it_6081", "File '{0}' has an unsupported extension, so skipping it."), Only_amd_and_system_modules_are_supported_alongside_0: E(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: E(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: E(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: E(6085, 3, "Enable_tracing_of_the_name_resolution_process_6085", "Enable tracing of the name resolution process."), Resolving_module_0_from_1: E(6086, 3, "Resolving_module_0_from_1_6086", "======== Resolving module '{0}' from '{1}'. ========"), Explicitly_specified_module_resolution_kind_Colon_0: E(6087, 3, "Explicitly_specified_module_resolution_kind_Colon_0_6087", "Explicitly specified module resolution kind: '{0}'."), Module_resolution_kind_is_not_specified_using_0: E(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: E(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: E(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: E(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: E(6092, 3, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."), Trying_substitution_0_candidate_module_location_Colon_1: E(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: E(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: E(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: E(6096, 3, "File_0_does_not_exist_6096", "File '{0}' does not exist."), File_0_exists_use_it_as_a_name_resolution_result: E(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: E(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: E(6099, 3, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."), package_json_does_not_have_a_0_field: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6110, 3, "Trying_other_entries_in_rootDirs_6110", "Trying other entries in 'rootDirs'."), Module_resolution_using_rootDirs_has_failed: E(6111, 3, "Module_resolution_using_rootDirs_has_failed_6111", "Module resolution using 'rootDirs' has failed."), Do_not_emit_use_strict_directives_in_module_output: E(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: E(6113, 3, "Enable_strict_null_checks_6113", "Enable strict null checks."), Unknown_option_excludes_Did_you_mean_exclude: E(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: E(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: E(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: E(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: E(6120, 3, "Type_reference_directive_0_was_not_resolved_6120", "======== Type reference directive '{0}' was not resolved. ========"), Resolving_with_primary_search_path_0: E(6121, 3, "Resolving_with_primary_search_path_0_6121", "Resolving with primary search path '{0}'."), Root_directory_cannot_be_determined_skipping_primary_search_paths: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6134, 3, "Report_errors_on_unused_locals_6134", "Report errors on unused locals."), Report_errors_on_unused_parameters: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6149, 3, "Show_diagnostic_information_6149", "Show diagnostic information."), Show_verbose_diagnostic_information: E(6150, 3, "Show_verbose_diagnostic_information_6150", "Show verbose diagnostic information."), Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6162, 3, "Disable_size_limitations_on_JavaScript_projects_6162", "Disable size limitations on JavaScript projects."), The_character_set_of_the_input_files: E(6163, 3, "The_character_set_of_the_input_files_6163", "The character set of the input files."), Do_not_truncate_error_messages: E(6165, 3, "Do_not_truncate_error_messages_6165", "Do not truncate error messages."), Output_directory_for_generated_declaration_files: E(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: E(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: E(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: E(6169, 3, "Show_all_compiler_options_6169", "Show all compiler options."), Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file: E(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: E(6171, 3, "Command_line_Options_6171", "Command-line Options"), Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3: E(6179, 3, "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179", "Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."), Enable_all_strict_type_checking_options: E(6180, 3, "Enable_all_strict_type_checking_options_6180", "Enable all strict type-checking options."), Scoped_package_detected_looking_in_0: E(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: E(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: E(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: E(6186, 3, "Enable_strict_checking_of_function_types_6186", "Enable strict checking of function types."), Enable_strict_checking_of_property_initialization_in_classes: E(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: E(6188, 1, "Numeric_separators_are_not_allowed_here_6188", "Numeric separators are not allowed here."), Multiple_consecutive_numeric_separators_are_not_permitted: E(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: E(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: E(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: E(6193, 3, "Found_1_error_Watching_for_file_changes_6193", "Found 1 error. Watching for file changes."), Found_0_errors_Watching_for_file_changes: E(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: E(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: E(6196, 1, "_0_is_declared_but_never_used_6196", "'{0}' is declared but never used.", !0), Include_modules_imported_with_json_extension: E(6197, 3, "Include_modules_imported_with_json_extension_6197", "Include modules imported with '.json' extension"), All_destructured_elements_are_unused: E(6198, 1, "All_destructured_elements_are_unused_6198", "All destructured elements are unused.", !0), All_variables_are_unused: E(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: E(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: E(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: E(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: E(6203, 3, "_0_was_also_declared_here_6203", "'{0}' was also declared here."), and_here: E(6204, 3, "and_here_6204", "and here."), All_type_parameters_are_unused: E(6205, 1, "All_type_parameters_are_unused_6205", "All type parameters are unused."), package_json_has_a_typesVersions_field_with_version_specific_path_mappings: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6215, 3, "Using_compiler_options_of_project_reference_redirect_0_6215", "Using compiler options of project reference redirect '{0}'."), Found_1_error: E(6216, 3, "Found_1_error_6216", "Found 1 error."), Found_0_errors: E(6217, 3, "Found_0_errors_6217", "Found {0} errors."), Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2: E(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: E(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: E(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: E(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: E(6222, 3, "Emit_class_fields_with_Define_instead_of_Set_6222", "Emit class fields with Define instead of Set."), Generates_a_CPU_profile: E(6223, 3, "Generates_a_CPU_profile_6223", "Generates a CPU profile."), Disable_solution_searching_for_this_project: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6235, 3, "Disable_loading_referenced_projects_6235", "Disable loading referenced projects."), Arguments_for_the_rest_parameter_0_were_not_provided: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6243, 3, "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243", "Interpret optional property types as written, rather than adding 'undefined'."), Modules: E(6244, 3, "Modules_6244", "Modules"), File_Management: E(6245, 3, "File_Management_6245", "File Management"), Emit: E(6246, 3, "Emit_6246", "Emit"), JavaScript_Support: E(6247, 3, "JavaScript_Support_6247", "JavaScript Support"), Type_Checking: E(6248, 3, "Type_Checking_6248", "Type Checking"), Editor_Support: E(6249, 3, "Editor_Support_6249", "Editor Support"), Watch_and_Build_Modes: E(6250, 3, "Watch_and_Build_Modes_6250", "Watch and Build Modes"), Compiler_Diagnostics: E(6251, 3, "Compiler_Diagnostics_6251", "Compiler Diagnostics"), Interop_Constraints: E(6252, 3, "Interop_Constraints_6252", "Interop Constraints"), Backwards_Compatibility: E(6253, 3, "Backwards_Compatibility_6253", "Backwards Compatibility"), Language_and_Environment: E(6254, 3, "Language_and_Environment_6254", "Language and Environment"), Projects: E(6255, 3, "Projects_6255", "Projects"), Output_Formatting: E(6256, 3, "Output_Formatting_6256", "Output Formatting"), Completeness: E(6257, 3, "Completeness_6257", "Completeness"), _0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file: E(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_1: E(6259, 3, "Found_1_error_in_1_6259", "Found 1 error in {1}"), Found_0_errors_in_the_same_file_starting_at_Colon_1: E(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: E(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: E(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: E(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: E(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."), Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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.`), Enable_project_compilation: E(6302, 3, "Enable_project_compilation_6302", "Enable project compilation"), Composite_projects_may_not_disable_declaration_emit: E(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: E(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: E(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: E(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."), Cannot_prepend_project_0_because_it_does_not_have_outFile_set: E(6308, 1, "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308", "Cannot prepend project '{0}' because it does not have 'outFile' set"), Output_file_0_from_project_1_does_not_exist: E(6309, 1, "Output_file_0_from_project_1_does_not_exist_6309", "Output file '{0}' from project '{1}' does not exist"), Referenced_project_0_may_not_disable_emit: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6357, 3, "A_non_dry_build_would_build_project_0_6357", "A non-dry build would build project '{0}'"), Building_project_0: E(6358, 3, "Building_project_0_6358", "Building project '{0}'..."), Updating_output_timestamps_of_project_0: E(6359, 3, "Updating_output_timestamps_of_project_0_6359", "Updating output timestamps of project '{0}'..."), Project_0_is_up_to_date: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6370, 1, "Options_0_and_1_cannot_be_combined_6370", "Options '{0}' and '{1}' cannot be combined."), Updating_unchanged_output_timestamps_of_project_0: E(6371, 3, "Updating_unchanged_output_timestamps_of_project_0_6371", "Updating unchanged output timestamps of project '{0}'..."), Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed: E(6372, 3, "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372", "Project '{0}' is out of date because output of its dependency '{1}' has changed"), Updating_output_of_project_0: E(6373, 3, "Updating_output_of_project_0_6373", "Updating output of project '{0}'..."), A_non_dry_build_would_update_timestamps_for_output_of_project_0: E(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}'"), A_non_dry_build_would_update_output_of_project_0: E(6375, 3, "A_non_dry_build_would_update_output_of_project_0_6375", "A non-dry build would update output of project '{0}'"), Cannot_update_output_of_project_0_because_there_was_error_reading_file_1: E(6376, 3, "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376", "Cannot update output of project '{0}' because there was error reading file '{1}'"), Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1: E(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: E(6379, 1, "Composite_projects_may_not_disable_incremental_compilation_6379", "Composite projects may not disable incremental compilation."), Specify_file_to_store_incremental_compilation_information: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6402, 3, "Resolving_in_0_mode_with_conditions_1_6402", "Resolving in {0} mode with conditions {1}."), Matched_0_condition_1: E(6403, 3, "Matched_0_condition_1_6403", "Matched '{0}' condition '{1}'."), Using_0_subpath_1_with_target_2: E(6404, 3, "Using_0_subpath_1_with_target_2_6404", "Using '{0}' subpath '{1}' with target '{2}'."), Saw_non_matching_condition_0: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6413, 3, "Entering_conditional_exports_6413", "Entering conditional exports."), Resolved_under_condition_0: E(6414, 3, "Resolved_under_condition_0_6414", "Resolved under condition '{0}'."), Failed_to_resolve_under_condition_0: E(6415, 3, "Failed_to_resolve_under_condition_0_6415", "Failed to resolve under condition '{0}'."), Exiting_conditional_exports: E(6416, 3, "Exiting_conditional_exports_6416", "Exiting conditional exports."), The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6602, 3, "Allow_accessing_UMD_globals_from_modules_6602", "Allow accessing UMD globals from modules."), Disable_error_reporting_for_unreachable_code: E(6603, 3, "Disable_error_reporting_for_unreachable_code_6603", "Disable error reporting for unreachable code."), Disable_error_reporting_for_unused_labels: E(6604, 3, "Disable_error_reporting_for_unused_labels_6604", "Disable error reporting for unused labels."), Ensure_use_strict_is_always_emitted: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6614, 3, "Create_sourcemaps_for_d_ts_files_6614", "Create sourcemaps for d.ts files."), Output_compiler_performance_information_after_building: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6627, 3, "Filters_results_from_the_include_option_6627", "Filters results from the `include` option."), Remove_a_list_of_directories_from_the_watch_process: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6659, 3, "Set_the_newline_character_for_emitting_files_6659", "Set the newline character for emitting files."), Disable_emitting_files_from_a_compilation: E(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: E(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: E(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: E(6663, 3, "Disable_truncating_types_in_error_messages_6663", "Disable truncating types in error messages."), Enable_error_reporting_for_fallthrough_cases_in_switch_statements: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6677, 3, "Deprecated_setting_Use_outFile_instead_6677", "Deprecated setting. Use 'outFile' instead."), Specify_an_output_folder_for_all_emitted_files: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6688, 3, "Disable_emitting_comments_6688", "Disable emitting comments."), Enable_importing_json_files: E(6689, 3, "Enable_importing_json_files_6689", "Enable importing .json files."), Specify_the_root_folder_within_your_source_files: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(6712, 3, "Emit_ECMAScript_standard_compliant_class_fields_6712", "Emit ECMAScript-standard-compliant class fields."), Enable_verbose_logging: E(6713, 3, "Enable_verbose_logging_6713", "Enable verbose logging."), Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality: E(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: E(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: E(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: E(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."), Default_catch_clause_variables_as_unknown_instead_of_any: E(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: E(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."), one_of_Colon: E(6900, 3, "one_of_Colon_6900", "one of:"), one_or_more_Colon: E(6901, 3, "one_or_more_Colon_6901", "one or more:"), type_Colon: E(6902, 3, "type_Colon_6902", "type:"), default_Colon: E(6903, 3, "default_Colon_6903", "default:"), module_system_or_esModuleInterop: E(6904, 3, "module_system_or_esModuleInterop_6904", 'module === "system" or esModuleInterop'), false_unless_strict_is_set: E(6905, 3, "false_unless_strict_is_set_6905", "`false`, unless `strict` is set"), false_unless_composite_is_set: E(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: E(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: E(6908, 3, "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908", '`[]` if `files` is specified, otherwise `["**/*"]`'), true_if_composite_false_otherwise: E(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: E(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: E(6911, 3, "Computed_from_the_list_of_input_files_6911", "Computed from the list of input files"), Platform_specific: E(6912, 3, "Platform_specific_6912", "Platform specific"), You_can_learn_about_all_of_the_compiler_options_at_0: E(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: E(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: E(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: E(6916, 3, "COMMON_COMMANDS_6916", "COMMON COMMANDS"), ALL_COMPILER_OPTIONS: E(6917, 3, "ALL_COMPILER_OPTIONS_6917", "ALL COMPILER OPTIONS"), WATCH_OPTIONS: E(6918, 3, "WATCH_OPTIONS_6918", "WATCH OPTIONS"), BUILD_OPTIONS: E(6919, 3, "BUILD_OPTIONS_6919", "BUILD OPTIONS"), COMMON_COMPILER_OPTIONS: E(6920, 3, "COMMON_COMPILER_OPTIONS_6920", "COMMON COMPILER OPTIONS"), COMMAND_LINE_FLAGS: E(6921, 3, "COMMAND_LINE_FLAGS_6921", "COMMAND LINE FLAGS"), tsc_Colon_The_TypeScript_Compiler: E(6922, 3, "tsc_Colon_The_TypeScript_Compiler_6922", "tsc: The TypeScript Compiler"), Compiles_the_current_project_tsconfig_json_in_the_working_directory: E(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: E(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: E(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: E(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: E(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: E(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: E(6929, 3, "Compiles_the_current_project_with_additional_settings_6929", "Compiles the current project, with additional settings."), true_for_ES2022_and_above_including_ESNext: E(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: E(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: E(7005, 1, "Variable_0_implicitly_has_an_1_type_7005", "Variable '{0}' implicitly has an '{1}' type."), Parameter_0_implicitly_has_an_1_type: E(7006, 1, "Parameter_0_implicitly_has_an_1_type_7006", "Parameter '{0}' implicitly has an '{1}' type."), Member_0_implicitly_has_an_1_type: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(7027, 1, "Unreachable_code_detected_7027", "Unreachable code detected.", !0), Unused_label: E(7028, 1, "Unused_label_7028", "Unused label.", !0), Fallthrough_case_in_switch: E(7029, 1, "Fallthrough_case_in_switch_7029", "Fallthrough case in switch."), Not_all_code_paths_return_a_value: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(8016, 1, "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016", "Type assertion expressions can only be used in TypeScript files."), Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: E(8017, 1, "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017", "Octal literal types must use ES2015 syntax. Use the syntax '{0}'."), Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0: E(8018, 1, "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018", "Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."), Report_errors_in_js_files: E(8019, 3, "Report_errors_in_js_files_8019", "Report errors in .js files."), JSDoc_types_can_only_be_used_inside_documentation_comments: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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'."), Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit: E(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: E(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."), JSX_attributes_must_only_be_assigned_a_non_empty_expression: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(17014, 1, "JSX_fragment_has_no_corresponding_closing_tag_17014", "JSX fragment has no corresponding closing tag."), Expected_corresponding_closing_tag_for_JSX_fragment: E(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: E(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: E(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: E(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: E(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: E(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}'?"), Circularity_detected_while_resolving_configuration_Colon_0: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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."), Add_missing_super_call: E(90001, 3, "Add_missing_super_call_90001", "Add missing 'super()' call"), Make_super_call_the_first_statement_in_the_constructor: E(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: E(90003, 3, "Change_extends_to_implements_90003", "Change 'extends' to 'implements'"), Remove_unused_declaration_for_Colon_0: E(90004, 3, "Remove_unused_declaration_for_Colon_0_90004", "Remove unused declaration for: '{0}'"), Remove_import_from_0: E(90005, 3, "Remove_import_from_0_90005", "Remove import from '{0}'"), Implement_interface_0: E(90006, 3, "Implement_interface_0_90006", "Implement interface '{0}'"), Implement_inherited_abstract_class: E(90007, 3, "Implement_inherited_abstract_class_90007", "Implement inherited abstract class"), Add_0_to_unresolved_variable: E(90008, 3, "Add_0_to_unresolved_variable_90008", "Add '{0}.' to unresolved variable"), Remove_variable_statement: E(90010, 3, "Remove_variable_statement_90010", "Remove variable statement"), Remove_template_tag: E(90011, 3, "Remove_template_tag_90011", "Remove template tag"), Remove_type_parameters: E(90012, 3, "Remove_type_parameters_90012", "Remove type parameters"), Import_0_from_1: E(90013, 3, "Import_0_from_1_90013", `Import '{0}' from "{1}"`), Change_0_to_1: E(90014, 3, "Change_0_to_1_90014", "Change '{0}' to '{1}'"), Declare_property_0: E(90016, 3, "Declare_property_0_90016", "Declare property '{0}'"), Add_index_signature_for_property_0: E(90017, 3, "Add_index_signature_for_property_0_90017", "Add index signature for property '{0}'"), Disable_checking_for_this_file: E(90018, 3, "Disable_checking_for_this_file_90018", "Disable checking for this file"), Ignore_this_error_message: E(90019, 3, "Ignore_this_error_message_90019", "Ignore this error message"), Initialize_property_0_in_the_constructor: E(90020, 3, "Initialize_property_0_in_the_constructor_90020", "Initialize property '{0}' in the constructor"), Initialize_static_property_0: E(90021, 3, "Initialize_static_property_0_90021", "Initialize static property '{0}'"), Change_spelling_to_0: E(90022, 3, "Change_spelling_to_0_90022", "Change spelling to '{0}'"), Declare_method_0: E(90023, 3, "Declare_method_0_90023", "Declare method '{0}'"), Declare_static_method_0: E(90024, 3, "Declare_static_method_0_90024", "Declare static method '{0}'"), Prefix_0_with_an_underscore: E(90025, 3, "Prefix_0_with_an_underscore_90025", "Prefix '{0}' with an underscore"), Rewrite_as_the_indexed_access_type_0: E(90026, 3, "Rewrite_as_the_indexed_access_type_0_90026", "Rewrite as the indexed access type '{0}'"), Declare_static_property_0: E(90027, 3, "Declare_static_property_0_90027", "Declare static property '{0}'"), Call_decorator_expression: E(90028, 3, "Call_decorator_expression_90028", "Call decorator expression"), Add_async_modifier_to_containing_function: E(90029, 3, "Add_async_modifier_to_containing_function_90029", "Add async modifier to containing function"), Replace_infer_0_with_unknown: E(90030, 3, "Replace_infer_0_with_unknown_90030", "Replace 'infer {0}' with 'unknown'"), Replace_all_unused_infer_with_unknown: E(90031, 3, "Replace_all_unused_infer_with_unknown_90031", "Replace all unused 'infer' with 'unknown'"), Add_parameter_name: E(90034, 3, "Add_parameter_name_90034", "Add parameter name"), Declare_private_property_0: E(90035, 3, "Declare_private_property_0_90035", "Declare private property '{0}'"), Replace_0_with_Promise_1: E(90036, 3, "Replace_0_with_Promise_1_90036", "Replace '{0}' with 'Promise<{1}>'"), Fix_all_incorrect_return_type_of_an_async_functions: E(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: E(90038, 3, "Declare_private_method_0_90038", "Declare private method '{0}'"), Remove_unused_destructuring_declaration: E(90039, 3, "Remove_unused_destructuring_declaration_90039", "Remove unused destructuring declaration"), Remove_unused_declarations_for_Colon_0: E(90041, 3, "Remove_unused_declarations_for_Colon_0_90041", "Remove unused declarations for: '{0}'"), Declare_a_private_field_named_0: E(90053, 3, "Declare_a_private_field_named_0_90053", "Declare a private field named '{0}'."), Includes_imports_of_types_referenced_by_0: E(90054, 3, "Includes_imports_of_types_referenced_by_0_90054", "Includes imports of types referenced by '{0}'"), Remove_type_from_import_declaration_from_0: E(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: E(90056, 3, "Remove_type_from_import_of_0_from_1_90056", `Remove 'type' from import of '{0}' from "{1}"`), Add_import_from_0: E(90057, 3, "Add_import_from_0_90057", 'Add import from "{0}"'), Update_import_from_0: E(90058, 3, "Update_import_from_0_90058", 'Update import from "{0}"'), Export_0_from_module_1: E(90059, 3, "Export_0_from_module_1_90059", "Export '{0}' from module '{1}'"), Export_all_referenced_locals: E(90060, 3, "Export_all_referenced_locals_90060", "Export all referenced locals"), Convert_function_to_an_ES2015_class: E(95001, 3, "Convert_function_to_an_ES2015_class_95001", "Convert function to an ES2015 class"), Convert_0_to_1_in_0: E(95003, 3, "Convert_0_to_1_in_0_95003", "Convert '{0}' to '{1} in {0}'"), Extract_to_0_in_1: E(95004, 3, "Extract_to_0_in_1_95004", "Extract to {0} in {1}"), Extract_function: E(95005, 3, "Extract_function_95005", "Extract function"), Extract_constant: E(95006, 3, "Extract_constant_95006", "Extract constant"), Extract_to_0_in_enclosing_scope: E(95007, 3, "Extract_to_0_in_enclosing_scope_95007", "Extract to {0} in enclosing scope"), Extract_to_0_in_1_scope: E(95008, 3, "Extract_to_0_in_1_scope_95008", "Extract to {0} in {1} scope"), Annotate_with_type_from_JSDoc: E(95009, 3, "Annotate_with_type_from_JSDoc_95009", "Annotate with type from JSDoc"), Infer_type_of_0_from_usage: E(95011, 3, "Infer_type_of_0_from_usage_95011", "Infer type of '{0}' from usage"), Infer_parameter_types_from_usage: E(95012, 3, "Infer_parameter_types_from_usage_95012", "Infer parameter types from usage"), Convert_to_default_import: E(95013, 3, "Convert_to_default_import_95013", "Convert to default import"), Install_0: E(95014, 3, "Install_0_95014", "Install '{0}'"), Replace_import_with_0: E(95015, 3, "Replace_import_with_0_95015", "Replace import with '{0}'."), Use_synthetic_default_member: E(95016, 3, "Use_synthetic_default_member_95016", "Use synthetic 'default' member."), Convert_to_ES_module: E(95017, 3, "Convert_to_ES_module_95017", "Convert to ES module"), Add_undefined_type_to_property_0: E(95018, 3, "Add_undefined_type_to_property_0_95018", "Add 'undefined' type to property '{0}'"), Add_initializer_to_property_0: E(95019, 3, "Add_initializer_to_property_0_95019", "Add initializer to property '{0}'"), Add_definite_assignment_assertion_to_property_0: E(95020, 3, "Add_definite_assignment_assertion_to_property_0_95020", "Add definite assignment assertion to property '{0}'"), Convert_all_type_literals_to_mapped_type: E(95021, 3, "Convert_all_type_literals_to_mapped_type_95021", "Convert all type literals to mapped type"), Add_all_missing_members: E(95022, 3, "Add_all_missing_members_95022", "Add all missing members"), Infer_all_types_from_usage: E(95023, 3, "Infer_all_types_from_usage_95023", "Infer all types from usage"), Delete_all_unused_declarations: E(95024, 3, "Delete_all_unused_declarations_95024", "Delete all unused declarations"), Prefix_all_unused_declarations_with_where_possible: E(95025, 3, "Prefix_all_unused_declarations_with_where_possible_95025", "Prefix all unused declarations with '_' where possible"), Fix_all_detected_spelling_errors: E(95026, 3, "Fix_all_detected_spelling_errors_95026", "Fix all detected spelling errors"), Add_initializers_to_all_uninitialized_properties: E(95027, 3, "Add_initializers_to_all_uninitialized_properties_95027", "Add initializers to all uninitialized properties"), Add_definite_assignment_assertions_to_all_uninitialized_properties: E(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: E(95029, 3, "Add_undefined_type_to_all_uninitialized_properties_95029", "Add undefined type to all uninitialized properties"), Change_all_jsdoc_style_types_to_TypeScript: E(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: E(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: E(95032, 3, "Implement_all_unimplemented_interfaces_95032", "Implement all unimplemented interfaces"), Install_all_missing_types_packages: E(95033, 3, "Install_all_missing_types_packages_95033", "Install all missing types packages"), Rewrite_all_as_indexed_access_types: E(95034, 3, "Rewrite_all_as_indexed_access_types_95034", "Rewrite all as indexed access types"), Convert_all_to_default_imports: E(95035, 3, "Convert_all_to_default_imports_95035", "Convert all to default imports"), Make_all_super_calls_the_first_statement_in_their_constructor: E(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: E(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: E(95038, 3, "Change_all_extended_interfaces_to_implements_95038", "Change all extended interfaces to 'implements'"), Add_all_missing_super_calls: E(95039, 3, "Add_all_missing_super_calls_95039", "Add all missing super calls"), Implement_all_inherited_abstract_classes: E(95040, 3, "Implement_all_inherited_abstract_classes_95040", "Implement all inherited abstract classes"), Add_all_missing_async_modifiers: E(95041, 3, "Add_all_missing_async_modifiers_95041", "Add all missing 'async' modifiers"), Add_ts_ignore_to_all_error_messages: E(95042, 3, "Add_ts_ignore_to_all_error_messages_95042", "Add '@ts-ignore' to all error messages"), Annotate_everything_with_types_from_JSDoc: E(95043, 3, "Annotate_everything_with_types_from_JSDoc_95043", "Annotate everything with types from JSDoc"), Add_to_all_uncalled_decorators: E(95044, 3, "Add_to_all_uncalled_decorators_95044", "Add '()' to all uncalled decorators"), Convert_all_constructor_functions_to_classes: E(95045, 3, "Convert_all_constructor_functions_to_classes_95045", "Convert all constructor functions to classes"), Generate_get_and_set_accessors: E(95046, 3, "Generate_get_and_set_accessors_95046", "Generate 'get' and 'set' accessors"), Convert_require_to_import: E(95047, 3, "Convert_require_to_import_95047", "Convert 'require' to 'import'"), Convert_all_require_to_import: E(95048, 3, "Convert_all_require_to_import_95048", "Convert all 'require' to 'import'"), Move_to_a_new_file: E(95049, 3, "Move_to_a_new_file_95049", "Move to a new file"), Remove_unreachable_code: E(95050, 3, "Remove_unreachable_code_95050", "Remove unreachable code"), Remove_all_unreachable_code: E(95051, 3, "Remove_all_unreachable_code_95051", "Remove all unreachable code"), Add_missing_typeof: E(95052, 3, "Add_missing_typeof_95052", "Add missing 'typeof'"), Remove_unused_label: E(95053, 3, "Remove_unused_label_95053", "Remove unused label"), Remove_all_unused_labels: E(95054, 3, "Remove_all_unused_labels_95054", "Remove all unused labels"), Convert_0_to_mapped_object_type: E(95055, 3, "Convert_0_to_mapped_object_type_95055", "Convert '{0}' to mapped object type"), Convert_namespace_import_to_named_imports: E(95056, 3, "Convert_namespace_import_to_named_imports_95056", "Convert namespace import to named imports"), Convert_named_imports_to_namespace_import: E(95057, 3, "Convert_named_imports_to_namespace_import_95057", "Convert named imports to namespace import"), Add_or_remove_braces_in_an_arrow_function: E(95058, 3, "Add_or_remove_braces_in_an_arrow_function_95058", "Add or remove braces in an arrow function"), Add_braces_to_arrow_function: E(95059, 3, "Add_braces_to_arrow_function_95059", "Add braces to arrow function"), Remove_braces_from_arrow_function: E(95060, 3, "Remove_braces_from_arrow_function_95060", "Remove braces from arrow function"), Convert_default_export_to_named_export: E(95061, 3, "Convert_default_export_to_named_export_95061", "Convert default export to named export"), Convert_named_export_to_default_export: E(95062, 3, "Convert_named_export_to_default_export_95062", "Convert named export to default export"), Add_missing_enum_member_0: E(95063, 3, "Add_missing_enum_member_0_95063", "Add missing enum member '{0}'"), Add_all_missing_imports: E(95064, 3, "Add_all_missing_imports_95064", "Add all missing imports"), Convert_to_async_function: E(95065, 3, "Convert_to_async_function_95065", "Convert to async function"), Convert_all_to_async_functions: E(95066, 3, "Convert_all_to_async_functions_95066", "Convert all to async functions"), Add_missing_call_parentheses: E(95067, 3, "Add_missing_call_parentheses_95067", "Add missing call parentheses"), Add_all_missing_call_parentheses: E(95068, 3, "Add_all_missing_call_parentheses_95068", "Add all missing call parentheses"), Add_unknown_conversion_for_non_overlapping_types: E(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: E(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: E(95071, 3, "Add_missing_new_operator_to_call_95071", "Add missing 'new' operator to call"), Add_missing_new_operator_to_all_calls: E(95072, 3, "Add_missing_new_operator_to_all_calls_95072", "Add missing 'new' operator to all calls"), Add_names_to_all_parameters_without_names: E(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: E(95074, 3, "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074", "Enable the 'experimentalDecorators' option in your configuration file"), Convert_parameters_to_destructured_object: E(95075, 3, "Convert_parameters_to_destructured_object_95075", "Convert parameters to destructured object"), Extract_type: E(95077, 3, "Extract_type_95077", "Extract type"), Extract_to_type_alias: E(95078, 3, "Extract_to_type_alias_95078", "Extract to type alias"), Extract_to_typedef: E(95079, 3, "Extract_to_typedef_95079", "Extract to typedef"), Infer_this_type_of_0_from_usage: E(95080, 3, "Infer_this_type_of_0_from_usage_95080", "Infer 'this' type of '{0}' from usage"), Add_const_to_unresolved_variable: E(95081, 3, "Add_const_to_unresolved_variable_95081", "Add 'const' to unresolved variable"), Add_const_to_all_unresolved_variables: E(95082, 3, "Add_const_to_all_unresolved_variables_95082", "Add 'const' to all unresolved variables"), Add_await: E(95083, 3, "Add_await_95083", "Add 'await'"), Add_await_to_initializer_for_0: E(95084, 3, "Add_await_to_initializer_for_0_95084", "Add 'await' to initializer for '{0}'"), Fix_all_expressions_possibly_missing_await: E(95085, 3, "Fix_all_expressions_possibly_missing_await_95085", "Fix all expressions possibly missing 'await'"), Remove_unnecessary_await: E(95086, 3, "Remove_unnecessary_await_95086", "Remove unnecessary 'await'"), Remove_all_unnecessary_uses_of_await: E(95087, 3, "Remove_all_unnecessary_uses_of_await_95087", "Remove all unnecessary uses of 'await'"), Enable_the_jsx_flag_in_your_configuration_file: E(95088, 3, "Enable_the_jsx_flag_in_your_configuration_file_95088", "Enable the '--jsx' flag in your configuration file"), Add_await_to_initializers: E(95089, 3, "Add_await_to_initializers_95089", "Add 'await' to initializers"), Extract_to_interface: E(95090, 3, "Extract_to_interface_95090", "Extract to interface"), Convert_to_a_bigint_numeric_literal: E(95091, 3, "Convert_to_a_bigint_numeric_literal_95091", "Convert to a bigint numeric literal"), Convert_all_to_bigint_numeric_literals: E(95092, 3, "Convert_all_to_bigint_numeric_literals_95092", "Convert all to bigint numeric literals"), Convert_const_to_let: E(95093, 3, "Convert_const_to_let_95093", "Convert 'const' to 'let'"), Prefix_with_declare: E(95094, 3, "Prefix_with_declare_95094", "Prefix with 'declare'"), Prefix_all_incorrect_property_declarations_with_declare: E(95095, 3, "Prefix_all_incorrect_property_declarations_with_declare_95095", "Prefix all incorrect property declarations with 'declare'"), Convert_to_template_string: E(95096, 3, "Convert_to_template_string_95096", "Convert to template string"), Add_export_to_make_this_file_into_a_module: E(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: E(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: E(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: E(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: E(95101, 3, "Convert_all_invalid_characters_to_HTML_entity_code_95101", "Convert all invalid characters to HTML entity code"), Convert_all_const_to_let: E(95102, 3, "Convert_all_const_to_let_95102", "Convert all 'const' to 'let'"), Convert_function_expression_0_to_arrow_function: E(95105, 3, "Convert_function_expression_0_to_arrow_function_95105", "Convert function expression '{0}' to arrow function"), Convert_function_declaration_0_to_arrow_function: E(95106, 3, "Convert_function_declaration_0_to_arrow_function_95106", "Convert function declaration '{0}' to arrow function"), Fix_all_implicit_this_errors: E(95107, 3, "Fix_all_implicit_this_errors_95107", "Fix all implicit-'this' errors"), Wrap_invalid_character_in_an_expression_container: E(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: E(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: E(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: E(95111, 3, "Add_a_return_statement_95111", "Add a return statement"), Remove_braces_from_arrow_function_body: E(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: E(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: E(95114, 3, "Add_all_missing_return_statement_95114", "Add all missing return statement"), Remove_braces_from_all_arrow_function_bodies_with_relevant_issues: E(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: E(95116, 3, "Wrap_all_object_literal_with_parentheses_95116", "Wrap all object literal with parentheses"), Move_labeled_tuple_element_modifiers_to_labels: E(95117, 3, "Move_labeled_tuple_element_modifiers_to_labels_95117", "Move labeled tuple element modifiers to labels"), Convert_overload_list_to_single_signature: E(95118, 3, "Convert_overload_list_to_single_signature_95118", "Convert overload list to single signature"), Generate_get_and_set_accessors_for_all_overriding_properties: E(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: E(95120, 3, "Wrap_in_JSX_fragment_95120", "Wrap in JSX fragment"), Wrap_all_unparented_JSX_in_JSX_fragment: E(95121, 3, "Wrap_all_unparented_JSX_in_JSX_fragment_95121", "Wrap all unparented JSX in JSX fragment"), Convert_arrow_function_or_function_expression: E(95122, 3, "Convert_arrow_function_or_function_expression_95122", "Convert arrow function or function expression"), Convert_to_anonymous_function: E(95123, 3, "Convert_to_anonymous_function_95123", "Convert to anonymous function"), Convert_to_named_function: E(95124, 3, "Convert_to_named_function_95124", "Convert to named function"), Convert_to_arrow_function: E(95125, 3, "Convert_to_arrow_function_95125", "Convert to arrow function"), Remove_parentheses: E(95126, 3, "Remove_parentheses_95126", "Remove parentheses"), Could_not_find_a_containing_arrow_function: E(95127, 3, "Could_not_find_a_containing_arrow_function_95127", "Could not find a containing arrow function"), Containing_function_is_not_an_arrow_function: E(95128, 3, "Containing_function_is_not_an_arrow_function_95128", "Containing function is not an arrow function"), Could_not_find_export_statement: E(95129, 3, "Could_not_find_export_statement_95129", "Could not find export statement"), This_file_already_has_a_default_export: E(95130, 3, "This_file_already_has_a_default_export_95130", "This file already has a default export"), Could_not_find_import_clause: E(95131, 3, "Could_not_find_import_clause_95131", "Could not find import clause"), Could_not_find_namespace_import_or_named_imports: E(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: E(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: E(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: E(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: E(95136, 3, "Name_is_not_valid_95136", "Name is not valid"), Can_only_convert_property_with_modifier: E(95137, 3, "Can_only_convert_property_with_modifier_95137", "Can only convert property with modifier"), Switch_each_misused_0_to_1: E(95138, 3, "Switch_each_misused_0_to_1_95138", "Switch each misused '{0}' to '{1}'"), Convert_to_optional_chain_expression: E(95139, 3, "Convert_to_optional_chain_expression_95139", "Convert to optional chain expression"), Could_not_find_convertible_access_expression: E(95140, 3, "Could_not_find_convertible_access_expression_95140", "Could not find convertible access expression"), Could_not_find_matching_access_expressions: E(95141, 3, "Could_not_find_matching_access_expressions_95141", "Could not find matching access expressions"), Can_only_convert_logical_AND_access_chains: E(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: E(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: E(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: E(95145, 3, "Use_element_access_for_0_95145", "Use element access for '{0}'"), Use_element_access_for_all_undeclared_properties: E(95146, 3, "Use_element_access_for_all_undeclared_properties_95146", "Use element access for all undeclared properties."), Delete_all_unused_imports: E(95147, 3, "Delete_all_unused_imports_95147", "Delete all unused imports"), Infer_function_return_type: E(95148, 3, "Infer_function_return_type_95148", "Infer function return type"), Return_type_must_be_inferred_from_a_function: E(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: E(95150, 3, "Could_not_determine_function_return_type_95150", "Could not determine function return type"), Could_not_convert_to_arrow_function: E(95151, 3, "Could_not_convert_to_arrow_function_95151", "Could not convert to arrow function"), Could_not_convert_to_named_function: E(95152, 3, "Could_not_convert_to_named_function_95152", "Could not convert to named function"), Could_not_convert_to_anonymous_function: E(95153, 3, "Could_not_convert_to_anonymous_function_95153", "Could not convert to anonymous function"), Can_only_convert_string_concatenation: E(95154, 3, "Can_only_convert_string_concatenation_95154", "Can only convert string concatenation"), Selection_is_not_a_valid_statement_or_statements: E(95155, 3, "Selection_is_not_a_valid_statement_or_statements_95155", "Selection is not a valid statement or statements"), Add_missing_function_declaration_0: E(95156, 3, "Add_missing_function_declaration_0_95156", "Add missing function declaration '{0}'"), Add_all_missing_function_declarations: E(95157, 3, "Add_all_missing_function_declarations_95157", "Add all missing function declarations"), Method_not_implemented: E(95158, 3, "Method_not_implemented_95158", "Method not implemented."), Function_not_implemented: E(95159, 3, "Function_not_implemented_95159", "Function not implemented."), Add_override_modifier: E(95160, 3, "Add_override_modifier_95160", "Add 'override' modifier"), Remove_override_modifier: E(95161, 3, "Remove_override_modifier_95161", "Remove 'override' modifier"), Add_all_missing_override_modifiers: E(95162, 3, "Add_all_missing_override_modifiers_95162", "Add all missing 'override' modifiers"), Remove_all_unnecessary_override_modifiers: E(95163, 3, "Remove_all_unnecessary_override_modifiers_95163", "Remove all unnecessary 'override' modifiers"), Can_only_convert_named_export: E(95164, 3, "Can_only_convert_named_export_95164", "Can only convert named export"), Add_missing_properties: E(95165, 3, "Add_missing_properties_95165", "Add missing properties"), Add_all_missing_properties: E(95166, 3, "Add_all_missing_properties_95166", "Add all missing properties"), Add_missing_attributes: E(95167, 3, "Add_missing_attributes_95167", "Add missing attributes"), Add_all_missing_attributes: E(95168, 3, "Add_all_missing_attributes_95168", "Add all missing attributes"), Add_undefined_to_optional_property_type: E(95169, 3, "Add_undefined_to_optional_property_type_95169", "Add 'undefined' to optional property type"), Convert_named_imports_to_default_import: E(95170, 3, "Convert_named_imports_to_default_import_95170", "Convert named imports to default import"), Delete_unused_param_tag_0: E(95171, 3, "Delete_unused_param_tag_0_95171", "Delete unused '@param' tag '{0}'"), Delete_all_unused_param_tags: E(95172, 3, "Delete_all_unused_param_tags_95172", "Delete all unused '@param' tags"), Rename_param_tag_name_0_to_1: E(95173, 3, "Rename_param_tag_name_0_to_1_95173", "Rename '@param' tag name '{0}' to '{1}'"), Use_0: E(95174, 3, "Use_0_95174", "Use `{0}`."), Use_Number_isNaN_in_all_conditions: E(95175, 3, "Use_Number_isNaN_in_all_conditions_95175", "Use `Number.isNaN` in all conditions."), No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(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: E(18046, 1, "_0_is_of_type_unknown_18046", "'{0}' is of type 'unknown'."), _0_is_possibly_null: E(18047, 1, "_0_is_possibly_null_18047", "'{0}' is possibly 'null'."), _0_is_possibly_undefined: E(18048, 1, "_0_is_possibly_undefined_18048", "'{0}' is possibly 'undefined'."), _0_is_possibly_null_or_undefined: E(18049, 1, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."), The_value_0_cannot_be_used_here: E(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: E(18051, 1, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string.") }; } }); function Wu(e) { return e >= 79; } function ile(e) { return e === 31 || Wu(e); } function rI(e, t) { if (e < t[0]) return !1; let r = 0, i = t.length, o; for (; r + 1 < i; ) { if (o = r + (i - r) / 2, o -= o % 2, t[o] <= e && e <= t[o + 1]) return !0; e < t[o] ? i = o : r = o + 2; } return !1; } function tM(e, t) { return t >= 2 ? rI(e, ple) : t === 1 ? rI(e, fle) : rI(e, ule); } function lOe(e, t) { return t >= 2 ? rI(e, mle) : t === 1 ? rI(e, _le) : rI(e, dle); } function cOe(e) { const t = []; return e.forEach((r, i) => { t[r] = i; }), t; } function mo(e) { return yle[e]; } function KE(e) { return BH.get(e); } function xR(e) { const t = []; let r = 0, i = 0; for (; r < e.length; ) { const o = e.charCodeAt(r); switch (r++, o) { case 13: e.charCodeAt(r) === 10 && r++; case 10: t.push(i), i = r; break; default: o > 127 && uu(o) && (t.push(i), i = r); break; } } return t.push(i), t; } function AR(e, t, r, i) { return e.getPositionOfLineAndCharacter ? e.getPositionOfLineAndCharacter(t, r, i) : OH(Qh(e), t, r, e.text, i); } function OH(e, t, r, i, o) { (t < 0 || t >= e.length) && (o ? t = t < 0 ? 0 : t >= e.length ? e.length - 1 : t : D.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i !== void 0 ? oa(e, xR(i)) : "unknown"}`)); const s = e[t] + r; return o ? s > e[t + 1] ? e[t + 1] : typeof i == "string" && s > i.length ? i.length : s : (t < e.length - 1 ? D.assert(s < e[t + 1]) : i !== void 0 && D.assert(s <= i.length), s); } function Qh(e) { return e.lineMap || (e.lineMap = xR(e.text)); } function CR(e, t) { const r = iI(e, t); return { line: r, character: t - e[r] }; } function iI(e, t, r) { let i = _v(e, t, _l, js, r); return i < 0 && (i = ~i - 1, D.assert(i !== -1, "position cannot precede the beginning of the file")), i; } function aI(e, t, r) { if (t === r) return 0; const i = Qh(e), o = Math.min(t, r), s = o === r, c = s ? t : r, f = iI(i, o), d = iI(i, c, f); return s ? f - d : d - f; } function il(e, t) { return CR(Qh(e), t); } function Zh(e) { return Cm(e) || uu(e); } function Cm(e) { return e === 32 || e === 9 || e === 11 || e === 12 || e === 160 || e === 133 || e === 5760 || e >= 8192 && e <= 8203 || e === 8239 || e === 8287 || e === 12288 || e === 65279; } function uu(e) { return e === 10 || e === 13 || e === 8232 || e === 8233; } function oI(e) { return e >= 48 && e <= 57; } function nM(e) { return oI(e) || e >= 65 && e <= 70 || e >= 97 && e <= 102; } function uOe(e) { return e <= 1114111; } function PH(e) { return e >= 48 && e <= 55; } function ale(e, t) { const r = e.charCodeAt(t); switch (r) { 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 r > 127; } } function zo(e, t, r, i, o) { if (Jp(t)) return t; let s = !1; for (; ; ) { const c = e.charCodeAt(t); switch (c) { case 13: e.charCodeAt(t + 1) === 10 && t++; case 10: if (t++, r) return t; s = !!o; 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; t < e.length && !uu(e.charCodeAt(t)); ) t++; s = !1; continue; } if (e.charCodeAt(t + 1) === 42) { for (t += 2; t < e.length; ) { if (e.charCodeAt(t) === 42 && e.charCodeAt(t + 1) === 47) { t += 2; break; } t++; } s = !1; continue; } break; case 60: case 124: case 61: case 62: if (fA(e, t)) { t = sI(e, t), s = !1; continue; } break; case 35: if (t === 0 && MH(e, t)) { t = FH(e, t), s = !1; continue; } break; case 42: if (s) { t++, s = !1; continue; } break; default: if (c > 127 && Zh(c)) { t++; continue; } break; } return t; } } function fA(e, t) { if (D.assert(t >= 0), t === 0 || uu(e.charCodeAt(t - 1))) { const r = e.charCodeAt(t); if (t + wR < e.length) { for (let i = 0; i < wR; i++) if (e.charCodeAt(t + i) !== r) return !1; return r === 61 || e.charCodeAt(t + wR) === 32; } } return !1; } function sI(e, t, r) { r && r(_.Merge_conflict_marker_encountered, t, wR); const i = e.charCodeAt(t), o = e.length; if (i === 60 || i === 62) for (; t < o && !uu(e.charCodeAt(t)); ) t++; else for (D.assert(i === 124 || i === 61); t < o; ) { const s = e.charCodeAt(t); if ((s === 61 || s === 62) && s !== i && fA(e, t)) break; t++; } return t; } function MH(e, t) { return D.assert(t === 0), aM.test(e); } function FH(e, t) { const r = aM.exec(e)[0]; return t = t + r.length, t; } function rM(e, t, r, i, o, s, c) { let f, d, y, m, b = !1, A = i, C = c; if (r === 0) { A = !0; const I = iM(t); I && (r = I.length); } e: for (; r >= 0 && r < t.length; ) { const I = t.charCodeAt(r); switch (I) { case 13: t.charCodeAt(r + 1) === 10 && r++; case 10: if (r++, i) break e; A = !0, b && (m = !0); continue; case 9: case 11: case 12: case 32: r++; continue; case 47: const O = t.charCodeAt(r + 1); let k = !1; if (O === 47 || O === 42) { const B = O === 47 ? 2 : 3, U = r; if (r += 2, O === 47) for (; r < t.length; ) { if (uu(t.charCodeAt(r))) { k = !0; break; } r++; } else for (; r < t.length; ) { if (t.charCodeAt(r) === 42 && t.charCodeAt(r + 1) === 47) { r += 2; break; } r++; } if (A) { if (b && (C = o(f, d, y, m, s, C), !e && C)) return C; f = U, d = r, y = B, m = k, b = !0; } continue; } break e; default: if (I > 127 && Zh(I)) { b && uu(I) && (m = !0), r++; continue; } break e; } } return b && (C = o(f, d, y, m, s, C)), C; } function LR(e, t, r, i) { return rM(!1, e, t, !1, r, i); } function IR(e, t, r, i) { return rM(!1, e, t, !0, r, i); } function ole(e, t, r, i, o) { return rM(!0, e, t, !1, r, i, o); } function sle(e, t, r, i, o) { return rM(!0, e, t, !0, r, i, o); } function lle(e, t, r, i, o, s = []) { return s.push({ kind: r, pos: e, end: t, hasTrailingNewLine: i }), s; } function ch(e, t) { return ole(e, t, lle, void 0, void 0); } function O0(e, t) { return sle(e, t, lle, void 0, void 0); } function iM(e) { const t = aM.exec(e); if (t) return t[0]; } function uh(e, t) { return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 36 || e === 95 || e > 127 && tM(e, t); } function P0(e, t, r) { return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 36 || e === 95 || (r === 1 ? e === 45 || e === 58 : !1) || e > 127 && lOe(e, t); } function w_(e, t, r) { let i = ly(e, 0); if (!uh(i, t)) return !1; for (let o = gv(i); o < e.length; o += gv(i)) if (!P0(i = ly(e, o), t, r)) return !1; return !0; } function sy(e, t, r = 0, i, o, s, c) { var f = i, d, y, m, b, A, C, I, O, k = 0; Ht(f, s, c); var B = { getStartPos: () => m, getTextPos: () => d, getToken: () => A, getTokenPos: () => b, getTokenText: () => f.substring(b, d), getTokenValue: () => C, hasUnicodeEscape: () => (I & 1024) !== 0, hasExtendedUnicodeEscape: () => (I & 8) !== 0, hasPrecedingLineBreak: () => (I & 1) !== 0, hasPrecedingJSDocComment: () => (I & 2) !== 0, isIdentifier: () => A === 79 || A > 116, isReservedWord: () => A >= 81 && A <= 116, isUnterminated: () => (I & 4) !== 0, getCommentDirectives: () => O, getNumericLiteralFlags: () => I & 1008, getTokenFlags: () => I, reScanGreaterToken: Ke, reScanAsteriskEqualsToken: He, reScanSlashToken: Me, reScanTemplateToken: bt, reScanTemplateHeadOrNoSubstitutionTemplate: Vt, scanJsxIdentifier: Hn, scanJsxAttributeValue: In, reScanJsxAttributeValue: Yt, reScanJsxToken: et, reScanLessThanToken: it, reScanHashToken: nn, reScanQuestionToken: Xt, reScanInvalidIdentifier: Re, scanJsxToken: On, scanJsDocToken: fr, scan: We, getText: xt, clearCommentDirectives: gn, setText: Ht, setScriptTarget: rr, setLanguageVariant: lr, setOnError: ln, setTextPos: Di, setInJSDocType: _i, tryScan: Rr, lookAhead: Ki, scanRange: Ji }; return D.isDebugging && Object.defineProperty(B, "__debugShowCurrentPositionInText", { get: () => { const Rn = B.getText(); return Rn.slice(0, B.getStartPos()) + "║" + Rn.slice(B.getStartPos()); } }), B; function U(Rn, en = d, Pn) { if (o) { const xr = d; d = en, o(Rn, Pn || 0), d = xr; } } function j() { let Rn = d, en = !1, Pn = !1, xr = ""; for (; ; ) { const Ur = f.charCodeAt(d); if (Ur === 95) { I |= 512, en ? (en = !1, Pn = !0, xr += f.substring(Rn, d)) : U(Pn ? _.Multiple_consecutive_numeric_separators_are_not_permitted : _.Numeric_separators_are_not_allowed_here, d, 1), d++, Rn = d; continue; } if (oI(Ur)) { en = !0, Pn = !1, d++; continue; } break; } return f.charCodeAt(d - 1) === 95 && U(_.Numeric_separators_are_not_allowed_here, d - 1, 1), xr + f.substring(Rn, d); } function te() { const Rn = d, en = j(); let Pn, xr; f.charCodeAt(d) === 46 && (d++, Pn = j()); let Ur = d; if (f.charCodeAt(d) === 69 || f.charCodeAt(d) === 101) { d++, I |= 16, (f.charCodeAt(d) === 43 || f.charCodeAt(d) === 45) && d++; const gt = d, Nt = j(); Nt ? (xr = f.substring(Ur, gt) + Nt, Ur = d) : U(_.Digit_expected); } let Ie; if (I & 512 ? (Ie = en, Pn && (Ie += "." + Pn), xr && (Ie += xr)) : Ie = f.substring(Rn, Ur), Pn !== void 0 || I & 16) return X(Rn, Pn === void 0 && !!(I & 16)), { type: 8, value: "" + +Ie }; { C = Ie; const gt = Fe(); return X(Rn), { type: gt, value: C }; } } function X(Rn, en) { if (!uh(ly(f, d), e)) return; const Pn = d, { length: xr } = ee(); xr === 1 && f[Pn] === "n" ? U(en ? _.A_bigint_literal_cannot_use_exponential_notation : _.A_bigint_literal_must_be_an_integer, Rn, Pn - Rn + 1) : (U(_.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, Pn, xr), d = Pn); } function Y() { const Rn = d; for (; PH(f.charCodeAt(d)); ) d++; return +f.substring(Rn, d); } function P(Rn, en) { const Pn = ne(Rn, !1, en); return Pn ? parseInt(Pn, 16) : -1; } function ue(Rn, en) { return ne(Rn, !0, en); } function ne(Rn, en, Pn) { let xr = [], Ur = !1, Ie = !1; for (; xr.length < Rn || en; ) { let gt = f.charCodeAt(d); if (Pn && gt === 95) { I |= 512, Ur ? (Ur = !1, Ie = !0) : U(Ie ? _.Multiple_consecutive_numeric_separators_are_not_permitted : _.Numeric_separators_are_not_allowed_here, d, 1), d++; continue; } if (Ur = Pn, gt >= 65 && gt <= 70) gt += 97 - 65; else if (!(gt >= 48 && gt <= 57 || gt >= 97 && gt <= 102)) break; xr.push(gt), d++, Ie = !1; } return xr.length < Rn && (xr = []), f.charCodeAt(d - 1) === 95 && U(_.Numeric_separators_are_not_allowed_here, d - 1, 1), String.fromCharCode(...xr); } function ge(Rn = !1) { const en = f.charCodeAt(d); d++; let Pn = "", xr = d; for (; ; ) { if (d >= y) { Pn += f.substring(xr, d), I |= 4, U(_.Unterminated_string_literal); break; } const Ur = f.charCodeAt(d); if (Ur === en) { Pn += f.substring(xr, d), d++; break; } if (Ur === 92 && !Rn) { Pn += f.substring(xr, d), Pn += H(), xr = d; continue; } if (uu(Ur) && !Rn) { Pn += f.substring(xr, d), I |= 4, U(_.Unterminated_string_literal); break; } d++; } return Pn; } function ie(Rn) { const en = f.charCodeAt(d) === 96; d++; let Pn = d, xr = "", Ur; for (; ; ) { if (d >= y) { xr += f.substring(Pn, d), I |= 4, U(_.Unterminated_template_literal), Ur = en ? 14 : 17; break; } const Ie = f.charCodeAt(d); if (Ie === 96) { xr += f.substring(Pn, d), d++, Ur = en ? 14 : 17; break; } if (Ie === 36 && d + 1 < y && f.charCodeAt(d + 1) === 123) { xr += f.substring(Pn, d), d += 2, Ur = en ? 15 : 16; break; } if (Ie === 92) { xr += f.substring(Pn, d), xr += H(Rn), Pn = d; continue; } if (Ie === 13) { xr += f.substring(Pn, d), d++, d < y && f.charCodeAt(d) === 10 && d++, xr += ` `, Pn = d; continue; } d++; } return D.assert(Ur !== void 0), C = xr, Ur; } function H(Rn) { const en = d; if (d++, d >= y) return U(_.Unexpected_end_of_text), ""; const Pn = f.charCodeAt(d); switch (d++, Pn) { case 48: return Rn && d < y && oI(f.charCodeAt(d)) ? (d++, I |= 2048, f.substring(en, d)) : "\0"; case 98: return "\b"; case 116: return " "; case 110: return ` `; case 118: return "\v"; case 102: return "\f"; case 114: return "\r"; case 39: return "'"; case 34: return '"'; case 117: if (Rn) { for (let xr = d; xr < d + 4; xr++) if (xr < y && !nM(f.charCodeAt(xr)) && f.charCodeAt(xr) !== 123) return d = xr, I |= 2048, f.substring(en, d); } if (d < y && f.charCodeAt(d) === 123) { if (d++, Rn && !nM(f.charCodeAt(d))) return I |= 2048, f.substring(en, d); if (Rn) { const xr = d, Ur = ue(1, !1), Ie = Ur ? parseInt(Ur, 16) : -1; if (!uOe(Ie) || f.charCodeAt(d) !== 125) return I |= 2048, f.substring(en, d); d = xr; } return I |= 8, pe(); } return I |= 1024, le(4); case 120: if (Rn) if (nM(f.charCodeAt(d))) { if (!nM(f.charCodeAt(d + 1))) return d++, I |= 2048, f.substring(en, d); } else return I |= 2048, f.substring(en, d); return le(2); case 13: d < y && f.charCodeAt(d) === 10 && d++; case 10: case 8232: case 8233: return ""; default: return String.fromCharCode(Pn); } } function le(Rn) { const en = P(Rn, !1); return en >= 0 ? String.fromCharCode(en) : (U(_.Hexadecimal_digit_expected), ""); } function pe() { const Rn = ue(1, !1), en = Rn ? parseInt(Rn, 16) : -1; let Pn = !1; return en < 0 ? (U(_.Hexadecimal_digit_expected), Pn = !0) : en > 1114111 && (U(_.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive), Pn = !0), d >= y ? (U(_.Unexpected_end_of_text), Pn = !0) : f.charCodeAt(d) === 125 ? d++ : (U(_.Unterminated_Unicode_escape_sequence), Pn = !0), Pn ? "" : lI(en); } function ye() { if (d + 5 < y && f.charCodeAt(d + 1) === 117) { const Rn = d; d += 2; const en = P(4, !1); return d = Rn, en; } return -1; } function Te() { if (ly(f, d + 1) === 117 && ly(f, d + 2) === 123) { const Rn = d; d += 3; const en = ue(1, !1), Pn = en ? parseInt(en, 16) : -1; return d = Rn, Pn; } return -1; } function ee() { let Rn = "", en = d; for (; d < y; ) { let Pn = ly(f, d); if (P0(Pn, e)) d += gv(Pn); else if (Pn === 92) { if (Pn = Te(), Pn >= 0 && P0(Pn, e)) { d += 3, I |= 8, Rn += pe(), en = d; continue; } if (Pn = ye(), !(Pn >= 0 && P0(Pn, e))) break; I |= 1024, Rn += f.substring(en, d), Rn += lI(Pn), d += 6, en = d; } else break; } return Rn += f.substring(en, d), Rn; } function $e() { const Rn = C.length; if (Rn >= 2 && Rn <= 12) { const en = C.charCodeAt(0); if (en >= 97 && en <= 122) { const Pn = cle.get(C); if (Pn !== void 0) return A = Pn; } } return A = 79; } function Ge(Rn) { let en = "", Pn = !1, xr = !1; for (; ; ) { const Ur = f.charCodeAt(d); if (Ur === 95) { I |= 512, Pn ? (Pn = !1, xr = !0) : U(xr ? _.Multiple_consecutive_numeric_separators_are_not_permitted : _.Numeric_separators_are_not_allowed_here, d, 1), d++; continue; } if (Pn = !0, !oI(Ur) || Ur - 48 >= Rn) break; en += f[d], d++, xr = !1; } return f.charCodeAt(d - 1) === 95 && U(_.Numeric_separators_are_not_allowed_here, d - 1, 1), en; } function Fe() { return f.charCodeAt(d) === 110 ? (C += "n", I & 384 && (C = rk(C) + "n"), d++, 9) : (C = "" + (I & 128 ? parseInt(C.slice(2), 2) : I & 256 ? parseInt(C.slice(2), 8) : +C), 8); } function We() { m = d, I = 0; let Rn = !1; for (; ; ) { if (b = d, d >= y) return A = 1; const en = ly(f, d); if (en === 35 && d === 0 && MH(f, d)) { if (d = FH(f, d), t) continue; return A = 6; } switch (en) { case 10: case 13: if (I |= 1, t) { d++; continue; } else return en === 13 && d + 1 < y && f.charCodeAt(d + 1) === 10 ? d += 2 : d++, A = 4; case 9: case 11: case 12: case 32: case 160: case 5760: case 8192: case 8193: case 8194: case 8195: case 8196: case 8197: case 8198: case 8199: case 8200: case 8201: case 8202: case 8203: case 8239: case 8287: case 12288: case 65279: if (t) { d++; continue; } else { for (; d < y && Cm(f.charCodeAt(d)); ) d++; return A = 5; } case 33: return f.charCodeAt(d + 1) === 61 ? f.charCodeAt(d + 2) === 61 ? (d += 3, A = 37) : (d += 2, A = 35) : (d++, A = 53); case 34: case 39: return C = ge(), A = 10; case 96: return A = ie(!1); case 37: return f.charCodeAt(d + 1) === 61 ? (d += 2, A = 69) : (d++, A = 44); case 38: return f.charCodeAt(d + 1) === 38 ? f.charCodeAt(d + 2) === 61 ? (d += 3, A = 76) : (d += 2, A = 55) : f.charCodeAt(d + 1) === 61 ? (d += 2, A = 73) : (d++, A = 50); case 40: return d++, A = 20; case 41: return d++, A = 21; case 42: if (f.charCodeAt(d + 1) === 61) return d += 2, A = 66; if (f.charCodeAt(d + 1) === 42) return f.charCodeAt(d + 2) === 61 ? (d += 3, A = 67) : (d += 2, A = 42); if (d++, k && !Rn && I & 1) { Rn = !0; continue; } return A = 41; case 43: return f.charCodeAt(d + 1) === 43 ? (d += 2, A = 45) : f.charCodeAt(d + 1) === 61 ? (d += 2, A = 64) : (d++, A = 39); case 44: return d++, A = 27; case 45: return f.charCodeAt(d + 1) === 45 ? (d += 2, A = 46) : f.charCodeAt(d + 1) === 61 ? (d += 2, A = 65) : (d++, A = 40); case 46: return oI(f.charCodeAt(d + 1)) ? (C = te().value, A = 8) : f.charCodeAt(d + 1) === 46 && f.charCodeAt(d + 2) === 46 ? (d += 3, A = 25) : (d++, A = 24); case 47: if (f.charCodeAt(d + 1) === 47) { for (d += 2; d < y && !uu(f.charCodeAt(d)); ) d++; if (O = ot(O, f.slice(b, d), hle, b), t) continue; return A = 2; } if (f.charCodeAt(d + 1) === 42) { d += 2, f.charCodeAt(d) === 42 && f.charCodeAt(d + 1) !== 47 && (I |= 2); let Nt = !1, xe = b; for (; d < y; ) { const _t = f.charCodeAt(d); if (_t === 42 && f.charCodeAt(d + 1) === 47) { d += 2, Nt = !0; break; } d++, uu(_t) && (xe = d, I |= 1); } if (O = ot(O, f.slice(xe, d), gle, xe), Nt || U(_.Asterisk_Slash_expected), t) continue; return Nt || (I |= 4), A = 3; } return f.charCodeAt(d + 1) === 61 ? (d += 2, A = 68) : (d++, A = 43); case 48: if (d + 2 < y && (f.charCodeAt(d + 1) === 88 || f.charCodeAt(d + 1) === 120)) return d += 2, C = ue(1, !0), C || (U(_.Hexadecimal_digit_expected), C = "0"), C = "0x" + C, I |= 64, A = Fe(); if (d + 2 < y && (f.charCodeAt(d + 1) === 66 || f.charCodeAt(d + 1) === 98)) return d += 2, C = Ge(2), C || (U(_.Binary_digit_expected), C = "0"), C = "0b" + C, I |= 128, A = Fe(); if (d + 2 < y && (f.charCodeAt(d + 1) === 79 || f.charCodeAt(d + 1) === 111)) return d += 2, C = Ge(8), C || (U(_.Octal_digit_expected), C = "0"), C = "0o" + C, I |= 256, A = Fe(); if (d + 1 < y && PH(f.charCodeAt(d + 1))) return C = "" + Y(), I |= 32, A = 8; case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: return { type: A, value: C } = te(), A; case 58: return d++, A = 58; case 59: return d++, A = 26; case 60: if (fA(f, d)) { if (d = sI(f, d, U), t) continue; return A = 7; } return f.charCodeAt(d + 1) === 60 ? f.charCodeAt(d + 2) === 61 ? (d += 3, A = 70) : (d += 2, A = 47) : f.charCodeAt(d + 1) === 61 ? (d += 2, A = 32) : r === 1 && f.charCodeAt(d + 1) === 47 && f.charCodeAt(d + 2) !== 42 ? (d += 2, A = 30) : (d++, A = 29); case 61: if (fA(f, d)) { if (d = sI(f, d, U), t) continue; return A = 7; } return f.charCodeAt(d + 1) === 61 ? f.charCodeAt(d + 2) === 61 ? (d += 3, A = 36) : (d += 2, A = 34) : f.charCodeAt(d + 1) === 62 ? (d += 2, A = 38) : (d++, A = 63); case 62: if (fA(f, d)) { if (d = sI(f, d, U), t) continue; return A = 7; } return d++, A = 31; case 63: return f.charCodeAt(d + 1) === 46 && !oI(f.charCodeAt(d + 2)) ? (d += 2, A = 28) : f.charCodeAt(d + 1) === 63 ? f.charCodeAt(d + 2) === 61 ? (d += 3, A = 77) : (d += 2, A = 60) : (d++, A = 57); case 91: return d++, A = 22; case 93: return d++, A = 23; case 94: return f.charCodeAt(d + 1) === 61 ? (d += 2, A = 78) : (d++, A = 52); case 123: return d++, A = 18; case 124: if (fA(f, d)) { if (d = sI(f, d, U), t) continue; return A = 7; } return f.charCodeAt(d + 1) === 124 ? f.charCodeAt(d + 2) === 61 ? (d += 3, A = 75) : (d += 2, A = 56) : f.charCodeAt(d + 1) === 61 ? (d += 2, A = 74) : (d++, A = 51); case 125: return d++, A = 19; case 126: return d++, A = 54; case 64: return d++, A = 59; case 92: const Pn = Te(); if (Pn >= 0 && uh(Pn, e)) return d += 3, I |= 8, C = pe() + ee(), A = $e(); const xr = ye(); return xr >= 0 && uh(xr, e) ? (d += 6, I |= 1024, C = String.fromCharCode(xr) + ee(), A = $e()) : (U(_.Invalid_character), d++, A = 0); case 35: if (d !== 0 && f[d + 1] === "!") return U(_.can_only_be_used_at_the_start_of_a_file), d++, A = 0; const Ur = ly(f, d + 1); if (Ur === 92) { d++; const Nt = Te(); if (Nt >= 0 && uh(Nt, e)) return d += 3, I |= 8, C = "#" + pe() + ee(), A = 80; const xe = ye(); if (xe >= 0 && uh(xe, e)) return d += 6, I |= 1024, C = "#" + String.fromCharCode(xe) + ee(), A = 80; d--; } return uh(Ur, e) ? (d++, Pe(Ur, e)) : (C = "#", U(_.Invalid_character, d++, gv(en))), A = 80; default: const Ie = Pe(en, e); if (Ie) return A = Ie; if (Cm(en)) { d += gv(en); continue; } else if (uu(en)) { I |= 1, d += gv(en); continue; } const gt = gv(en); return U(_.Invalid_character, d, gt), d += gt, A = 0; } } } function Re() { D.assert(A === 0, "'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."), d = b = m, I = 0; const Rn = ly(f, d), en = Pe(Rn, 99); return en ? A = en : (d += gv(Rn), A); } function Pe(Rn, en) { let Pn = Rn; if (uh(Pn, en)) { for (d += gv(Pn); d < y && P0(Pn = ly(f, d), en); ) d += gv(Pn); return C = f.substring(b, d), Pn === 92 && (C += ee()), $e(); } } function Ke() { if (A === 31) { if (f.charCodeAt(d) === 62) return f.charCodeAt(d + 1) === 62 ? f.charCodeAt(d + 2) === 61 ? (d += 3, A = 72) : (d += 2, A = 49) : f.charCodeAt(d + 1) === 61 ? (d += 2, A = 71) : (d++, A = 48); if (f.charCodeAt(d) === 61) return d++, A = 33; } return A; } function He() { return D.assert(A === 66, "'reScanAsteriskEqualsToken' should only be called on a '*='"), d = b + 1, A = 63; } function Me() { if (A === 43 || A === 68) { let Rn = b + 1, en = !1, Pn = !1; for (; ; ) { if (Rn >= y) { I |= 4, U(_.Unterminated_regular_expression_literal); break; } const xr = f.charCodeAt(Rn); if (uu(xr)) { I |= 4, U(_.Unterminated_regular_expression_literal); break; } if (en) en = !1; else if (xr === 47 && !Pn) { Rn++; break; } else xr === 91 ? Pn = !0 : xr === 92 ? en = !0 : xr === 93 && (Pn = !1); Rn++; } for (; Rn < y && P0(f.charCodeAt(Rn), e); ) Rn++; d = Rn, C = f.substring(b, d), A = 13; } return A; } function ot(Rn, en, Pn, xr) { const Ur = At(QL(en), Pn); return Ur === void 0 ? Rn : Fn(Rn, { range: { pos: xr, end: d }, type: Ur }); } function At(Rn, en) { const Pn = en.exec(Rn); if (Pn) switch (Pn[1]) { case "ts-expect-error": return 0; case "ts-ignore": return 1; } } function bt(Rn) { return D.assert(A === 19, "'reScanTemplateToken' should only be called on a '}'"), d = b, A = ie(Rn); } function Vt() { return d = b, A = ie(!0); } function et(Rn = !0) { return d = b = m, A = On(Rn); } function it() { return A === 47 ? (d = b + 1, A = 29) : A; } function nn() { return A === 80 ? (d = b + 1, A = 62) : A; } function Xt() { return D.assert(A === 60, "'reScanQuestionToken' should only be called on a '??'"), d = b + 1, A = 57; } function On(Rn = !0) { if (m = b = d, d >= y) return A = 1; let en = f.charCodeAt(d); if (en === 60) return f.charCodeAt(d + 1) === 47 ? (d += 2, A = 30) : (d++, A = 29); if (en === 123) return d++, A = 18; let Pn = 0; for (; d < y && (en = f.charCodeAt(d), en !== 123); ) { if (en === 60) { if (fA(f, d)) return d = sI(f, d, U), A = 7; break; } if (en === 62 && U(_.Unexpected_token_Did_you_mean_or_gt, d, 1), en === 125 && U(_.Unexpected_token_Did_you_mean_or_rbrace, d, 1), uu(en) && Pn === 0) Pn = -1; else { if (!Rn && uu(en) && Pn > 0) break; Zh(en) || (Pn = d); } d++; } return C = f.substring(m, d), Pn === -1 ? 12 : 11; } function Hn() { if (Wu(A)) { let Rn = !1; for (; d < y; ) { const en = f.charCodeAt(d); if (en === 45) { C += "-", d++; continue; } else if (en === 58 && !Rn) { C += ":", d++, Rn = !0, A = 79; continue; } const Pn = d; if (C += ee(), d === Pn) break; } return C.slice(-1) === ":" && (C = C.slice(0, -1), d--), $e(); } return A; } function In() { switch (m = d, f.charCodeAt(d)) { case 34: case 39: return C = ge(!0), A = 10; default: return We(); } } function Yt() { return d = b = m, In(); } function fr() { if (m = b = d, I = 0, d >= y) return A = 1; const Rn = ly(f, d); switch (d += gv(Rn), Rn) { case 9: case 11: case 12: case 32: for (; d < y && Cm(f.charCodeAt(d)); ) d++; return A = 5; case 64: return A = 59; case 13: f.charCodeAt(d) === 10 && d++; case 10: return I |= 1, A = 4; case 42: return A = 41; case 123: return A = 18; case 125: return A = 19; case 91: return A = 22; case 93: return A = 23; case 60: return A = 29; case 62: return A = 31; case 61: return A = 63; case 44: return A = 27; case 46: return A = 24; case 96: return A = 61; case 35: return A = 62; case 92: d--; const en = Te(); if (en >= 0 && uh(en, e)) return d += 3, I |= 8, C = pe() + ee(), A = $e(); const Pn = ye(); return Pn >= 0 && uh(Pn, e) ? (d += 6, I |= 1024, C = String.fromCharCode(Pn) + ee(), A = $e()) : (d++, A = 0); } if (uh(Rn, e)) { let en = Rn; for (; d < y && P0(en = ly(f, d), e) || f.charCodeAt(d) === 45; ) d += gv(en); return C = f.substring(b, d), en === 92 && (C += ee()), A = $e(); } else return A = 0; } function xi(Rn, en) { const Pn = d, xr = m, Ur = b, Ie = A, gt = C, Nt = I, xe = Rn(); return (!xe || en) && (d = Pn, m = xr, b = Ur, A = Ie, C = gt, I = Nt), xe; } function Ji(Rn, en, Pn) { const xr = y, Ur = d, Ie = m, gt = b, Nt = A, xe = C, _t = I, _e = O; Ht(f, Rn, en); const re = Pn(); return y = xr, d = Ur, m = Ie, b = gt, A = Nt, C = xe, I = _t, O = _e, re; } function Ki(Rn) { return xi(Rn, !0); } function Rr(Rn) { return xi(Rn, !1); } function xt() { return f; } function gn() { O = void 0; } function Ht(Rn, en, Pn) { f = Rn || "", y = Pn === void 0 ? f.length : en + Pn, Di(en || 0); } function ln(Rn) { o = Rn; } function rr(Rn) { e = Rn; } function lr(Rn) { r = Rn; } function Di(Rn) { D.assert(Rn >= 0), d = Rn, m = Rn, b = Rn, A = 0, C = void 0, I = 0; } function _i(Rn) { k += Rn ? 1 : -1; } } function gv(e) { return e >= 65536 ? 2 : 1; } function dOe(e) { if (D.assert(0 <= e && e <= 1114111), e <= 65535) return String.fromCharCode(e); const t = Math.floor((e - 65536) / 1024) + 55296, r = (e - 65536) % 1024 + 56320; return String.fromCharCode(t, r); } function lI(e) { return vle(e); } var kR, cle, BH, ule, dle, fle, _le, ple, mle, hle, gle, yle, wR, aM, ly, vle, fOe = L({ "src/compiler/scanner.ts"() { Ra(), kR = { abstract: 126, accessor: 127, any: 131, as: 128, asserts: 129, assert: 130, bigint: 160, boolean: 134, break: 81, case: 82, catch: 83, class: 84, continue: 86, const: 85, constructor: 135, debugger: 87, declare: 136, default: 88, delete: 89, do: 90, else: 91, enum: 92, export: 93, extends: 94, false: 95, finally: 96, for: 97, from: 158, function: 98, get: 137, if: 99, implements: 117, import: 100, in: 101, infer: 138, instanceof: 102, interface: 118, intrinsic: 139, is: 140, keyof: 141, let: 119, module: 142, namespace: 143, never: 144, new: 103, null: 104, number: 148, object: 149, package: 120, private: 121, protected: 122, public: 123, override: 161, out: 145, readonly: 146, require: 147, global: 159, return: 105, satisfies: 150, set: 151, static: 124, string: 152, super: 106, switch: 107, symbol: 153, this: 108, throw: 109, true: 110, try: 111, type: 154, typeof: 112, undefined: 155, unique: 156, unknown: 157, var: 113, void: 114, while: 115, with: 116, yield: 125, async: 132, await: 133, of: 162 }, cle = new Map(Object.entries(kR)), BH = new Map(Object.entries({ ...kR, "{": 18, "}": 19, "(": 20, ")": 21, "[": 22, "]": 23, ".": 24, "...": 25, ";": 26, ",": 27, "<": 29, ">": 31, "<=": 32, ">=": 33, "==": 34, "!=": 35, "===": 36, "!==": 37, "=>": 38, "+": 39, "-": 40, "**": 42, "*": 41, "/": 43, "%": 44, "++": 45, "--": 46, "<<": 47, ">": 48, ">>>": 49, "&": 50, "|": 51, "^": 52, "!": 53, "~": 54, "&&": 55, "||": 56, "?": 57, "??": 60, "?.": 28, ":": 58, "=": 63, "+=": 64, "-=": 65, "*=": 66, "**=": 67, "/=": 68, "%=": 69, "<<=": 70, ">>=": 71, ">>>=": 72, "&=": 73, "|=": 74, "^=": 78, "||=": 75, "&&=": 76, "??=": 77, "@": 59, "#": 62, "`": 61 })), ule = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1610, 1649, 1747, 1749, 1749, 1765, 1766, 1786, 1788, 1808, 1808, 1810, 1836, 1920, 1957, 2309, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 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, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2784, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3294, 3294, 3296, 3297, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3424, 3425, 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, 3805, 3840, 3840, 3904, 3911, 3913, 3946, 3976, 3979, 4096, 4129, 4131, 4135, 4137, 4138, 4176, 4181, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6067, 6176, 6263, 6272, 6312, 7680, 7835, 7840, 7929, 7936, 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, 8319, 8319, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12346, 12353, 12436, 12445, 12446, 12449, 12538, 12540, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 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, 65138, 65140, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500], dle = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 768, 846, 864, 866, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1155, 1158, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1441, 1443, 1465, 1467, 1469, 1471, 1471, 1473, 1474, 1476, 1476, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1621, 1632, 1641, 1648, 1747, 1749, 1756, 1759, 1768, 1770, 1773, 1776, 1788, 1808, 1836, 1840, 1866, 1920, 1968, 2305, 2307, 2309, 2361, 2364, 2381, 2384, 2388, 2392, 2403, 2406, 2415, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2492, 2494, 2500, 2503, 2504, 2507, 2509, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2562, 2562, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2649, 2652, 2654, 2654, 2662, 2676, 2689, 2691, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2784, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2876, 2883, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2913, 2918, 2927, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3031, 3031, 3047, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3134, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3168, 3169, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3262, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3297, 3302, 3311, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3390, 3395, 3398, 3400, 3402, 3405, 3415, 3415, 3424, 3425, 3430, 3439, 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, 3805, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3946, 3953, 3972, 3974, 3979, 3984, 3991, 3993, 4028, 4038, 4038, 4096, 4129, 4131, 4135, 4137, 4138, 4140, 4146, 4150, 4153, 4160, 4169, 4176, 4185, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 4969, 4977, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6099, 6112, 6121, 6160, 6169, 6176, 6263, 6272, 6313, 7680, 7835, 7840, 7929, 7936, 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, 8255, 8256, 8319, 8319, 8400, 8412, 8417, 8417, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12346, 12353, 12436, 12441, 12442, 12445, 12446, 12449, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 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, 65056, 65059, 65075, 65076, 65101, 65103, 65136, 65138, 65140, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65381, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500], fle = [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], _le = [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], ple = [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, 2208, 2228, 2230, 2237, 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, 3168, 3169, 3200, 3200, 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, 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, 5900, 5902, 5905, 5920, 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, 6987, 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, 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, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12443, 12447, 12449, 12538, 12540, 12543, 12549, 12591, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40943, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42653, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42943, 42946, 42950, 42999, 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, 43879, 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, 67072, 67382, 67392, 67413, 67424, 67431, 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, 69376, 69404, 69415, 69415, 69424, 69445, 69600, 69622, 69635, 69687, 69763, 69807, 69840, 69864, 69891, 69926, 69956, 69956, 69968, 70002, 70006, 70006, 70019, 70066, 70081, 70084, 70106, 70106, 70108, 70108, 70144, 70161, 70163, 70187, 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, 70751, 70784, 70831, 70852, 70853, 70855, 70855, 71040, 71086, 71128, 71131, 71168, 71215, 71236, 71236, 71296, 71338, 71352, 71352, 71424, 71450, 71680, 71723, 71840, 71903, 71935, 71935, 72096, 72103, 72106, 72144, 72161, 72161, 72163, 72163, 72192, 72192, 72203, 72242, 72250, 72250, 72272, 72272, 72284, 72329, 72349, 72349, 72384, 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, 73728, 74649, 74752, 74862, 74880, 75075, 77824, 78894, 82944, 83526, 92160, 92728, 92736, 92766, 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, 101106, 110592, 110878, 110928, 110930, 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, 123136, 123180, 123191, 123197, 123214, 123214, 123584, 123627, 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, 173782, 173824, 177972, 177984, 178205, 178208, 183969, 183984, 191456, 194560, 195101], mle = [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, 2208, 2228, 2230, 2237, 2259, 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, 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, 3072, 3084, 3086, 3088, 3090, 3112, 3114, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3162, 3168, 3171, 3174, 3183, 3200, 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, 3328, 3331, 3333, 3340, 3342, 3344, 3346, 3396, 3398, 3400, 3402, 3406, 3412, 3415, 3423, 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, 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, 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, 4969, 4977, 4992, 5007, 5024, 5109, 5112, 5117, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5880, 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, 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, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7296, 7304, 7312, 7354, 7357, 7359, 7376, 7378, 7380, 7418, 7424, 7673, 7675, 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, 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, 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, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12447, 12449, 12538, 12540, 12543, 12549, 12591, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40943, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42737, 42775, 42783, 42786, 42888, 42891, 42943, 42946, 42950, 42999, 43047, 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, 43879, 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, 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, 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, 67072, 67382, 67392, 67413, 67424, 67431, 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, 69376, 69404, 69415, 69415, 69424, 69456, 69600, 69622, 69632, 69702, 69734, 69743, 69759, 69818, 69840, 69864, 69872, 69881, 69888, 69940, 69942, 69951, 69956, 69958, 69968, 70003, 70006, 70006, 70016, 70084, 70089, 70092, 70096, 70106, 70108, 70108, 70144, 70161, 70163, 70199, 70206, 70206, 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, 70751, 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, 71680, 71738, 71840, 71913, 71935, 71935, 72096, 72103, 72106, 72151, 72154, 72161, 72163, 72164, 72192, 72254, 72263, 72263, 72272, 72345, 72349, 72349, 72384, 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, 73728, 74649, 74752, 74862, 74880, 75075, 77824, 78894, 82944, 83526, 92160, 92728, 92736, 92766, 92768, 92777, 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, 94179, 94208, 100343, 100352, 101106, 110592, 110878, 110928, 110930, 110948, 110951, 110960, 111355, 113664, 113770, 113776, 113788, 113792, 113800, 113808, 113817, 113821, 113822, 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, 122880, 122886, 122888, 122904, 122907, 122913, 122915, 122916, 122918, 122922, 123136, 123180, 123184, 123197, 123200, 123209, 123214, 123214, 123584, 123641, 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, 131072, 173782, 173824, 177972, 177984, 178205, 178208, 183969, 183984, 191456, 194560, 195101, 917760, 917999], hle = /^\/\/\/?\s*@(ts-expect-error|ts-ignore)/, gle = /^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/, yle = cOe(BH), wR = 7, aM = /^#!.*/, ly = String.prototype.codePointAt ? (e, t) => e.codePointAt(t) : function(t, r) { const i = t.length; if (r < 0 || r >= i) return; const o = t.charCodeAt(r); if (o >= 55296 && o <= 56319 && i > r + 1) { const s = t.charCodeAt(r + 1); if (s >= 56320 && s <= 57343) return (o - 55296) * 1024 + s - 56320 + 65536; } return o; }, vle = String.fromCodePoint ? (e) => String.fromCodePoint(e) : dOe; } }); function Oc(e) { return gf(e) || xm(e); } function _A(e) { return $D(e, QI); } function oM(e) { switch ($o(e)) { case 99: return "lib.esnext.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 Qc(e) { return e.start + e.length; } function ble(e) { return e.length === 0; } function GH(e, t) { return t >= e.start && t < Qc(e); } function sM(e, t) { return t >= e.pos && t <= e.end; } function Ele(e, t) { return t.start >= e.start && Qc(t) <= Qc(e); } function _Oe(e, t) { return Tle(e, t) !== void 0; } function Tle(e, t) { const r = xle(e, t); return r && r.length === 0 ? void 0 : r; } function pOe(e, t) { return cM(e.start, e.length, t.start, t.length); } function lM(e, t, r) { return cM(e.start, e.length, t, r); } function cM(e, t, r, i) { const o = e + t, s = r + i; return r <= o && s >= e; } function Sle(e, t) { return t <= Qc(e) && t >= e.start; } function xle(e, t) { const r = Math.max(e.start, t.start), i = Math.min(Qc(e), Qc(t)); return r <= i ? fc(r, i) : void 0; } function Cc(e, t) { if (e < 0) throw new Error("start < 0"); if (t < 0) throw new Error("length < 0"); return { start: e, length: t }; } function fc(e, t) { return Cc(e, t - e); } function cI(e) { return Cc(e.span.start, e.newLength); } function Ale(e) { return ble(e.span) && e.newLength === 0; } function DR(e, t) { if (t < 0) throw new Error("newLength < 0"); return { span: e, newLength: t }; } function mOe(e) { if (e.length === 0) return hW; if (e.length === 1) return e[0]; const t = e[0]; let r = t.span.start, i = Qc(t.span), o = r + t.newLength; for (let s = 1; s < e.length; s++) { const c = e[s], f = r, d = i, y = o, m = c.span.start, b = Qc(c.span), A = m + c.newLength; r = Math.min(f, m), i = Math.max(d, d + (b - y)), o = Math.max(A, A + (y - b)); } return DR(fc(r, i), o - r); } function hOe(e) { if (e && e.kind === 165) { for (let t = e; t; t = t.parent) if (qa(t) || li(t) || t.kind === 261) return t; } } function Yd(e, t) { return Ma(e) && Jr(e, 16476) && t.kind === 173; } function Cle(e) { return Ja(e) ? Vn(e.elements, Lle) : !1; } function Lle(e) { return Ic(e) ? !0 : Cle(e.name); } function pA(e) { let t = e.parent; for (; us(t.parent); ) t = t.parent.parent; return t.parent; } function UH(e, t) { us(e) && (e = pA(e)); let r = t(e); return e.kind === 257 && (e = e.parent), e && e.kind === 258 && (r |= t(e), e = e.parent), e && e.kind === 240 && (r |= t(e)), r; } function cy(e) { return UH(e, wu); } function VH(e) { return UH(e, Pue); } function up(e) { return UH(e, (t) => t.flags); } function gOe(e, t, r) { const i = e.toLowerCase(), o = /^([a-z]+)([_\-]([a-z]+))?$/.exec(i); if (!o) { r && r.push(Ps(_.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp")); return; } const s = o[1], c = o[3]; Ii(gW, i) && !f(s, c, r) && f(s, void 0, r), pse(e); function f(d, y, m) { const b = Wo(t.getExecutingFilePath()), A = fi(b); let C = Oi(A, d); if (y && (C = C + "-" + y), C = t.resolvePath(Oi(C, "diagnosticMessages.generated.json")), !t.fileExists(C)) return !1; let I = ""; try { I = t.readFile(C); } catch { return m && m.push(Ps(_.Unable_to_open_file_0, C)), !1; } try { rde(JSON.parse(I)); } catch { return m && m.push(Ps(_.Corrupted_locale_file_0, C)), !1; } return !0; } } function bl(e, t) { if (e) for (; e.original !== void 0; ) e = e.original; return !e || !t || t(e) ? e : void 0; } function nr(e, t) { for (; e; ) { const r = t(e); if (r === "quit") return; if (r) return e; e = e.parent; } } function uI(e) { return (e.flags & 8) === 0; } function ya(e, t) { if (e === void 0 || uI(e)) return e; for (e = e.original; e; ) { if (uI(e)) return !t || t(e) ? e : void 0; e = e.original; } } function al(e) { return e.length >= 2 && e.charCodeAt(0) === 95 && e.charCodeAt(1) === 95 ? "_" + e : e; } function Zi(e) { const t = e; return t.length >= 3 && t.charCodeAt(0) === 95 && t.charCodeAt(1) === 95 && t.charCodeAt(2) === 95 ? t.substr(1) : t; } function Or(e) { return Zi(e.escapedText); } function M0(e) { const t = KE(e.escapedText); return t ? ri(t, bd) : void 0; } function Nl(e) { return e.valueDeclaration && zu(e.valueDeclaration) ? Or(e.valueDeclaration.name) : Zi(e.escapedName); } function Ile(e) { const t = e.parent.parent; if (t) { if (_u(t)) return uM(t); switch (t.kind) { case 240: if (t.declarationList && t.declarationList.declarations[0]) return uM(t.declarationList.declarations[0]); break; case 241: let r = t.expression; switch (r.kind === 223 && r.operatorToken.kind === 63 && (r = r.left), r.kind) { case 208: return r.name; case 209: const i = r.argumentExpression; if (Ve(i)) return i; } break; case 214: return uM(t.expression); case 253: { if (_u(t.statement) || yt(t.statement)) return uM(t.statement); break; } } } } function uM(e) { const t = La(e); return t && Ve(t) ? t : void 0; } function RR(e, t) { return !!(du(e) && Ve(e.name) && Or(e.name) === Or(t) || sc(e) && kt(e.declarationList.declarations, (r) => RR(r, t))); } function kle(e) { return e.name || Ile(e); } function du(e) { return !!e.name; } function jH(e) { switch (e.kind) { case 79: return e; case 351: case 344: { const { name: r } = e; if (r.kind === 163) return r.right; break; } case 210: case 223: { const r = e; switch (xl(r)) { case 1: case 4: case 5: case 3: return t3(r.left); case 7: case 8: case 9: return r.arguments[1]; default: return; } } case 349: return kle(e); case 343: return Ile(e); case 274: { const { expression: r } = e; return Ve(r) ? r : void 0; } case 209: const t = e; if (e3(t)) return t.argumentExpression; } return e.name; } function La(e) { if (e !== void 0) return jH(e) || (Ms(e) || zs(e) || Nu(e) ? HH(e) : void 0); } function HH(e) { if (e.parent) { if (Uc(e.parent) || us(e.parent)) return e.parent.name; if (vr(e.parent) && e === e.parent.right) { if (Ve(e.parent.left)) return e.parent.left; if (ol(e.parent.left)) return t3(e.parent.left); } else if (Wi(e.parent) && Ve(e.parent.name)) return e.parent.name; } else return; } function yv(e) { if (zf(e)) return yn(e.modifiers, Du); } function XE(e) { if (Jr(e, 126975)) return yn(e.modifiers, lo); } function wle(e, t) { if (e.name) if (Ve(e.name)) { const r = e.name.escapedText; return fI(e.parent, t).filter((i) => Qp(i) && Ve(i.name) && i.name.escapedText === r); } else { const r = e.parent.parameters.indexOf(e); D.assert(r > -1, "Parameters should always be in their parents' parameter list"); const i = fI(e.parent, t).filter(Qp); if (r < i.length) return [i[r]]; } return nt; } function dI(e) { return wle(e, !1); } function Dle(e) { return wle(e, !0); } function Rle(e, t) { const r = e.name.escapedText; return fI(e.parent, t).filter((i) => mp(i) && i.typeParameters.some((o) => o.name.escapedText === r)); } function Nle(e) { return Rle(e, !1); } function Ole(e) { return Rle(e, !0); } function Ple(e) { return !!jf(e, Qp); } function Mle(e) { return jf(e, yC); } function Fle(e) { return KH(e, _J); } function WH(e) { return jf(e, Bfe); } function yOe(e) { return jf(e, sJ); } function Ble(e) { return jf(e, sJ, !0); } function vOe(e) { return jf(e, lJ); } function Gle(e) { return jf(e, lJ, !0); } function bOe(e) { return jf(e, cJ); } function Ule(e) { return jf(e, cJ, !0); } function EOe(e) { return jf(e, uJ); } function Vle(e) { return jf(e, uJ, !0); } function jle(e) { return jf(e, I7, !0); } function zH(e) { return jf(e, dJ); } function Hle(e) { return jf(e, dJ, !0); } function qH(e) { return jf(e, LO); } function dM(e) { return jf(e, Gfe); } function Wle(e) { return jf(e, k7); } function TOe(e) { return jf(e, mp); } function JH(e) { return jf(e, w7); } function s1(e) { const t = jf(e, kk); if (t && t.typeExpression && t.typeExpression.type) return t; } function vv(e) { let t = jf(e, kk); return !t && Ma(e) && (t = un(dI(e), (r) => !!r.typeExpression)), t && t.typeExpression && t.typeExpression.type; } function NR(e) { const t = Wle(e); if (t && t.typeExpression) return t.typeExpression.type; const r = s1(e); if (r && r.typeExpression) { const i = r.typeExpression.type; if (rf(i)) { const o = un(i.members, sC); return o && o.type; } if (Eh(i) || gC(i)) return i.type; } } function fI(e, t) { var r, i; if (!gN(e)) return nt; let o = (r = e.jsDoc) == null ? void 0 : r.jsDocCache; if (o === void 0 || t) { const s = ez(e, t); D.assert(s.length < 2 || s[0] !== s[1]), o = Mo(s, (c) => Vm(c) ? c.tags : c), t || ((i = e.jsDoc) != null || (e.jsDoc = []), e.jsDoc.jsDocCache = o); } return o; } function l1(e) { return fI(e, !1); } function SOe(e) { return fI(e, !0); } function jf(e, t, r) { return un(fI(e, r), t); } function KH(e, t) { return l1(e).filter(t); } function xOe(e, t) { return l1(e).filter((r) => r.kind === t); } function OR(e) { return typeof e == "string" ? e : e == null ? void 0 : e.map((t) => t.kind === 324 ? t.text : AOe(t)).join(""); } function AOe(e) { const t = e.kind === 327 ? "link" : e.kind === 328 ? "linkcode" : "linkplain", r = e.name ? vf(e.name) : "", i = e.name && e.text.startsWith("://") ? "" : " "; return `{@${t} ${r}${i}${e.text}}`; } function bv(e) { if (R1(e)) { if (Ik(e.parent)) { const t = RI(e.parent); if (t && Ne(t.tags)) return Mo(t.tags, (r) => mp(r) ? r.typeParameters : void 0); } return nt; } if (c_(e)) return D.assert(e.parent.kind === 323), Mo(e.parent.tags, (t) => mp(t) ? t.typeParameters : void 0); if (e.typeParameters || Yfe(e) && e.typeParameters) return e.typeParameters; if (dr(e)) { const t = f3(e); if (t.length) return t; const r = vv(e); if (r && Eh(r) && r.typeParameters) return r.typeParameters; } return nt; } function mA(e) { return e.constraint ? e.constraint : mp(e.parent) && e === e.parent.typeParameters[0] ? e.parent.constraint : void 0; } function eg(e) { return e.kind === 79 || e.kind === 80; } function fM(e) { return e.kind === 175 || e.kind === 174; } function _M(e) { return Pr(e) && !!(e.flags & 32); } function XH(e) { return sl(e) && !!(e.flags & 32); } function YE(e) { return eo(e) && !!(e.flags & 32); } function fu(e) { const t = e.kind; return !!(e.flags & 32) && (t === 208 || t === 209 || t === 210 || t === 232); } function _I(e) { return fu(e) && !Tx(e) && !!e.questionDotToken; } function pM(e) { return _I(e.parent) && e.parent.expression === e; } function pI(e) { return !fu(e.parent) || _I(e.parent) || e !== e.parent.expression; } function YH(e) { return e.kind === 223 && e.operatorToken.kind === 60; } function tg(e) { return V_(e) && Ve(e.typeName) && e.typeName.escapedText === "const" && !e.typeArguments; } function D_(e) { return pu(e, 8); } function mM(e) { return Tx(e) && !!(e.flags & 32); } function mI(e) { return e.kind === 249 || e.kind === 248; } function $H(e) { return e.kind === 277 || e.kind === 276; } function zle(e) { switch (e.kind) { case 305: case 306: return !0; default: return !1; } } function QH(e) { return zle(e) || e.kind === 303 || e.kind === 307; } function hM(e) { return e.kind === 351 || e.kind === 344; } function COe(e) { return PR(e.kind); } function PR(e) { return e >= 163; } function ZH(e) { return e >= 0 && e <= 162; } function US(e) { return ZH(e.kind); } function c1(e) { return Ns(e, "pos") && Ns(e, "end"); } function hI(e) { return 8 <= e && e <= 14; } function $E(e) { return hI(e.kind); } function eW(e) { switch (e.kind) { case 207: case 206: case 13: case 215: case 228: return !0; } return !1; } function Ev(e) { return 14 <= e && e <= 17; } function qle(e) { return Ev(e.kind); } function gM(e) { const t = e.kind; return t === 16 || t === 17; } function VS(e) { return Td(e) || od(e); } function tW(e) { switch (e.kind) { case 273: return e.isTypeOnly || e.parent.parent.isTypeOnly; case 271: return e.parent.isTypeOnly; case 270: case 268: return e.isTypeOnly; } return !1; } function Jle(e) { switch (e.kind) { case 278: return e.isTypeOnly || e.parent.parent.isTypeOnly; case 275: return e.isTypeOnly && !!e.moduleSpecifier && !e.exportClause; case 277: return e.parent.isTypeOnly; } return !1; } function u1(e) { return tW(e) || Jle(e); } function Kle(e) { return Go(e) || Ve(e); } function nW(e) { return e.kind === 10 || Ev(e.kind); } function El(e) { var t; return Ve(e) && ((t = e.emitNode) == null ? void 0 : t.autoGenerate) !== void 0; } function jS(e) { var t; return ki(e) && ((t = e.emitNode) == null ? void 0 : t.autoGenerate) !== void 0; } function zu(e) { return (Za(e) || yA(e)) && ki(e.name); } function hA(e) { return Pr(e) && ki(e.name); } function uy(e) { switch (e) { case 126: case 127: case 132: case 85: case 136: case 88: case 93: case 101: case 123: case 121: case 122: case 146: case 124: case 145: case 161: return !0; } return !1; } function gI(e) { return !!(ix(e) & 16476); } function rW(e) { return gI(e) || e === 124 || e === 161 || e === 127; } function lo(e) { return uy(e.kind); } function $d(e) { const t = e.kind; return t === 163 || t === 79; } function hl(e) { const t = e.kind; return t === 79 || t === 80 || t === 10 || t === 8 || t === 164; } function dh(e) { const t = e.kind; return t === 79 || t === 203 || t === 204; } function qa(e) { return !!e && HS(e.kind); } function gA(e) { return !!e && (HS(e.kind) || Cl(e)); } function Ys(e) { return e && Yle(e.kind); } function Xle(e) { return e.kind === 110 || e.kind === 95; } function Yle(e) { switch (e) { case 259: case 171: case 173: case 174: case 175: case 215: case 216: return !0; default: return !1; } } function HS(e) { switch (e) { case 170: case 176: case 326: case 177: case 178: case 181: case 320: case 182: return !0; default: return Yle(e); } } function iW(e) { return ji(e) || Yp(e) || oo(e) && qa(e.parent); } function Pc(e) { const t = e.kind; return t === 173 || t === 169 || t === 171 || t === 174 || t === 175 || t === 178 || t === 172 || t === 237; } function li(e) { return e && (e.kind === 260 || e.kind === 228); } function F0(e) { return e && (e.kind === 174 || e.kind === 175); } function Qd(e) { return Za(e) && Nm(e); } function yA(e) { switch (e.kind) { case 171: case 174: case 175: return !0; default: return !1; } } function $le(e) { switch (e.kind) { case 171: case 174: case 175: case 169: return !0; default: return !1; } } function el(e) { return lo(e) || Du(e); } function QE(e) { const t = e.kind; return t === 177 || t === 176 || t === 168 || t === 170 || t === 178 || t === 174 || t === 175; } function yM(e) { return QE(e) || Pc(e); } function dy(e) { const t = e.kind; return t === 299 || t === 300 || t === 301 || t === 171 || t === 174 || t === 175; } function Pi(e) { return Bz(e.kind); } function Qle(e) { switch (e.kind) { case 181: case 182: return !0; } return !1; } function Ja(e) { if (e) { const t = e.kind; return t === 204 || t === 203; } return !1; } function yI(e) { const t = e.kind; return t === 206 || t === 207; } function vM(e) { const t = e.kind; return t === 205 || t === 229; } function MR(e) { switch (e.kind) { case 257: case 166: case 205: return !0; } return !1; } function Zle(e) { return Wi(e) || Ma(e) || BR(e) || GR(e); } function FR(e) { return aW(e) || oW(e); } function aW(e) { switch (e.kind) { case 203: case 207: return !0; } return !1; } function BR(e) { switch (e.kind) { case 205: case 299: case 300: case 301: return !0; } return !1; } function oW(e) { switch (e.kind) { case 204: case 206: return !0; } return !1; } function GR(e) { switch (e.kind) { case 205: case 229: case 227: case 206: case 207: case 79: case 208: case 209: return !0; } return Ku(e, !0); } function ece(e) { const t = e.kind; return t === 208 || t === 163 || t === 202; } function tce(e) { const t = e.kind; return t === 208 || t === 163; } function WS(e) { switch (e.kind) { case 283: case 282: case 210: case 211: case 212: case 167: return !0; default: return !1; } } function ng(e) { return e.kind === 210 || e.kind === 211; } function vA(e) { const t = e.kind; return t === 225 || t === 14; } function gd(e) { return nce(D_(e).kind); } function nce(e) { switch (e) { case 208: case 209: case 211: case 210: case 281: case 282: case 285: case 212: case 206: case 214: case 207: case 228: case 215: case 79: case 80: case 13: case 8: case 9: case 10: case 14: case 225: case 95: case 104: case 108: case 110: case 106: case 232: case 230: case 233: case 100: case 279: return !0; default: return !1; } } function sW(e) { return rce(D_(e).kind); } function rce(e) { switch (e) { case 221: case 222: case 217: case 218: case 219: case 220: case 213: return !0; default: return nce(e); } } function ice(e) { switch (e.kind) { case 222: return !0; case 221: return e.operator === 45 || e.operator === 46; default: return !1; } } function ace(e) { switch (e.kind) { case 104: case 110: case 95: case 221: return !0; default: return $E(e); } } function yt(e) { return LOe(D_(e).kind); } function LOe(e) { switch (e) { case 224: case 226: case 216: case 223: case 227: case 231: case 229: case 357: case 356: case 235: return !0; default: return rce(e); } } function ZE(e) { const t = e.kind; return t === 213 || t === 231; } function IOe(e) { return rJ(e) || x7(e); } function Tv(e, t) { switch (e.kind) { case 245: case 246: case 247: case 243: case 244: return !0; case 253: return t && Tv(e.statement, t); } return !1; } function oce(e) { return Pl(e) || Kc(e); } function sce(e) { return kt(e, oce); } function bM(e) { return !KR(e) && !Pl(e) && !Jr(e, 1) && !ku(e); } function UR(e) { return KR(e) || Pl(e) || Jr(e, 1); } function bA(e) { return e.kind === 246 || e.kind === 247; } function EM(e) { return oo(e) || yt(e); } function lW(e) { return oo(e); } function jp(e) { return Ou(e) || yt(e); } function lce(e) { const t = e.kind; return t === 265 || t === 264 || t === 79; } function kOe(e) { const t = e.kind; return t === 265 || t === 264; } function wOe(e) { const t = e.kind; return t === 79 || t === 264; } function cW(e) { const t = e.kind; return t === 272 || t === 271; } function VR(e) { return e.kind === 264 || e.kind === 263; } function Lm(e) { switch (e.kind) { case 216: case 223: case 205: case 210: case 176: case 260: case 228: case 172: case 173: case 182: case 177: case 209: case 263: case 302: case 274: case 275: case 278: case 259: case 215: case 181: case 174: case 79: case 270: case 268: case 273: case 178: case 261: case 341: case 343: case 320: case 344: case 351: case 326: case 349: case 325: case 288: case 289: case 290: case 197: case 171: case 170: case 264: case 199: case 277: case 267: case 271: case 211: case 14: case 8: case 207: case 166: case 208: case 299: case 169: case 168: case 175: case 300: case 308: case 301: case 10: case 262: case 184: case 165: case 257: return !0; default: return !1; } } function Im(e) { switch (e.kind) { case 216: case 238: case 176: case 266: case 295: case 172: case 191: case 173: case 182: case 177: case 245: case 246: case 247: case 259: case 215: case 181: case 174: case 178: case 341: case 343: case 320: case 326: case 349: case 197: case 171: case 170: case 264: case 175: case 308: case 262: return !0; default: return !1; } } function DOe(e) { return e === 216 || e === 205 || e === 260 || e === 228 || e === 172 || e === 173 || e === 263 || e === 302 || e === 278 || e === 259 || e === 215 || e === 174 || e === 270 || e === 268 || e === 273 || e === 261 || e === 288 || e === 171 || e === 170 || e === 264 || e === 267 || e === 271 || e === 277 || e === 166 || e === 299 || e === 169 || e === 168 || e === 175 || e === 300 || e === 262 || e === 165 || e === 257 || e === 349 || e === 341 || e === 351; } function uW(e) { return e === 259 || e === 279 || e === 260 || e === 261 || e === 262 || e === 263 || e === 264 || e === 269 || e === 268 || e === 275 || e === 274 || e === 267; } function dW(e) { return e === 249 || e === 248 || e === 256 || e === 243 || e === 241 || e === 239 || e === 246 || e === 247 || e === 245 || e === 242 || e === 253 || e === 250 || e === 252 || e === 254 || e === 255 || e === 240 || e === 244 || e === 251 || e === 355 || e === 359 || e === 358; } function _u(e) { return e.kind === 165 ? e.parent && e.parent.kind !== 348 || dr(e) : DOe(e.kind); } function cce(e) { return uW(e.kind); } function jR(e) { return dW(e.kind); } function Ia(e) { const t = e.kind; return dW(t) || uW(t) || ROe(e); } function ROe(e) { return e.kind !== 238 || e.parent !== void 0 && (e.parent.kind === 255 || e.parent.kind === 295) ? !1 : !aT(e); } function uce(e) { const t = e.kind; return dW(t) || uW(t) || t === 238; } function dce(e) { const t = e.kind; return t === 280 || t === 163 || t === 79; } function vI(e) { const t = e.kind; return t === 108 || t === 79 || t === 208; } function HR(e) { const t = e.kind; return t === 281 || t === 291 || t === 282 || t === 11 || t === 285; } function TM(e) { const t = e.kind; return t === 288 || t === 290; } function fce(e) { const t = e.kind; return t === 10 || t === 291; } function qu(e) { const t = e.kind; return t === 283 || t === 282; } function fW(e) { const t = e.kind; return t === 292 || t === 293; } function EA(e) { return e.kind >= 312 && e.kind <= 353; } function _W(e) { return e.kind === 323 || e.kind === 322 || e.kind === 324 || zS(e) || bI(e) || Lk(e) || R1(e); } function bI(e) { return e.kind >= 330 && e.kind <= 353; } function fy(e) { return e.kind === 175; } function Sv(e) { return e.kind === 174; } function yf(e) { if (!gN(e)) return !1; const { jsDoc: t } = e; return !!t && t.length > 0; } function SM(e) { return !!e.type; } function xv(e) { return !!e.initializer; } function eT(e) { switch (e.kind) { case 257: case 166: case 205: case 169: case 299: case 302: return !0; default: return !1; } } function pW(e) { return e.kind === 288 || e.kind === 290 || dy(e); } function xM(e) { return e.kind === 180 || e.kind === 230; } function _ce(e) { let t = yW; for (const r of e) { if (!r.length) continue; let i = 0; for (; i < r.length && i < t && Zh(r.charCodeAt(i)); i++) ; if (i < t && (t = i), t === 0) return 0; } return t === yW ? void 0 : t; } function Ts(e) { return e.kind === 10 || e.kind === 14; } function zS(e) { return e.kind === 327 || e.kind === 328 || e.kind === 329; } function mW(e) { const t = Zs(e.parameters); return !!t && fh(t); } function fh(e) { const t = Qp(e) ? e.typeExpression && e.typeExpression.type : e.type; return e.dotDotDotToken !== void 0 || !!t && t.kind === 321; } var hW, gW, yW, NOe = L({ "src/compiler/utilitiesPublic.ts"() { Ra(), hW = DR(Cc(0, 0), 0), gW = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"], yW = 1073741823; } }); function Tl(e, t) { const r = e.declarations; if (r) { for (const i of r) if (i.kind === t) return i; } } function pce(e, t) { return yn(e.declarations || nt, (r) => r.kind === t); } function ao(e) { const t = /* @__PURE__ */ new Map(); if (e) for (const r of e) t.set(r.escapedName, r); return t; } function km(e) { return (e.flags & 33554432) !== 0; } function OOe() { var e = ""; const t = (r) => e += r; return { getText: () => e, write: t, rawWrite: t, writeKeyword: t, writeOperator: t, writePunctuation: t, writeSpace: t, writeStringLiteral: t, writeLiteral: t, writeParameter: t, writeProperty: t, writeSymbol: (r, i) => t(r), writeTrailingSemicolon: t, writeComment: t, getTextPos: () => e.length, getLine: () => 0, getColumn: () => 0, getIndent: () => 0, isAtStartOfLine: () => !1, hasTrailingComment: () => !1, hasTrailingWhitespace: () => !!e.length && Zh(e.charCodeAt(e.length - 1)), writeLine: () => e += " ", increaseIndent: io, decreaseIndent: io, clear: () => e = "" }; } function vW(e, t) { return e.configFilePath !== t.configFilePath || mce(e, t); } function mce(e, t) { return TA(e, t, $7); } function hce(e, t) { return TA(e, t, rK); } function TA(e, t, r) { return e !== t && r.some((i) => !rq(S3(e, i), S3(t, i))); } function gce(e, t) { for (; ; ) { const r = t(e); if (r === "quit") return; if (r !== void 0) return r; if (ji(e)) return; e = e.parent; } } function Zd(e, t) { const r = e.entries(); for (const [i, o] of r) { const s = t(o, i); if (s) return s; } } function EI(e, t) { const r = e.keys(); for (const i of r) { const o = t(i); if (o) return o; } } function WR(e, t) { e.forEach((r, i) => { t.set(i, r); }); } function TI(e) { const t = ck.getText(); try { return e(ck), ck.getText(); } finally { ck.clear(), ck.writeKeyword(t); } } function zR(e) { return e.end - e.pos; } function SA(e, t, r) { var i, o; return (o = (i = e == null ? void 0 : e.resolvedModules) == null ? void 0 : i.get(t, r)) == null ? void 0 : o.resolvedModule; } function yce(e, t, r, i) { e.resolvedModules || (e.resolvedModules = kT()), e.resolvedModules.set(t, i, r); } function vce(e, t, r, i) { e.resolvedTypeReferenceDirectiveNames || (e.resolvedTypeReferenceDirectiveNames = kT()), e.resolvedTypeReferenceDirectiveNames.set(t, i, r); } function POe(e, t, r) { var i, o; return (o = (i = e == null ? void 0 : e.resolvedTypeReferenceDirectiveNames) == null ? void 0 : i.get(t, r)) == null ? void 0 : o.resolvedTypeReferenceDirective; } function bW(e, t) { return e.path === t.path && !e.prepend == !t.prepend && !e.circular == !t.circular; } function bce(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 && MOe(e.resolvedModule.packageId, t.resolvedModule.packageId); } function MOe(e, t) { return e === t || !!e && !!t && e.name === t.name && e.subModuleName === t.subModuleName && e.version === t.version; } function AM({ name: e, subModuleName: t }) { return t ? `${e}/${t}` : e; } function tT(e) { return `${AM(e)}@${e.version}`; } function Ece(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 EW(e, t, r, i, o, s) { D.assert(e.length === r.length); for (let c = 0; c < e.length; c++) { const f = r[c], d = e[c], y = s.getName(d), m = s.getMode(d, t), b = i && i.get(y, m); if (b ? !f || !o(b, f) : f) return !0; } return !1; } function qR(e) { return FOe(e), (e.flags & 524288) !== 0; } function FOe(e) { e.flags & 1048576 || ((e.flags & 131072 || Oa(e, qR)) && (e.flags |= 524288), e.flags |= 1048576); } function Zn(e) { for (; e && e.kind !== 308; ) e = e.parent; return e; } function CM(e) { return Zn(e.valueDeclaration || wW(e)); } function LM(e, t) { return !!e && (e.scriptKind === 1 || e.scriptKind === 2) && !e.checkJsDirective && t === void 0; } function Tce(e) { switch (e.kind) { case 238: case 266: case 245: case 246: case 247: return !0; } return !1; } function Av(e, t) { return D.assert(e >= 0), Qh(t)[e]; } function BOe(e) { const t = Zn(e), r = il(t, e.pos); return `${t.fileName}(${r.line + 1},${r.character + 1})`; } function JR(e, t) { D.assert(e >= 0); const r = Qh(t), i = e, o = t.text; if (i + 1 === r.length) return o.length - 1; { const s = r[i]; let c = r[i + 1] - 1; for (D.assert(uu(o.charCodeAt(c))); s <= c && uu(o.charCodeAt(c)); ) c--; return c; } } function IM(e, t, r) { return !(r && r(t)) && !e.identifiers.has(t); } function Sl(e) { return e === void 0 ? !0 : e.pos === e.end && e.pos >= 0 && e.kind !== 1; } function s_(e) { return !Sl(e); } function Sce(e, t) { return Ol(e) ? t === e.expression : Cl(e) ? t === e.modifiers : Tf(e) ? t === e.initializer : Za(e) ? t === e.questionToken && Qd(e) : Uc(e) ? t === e.modifiers || t === e.questionToken || t === e.exclamationToken || SI(e.modifiers, t, el) : Xf(e) ? t === e.equalsToken || t === e.modifiers || t === e.questionToken || t === e.exclamationToken || SI(e.modifiers, t, el) : nc(e) ? t === e.exclamationToken : jl(e) ? t === e.typeParameters || t === e.type || SI(e.typeParameters, t, Ol) : U_(e) ? t === e.typeParameters || SI(e.typeParameters, t, Ol) : Kf(e) ? t === e.typeParameters || t === e.type || SI(e.typeParameters, t, Ol) : AO(e) ? t === e.modifiers || SI(e.modifiers, t, el) : !1; } function SI(e, t, r) { return !e || Ga(t) || !r(t) ? !1 : Ii(e, t); } function xce(e, t, r) { if (t === void 0 || t.length === 0) return e; let i = 0; for (; i < e.length && r(e[i]); ++i) ; return e.splice(i, 0, ...t), e; } function Ace(e, t, r) { if (t === void 0) return e; let i = 0; for (; i < e.length && r(e[i]); ++i) ; return e.splice(i, 0, t), e; } function Cce(e) { return dp(e) || !!(ho(e) & 2097152); } function wm(e, t) { return xce(e, t, dp); } function TW(e, t) { return xce(e, t, Cce); } function GOe(e, t) { return Ace(e, t, dp); } function d1(e, t) { return Ace(e, t, Cce); } function SW(e, t, r) { if (e.charCodeAt(t + 1) === 47 && t + 2 < r && e.charCodeAt(t + 2) === 47) { const i = e.substring(t, r); return !!(_q.test(i) || pq.test(i) || Nde.test(i) || Ode.test(i)); } return !1; } function kM(e, t) { return e.charCodeAt(t + 1) === 42 && e.charCodeAt(t + 2) === 33; } function Lce(e, t) { const r = new Map(t.map((c) => [ `${il(e, c.range.end).line}`, c ])), i = /* @__PURE__ */ new Map(); return { getUnusedExpectations: o, markUsed: s }; function o() { return ko(r.entries()).filter(([c, f]) => f.type === 0 && !i.get(c)).map(([c, f]) => f); } function s(c) { return r.has(`${c}`) ? (i.set(`${c}`, !0), !0) : !1; } } function nT(e, t, r) { return Sl(e) ? e.pos : EA(e) || e.kind === 11 ? zo((t || Zn(e)).text, e.pos, !1, !0) : r && yf(e) ? nT(e.jsDoc[0], t) : e.kind === 354 && e._children.length > 0 ? nT(e._children[0], t, r) : zo((t || Zn(e)).text, e.pos, !1, !1, nN(e)); } function xW(e, t) { const r = !Sl(e) && H_(e) ? Yi(e.modifiers, Du) : void 0; return r ? zo((t || Zn(e)).text, r.end) : nT(e, t); } function f1(e, t, r = !1) { return xI(e.text, t, r); } function UOe(e) { return !!nr(e, AT); } function wM(e) { return !!(Kc(e) && e.exportClause && Sh(e.exportClause) && e.exportClause.name.escapedText === "default"); } function xI(e, t, r = !1) { if (Sl(t)) return ""; let i = e.substring(r ? t.pos : zo(e, t.pos), t.end); return UOe(t) && (i = i.split(/\r\n|\n|\r/).map((o) => QL(o.replace(/^\s*\*/, ""))).join(` `)), i; } function bc(e, t = !1) { return f1(Zn(e), e, t); } function VOe(e) { return e.pos; } function xA(e, t) { return _v(e, t, VOe, js); } function ho(e) { const t = e.emitNode; return t && t.flags || 0; } function R_(e) { const t = e.emitNode; return t && t.internalFlags || 0; } function AW() { return 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: nt })), AsyncIterator: new Map(Object.entries({ es2015: nt })), Atomics: new Map(Object.entries({ es2017: nt })), SharedArrayBuffer: new Map(Object.entries({ es2017: nt })), AsyncIterable: new Map(Object.entries({ es2018: nt })), AsyncIterableIterator: new Map(Object.entries({ es2018: nt })), AsyncGenerator: new Map(Object.entries({ es2018: nt })), AsyncGeneratorFunction: new Map(Object.entries({ es2018: nt })), 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" ] })), 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" ] })), StringConstructor: new Map(Object.entries({ es2015: [ "fromCodePoint", "raw" ] })), DateTimeFormat: new Map(Object.entries({ es2017: [ "formatToParts" ] })), Promise: new Map(Object.entries({ es2015: nt, 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: nt })), 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: nt, es2022: [ "at" ], es2023: [ "findLastIndex", "findLast" ] })), BigUint64Array: new Map(Object.entries({ es2020: nt, es2022: [ "at" ], es2023: [ "findLastIndex", "findLast" ] })), Error: new Map(Object.entries({ es2022: [ "cause" ] })) })); } function Ice(e, t, r) { var i; if (t && jOe(e, r)) return f1(t, e); switch (e.kind) { case 10: { const o = r & 2 ? _z : r & 1 || ho(e) & 33554432 ? ex : kN; return e.singleQuote ? "'" + o(e.text, 39) + "'" : '"' + o(e.text, 34) + '"'; } case 14: case 15: case 16: case 17: { const o = r & 1 || ho(e) & 33554432 ? ex : kN, s = (i = e.rawText) != null ? i : c8e(o(e.text, 96)); switch (e.kind) { case 14: return "`" + s + "`"; case 15: return "`" + s + "${"; case 16: return "}" + s + "${"; case 17: return "}" + s + "`"; } break; } case 8: case 9: return e.text; case 13: return r & 4 && e.isUnterminated ? e.text + (e.text.charCodeAt(e.text.length - 1) === 92 ? " /" : "/") : e.text; } return D.fail(`Literal kind '${e.kind}' not accounted for.`); } function jOe(e, t) { return $s(e) || !e.parent || t & 4 && e.isUnterminated ? !1 : __(e) && e.numericLiteralFlags & 512 ? !!(t & 8) : !h7(e); } function kce(e) { return Va(e) ? '"' + kN(e) + '"' : "" + e; } function wce(e) { return cu(e).replace(/^(\d)/, "_$1").replace(/\W/g, "_"); } function CW(e) { return (up(e) & 3) !== 0 || LW(e); } function LW(e) { const t = Rm(e); return t.kind === 257 && t.parent.kind === 295; } function ku(e) { return Hl(e) && (e.name.kind === 10 || Hp(e)); } function DM(e) { return Hl(e) && e.name.kind === 10; } function IW(e) { return Hl(e) && Go(e.name); } function Dce(e) { return Hl(e) || Ve(e); } function AI(e) { return HOe(e.valueDeclaration); } function HOe(e) { return !!e && e.kind === 264 && !e.body; } function Rce(e) { return e.kind === 308 || e.kind === 264 || gA(e); } function Hp(e) { return !!(e.flags & 1024); } function _1(e) { return ku(e) && kW(e); } function kW(e) { switch (e.parent.kind) { case 308: return Yl(e.parent); case 265: return ku(e.parent.parent) && ji(e.parent.parent.parent) && !Yl(e.parent.parent.parent); } return !1; } function wW(e) { var t; return (t = e.declarations) == null ? void 0 : t.find((r) => !_1(r) && !(Hl(r) && Hp(r))); } function WOe(e) { return e === 1 || e === 100 || e === 199; } function qS(e, t) { return Yl(e) || F_(t) || WOe(Zc(t)) && !!e.commonJsModuleIndicator; } function DW(e, t) { switch (e.scriptKind) { case 1: case 3: case 2: case 4: break; default: return !1; } return e.isDeclarationFile ? !1 : f_(t, "alwaysStrict") || zfe(e.statements) ? !0 : Yl(e) || F_(t) ? Zc(t) >= 5 ? !0 : !t.noImplicitUseStrict : !1; } function RW(e) { return !!(e.flags & 16777216) || Jr(e, 2); } function NW(e, t) { switch (e.kind) { case 308: case 266: case 295: case 264: case 245: case 246: case 247: case 173: case 171: case 174: case 175: case 259: case 215: case 216: case 169: case 172: return !0; case 238: return !gA(t); } return !1; } function OW(e) { switch (D.type(e), e.kind) { case 341: case 349: case 326: return !0; default: return PW(e); } } function PW(e) { switch (D.type(e), e.kind) { case 176: case 177: case 170: case 178: case 181: case 182: case 320: case 260: case 228: case 261: case 262: case 348: case 259: case 171: case 173: case 174: case 175: case 215: case 216: return !0; default: return !1; } } function rT(e) { switch (e.kind) { case 269: case 268: return !0; default: return !1; } } function Nce(e) { return rT(e) || g1(e); } function RM(e) { switch (e.kind) { case 269: case 268: case 240: case 260: case 259: case 264: case 262: case 261: case 263: return !0; default: return !1; } } function Oce(e) { return KR(e) || Hl(e) || dg(e) || tf(e); } function KR(e) { return rT(e) || Kc(e); } function Dm(e) { return nr(e.parent, (t) => NW(t, t.parent)); } function Pce(e, t) { let r = Dm(e); for (; r; ) t(r), r = Dm(r); } function Is(e) { return !e || zR(e) === 0 ? "(Missing)" : bc(e); } function Mce(e) { return e.declaration ? Is(e.declaration.parameters[0].name) : void 0; } function XR(e) { return e.kind === 164 && !Hf(e.expression); } function NM(e) { var t; switch (e.kind) { case 79: case 80: return (t = e.emitNode) != null && t.autoGenerate ? void 0 : e.escapedText; case 10: case 8: case 14: return al(e.text); case 164: return Hf(e.expression) ? al(e.expression.text) : void 0; default: return D.assertNever(e); } } function AA(e) { return D.checkDefined(NM(e)); } function vf(e) { switch (e.kind) { case 108: return "this"; case 80: case 79: return zR(e) === 0 ? Or(e) : bc(e); case 163: return vf(e.left) + "." + vf(e.right); case 208: return Ve(e.name) || ki(e.name) ? vf(e.expression) + "." + vf(e.name) : D.assertNever(e.name); case 314: return vf(e.left) + vf(e.right); default: return D.assertNever(e); } } function Dr(e, t, r, i, o, s) { const c = Zn(e); return id(c, e, t, r, i, o, s); } function CA(e, t, r, i, o, s, c) { const f = zo(e.text, t.pos); return Lc(e, f, t.end - f, r, i, o, s, c); } function id(e, t, r, i, o, s, c) { const f = p1(e, t); return Lc(e, f.start, f.length, r, i, o, s, c); } function rg(e, t, r, i) { const o = p1(e, t); return OM(e, o.start, o.length, r, i); } function YR(e, t, r, i) { const o = zo(e.text, t.pos); return OM(e, o, t.end - o, r, i); } function MW(e, t, r) { D.assertGreaterThanOrEqual(t, 0), D.assertGreaterThanOrEqual(r, 0), e && (D.assertLessThanOrEqual(t, e.text.length), D.assertLessThanOrEqual(t + r, e.text.length)); } function OM(e, t, r, i, o) { return MW(e, t, r), { file: e, start: t, length: r, code: i.code, category: i.category, messageText: i.next ? i : i.messageText, relatedInformation: o }; } function FW(e, t, r) { return { file: e, start: 0, length: 0, code: t.code, category: t.category, messageText: t.next ? t : t.messageText, relatedInformation: r }; } function Fce(e) { return typeof e.messageText == "string" ? { code: e.code, category: e.category, messageText: e.messageText, next: e.next } : e.messageText; } function BW(e, t, r) { return { file: e, start: t.pos, length: t.end - t.pos, code: r.code, category: r.category, messageText: r.message }; } function _y(e, t) { const r = sy(e.languageVersion, !0, e.languageVariant, e.text, void 0, t); r.scan(); const i = r.getTokenPos(); return fc(i, r.getTextPos()); } function Bce(e, t) { const r = sy(e.languageVersion, !0, e.languageVariant, e.text, void 0, t); return r.scan(), r.getToken(); } function zOe(e, t) { const r = zo(e.text, t.pos); if (t.body && t.body.kind === 238) { const { line: i } = il(e, t.body.pos), { line: o } = il(e, t.body.end); if (i < o) return Cc(r, JR(i, e) - r + 1); } return fc(r, t.end); } function p1(e, t) { let r = t; switch (t.kind) { case 308: const s = zo(e.text, 0, !1); return s === e.text.length ? Cc(0, 0) : _y(e, s); case 257: case 205: case 260: case 228: case 261: case 264: case 263: case 302: case 259: case 215: case 171: case 174: case 175: case 262: case 169: case 168: case 271: r = t.name; break; case 216: return zOe(e, t); case 292: case 293: const c = zo(e.text, t.pos), f = t.statements.length > 0 ? t.statements[0].pos : t.end; return fc(c, f); } if (r === void 0) return _y(e, t.pos); D.assert(!Vm(r)); const i = Sl(r), o = i || _x(t) ? r.pos : zo(e.text, r.pos); return i ? (D.assert(o === r.pos, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"), D.assert(o === r.end, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")) : (D.assert(o >= r.pos, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"), D.assert(o <= r.end, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")), fc(o, r.end); } function ef(e) { return (e.externalModuleIndicator || e.commonJsModuleIndicator) !== void 0; } function l_(e) { return e.scriptKind === 6; } function m1(e) { return !!(cy(e) & 2048); } function PM(e) { return !!(cy(e) & 64 && !Yd(e, e.parent)); } function ig(e) { return !!(up(e) & 2); } function CI(e) { return !!(up(e) & 1); } function LA(e) { return e.kind === 210 && e.expression.kind === 106; } function tf(e) { return e.kind === 210 && e.expression.kind === 100; } function IA(e) { return Ek(e) && e.keywordToken === 100 && e.name.escapedText === "meta"; } function B0(e) { return dg(e) && X0(e.argument) && Go(e.argument.literal); } function dp(e) { return e.kind === 241 && e.expression.kind === 10; } function MM(e) { return !!(ho(e) & 2097152); } function FM(e) { return MM(e) && pc(e); } function qOe(e) { return Ve(e.name) && !e.initializer; } function BM(e) { return MM(e) && sc(e) && Vn(e.declarationList.declarations, qOe); } function GW(e, t) { return e.kind !== 11 ? ch(t.text, e.pos) : void 0; } function UW(e, t) { const r = e.kind === 166 || e.kind === 165 || e.kind === 215 || e.kind === 216 || e.kind === 214 || e.kind === 257 || e.kind === 278 ? ha(O0(t, e.pos), ch(t, e.pos)) : ch(t, e.pos); return yn(r, (i) => t.charCodeAt(i.pos + 1) === 42 && t.charCodeAt(i.pos + 2) === 42 && t.charCodeAt(i.pos + 3) !== 47); } function _h(e) { if (179 <= e.kind && e.kind <= 202) return !0; switch (e.kind) { case 131: case 157: case 148: case 160: case 152: case 134: case 153: case 149: case 155: case 144: return !0; case 114: return e.parent.kind !== 219; case 230: return Md(e.parent) && !PN(e); case 165: return e.parent.kind === 197 || e.parent.kind === 192; case 79: (e.parent.kind === 163 && e.parent.right === e || e.parent.kind === 208 && e.parent.name === e) && (e = e.parent), D.assert(e.kind === 79 || e.kind === 163 || e.kind === 208, "'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'."); case 163: case 208: case 108: { const { parent: t } = e; if (t.kind === 183) return !1; if (t.kind === 202) return !t.isTypeOf; if (179 <= t.kind && t.kind <= 202) return !0; switch (t.kind) { case 230: return Md(t.parent) && !PN(t); case 165: return e === t.constraint; case 348: return e === t.constraint; case 169: case 168: case 166: case 257: return e === t.type; case 259: case 215: case 216: case 173: case 171: case 170: case 174: case 175: return e === t.type; case 176: case 177: case 178: return e === t.type; case 213: return e === t.type; case 210: case 211: return Ii(t.typeArguments, e); case 212: return !1; } } } return !1; } function VW(e, t) { for (; e; ) { if (e.kind === t) return !0; e = e.parent; } return !1; } function iT(e, t) { return r(e); function r(i) { switch (i.kind) { case 250: return t(i); case 266: case 238: case 242: case 243: case 244: case 245: case 246: case 247: case 251: case 252: case 292: case 293: case 253: case 255: case 295: return Oa(i, r); } } } function Gce(e, t) { return r(e); function r(i) { switch (i.kind) { case 226: t(i); const o = i.expression; o && r(o); return; case 263: case 261: case 264: case 262: return; default: if (qa(i)) { if (i.name && i.name.kind === 164) { r(i.name.expression); return; } } else _h(i) || Oa(i, r); } } } function jW(e) { return e && e.kind === 185 ? e.elementType : e && e.kind === 180 ? bm(e.typeArguments) : void 0; } function Uce(e) { switch (e.kind) { case 261: case 260: case 228: case 184: return e.members; case 207: return e.properties; } } function kA(e) { if (e) switch (e.kind) { case 205: case 302: case 166: case 299: case 169: case 168: case 300: case 257: return !0; } return !1; } function Vce(e) { return kA(e) || F0(e); } function GM(e) { return e.parent.kind === 258 && e.parent.parent.kind === 240; } function jce(e) { return dr(e) ? As(e.parent) && vr(e.parent.parent) && xl(e.parent.parent) === 2 || UM(e.parent) : !1; } function UM(e) { return dr(e) ? vr(e) && xl(e) === 1 : !1; } function Hce(e) { return (Wi(e) ? ig(e) && Ve(e.name) && GM(e) : Za(e) ? VI(e) && _c(e) : Tf(e) && VI(e)) || UM(e); } function Wce(e) { switch (e.kind) { case 171: case 170: case 173: case 174: case 175: case 259: case 215: return !0; } return !1; } function HW(e, t) { for (; ; ) { if (t && t(e), e.statement.kind !== 253) return e.statement; e = e.statement; } } function aT(e) { return e && e.kind === 238 && qa(e.parent); } function N_(e) { return e && e.kind === 171 && e.parent.kind === 207; } function VM(e) { return (e.kind === 171 || e.kind === 174 || e.kind === 175) && (e.parent.kind === 207 || e.parent.kind === 228); } function zce(e) { return e && e.kind === 1; } function JOe(e) { return e && e.kind === 0; } function wA(e, t, r) { return e.properties.filter((i) => { if (i.kind === 299) { const o = NM(i.name); return t === o || !!r && r === o; } return !1; }); } function qce(e, t, r) { return En(wA(e, t), (i) => Ru(i.initializer) ? un(i.initializer.elements, (o) => Go(o) && o.text === r) : void 0); } function LI(e) { if (e && e.statements.length) { const t = e.statements[0].expression; return ri(t, As); } } function jM(e, t, r) { return En($R(e, t), (i) => Ru(i.initializer) ? un(i.initializer.elements, (o) => Go(o) && o.text === r) : void 0); } function $R(e, t) { const r = LI(e); return r ? wA(r, t) : nt; } function bf(e) { return nr(e.parent, qa); } function Jce(e) { return nr(e.parent, Ys); } function Ec(e) { return nr(e.parent, li); } function KOe(e) { return nr(e.parent, (t) => li(t) || qa(t) ? "quit" : Cl(t)); } function HM(e) { return nr(e.parent, gA); } function yd(e, t, r) { for (D.assert(e.kind !== 308); ; ) { if (e = e.parent, !e) return D.fail(); switch (e.kind) { case 164: if (r && li(e.parent.parent)) return e; e = e.parent.parent; break; case 167: e.parent.kind === 166 && Pc(e.parent.parent) ? e = e.parent.parent : Pc(e.parent) && (e = e.parent); break; case 216: if (!t) continue; case 259: case 215: case 264: case 172: case 169: case 168: case 171: case 170: case 173: case 174: case 175: case 176: case 177: case 178: case 263: case 308: return e; } } } function Kce(e) { switch (e.kind) { case 216: case 259: case 215: case 169: return !0; case 238: switch (e.parent.kind) { case 173: case 171: case 174: case 175: return !0; default: return !1; } default: return !1; } } function WM(e) { Ve(e) && (kc(e.parent) || pc(e.parent)) && e.parent.name === e && (e = e.parent); const t = yd(e, !0, !1); return ji(t); } function Xce(e) { const t = yd(e, !1, !1); if (t) switch (t.kind) { case 173: case 259: case 215: return t; } } function QR(e, t) { for (; ; ) { if (e = e.parent, !e) return; switch (e.kind) { case 164: e = e.parent; break; case 259: case 215: case 216: if (!t) continue; case 169: case 168: case 171: case 170: case 173: case 174: case 175: case 172: return e; case 167: e.parent.kind === 166 && Pc(e.parent.parent) ? e = e.parent.parent : Pc(e.parent) && (e = e.parent); break; } } } function oT(e) { if (e.kind === 215 || e.kind === 216) { let t = e, r = e.parent; for (; r.kind === 214; ) t = r, r = r.parent; if (r.kind === 210 && r.expression === t) return r; } } function XOe(e) { return e.kind === 106 || ad(e); } function ad(e) { const t = e.kind; return (t === 208 || t === 209) && e.expression.kind === 106; } function ZR(e) { const t = e.kind; return (t === 208 || t === 209) && e.expression.kind === 108; } function zM(e) { var t; return !!e && Wi(e) && ((t = e.initializer) == null ? void 0 : t.kind) === 108; } function Yce(e) { return !!e && (Xf(e) || Uc(e)) && vr(e.parent.parent) && e.parent.parent.operatorToken.kind === 63 && e.parent.parent.right.kind === 108; } function eN(e) { switch (e.kind) { case 180: return e.typeName; case 230: return Vl(e.expression) ? e.expression : void 0; case 79: case 163: return e; } } function qM(e) { switch (e.kind) { case 212: return e.tag; case 283: case 282: return e.tagName; default: return e.expression; } } function JM(e, t, r, i) { if (e && du(t) && ki(t.name)) return !1; switch (t.kind) { case 260: return !0; case 228: return !e; case 169: return r !== void 0 && (e ? kc(r) : li(r) && !T1(t) && !xz(t)); case 174: case 175: case 171: return t.body !== void 0 && r !== void 0 && (e ? kc(r) : li(r)); case 166: return e ? r !== void 0 && r.body !== void 0 && (r.kind === 173 || r.kind === 171 || r.kind === 175) && b1(r) !== t && i !== void 0 && i.kind === 260 : !1; } return !1; } function DA(e, t, r, i) { return zf(t) && JM(e, t, r, i); } function tN(e, t, r, i) { return DA(e, t, r, i) || II(e, t, r); } function II(e, t, r) { switch (t.kind) { case 260: return kt(t.members, (i) => tN(e, i, t, r)); case 228: return !e && kt(t.members, (i) => tN(e, i, t, r)); case 171: case 175: case 173: return kt(t.parameters, (i) => DA(e, i, t, r)); default: return !1; } } function h1(e, t) { if (DA(e, t)) return !0; const r = hh(t); return !!r && II(e, r, t); } function WW(e, t, r) { let i; if (F0(t)) { const { firstAccessor: o, secondAccessor: s, setAccessor: c } = pT(r.members, t), f = zf(o) ? o : s && zf(s) ? s : void 0; if (!f || t !== f) return !1; i = c == null ? void 0 : c.parameters; } else nc(t) && (i = t.parameters); if (DA(e, t, r)) return !0; if (i) { for (const o of i) if (!E1(o) && DA(e, o, t, r)) return !0; } return !1; } function zW(e) { if (e.textSourceNode) { switch (e.textSourceNode.kind) { case 10: return zW(e.textSourceNode); case 14: return e.text === ""; } return !1; } return e.text === ""; } function kI(e) { const { parent: t } = e; return t.kind === 283 || t.kind === 282 || t.kind === 284 ? t.tagName === e : !1; } function ag(e) { switch (e.kind) { case 106: case 104: case 110: case 95: case 13: case 206: case 207: case 208: case 209: case 210: case 211: case 212: case 231: case 213: case 235: case 232: case 214: case 215: case 228: case 216: case 219: case 217: case 218: case 221: case 222: case 223: case 224: case 227: case 225: case 229: case 281: case 282: case 285: case 226: case 220: case 233: return !0; case 230: return !Md(e.parent) && !yC(e.parent); case 163: for (; e.parent.kind === 163; ) e = e.parent; return e.parent.kind === 183 || zS(e.parent) || Ck(e.parent) || $0(e.parent) || kI(e); case 314: for (; $0(e.parent); ) e = e.parent; return e.parent.kind === 183 || zS(e.parent) || Ck(e.parent) || $0(e.parent) || kI(e); case 80: return vr(e.parent) && e.parent.left === e && e.parent.operatorToken.kind === 101; case 79: if (e.parent.kind === 183 || zS(e.parent) || Ck(e.parent) || $0(e.parent) || kI(e)) return !0; case 8: case 9: case 10: case 14: case 108: return KM(e); default: return !1; } } function KM(e) { const { parent: t } = e; switch (t.kind) { case 257: case 166: case 169: case 168: case 302: case 299: case 205: return t.initializer === e; case 241: case 242: case 243: case 244: case 250: case 251: case 252: case 292: case 254: return t.expression === e; case 245: const r = t; return r.initializer === e && r.initializer.kind !== 258 || r.condition === e || r.incrementor === e; case 246: case 247: const i = t; return i.initializer === e && i.initializer.kind !== 258 || i.expression === e; case 213: case 231: return e === t.expression; case 236: return e === t.expression; case 164: return e === t.expression; case 167: case 291: case 290: case 301: return !0; case 230: return t.expression === e && !_h(t); case 300: return t.objectAssignmentInitializer === e; case 235: return e === t.expression; default: return ag(t); } } function XM(e) { for (; e.kind === 163 || e.kind === 79; ) e = e.parent; return e.kind === 183; } function $ce(e) { return Sh(e) && !!e.parent.moduleSpecifier; } function G0(e) { return e.kind === 268 && e.moduleReference.kind === 280; } function wI(e) { return D.assert(G0(e)), e.moduleReference.expression; } function qW(e) { return g1(e) && YI(e.initializer).arguments[0]; } function RA(e) { return e.kind === 268 && e.moduleReference.kind !== 280; } function Ju(e) { return dr(e); } function YOe(e) { return !dr(e); } function dr(e) { return !!e && !!(e.flags & 262144); } function YM(e) { return !!e && !!(e.flags & 67108864); } function JW(e) { return !l_(e); } function nN(e) { return !!e && !!(e.flags & 8388608); } function $M(e) { return V_(e) && Ve(e.typeName) && e.typeName.escapedText === "Object" && e.typeArguments && e.typeArguments.length === 2 && (e.typeArguments[0].kind === 152 || e.typeArguments[0].kind === 148); } function vd(e, t) { if (e.kind !== 210) return !1; const { expression: r, arguments: i } = e; if (r.kind !== 79 || r.escapedText !== "require" || i.length !== 1) return !1; const o = i[0]; return !t || Ts(o); } function KW(e) { return Zce(e, !1); } function g1(e) { return Zce(e, !0); } function Qce(e) { return us(e) && g1(e.parent.parent); } function Zce(e, t) { return Wi(e) && !!e.initializer && vd(t ? YI(e.initializer) : e.initializer, !0); } function XW(e) { return sc(e) && e.declarationList.declarations.length > 0 && Vn(e.declarationList.declarations, (t) => KW(t)); } function rN(e) { return e === 39 || e === 34; } function QM(e, t) { return f1(t, e).charCodeAt(0) === 34; } function DI(e) { return vr(e) || ol(e) || Ve(e) || eo(e); } function iN(e) { return dr(e) && e.initializer && vr(e.initializer) && (e.initializer.operatorToken.kind === 56 || e.initializer.operatorToken.kind === 60) && e.name && Vl(e.name) && NA(e.name, e.initializer.left) ? e.initializer.right : e.initializer; } function aN(e) { const t = iN(e); return t && U0(t, W0(e.name)); } function $Oe(e, t) { return Ye(e.properties, (r) => Uc(r) && Ve(r.name) && r.name.escapedText === "value" && r.initializer && U0(r.initializer, t)); } function JS(e) { if (e && e.parent && vr(e.parent) && e.parent.operatorToken.kind === 63) { const t = W0(e.parent.left); return U0(e.parent.right, t) || QOe(e.parent.left, e.parent.right, t); } if (e && eo(e) && KS(e)) { const t = $Oe(e.arguments[2], e.arguments[1].text === "prototype"); if (t) return t; } } function U0(e, t) { if (eo(e)) { const r = Us(e.expression); return r.kind === 215 || r.kind === 216 ? e : void 0; } if (e.kind === 215 || e.kind === 228 || e.kind === 216 || As(e) && (e.properties.length === 0 || t)) return e; } function QOe(e, t, r) { const i = vr(t) && (t.operatorToken.kind === 56 || t.operatorToken.kind === 60) && U0(t.right, r); if (i && NA(e, t.left)) return i; } function eue(e) { const t = Wi(e.parent) ? e.parent.name : vr(e.parent) && e.parent.operatorToken.kind === 63 ? e.parent.left : void 0; return t && U0(e.right, W0(t)) && Vl(t) && NA(t, e.left); } function YW(e) { if (vr(e.parent)) { const t = (e.parent.operatorToken.kind === 56 || e.parent.operatorToken.kind === 60) && vr(e.parent.parent) ? e.parent.parent : e.parent; if (t.operatorToken.kind === 63 && Ve(t.left)) return t.left; } else if (Wi(e.parent)) return e.parent.name; } function NA(e, t) { return O_(e) && O_(t) ? P_(e) === P_(t) : eg(e) && ZM(t) && (t.expression.kind === 108 || Ve(t.expression) && (t.expression.escapedText === "window" || t.expression.escapedText === "self" || t.expression.escapedText === "global")) ? NA(e, lN(t)) : ZM(e) && ZM(t) ? og(e) === og(t) && NA(e.expression, t.expression) : !1; } function oN(e) { for (; Ku(e, !0); ) e = e.right; return e; } function sT(e) { return Ve(e) && e.escapedText === "exports"; } function $W(e) { return Ve(e) && e.escapedText === "module"; } function ph(e) { return (Pr(e) || sN(e)) && $W(e.expression) && og(e) === "exports"; } function xl(e) { const t = ZOe(e); return t === 5 || dr(e) ? t : 0; } function KS(e) { return Ne(e.arguments) === 3 && Pr(e.expression) && Ve(e.expression.expression) && Or(e.expression.expression) === "Object" && Or(e.expression.name) === "defineProperty" && Hf(e.arguments[1]) && XS(e.arguments[0], !0); } function ZM(e) { return Pr(e) || sN(e); } function sN(e) { return sl(e) && Hf(e.argumentExpression); } function lT(e, t) { return Pr(e) && (!t && e.expression.kind === 108 || Ve(e.name) && XS(e.expression, !0)) || e3(e, t); } function e3(e, t) { return sN(e) && (!t && e.expression.kind === 108 || Vl(e.expression) || lT(e.expression, !0)); } function XS(e, t) { return Vl(e) || lT(e, t); } function lN(e) { return Pr(e) ? e.name : e.argumentExpression; } function ZOe(e) { if (eo(e)) { if (!KS(e)) return 0; const t = e.arguments[0]; return sT(t) || ph(t) ? 8 : lT(t) && og(t) === "prototype" ? 9 : 7; } return e.operatorToken.kind !== 63 || !ol(e.left) || e8e(oN(e)) ? 0 : XS(e.left.expression, !0) && og(e.left) === "prototype" && As(QW(e)) ? 6 : cN(e.left); } function e8e(e) { return Ex(e) && __(e.expression) && e.expression.text === "0"; } function t3(e) { if (Pr(e)) return e.name; const t = Us(e.argumentExpression); return __(t) || Ts(t) ? t : e; } function og(e) { const t = t3(e); if (t) { if (Ve(t)) return t.escapedText; if (Ts(t) || __(t)) return al(t.text); } } function cN(e) { if (e.expression.kind === 108) return 4; if (ph(e)) return 2; if (XS(e.expression, !0)) { if (W0(e.expression)) return 3; let t = e; for (; !Ve(t.expression); ) t = t.expression; const r = t.expression; if ((r.escapedText === "exports" || r.escapedText === "module" && og(t) === "exports") && lT(e)) return 1; if (XS(e, !0) || sl(e) && s3(e)) return 5; } return 0; } function QW(e) { for (; vr(e.right); ) e = e.right; return e.right; } function uN(e) { return vr(e) && xl(e) === 3; } function tue(e) { return dr(e) && e.parent && e.parent.kind === 241 && (!sl(e) || sN(e)) && !!s1(e.parent); } function dN(e, t) { const { valueDeclaration: r } = e; (!r || !(t.flags & 16777216 && !dr(t) && !(r.flags & 16777216)) && DI(r) && !DI(t) || r.kind !== t.kind && Dce(r)) && (e.valueDeclaration = t); } function nue(e) { if (!e || !e.valueDeclaration) return !1; const t = e.valueDeclaration; return t.kind === 259 || Wi(t) && t.initializer && qa(t.initializer); } function fN(e) { var t, r; switch (e.kind) { case 257: case 205: return (t = nr(e.initializer, (i) => vd(i, !0))) == null ? void 0 : t.arguments[0]; case 269: return ri(e.moduleSpecifier, Ts); case 268: return ri((r = ri(e.moduleReference, Um)) == null ? void 0 : r.expression, Ts); case 270: case 277: return ri(e.parent.moduleSpecifier, Ts); case 271: case 278: return ri(e.parent.parent.moduleSpecifier, Ts); case 273: return ri(e.parent.parent.parent.moduleSpecifier, Ts); default: D.assertNever(e); } } function _N(e) { return pN(e) || D.failBadSyntaxKind(e.parent); } function pN(e) { switch (e.parent.kind) { case 269: case 275: return e.parent; case 280: return e.parent.parent; case 210: return tf(e.parent) || vd(e.parent, !1) ? e.parent : void 0; case 198: return D.assert(Go(e)), ri(e.parent.parent, dg); default: return; } } function OA(e) { switch (e.kind) { case 269: case 275: return e.moduleSpecifier; case 268: return e.moduleReference.kind === 280 ? e.moduleReference.expression : void 0; case 202: return B0(e) ? e.argument.literal : void 0; case 210: return e.arguments[0]; case 264: return e.name.kind === 10 ? e.name : void 0; default: return D.assertNever(e); } } function PA(e) { switch (e.kind) { case 269: return e.importClause && ri(e.importClause.namedBindings, Ov); case 268: return e; case 275: return e.exportClause && ri(e.exportClause, Sh); default: return D.assertNever(e); } } function YS(e) { return e.kind === 269 && !!e.importClause && !!e.importClause.name; } function n3(e, t) { if (e.name) { const r = t(e); if (r) return r; } if (e.namedBindings) { const r = Ov(e.namedBindings) ? t(e.namedBindings) : Ye(e.namedBindings.elements, t); if (r) return r; } } function $S(e) { if (e) switch (e.kind) { case 166: case 171: case 170: case 300: case 299: case 169: case 168: return e.questionToken !== void 0; } return !1; } function MA(e) { const t = gC(e) ? Wc(e.parameters) : void 0, r = ri(t && t.name, Ve); return !!r && r.escapedText === "new"; } function c_(e) { return e.kind === 349 || e.kind === 341 || e.kind === 343; } function mN(e) { return c_(e) || Xp(e); } function t8e(e) { return eu(e) && vr(e.expression) && e.expression.operatorToken.kind === 63 ? oN(e.expression) : void 0; } function rue(e) { return eu(e) && vr(e.expression) && xl(e.expression) !== 0 && vr(e.expression.right) && (e.expression.right.operatorToken.kind === 56 || e.expression.right.operatorToken.kind === 60) ? e.expression.right.right : void 0; } function ZW(e) { switch (e.kind) { case 240: const t = FA(e); return t && t.initializer; case 169: return e.initializer; case 299: return e.initializer; } } function FA(e) { return sc(e) ? Wc(e.declarationList.declarations) : void 0; } function iue(e) { return Hl(e) && e.body && e.body.kind === 264 ? e.body : void 0; } function hN(e) { if (e.kind >= 240 && e.kind <= 256) return !0; switch (e.kind) { case 79: case 108: case 106: case 163: case 233: case 209: case 208: case 205: case 215: case 216: case 171: case 174: case 175: return !0; default: return !1; } } function gN(e) { switch (e.kind) { case 216: case 223: case 238: case 249: case 176: case 292: case 260: case 228: case 172: case 173: case 182: case 177: case 248: case 256: case 243: case 209: case 239: case 1: case 263: case 302: case 274: case 275: case 278: case 241: case 246: case 247: case 245: case 259: case 215: case 181: case 174: case 79: case 242: case 269: case 268: case 178: case 261: case 320: case 326: case 253: case 171: case 170: case 264: case 199: case 267: case 207: case 166: case 214: case 208: case 299: case 169: case 168: case 250: case 175: case 300: case 301: case 252: case 254: case 255: case 262: case 165: case 257: case 240: case 244: case 251: return !0; default: return !1; } } function ez(e, t) { let r; kA(e) && xv(e) && yf(e.initializer) && (r = yi(r, aue(e, Ho(e.initializer.jsDoc)))); let i = e; for (; i && i.parent; ) { if (yf(i) && (r = yi(r, aue(e, Ho(i.jsDoc)))), i.kind === 166) { r = yi(r, (t ? Dle : dI)(i)); break; } if (i.kind === 165) { r = yi(r, (t ? Ole : Nle)(i)); break; } i = tz(i); } return r || nt; } function aue(e, t) { if (Vm(t)) { const r = yn(t.tags, (i) => oue(e, i)); return t.tags === r ? [t] : r; } return oue(e, t) ? [t] : void 0; } function oue(e, t) { return !(kk(t) || w7(t)) || !t.parent || !Vm(t.parent) || !Pd(t.parent.parent) || t.parent.parent === e; } function tz(e) { const t = e.parent; if (t.kind === 299 || t.kind === 274 || t.kind === 169 || t.kind === 241 && e.kind === 208 || t.kind === 250 || iue(t) || vr(e) && e.operatorToken.kind === 63) return t; if (t.parent && (FA(t.parent) === e || vr(t) && t.operatorToken.kind === 63)) return t.parent; if (t.parent && t.parent.parent && (FA(t.parent.parent) || ZW(t.parent.parent) === e || rue(t.parent.parent))) return t.parent.parent; } function yN(e) { if (e.symbol) return e.symbol; if (!Ve(e.name)) return; const t = e.name.escapedText, r = V0(e); if (!r) return; const i = un(r.parameters, (o) => o.name.kind === 79 && o.name.escapedText === t); return i && i.symbol; } function r3(e) { if (Vm(e.parent) && e.parent.tags) { const t = un(e.parent.tags, c_); if (t) return t; } return V0(e); } function V0(e) { const t = BA(e); if (t) return Tf(t) && t.type && qa(t.type) ? t.type : qa(t) ? t : void 0; } function BA(e) { const t = QS(e); if (t) return rue(t) || t8e(t) || ZW(t) || FA(t) || iue(t) || t; } function QS(e) { const t = RI(e); if (!t) return; const r = t.parent; if (r && r.jsDoc && t === Zs(r.jsDoc)) return r; } function RI(e) { return nr(e.parent, Vm); } function sue(e) { const t = e.name.escapedText, { typeParameters: r } = e.parent.parent.parent; return r && un(r, (i) => i.name.escapedText === t); } function n8e(e) { return !!e.typeArguments; } function cT(e) { let t = e.parent; for (; ; ) { switch (t.kind) { case 223: const r = t.operatorToken.kind; return py(r) && t.left === e ? r === 63 || jI(r) ? 1 : 2 : 0; case 221: case 222: const i = t.operator; return i === 45 || i === 46 ? 2 : 0; case 246: case 247: return t.initializer === e ? 1 : 0; case 214: case 206: case 227: case 232: e = t; break; case 301: e = t.parent; break; case 300: if (t.name !== e) return 0; e = t.parent; break; case 299: if (t.name === e) return 0; e = t.parent; break; default: return 0; } t = e.parent; } } function mh(e) { return cT(e) !== 0; } function lue(e) { switch (e.kind) { case 238: case 240: case 251: case 242: case 252: case 266: case 292: case 293: case 253: case 245: case 246: case 247: case 243: case 244: case 255: case 295: return !0; } return !1; } function cue(e) { return Ms(e) || zs(e) || yA(e) || pc(e) || jl(e); } function uue(e, t) { for (; e && e.kind === t; ) e = e.parent; return e; } function vN(e) { return uue(e, 193); } function Cv(e) { return uue(e, 214); } function due(e) { let t; for (; e && e.kind === 193; ) t = e, e = e.parent; return [t, e]; } function nz(e) { for (; yx(e); ) e = e.type; return e; } function Us(e, t) { return pu(e, t ? 17 : 1); } function rz(e) { return e.kind !== 208 && e.kind !== 209 ? !1 : (e = Cv(e.parent), e && e.kind === 217); } function uT(e, t) { for (; e; ) { if (e === t) return !0; e = e.parent; } return !1; } function sg(e) { return !ji(e) && !Ja(e) && _u(e.parent) && e.parent.name === e; } function bN(e) { const t = e.parent; switch (e.kind) { case 10: case 14: case 8: if (Ss(t)) return t.parent; case 79: if (_u(t)) return t.name === e ? t : void 0; if (Ed(t)) { const r = t.parent; return Qp(r) && r.name === t ? r : void 0; } else { const r = t.parent; return vr(r) && xl(r) !== 0 && (r.left.symbol || r.symbol) && La(r) === e ? r : void 0; } case 80: return _u(t) && t.name === e ? t : void 0; default: return; } } function EN(e) { return Hf(e) && e.parent.kind === 164 && _u(e.parent.parent); } function fue(e) { const t = e.parent; switch (t.kind) { case 169: case 168: case 171: case 170: case 174: case 175: case 302: case 299: case 208: return t.name === e; case 163: return t.right === e; case 205: case 273: return t.propertyName === e; case 278: case 288: case 282: case 283: case 284: return !0; } return !1; } function r8e(e) { return e.kind === 268 || e.kind === 267 || e.kind === 270 && e.name || e.kind === 271 || e.kind === 277 || e.kind === 273 || e.kind === 278 || e.kind === 274 && GA(e) ? !0 : dr(e) && (vr(e) && xl(e) === 2 && GA(e) || Pr(e) && vr(e.parent) && e.parent.left === e && e.parent.operatorToken.kind === 63 && TN(e.parent.right)); } function iz(e) { switch (e.parent.kind) { case 270: case 273: case 271: case 278: case 274: case 268: case 277: return e.parent; case 163: do e = e.parent; while (e.parent.kind === 163); return iz(e); } } function TN(e) { return Vl(e) || Nu(e); } function GA(e) { const t = az(e); return TN(t); } function az(e) { return Pl(e) ? e.expression : e.right; } function _ue(e) { return e.kind === 300 ? e.name : e.kind === 299 ? e.initializer : e.parent.right; } function Wp(e) { const t = y1(e); if (t && dr(e)) { const r = Mle(e); if (r) return r.class; } return t; } function y1(e) { const t = SN(e.heritageClauses, 94); return t && t.types.length > 0 ? t.types[0] : void 0; } function UA(e) { if (dr(e)) return Fle(e).map((t) => t.class); { const t = SN(e.heritageClauses, 117); return t == null ? void 0 : t.types; } } function NI(e) { return Yu(e) ? OI(e) || nt : li(e) && ha(WE(Wp(e)), UA(e)) || nt; } function OI(e) { const t = SN(e.heritageClauses, 94); return t ? t.types : void 0; } function SN(e, t) { if (e) { for (const r of e) if (r.token === t) return r; } } function j0(e, t) { for (; e; ) { if (e.kind === t) return e; e = e.parent; } } function bd(e) { return 81 <= e && e <= 162; } function i3(e) { return 126 <= e && e <= 162; } function pue(e) { return bd(e) && !i3(e); } function i8e(e) { return 117 <= e && e <= 125; } function ZS(e) { const t = KE(e); return t !== void 0 && pue(t); } function a8e(e) { const t = KE(e); return t !== void 0 && bd(t); } function a3(e) { const t = M0(e); return !!t && !i3(t); } function VA(e) { return 2 <= e && e <= 7; } function Mc(e) { if (!e) return 4; let t = 0; switch (e.kind) { case 259: case 215: case 171: e.asteriskToken && (t |= 1); case 216: Jr(e, 512) && (t |= 2); break; } return e.body || (t |= 4), t; } function jA(e) { switch (e.kind) { case 259: case 215: case 216: case 171: return e.body !== void 0 && e.asteriskToken === void 0 && Jr(e, 512); } return !1; } function Hf(e) { return Ts(e) || __(e); } function o3(e) { return Nv(e) && (e.operator === 39 || e.operator === 40) && __(e.operand); } function Lv(e) { const t = La(e); return !!t && s3(t); } function s3(e) { if (!(e.kind === 164 || e.kind === 209)) return !1; const t = sl(e) ? Us(e.argumentExpression) : e.expression; return !Hf(t) && !o3(t); } function v1(e) { switch (e.kind) { case 79: case 80: return e.escapedText; case 10: case 8: return al(e.text); case 164: const t = e.expression; return Hf(t) ? al(t.text) : o3(t) ? t.operator === 40 ? mo(t.operator) + t.operand.text : t.operand.text : void 0; default: return D.assertNever(e); } } function O_(e) { switch (e.kind) { case 79: case 10: case 14: case 8: return !0; default: return !1; } } function P_(e) { return eg(e) ? Or(e) : e.text; } function PI(e) { return eg(e) ? e.escapedText : al(e.text); } function o8e(e) { return `__@${go(e)}@${e.escapedName}`; } function xN(e, t) { return `__#${go(e)}@${t}`; } function AN(e) { return Ea(e.escapedName, "__@"); } function mue(e) { return Ea(e.escapedName, "__#"); } function s8e(e) { return e.kind === 79 && e.escapedText === "Symbol"; } function hue(e) { return Ve(e) ? Or(e) === "__proto__" : Go(e) && e.text === "__proto__"; } function MI(e, t) { switch (e = pu(e), e.kind) { case 228: case 215: if (e.name) return !1; break; case 216: break; default: return !1; } return typeof t == "function" ? t(e) : !0; } function oz(e) { switch (e.kind) { case 299: return !hue(e.name); case 300: return !!e.objectAssignmentInitializer; case 257: return Ve(e.name) && !!e.initializer; case 166: return Ve(e.name) && !!e.initializer && !e.dotDotDotToken; case 205: return Ve(e.name) && !!e.initializer && !e.dotDotDotToken; case 169: return !!e.initializer; case 223: switch (e.operatorToken.kind) { case 63: case 76: case 75: case 77: return Ve(e.left); } break; case 274: return !0; } return !1; } function Wf(e, t) { if (!oz(e)) return !1; switch (e.kind) { case 299: return MI(e.initializer, t); case 300: return MI(e.objectAssignmentInitializer, t); case 257: case 166: case 205: case 169: return MI(e.initializer, t); case 223: return MI(e.right, t); case 274: return MI(e.expression, t); } } function sz(e) { return e.escapedText === "push" || e.escapedText === "unshift"; } function dT(e) { return Rm(e).kind === 166; } function Rm(e) { for (; e.kind === 205; ) e = e.parent.parent; return e; } function lz(e) { const t = e.kind; return t === 173 || t === 215 || t === 259 || t === 216 || t === 171 || t === 174 || t === 175 || t === 264 || t === 308; } function $s(e) { return Jp(e.pos) || Jp(e.end); } function l8e(e) { return ya(e, ji) || e; } function cz(e) { const t = dz(e), r = e.kind === 211 && e.arguments !== void 0; return uz(e.kind, t, r); } function uz(e, t, r) { switch (e) { case 211: return r ? 0 : 1; case 221: case 218: case 219: case 217: case 220: case 224: case 226: return 1; case 223: switch (t) { case 42: case 63: case 64: case 65: case 67: case 66: case 68: case 69: case 70: case 71: case 72: case 73: case 78: case 74: case 75: case 76: case 77: return 1; } } return 0; } function l3(e) { const t = dz(e), r = e.kind === 211 && e.arguments !== void 0; return CN(e.kind, t, r); } function dz(e) { return e.kind === 223 ? e.operatorToken.kind : e.kind === 221 || e.kind === 222 ? e.operator : e.kind; } function CN(e, t, r) { switch (e) { case 357: return 0; case 227: return 1; case 226: return 2; case 224: return 4; case 223: switch (t) { case 27: return 0; case 63: case 64: case 65: case 67: case 66: case 68: case 69: case 70: case 71: case 72: case 73: case 78: case 74: case 75: case 76: case 77: return 3; default: return LN(t); } case 213: case 232: case 221: case 218: case 219: case 217: case 220: return 16; case 222: return 17; case 210: return 18; case 211: return r ? 19 : 18; case 212: case 208: case 209: case 233: return 19; case 231: case 235: return 11; case 108: case 106: case 79: case 80: case 104: case 110: case 95: case 8: case 9: case 10: case 206: case 207: case 215: case 216: case 228: case 13: case 14: case 225: case 214: case 229: case 281: case 282: case 285: return 20; default: return -1; } } function LN(e) { switch (e) { case 60: return 4; case 56: return 5; case 55: return 6; case 51: return 7; case 52: return 8; case 50: return 9; case 34: case 35: case 36: case 37: return 10; case 29: case 31: case 32: case 33: case 102: case 101: case 128: case 150: return 11; case 47: case 48: case 49: return 12; case 39: case 40: return 13; case 41: case 43: case 44: return 14; case 42: return 15; } return -1; } function IN(e) { return yn(e, (t) => { switch (t.kind) { case 291: return !!t.expression; case 11: return !t.containsOnlyTriviaWhiteSpaces; default: return !0; } }); } function HA() { let e = []; const t = [], r = /* @__PURE__ */ new Map(); let i = !1; return { add: s, lookup: o, getGlobalDiagnostics: c, getDiagnostics: f }; function o(d) { let y; if (d.file ? y = r.get(d.file.fileName) : y = e, !y) return; const m = _v(y, d, _l, v3); if (m >= 0) return y[m]; } function s(d) { let y; d.file ? (y = r.get(d.file.fileName), y || (y = [], r.set(d.file.fileName, y), fv(t, d.file.fileName, Lu))) : (i && (i = !1, e = e.slice()), y = e), fv(y, d, v3); } function c() { return i = !0, e; } function f(d) { if (d) return r.get(d) || []; const y = ty(t, (m) => r.get(m)); return e.length && y.unshift(...e), y; } } function c8e(e) { return e.replace(Pde, "\\${"); } function fz(e) { return e && !!(px(e) ? e.templateFlags : e.head.templateFlags || kt(e.templateSpans, (t) => !!t.literal.templateFlags)); } function gue(e) { return "\\u" + ("0000" + e.toString(16).toUpperCase()).slice(-4); } function u8e(e, t, r) { if (e.charCodeAt(0) === 0) { const i = r.charCodeAt(t + e.length); return i >= 48 && i <= 57 ? "\\x00" : "\\0"; } return Gde.get(e) || gue(e.charCodeAt(0)); } function ex(e, t) { const r = t === 96 ? Bde : t === 39 ? Fde : Mde; return e.replace(r, u8e); } function kN(e, t) { return e = ex(e, t), vq.test(e) ? e.replace(vq, (r) => gue(r.charCodeAt(0))) : e; } function d8e(e) { return "&#x" + e.toString(16).toUpperCase() + ";"; } function f8e(e) { return e.charCodeAt(0) === 0 ? "�" : jde.get(e) || d8e(e.charCodeAt(0)); } function _z(e, t) { const r = t === 39 ? Vde : Ude; return e.replace(r, f8e); } function M_(e) { const t = e.length; return t >= 2 && e.charCodeAt(0) === e.charCodeAt(t - 1) && _8e(e.charCodeAt(0)) ? e.substring(1, t - 1) : e; } function _8e(e) { return e === 39 || e === 34 || e === 96; } function FI(e) { const t = e.charCodeAt(0); return t >= 97 && t <= 122 || lu(e, "-") || lu(e, ":"); } function c3(e) { const t = tC[1]; for (let r = tC.length; r <= e; r++) tC.push(tC[r - 1] + t); return tC[e]; } function WA() { return tC[1].length; } function wN() { return lu(Ue, "-dev") || lu(Ue, "-insiders"); } function DN(e) { var t, r, i, o, s, c = !1; function f(k) { const B = xR(k); B.length > 1 ? (o = o + B.length - 1, s = t.length - k.length + Ho(B), i = s - t.length === 0) : i = !1; } function d(k) { k && k.length && (i && (k = c3(r) + k, i = !1), t += k, f(k)); } function y(k) { k && (c = !1), d(k); } function m(k) { k && (c = !0), d(k); } function b() { t = "", r = 0, i = !0, o = 0, s = 0, c = !1; } function A(k) { k !== void 0 && (t += k, f(k), c = !1); } function C(k) { k && k.length && y(k); } function I(k) { (!i || k) && (t += e, o++, s = t.length, i = !0, c = !1); } function O() { return i ? t.length : t.length + e.length; } return b(), { write: y, rawWrite: A, writeLiteral: C, writeLine: I, increaseIndent: () => { r++; }, decreaseIndent: () => { r--; }, getIndent: () => r, getTextPos: () => t.length, getLine: () => o, getColumn: () => i ? r * WA() : t.length - s, getText: () => t, isAtStartOfLine: () => i, hasTrailingComment: () => c, hasTrailingWhitespace: () => !!t.length && Zh(t.charCodeAt(t.length - 1)), clear: b, writeKeyword: y, writeOperator: y, writeParameter: y, writeProperty: y, writePunctuation: y, writeSpace: y, writeStringLiteral: y, writeSymbol: (k, B) => y(k), writeTrailingSemicolon: y, writeComment: m, getTextPosWithWriteLine: O }; } function pz(e) { let t = !1; function r() { t && (e.writeTrailingSemicolon(";"), t = !1); } return { ...e, writeTrailingSemicolon() { t = !0; }, writeLiteral(i) { r(), e.writeLiteral(i); }, writeStringLiteral(i) { r(), e.writeStringLiteral(i); }, writeSymbol(i, o) { r(), e.writeSymbol(i, o); }, writePunctuation(i) { r(), e.writePunctuation(i); }, writeKeyword(i) { r(), e.writeKeyword(i); }, writeOperator(i) { r(), e.writeOperator(i); }, writeParameter(i) { r(), e.writeParameter(i); }, writeSpace(i) { r(), e.writeSpace(i); }, writeProperty(i) { r(), e.writeProperty(i); }, writeComment(i) { r(), e.writeComment(i); }, writeLine() { r(), e.writeLine(); }, increaseIndent() { r(), e.increaseIndent(); }, decreaseIndent() { r(), e.decreaseIndent(); } }; } function RN(e) { return e.useCaseSensitiveFileNames ? e.useCaseSensitiveFileNames() : !1; } function H0(e) { return $c(RN(e)); } function u3(e, t, r) { return t.moduleName || mz(e, t.fileName, r && r.fileName); } function yue(e, t) { return e.getCanonicalFileName(Na(t, e.getCurrentDirectory())); } function vue(e, t, r) { const i = t.getExternalModuleFileFromDeclaration(r); if (!i || i.isDeclarationFile) return; const o = OA(r); if (!(o && Ts(o) && !gf(o.text) && yue(e, i.path).indexOf(yue(e, Iu(e.getCommonSourceDirectory()))) === -1)) return u3(e, i); } function mz(e, t, r) { const i = (d) => e.getCanonicalFileName(d), o = Hs(r ? fi(r) : e.getCommonSourceDirectory(), e.getCurrentDirectory(), i), s = Na(t, e.getCurrentDirectory()), c = GS(o, s, o, i, !1), f = Od(c); return r ? o1(f) : f; } function bue(e, t, r) { const i = t.getCompilerOptions(); let o; return i.outDir ? o = Od(d3(e, t, i.outDir)) : o = Od(e), o + r; } function Eue(e, t) { return hz(e, t.getCompilerOptions(), t.getCurrentDirectory(), t.getCommonSourceDirectory(), (r) => t.getCanonicalFileName(r)); } function hz(e, t, r, i, o) { const s = t.declarationDir || t.outDir, c = s ? bz(e, s, r, i, o) : e, f = gz(c); return Od(c) + f; } function gz(e) { return vc(e, [".mjs", ".mts"]) ? ".d.mts" : vc(e, [".cjs", ".cts"]) ? ".d.cts" : vc(e, [".json"]) ? ".d.json.ts" : ".d.ts"; } function Tue(e) { return vc(e, [".d.mts", ".mjs", ".mts"]) ? [".mts", ".mjs"] : vc(e, [".d.cts", ".cjs", ".cts"]) ? [".cts", ".cjs"] : vc(e, [".d.json.ts"]) ? [".json"] : [".tsx", ".ts", ".jsx", ".js"]; } function Ws(e) { return e.outFile || e.out; } function yz(e, t) { var r, i; if (e.paths) return (i = e.baseUrl) != null ? i : D.checkDefined(e.pathsBasePath || ((r = t.getCurrentDirectory) == null ? void 0 : r.call(t)), "Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'."); } function vz(e, t, r) { const i = e.getCompilerOptions(); if (Ws(i)) { const o = Zc(i), s = i.emitDeclarationOnly || o === 2 || o === 4; return yn(e.getSourceFiles(), (c) => (s || !Yl(c)) && tx(c, e, r)); } else { const o = t === void 0 ? e.getSourceFiles() : [t]; return yn(o, (s) => tx(s, e, r)); } } function tx(e, t, r) { return !(t.getCompilerOptions().noEmitForJsFiles && Ju(e)) && !e.isDeclarationFile && !t.isSourceFileFromExternalLibrary(e) && (r || !(l_(e) && t.getResolvedProjectReferenceToRedirect(e.fileName)) && !t.isSourceOfProjectReferenceRedirect(e.fileName)); } function d3(e, t, r) { return bz(e, r, t.getCurrentDirectory(), t.getCommonSourceDirectory(), (i) => t.getCanonicalFileName(i)); } function bz(e, t, r, i, o) { let s = Na(e, r); return s = o(s).indexOf(o(i)) === 0 ? s.substring(i.length) : s, Oi(t, s); } function BI(e, t, r, i, o, s, c) { e.writeFile(r, i, o, (f) => { t.add(Ps(_.Could_not_write_file_0_Colon_1, r, f)); }, s, c); } function Sue(e, t, r) { if (e.length > Vp(e) && !r(e)) { const i = fi(e); Sue(i, t, r), t(e); } } function Ez(e, t, r, i, o, s) { try { i(e, t, r); } catch { Sue(fi(Wo(e)), o, s), i(e, t, r); } } function GI(e, t) { const r = Qh(e); return iI(r, t); } function fT(e, t) { return iI(e, t); } function hh(e) { return un(e.members, (t) => jl(t) && s_(t.body)); } function UI(e) { if (e && e.parameters.length > 0) { const t = e.parameters.length === 2 && E1(e.parameters[0]); return e.parameters[t ? 1 : 0]; } } function xue(e) { const t = UI(e); return t && t.type; } function b1(e) { if (e.parameters.length && !R1(e)) { const t = e.parameters[0]; if (E1(t)) return t; } } function E1(e) { return _T(e.name); } function _T(e) { return !!e && e.kind === 79 && Tz(e); } function nx(e) { if (!_T(e)) return !1; for (; Ed(e.parent) && e.parent.left === e; ) e = e.parent; return e.parent.kind === 183; } function Tz(e) { return e.escapedText === "this"; } function pT(e, t) { let r, i, o, s; return Lv(t) ? (r = t, t.kind === 174 ? o = t : t.kind === 175 ? s = t : D.fail("Accessor has wrong kind")) : Ye(e, (c) => { if (F0(c) && za(c) === za(t)) { const f = v1(c.name), d = v1(t.name); f === d && (r ? i || (i = c) : r = c, c.kind === 174 && !o && (o = c), c.kind === 175 && !s && (s = c)); } }), { firstAccessor: r, secondAccessor: i, getAccessor: o, setAccessor: s }; } function Jc(e) { if (!dr(e) && pc(e)) return; const t = e.type; return t || !dr(e) ? t : hM(e) ? e.typeExpression && e.typeExpression.type : vv(e); } function Aue(e) { return e.type; } function fp(e) { return R1(e) ? e.type && e.type.typeExpression && e.type.typeExpression.type : e.type || (dr(e) ? NR(e) : void 0); } function f3(e) { return Mo(l1(e), (t) => p8e(t) ? t.typeParameters : void 0); } function p8e(e) { return mp(e) && !(e.parent.kind === 323 && (e.parent.tags.some(c_) || e.parent.tags.some(Ik))); } function Cue(e) { const t = UI(e); return t && Jc(t); } function Lue(e, t, r, i) { Iue(e, t, r.pos, i); } function Iue(e, t, r, i) { i && i.length && r !== i[0].pos && fT(e, r) !== fT(e, i[0].pos) && t.writeLine(); } function kue(e, t, r, i) { r !== i && fT(e, r) !== fT(e, i) && t.writeLine(); } function wue(e, t, r, i, o, s, c, f) { if (i && i.length > 0) { o && r.writeSpace(" "); let d = !1; for (const y of i) d && (r.writeSpace(" "), d = !1), f(e, t, r, y.pos, y.end, c), y.hasTrailingNewLine ? r.writeLine() : d = !0; d && s && r.writeSpace(" "); } } function Due(e, t, r, i, o, s, c) { let f, d; if (c ? o.pos === 0 && (f = yn(ch(e, o.pos), y)) : f = ch(e, o.pos), f) { const m = []; let b; for (const A of f) { if (b) { const C = fT(t, b.end); if (fT(t, A.pos) >= C + 2) break; } m.push(A), b = A; } if (m.length) { const A = fT(t, Ho(m).end); fT(t, zo(e, o.pos)) >= A + 2 && (Lue(t, r, o, f), wue(e, t, r, m, !1, !0, s, i), d = { nodePos: o.pos, detachedCommentEndPos: Ho(m).end }); } } return d; function y(m) { return kM(e, m.pos); } } function zA(e, t, r, i, o, s) { if (e.charCodeAt(i + 1) === 42) { const c = CR(t, i), f = t.length; let d; for (let y = i, m = c.line; y < o; m++) { const b = m + 1 === f ? e.length + 1 : t[m + 1]; if (y !== i) { d === void 0 && (d = Rue(e, t[c.line], i)); const C = r.getIndent() * WA() - d + Rue(e, y, b); if (C > 0) { let I = C % WA(); const O = c3((C - I) / WA()); for (r.rawWrite(O); I; ) r.rawWrite(" "), I--; } else r.rawWrite(""); } m8e(e, o, r, s, y, b), y = b; } } else r.writeComment(e.substring(i, o)); } function m8e(e, t, r, i, o, s) { const c = Math.min(t, s - 1), f = n1(e.substring(o, c)); f ? (r.writeComment(f), c !== t && r.writeLine()) : r.rawWrite(i); } function Rue(e, t, r) { let i = 0; for (; t < r && Cm(e.charCodeAt(t)); t++) e.charCodeAt(t) === 9 ? i += WA() - i % WA() : i++; return i; } function _3(e) { return wu(e) !== 0; } function Nue(e) { return Iv(e) !== 0; } function Nd(e, t) { return !!rx(e, t); } function Jr(e, t) { return !!Oue(e, t); } function za(e) { return Pc(e) && _c(e) || Cl(e); } function _c(e) { return Jr(e, 32); } function Sz(e) { return Nd(e, 16384); } function T1(e) { return Jr(e, 256); } function xz(e) { return Jr(e, 2); } function Nm(e) { return Jr(e, 128); } function VI(e) { return Nd(e, 64); } function zf(e) { return Jr(e, 131072); } function rx(e, t) { return wu(e) & t; } function Oue(e, t) { return Iv(e) & t; } function Az(e, t, r) { return e.kind >= 0 && e.kind <= 162 ? 0 : (e.modifierFlagsCache & 536870912 || (e.modifierFlagsCache = Cz(e) | 536870912), t && !(e.modifierFlagsCache & 4096) && (r || dr(e)) && e.parent && (e.modifierFlagsCache |= Mue(e) | 4096), e.modifierFlagsCache & -536875009); } function wu(e) { return Az(e, !0); } function Pue(e) { return Az(e, !0, !0); } function Iv(e) { return Az(e, !1); } function Mue(e) { let t = 0; return e.parent && !Ma(e) && (dr(e) && (Ble(e) && (t |= 4), Gle(e) && (t |= 8), Ule(e) && (t |= 16), Vle(e) && (t |= 64), jle(e) && (t |= 16384)), Hle(e) && (t |= 8192)), t; } function Fue(e) { return Cz(e) | Mue(e); } function Cz(e) { let t = H_(e) ? Om(e.modifiers) : 0; return (e.flags & 4 || e.kind === 79 && e.flags & 2048) && (t |= 1), t; } function Om(e) { let t = 0; if (e) for (const r of e) t |= ix(r.kind); return t; } function ix(e) { switch (e) { case 124: return 32; case 123: return 4; case 122: return 16; case 121: return 8; case 126: return 256; case 127: return 128; case 93: return 1; case 136: return 2; case 85: return 2048; case 88: return 1024; case 132: return 512; case 146: return 64; case 161: return 16384; case 101: return 32768; case 145: return 65536; case 167: return 131072; } return 0; } function Bue(e) { return e === 56 || e === 55; } function Gue(e) { return Bue(e) || e === 53; } function jI(e) { return e === 75 || e === 76 || e === 77; } function Lz(e) { return vr(e) && jI(e.operatorToken.kind); } function NN(e) { return Bue(e) || e === 60; } function ON(e) { return vr(e) && NN(e.operatorToken.kind); } function py(e) { return e >= 63 && e <= 78; } function Iz(e) { const t = kz(e); return t && !t.isImplements ? t.class : void 0; } function kz(e) { if (vy(e)) { if (Md(e.parent) && li(e.parent.parent)) return { class: e.parent.parent, isImplements: e.parent.token === 117 }; if (yC(e.parent)) { const t = BA(e.parent); if (t && li(t)) return { class: t, isImplements: !1 }; } } } function Ku(e, t) { return vr(e) && (t ? e.operatorToken.kind === 63 : py(e.operatorToken.kind)) && gd(e.left); } function h8e(e) { return Ku(e.parent) && e.parent.left === e; } function my(e) { if (Ku(e, !0)) { const t = e.left.kind; return t === 207 || t === 206; } return !1; } function PN(e) { return Iz(e) !== void 0; } function Vl(e) { return e.kind === 79 || MN(e); } function Ef(e) { switch (e.kind) { case 79: return e; case 163: do e = e.left; while (e.kind !== 79); return e; case 208: do e = e.expression; while (e.kind !== 79); return e; } } function HI(e) { return e.kind === 79 || e.kind === 108 || e.kind === 106 || e.kind === 233 || e.kind === 208 && HI(e.expression) || e.kind === 214 && HI(e.expression); } function MN(e) { return Pr(e) && Ve(e.name) && Vl(e.expression); } function FN(e) { if (Pr(e)) { const t = FN(e.expression); if (t !== void 0) return t + "." + vf(e.name); } else if (sl(e)) { const t = FN(e.expression); if (t !== void 0 && hl(e.argumentExpression)) return t + "." + v1(e.argumentExpression); } else if (Ve(e)) return Zi(e.escapedText); } function W0(e) { return lT(e) && og(e) === "prototype"; } function WI(e) { return e.parent.kind === 163 && e.parent.right === e || e.parent.kind === 208 && e.parent.name === e; } function Uue(e) { return Pr(e.parent) && e.parent.name === e || sl(e.parent) && e.parent.argumentExpression === e; } function Vue(e) { return Ed(e.parent) && e.parent.right === e || Pr(e.parent) && e.parent.name === e || $0(e.parent) && e.parent.right === e; } function wz(e) { return e.kind === 207 && e.properties.length === 0; } function jue(e) { return e.kind === 206 && e.elements.length === 0; } function qA(e) { if (!(!g8e(e) || !e.declarations)) { for (const t of e.declarations) if (t.localSymbol) return t.localSymbol; } } function g8e(e) { return e && Ne(e.declarations) > 0 && Jr(e.declarations[0], 1024); } function p3(e) { return un(Jde, (t) => oc(e, t)); } function y8e(e) { const t = [], r = e.length; for (let i = 0; i < r; i++) { const o = e.charCodeAt(i); o < 128 ? t.push(o) : o < 2048 ? (t.push(o >> 6 | 192), t.push(o & 63 | 128)) : o < 65536 ? (t.push(o >> 12 | 224), t.push(o >> 6 & 63 | 128), t.push(o & 63 | 128)) : o < 131072 ? (t.push(o >> 18 | 240), t.push(o >> 12 & 63 | 128), t.push(o >> 6 & 63 | 128), t.push(o & 63 | 128)) : D.assert(!1, "Unexpected code point"); } return t; } function Hue(e) { let t = ""; const r = y8e(e); let i = 0; const o = r.length; let s, c, f, d; for (; i < o; ) s = r[i] >> 2, c = (r[i] & 3) << 4 | r[i + 1] >> 4, f = (r[i + 1] & 15) << 2 | r[i + 2] >> 6, d = r[i + 2] & 63, i + 1 >= o ? f = d = 64 : i + 2 >= o && (d = 64), t += C1.charAt(s) + C1.charAt(c) + C1.charAt(f) + C1.charAt(d), i += 3; return t; } function v8e(e) { let t = "", r = 0; const i = e.length; for (; r < i; ) { const o = e[r]; if (o < 128) t += String.fromCharCode(o), r++; else if ((o & 192) === 192) { let s = o & 63; r++; let c = e[r]; for (; (c & 192) === 128; ) s = s << 6 | c & 63, r++, c = e[r]; t += String.fromCharCode(s); } else t += String.fromCharCode(o), r++; } return t; } function Wue(e, t) { return e && e.base64encode ? e.base64encode(t) : Hue(t); } function zue(e, t) { if (e && e.base64decode) return e.base64decode(t); const r = t.length, i = []; let o = 0; for (; o < r && t.charCodeAt(o) !== C1.charCodeAt(64); ) { const s = C1.indexOf(t[o]), c = C1.indexOf(t[o + 1]), f = C1.indexOf(t[o + 2]), d = C1.indexOf(t[o + 3]), y = (s & 63) << 2 | c >> 4 & 3, m = (c & 15) << 4 | f >> 2 & 15, b = (f & 3) << 6 | d & 63; m === 0 && f !== 0 ? i.push(y) : b === 0 && d !== 0 ? i.push(y, m) : i.push(y, m, b), o += 4; } return v8e(i); } function Dz(e, t) { const r = Va(t) ? t : t.readFile(e); if (!r) return; const i = BJ(e, r); return i.error ? void 0 : i.config; } function zI(e, t) { return Dz(e, t) || {}; } function zp(e, t) { return !t.directoryExists || t.directoryExists(e); } function z0(e) { switch (e.newLine) { case 0: return Hde; case 1: case void 0: return Wde; } } function u_(e, t = e) { return D.assert(t >= e || t === -1), { pos: e, end: t }; } function m3(e, t) { return u_(e.pos, t); } function q0(e, t) { return u_(t, e.end); } function kv(e) { const t = H_(e) ? Yi(e.modifiers, Du) : void 0; return t && !Jp(t.end) ? q0(e, t.end) : e; } function qp(e) { if (Za(e) || nc(e)) return q0(e, e.name.pos); const t = H_(e) ? Zs(e.modifiers) : void 0; return t && !Jp(t.end) ? q0(e, t.end) : kv(e); } function b8e(e) { return e.pos === e.end; } function Rz(e, t) { return u_(e, e + mo(t).length); } function mT(e, t) { return Jue(e, e, t); } function h3(e, t, r) { return d_(qI(e, r, !1), qI(t, r, !1), r); } function que(e, t, r) { return d_(e.end, t.end, r); } function Jue(e, t, r) { return d_(qI(e, r, !1), t.end, r); } function BN(e, t, r) { return d_(e.end, qI(t, r, !1), r); } function Nz(e, t, r, i) { const o = qI(t, r, i); return aI(r, e.end, o); } function E8e(e, t, r) { return aI(r, e.end, t.end); } function Kue(e, t) { return !d_(e.pos, e.end, t); } function d_(e, t, r) { return aI(r, e, t) === 0; } function qI(e, t, r) { return Jp(e.pos) ? -1 : zo(t.text, e.pos, !1, r); } function Xue(e, t, r, i) { const o = zo(r.text, e, !1, i), s = T8e(o, t, r); return aI(r, s ?? t, o); } function Yue(e, t, r, i) { const o = zo(r.text, e, !1, i); return aI(r, e, Math.min(t, o)); } function T8e(e, t = 0, r) { for (; e-- > t; ) if (!Zh(r.text.charCodeAt(e))) return e; } function GN(e) { const t = ya(e); if (t) switch (t.parent.kind) { case 263: case 264: return t === t.parent.name; } return !1; } function JI(e) { return yn(e.declarations, Oz); } function Oz(e) { return Wi(e) && e.initializer !== void 0; } function S8e(e) { return e.watch && Ns(e, "watch"); } function Pm(e) { e.close(); } function Al(e) { return e.flags & 33554432 ? e.links.checkFlags : 0; } function qf(e, t = !1) { if (e.valueDeclaration) { const r = t && e.declarations && un(e.declarations, Kf) || e.flags & 32768 && un(e.declarations, U_) || e.valueDeclaration, i = cy(r); return e.parent && e.parent.flags & 32 ? i : i & -29; } if (Al(e) & 6) { const r = e.links.checkFlags, i = r & 1024 ? 8 : r & 256 ? 4 : 16, o = r & 2048 ? 32 : 0; return i | o; } return e.flags & 4194304 ? 36 : 0; } function nf(e, t) { return e.flags & 2097152 ? t.getAliasedSymbol(e) : e; } function KI(e) { return e.exportSymbol ? e.exportSymbol.flags | e.flags : e.flags; } function Pz(e) { return JA(e) === 1; } function XI(e) { return JA(e) !== 0; } function JA(e) { const { parent: t } = e; if (!t) return 0; switch (t.kind) { case 214: return JA(t); case 222: case 221: const { operator: i } = t; return i === 45 || i === 46 ? r() : 0; case 223: const { left: o, operatorToken: s } = t; return o === e && py(s.kind) ? s.kind === 63 ? 1 : r() : 0; case 208: return t.name !== e ? 0 : JA(t); case 299: { const c = JA(t.parent); return e === t.name ? x8e(c) : c; } case 300: return e === t.objectAssignmentInitializer ? 0 : JA(t.parent); case 206: return JA(t); default: return 0; } function r() { return t.parent && Cv(t.parent).kind === 241 ? 1 : 2; } } function x8e(e) { switch (e) { case 0: return 1; case 1: return 0; case 2: return 2; default: return D.assertNever(e); } } function Mz(e, t) { if (!e || !t || Object.keys(e).length !== Object.keys(t).length) return !1; for (const r in e) if (typeof e[r] == "object") { if (!Mz(e[r], t[r])) return !1; } else if (typeof e[r] != "function" && e[r] !== t[r]) return !1; return !0; } function Jf(e, t) { e.forEach(t), e.clear(); } function lg(e, t, r) { const { onDeleteValue: i, onExistingValue: o } = r; e.forEach((s, c) => { const f = t.get(c); f === void 0 ? (e.delete(c), i(s, c)) : o && o(s, f, c); }); } function KA(e, t, r) { lg(e, t, r); const { createNewValue: i } = r; t.forEach((o, s) => { e.has(s) || e.set(s, i(s, o)); }); } function $ue(e) { if (e.flags & 32) { const t = cg(e); return !!t && Jr(t, 256); } return !1; } function cg(e) { var t; return (t = e.declarations) == null ? void 0 : t.find(li); } function Qr(e) { return e.flags & 3899393 ? e.objectFlags : 0; } function A8e(e, t) { return !!$h(e, (r) => t(r) ? !0 : void 0); } function g3(e) { return !!e && !!e.declarations && !!e.declarations[0] && AO(e.declarations[0]); } function Que({ moduleSpecifier: e }) { return Go(e) ? e.text : bc(e); } function Fz(e) { let t; return Oa(e, (r) => { s_(r) && (t = r); }, (r) => { for (let i = r.length - 1; i >= 0; i--) if (s_(r[i])) { t = r[i]; break; } }), t; } function _p(e, t, r = !0) { return e.has(t) ? !1 : (e.set(t, r), !0); } function ax(e) { return li(e) || Yu(e) || rf(e); } function Bz(e) { return e >= 179 && e <= 202 || e === 131 || e === 157 || e === 148 || e === 160 || e === 149 || e === 134 || e === 152 || e === 153 || e === 114 || e === 155 || e === 144 || e === 139 || e === 230 || e === 315 || e === 316 || e === 317 || e === 318 || e === 319 || e === 320 || e === 321; } function ol(e) { return e.kind === 208 || e.kind === 209; } function Zue(e) { return e.kind === 208 ? e.name : (D.assert(e.kind === 209), e.argumentExpression); } function ede(e) { switch (e.kind) { case "text": case "internal": return !0; default: return !1; } } function Gz(e) { return e.kind === 272 || e.kind === 276; } function YI(e) { for (; ol(e); ) e = e.expression; return e; } function C8e(e, t) { if (ol(e.parent) && Uue(e)) return r(e.parent); function r(i) { if (i.kind === 208) { const o = t(i.name); if (o !== void 0) return o; } else if (i.kind === 209) if (Ve(i.argumentExpression) || Ts(i.argumentExpression)) { const o = t(i.argumentExpression); if (o !== void 0) return o; } else return; if (ol(i.expression)) return r(i.expression); if (Ve(i.expression)) return t(i.expression); } } function $I(e, t) { for (; ; ) { switch (e.kind) { case 222: e = e.operand; continue; case 223: e = e.left; continue; case 224: e = e.condition; continue; case 212: e = e.tag; continue; case 210: if (t) return e; case 231: case 209: case 208: case 232: case 356: case 235: e = e.expression; continue; } return e; } } function L8e(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.isAssigned = void 0, this.links = void 0; } function I8e(e, t) { this.flags = t, (D.isDebugging || hi) && (this.checker = e); } function k8e(e, t) { this.flags = t, D.isDebugging && (this.checker = e); } function Uz(e, t, r) { this.pos = t, this.end = r, 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 w8e(e, t, r) { this.pos = t, this.end = r, this.kind = e, this.id = 0, this.flags = 0, this.transformFlags = 0, this.parent = void 0, this.emitNode = void 0; } function D8e(e, t, r) { this.pos = t, this.end = r, 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 R8e(e, t, r) { this.fileName = e, this.text = t, this.skipTrivia = r || ((i) => i); } function tde(e) { bq.push(e), e(Fc); } function nde(e) { Object.assign(Fc, e), Ye(bq, (t) => t(Fc)); } function gh(e, t, r = 0) { return e.replace(/{(\d+)}/g, (i, o) => "" + D.checkDefined(t[+o + r])); } function rde(e) { nO = e; } function ide(e) { !nO && e && (nO = e()); } function Do(e) { return nO && nO[e.key] || e.message; } function XA(e, t, r, i) { MW(void 0, t, r); let o = Do(i); return arguments.length > 4 && (o = gh(o, arguments, 4)), { file: void 0, start: t, length: r, messageText: o, category: i.category, code: i.code, reportsUnnecessary: i.reportsUnnecessary, fileName: e }; } function N8e(e) { return e.file === void 0 && e.start !== void 0 && e.length !== void 0 && typeof e.fileName == "string"; } function ade(e, t) { const r = t.fileName || "", i = t.text.length; D.assertEqual(e.fileName, r), D.assertLessThanOrEqual(e.start, i), D.assertLessThanOrEqual(e.start + e.length, i); const o = { file: t, start: e.start, length: e.length, messageText: e.messageText, category: e.category, code: e.code, reportsUnnecessary: e.reportsUnnecessary }; if (e.relatedInformation) { o.relatedInformation = []; for (const s of e.relatedInformation) N8e(s) && s.fileName === r ? (D.assertLessThanOrEqual(s.start, i), D.assertLessThanOrEqual(s.start + s.length, i), o.relatedInformation.push(ade(s, t))) : o.relatedInformation.push(s); } return o; } function ox(e, t) { const r = []; for (const i of e) r.push(ade(i, t)); return r; } function Lc(e, t, r, i) { MW(e, t, r); let o = Do(i); return arguments.length > 4 && (o = gh(o, arguments, 4)), { file: e, start: t, length: r, messageText: o, category: i.category, code: i.code, reportsUnnecessary: i.reportsUnnecessary, reportsDeprecated: i.reportsDeprecated }; } function Vz(e, t) { let r = Do(t); return arguments.length > 2 && (r = gh(r, arguments, 2)), r; } function Ps(e) { let t = Do(e); return arguments.length > 1 && (t = gh(t, arguments, 1)), { file: void 0, start: void 0, length: void 0, messageText: t, category: e.category, code: e.code, reportsUnnecessary: e.reportsUnnecessary, reportsDeprecated: e.reportsDeprecated }; } function y3(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 Da(e, t) { let r = Do(t); return arguments.length > 2 && (r = gh(r, arguments, 2)), { messageText: r, category: t.category, code: t.code, next: e === void 0 || Array.isArray(e) ? e : [e] }; } function ode(e, t) { let r = e; for (; r.next; ) r = r.next[0]; r.next = [t]; } function sde(e) { return e.file ? e.file.path : void 0; } function QI(e, t) { return v3(e, t) || O8e(e, t) || 0; } function v3(e, t) { return Lu(sde(e), sde(t)) || js(e.start, t.start) || js(e.length, t.length) || js(e.code, t.code) || lde(e.messageText, t.messageText) || 0; } function O8e(e, t) { return !e.relatedInformation && !t.relatedInformation ? 0 : e.relatedInformation && t.relatedInformation ? js(e.relatedInformation.length, t.relatedInformation.length) || Ye(e.relatedInformation, (r, i) => { const o = t.relatedInformation[i]; return QI(r, o); }) || 0 : e.relatedInformation ? -1 : 1; } function lde(e, t) { if (typeof e == "string" && typeof t == "string") return Lu(e, t); if (typeof e == "string") return -1; if (typeof t == "string") return 1; let r = Lu(e.messageText, t.messageText); if (r) return r; if (!e.next && !t.next) return 0; if (!e.next) return -1; if (!t.next) return 1; const i = Math.min(e.next.length, t.next.length); for (let o = 0; o < i; o++) if (r = lde(e.next[o], t.next[o]), r) return r; return e.next.length < t.next.length ? -1 : e.next.length > t.next.length ? 1 : 0; } function UN(e) { return e === 4 || e === 2 || e === 1 || e === 6 ? 1 : 0; } function cde(e) { if (e.transformFlags & 2) return qu(e) || Cx(e) ? e : Oa(e, cde); } function P8e(e) { return e.isDeclarationFile ? void 0 : cde(e); } function M8e(e) { return (e.impliedNodeFormat === 99 || vc(e.fileName, [".cjs", ".cts", ".mjs", ".mts"])) && !e.isDeclarationFile ? !0 : void 0; } function VN(e) { switch (ude(e)) { case 3: return (o) => { o.externalModuleIndicator = MO(o) || !o.isDeclarationFile || void 0; }; case 1: return (o) => { o.externalModuleIndicator = MO(o); }; case 2: const t = [MO]; (e.jsx === 4 || e.jsx === 5) && t.push(P8e), t.push(M8e); const r = Sm(...t); return (o) => void (o.externalModuleIndicator = r(o)); } } function $o(e) { var t; return (t = e.target) != null ? t : e.module === 100 && 9 || e.module === 199 && 99 || 1; } function Zc(e) { return typeof e.module == "number" ? e.module : $o(e) >= 2 ? 5 : 1; } function jz(e) { return e >= 5 && e <= 99; } function gl(e) { let t = e.moduleResolution; if (t === void 0) switch (Zc(e)) { case 1: t = 2; break; case 100: t = 3; break; case 199: t = 99; break; default: t = 1; break; } return t; } function ude(e) { return e.moduleDetection || (Zc(e) === 100 || Zc(e) === 199 ? 3 : 2); } function b3(e) { switch (Zc(e)) { case 1: case 2: case 5: case 6: case 7: case 99: case 100: case 199: return !0; default: return !1; } } function F_(e) { return !!(e.isolatedModules || e.verbatimModuleSyntax); } function E3(e) { return e.verbatimModuleSyntax || e.isolatedModules && e.preserveValueImports; } function dde(e) { return e.allowUnreachableCode === !1; } function fde(e) { return e.allowUnusedLabels === !1; } function T3(e) { return !!(G_(e) && e.declarationMap); } function B_(e) { if (e.esModuleInterop !== void 0) return e.esModuleInterop; switch (Zc(e)) { case 100: case 199: return !0; } } function hT(e) { return e.allowSyntheticDefaultImports !== void 0 ? e.allowSyntheticDefaultImports : B_(e) || Zc(e) === 4 || gl(e) === 100; } function sx(e) { return e >= 3 && e <= 99 || e === 100; } function Hz(e) { const t = gl(e); if (!sx(t)) return !1; if (e.resolvePackageJsonExports !== void 0) return e.resolvePackageJsonExports; switch (t) { case 3: case 99: case 100: return !0; } return !1; } function F8e(e) { const t = gl(e); if (!sx(t)) return !1; if (e.resolvePackageJsonExports !== void 0) return e.resolvePackageJsonExports; switch (t) { case 3: case 99: case 100: return !0; } return !1; } function gT(e) { return e.resolveJsonModule !== void 0 ? e.resolveJsonModule : gl(e) === 100; } function G_(e) { return !!(e.declaration || e.composite); } function S1(e) { return !!(e.preserveConstEnums || F_(e)); } function jN(e) { return !!(e.incremental || e.composite); } function f_(e, t) { return e[t] === void 0 ? !!e.strict : !!e[t]; } function HN(e) { return e.allowJs === void 0 ? !!e.checkJs : e.allowJs; } function WN(e) { return e.useDefineForClassFields === void 0 ? $o(e) >= 9 : e.useDefineForClassFields; } function _de(e, t) { return TA(t, e, eK); } function pde(e, t) { return TA(t, e, tK); } function mde(e, t) { return TA(t, e, nK); } function S3(e, t) { return t.strictFlag ? f_(e, t.name) : e[t.name]; } function Wz(e) { const t = e.jsx; return t === 2 || t === 4 || t === 5; } function x3(e, t) { const r = t == null ? void 0 : t.pragmas.get("jsximportsource"), i = Ga(r) ? r[r.length - 1] : r; return e.jsx === 4 || e.jsx === 5 || e.jsxImportSource || i ? (i == null ? void 0 : i.arguments.factory) || e.jsxImportSource || "react" : void 0; } function A3(e, t) { return e ? `${e}/${t.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime"}` : void 0; } function zz(e) { let t = !1; for (let r = 0; r < e.length; r++) if (e.charCodeAt(r) === 42) if (!t) t = !0; else return !1; return !0; } function hde(e, t) { let r, i, o, s = !1; return { getSymlinkedFiles: () => o, getSymlinkedDirectories: () => r, getSymlinkedDirectoriesByRealpath: () => i, setSymlinkedFile: (f, d) => (o || (o = /* @__PURE__ */ new Map())).set(f, d), setSymlinkedDirectory: (f, d) => { let y = Hs(f, e, t); ok(y) || (y = Iu(y), d !== !1 && !(r != null && r.has(y)) && (i || (i = o_())).add(Iu(d.realPath), f), (r || (r = /* @__PURE__ */ new Map())).set(y, d)); }, setSymlinksFromResolutions(f, d) { var y, m; D.assert(!s), s = !0; for (const b of f) (y = b.resolvedModules) == null || y.forEach((A) => c(this, A.resolvedModule)), (m = b.resolvedTypeReferenceDirectiveNames) == null || m.forEach((A) => c(this, A.resolvedTypeReferenceDirective)); d.forEach((b) => c(this, b.resolvedTypeReferenceDirective)); }, hasProcessedResolutions: () => s }; function c(f, d) { if (!d || !d.originalPath || !d.resolvedFileName) return; const { resolvedFileName: y, originalPath: m } = d; f.setSymlinkedFile(Hs(m, e, t), y); const [b, A] = B8e(y, m, e, t) || nt; b && A && f.setSymlinkedDirectory(A, { real: b, realPath: Hs(b, e, t) }); } } function B8e(e, t, r, i) { const o = rd(Na(e, r)), s = rd(Na(t, r)); let c = !1; for (; o.length >= 2 && s.length >= 2 && !gde(o[o.length - 2], i) && !gde(s[s.length - 2], i) && i(o[o.length - 1]) === i(s[s.length - 1]); ) o.pop(), s.pop(), c = !0; return c ? [a1(o), a1(s)] : void 0; } function gde(e, t) { return e !== void 0 && (t(e) === "node_modules" || Ea(e, "@")); } function G8e(e) { return CH(e.charCodeAt(0)) ? e.slice(1) : void 0; } function qz(e, t, r) { const i = fj(e, t, r); return i === void 0 ? void 0 : G8e(i); } function U8e(e) { return e.replace(M3, V8e); } function V8e(e) { return "\\" + e; } function ZI(e, t, r) { const i = C3(e, t, r); return !i || !i.length ? void 0 : `^(${i.map((c) => `(${c})`).join("|")})${r === "exclude" ? "($|/)" : "$"}`; } function C3(e, t, r) { if (!(e === void 0 || e.length === 0)) return Mo(e, (i) => i && yde(i, t, r, Aq[r])); } function Jz(e) { return !/[.*?]/.test(e); } function Kz(e, t, r) { const i = e && yde(e, t, r, Aq[r]); return i && `^(${i})${r === "exclude" ? "($|/)" : "$"}`; } function yde(e, t, r, { singleAsteriskRegexFragment: i, doubleAsteriskRegexFragment: o, replaceWildcardCharacter: s }) { let c = "", f = !1; const d = bR(e, t), y = Ho(d); if (r !== "exclude" && y === "**") return; d[0] = qE(d[0]), Jz(y) && d.push("**", "*"); let m = 0; for (let b of d) { if (b === "**") c += o; else if (r === "directories" && (c += "(", m++), f && (c += Os), r !== "exclude") { let A = ""; b.charCodeAt(0) === 42 ? (A += "([^./]" + i + ")?", b = b.substr(1)) : b.charCodeAt(0) === 63 && (A += "[^./]", b = b.substr(1)), A += b.replace(M3, s), A !== b && (c += F3), c += A; } else c += b.replace(M3, s); f = !0; } for (; m > 0; ) c += ")?", m--; return c; } function Xz(e, t) { return e === "*" ? t : e === "?" ? "[^/]" : "\\" + e; } function ek(e, t, r, i, o) { e = Wo(e), o = Wo(o); const s = Oi(o, e); return { includeFilePatterns: rn(C3(r, s, "files"), (c) => `^${c}$`), includeFilePattern: ZI(r, s, "files"), includeDirectoryPattern: ZI(r, s, "directories"), excludePattern: ZI(t, s, "exclude"), basePaths: j8e(e, r, i) }; } function wv(e, t) { return new RegExp(e, t ? "" : "i"); } function Yz(e, t, r, i, o, s, c, f, d) { e = Wo(e), s = Wo(s); const y = ek(e, r, i, o, s), m = y.includeFilePatterns && y.includeFilePatterns.map((B) => wv(B, o)), b = y.includeDirectoryPattern && wv(y.includeDirectoryPattern, o), A = y.excludePattern && wv(y.excludePattern, o), C = m ? m.map(() => []) : [[]], I = /* @__PURE__ */ new Map(), O = $c(o); for (const B of y.basePaths) k(B, Oi(s, B), c); return nd(C); function k(B, U, j) { const te = O(d(U)); if (I.has(te)) return; I.set(te, !0); const { files: X, directories: Y } = f(B); for (const P of KL(X, Lu)) { const ue = Oi(B, P), ne = Oi(U, P); if (!(t && !vc(ue, t)) && !(A && A.test(ne))) if (!m) C[0].push(ue); else { const ge = $i(m, (ie) => ie.test(ne)); ge !== -1 && C[ge].push(ue); } } if (!(j !== void 0 && (j--, j === 0))) for (const P of KL(Y, Lu)) { const ue = Oi(B, P), ne = Oi(U, P); (!b || b.test(ne)) && (!A || !A.test(ne)) && k(ue, ne, j); } } } function j8e(e, t, r) { const i = [e]; if (t) { const o = []; for (const s of t) { const c = xm(s) ? s : Wo(Oi(e, s)); o.push(H8e(c)); } o.sort(AP(!r)); for (const s of o) Vn(i, (c) => !hv(c, s, e, !r)) && i.push(s); } return i; } function H8e(e) { const t = na(e, zde); return t < 0 ? dA(e) ? qE(fi(e)) : e : e.substring(0, e.lastIndexOf(Os, t)); } function L3(e, t) { return t || $z(e) || 3; } function $z(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; } } function tk(e, t) { const r = e && HN(e); if (!t || t.length === 0) return r ? rO : nC; const i = r ? rO : nC, o = nd(i); return [ ...i, ..._a(t, (c) => c.scriptKind === 7 || r && W8e(c.scriptKind) && o.indexOf(c.extension) === -1 ? [c.extension] : void 0) ]; } function zN(e, t) { return !e || !gT(e) ? t : t === rO ? Kde : t === nC ? qde : [...t, [".json"]]; } function W8e(e) { return e === 1 || e === 2; } function lx(e) { return kt(uk, (t) => oc(e, t)); } function qN(e) { return kt(Cq, (t) => oc(e, t)); } function vde({ imports: e }, t = Sm(lx, qN)) { return En(e, ({ text: r }) => gf(r) ? t(r) : void 0) || !1; } function Qz(e, t, r, i) { if (e === "js" || t === 99) return Uk(r) && o() !== 2 ? 3 : 2; if (e === "minimal") return 0; if (e === "index") return 1; if (!Uk(r)) return vde(i) ? 2 : 0; return o(); function o() { let s = !1; const c = i.imports.length ? i.imports.map((f) => f.text) : Ju(i) ? z8e(i).map((f) => f.arguments[0].text) : nt; for (const f of c) if (gf(f)) { if (qN(f)) return 3; lx(f) && (s = !0); } return s ? 2 : 0; } } function z8e(e) { let t = 0, r; for (const i of e.statements) { if (t > 3) break; XW(i) ? r = ha(r, i.declarationList.declarations.map((o) => o.initializer)) : eu(i) && vd(i.expression, !0) ? r = Fn(r, i.expression) : t++; } return r || nt; } function bde(e, t, r) { if (!e) return !1; const i = tk(t, r); for (const o of nd(zN(t, i))) if (oc(e, o)) return !0; return !1; } function Ede(e) { const t = e.match(/\//g); return t ? t.length : 0; } function JN(e, t) { return js(Ede(e), Ede(t)); } function Od(e) { for (const t of U3) { const r = Tde(e, t); if (r !== void 0) return r; } return e; } function Tde(e, t) { return oc(e, t) ? KN(e, t) : void 0; } function KN(e, t) { return e.substring(0, e.length - t.length); } function x1(e, t) { return kH(e, t, U3, !1); } function YA(e) { const 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 I3(e) { return _a(Xh(e), (t) => YA(t)); } function Jp(e) { return !(e >= 0); } function k3(e) { return e === ".ts" || e === ".tsx" || e === ".d.ts" || e === ".cts" || e === ".mts" || e === ".d.mts" || e === ".d.cts" || Ea(e, ".d.") && tc(e, ".ts"); } function XN(e) { return k3(e) || e === ".json"; } function YN(e) { const t = yh(e); return t !== void 0 ? t : D.fail(`File ${e} has unknown extension.`); } function q8e(e) { return yh(e) !== void 0; } function yh(e) { return un(U3, (t) => oc(e, t)); } function $N(e, t) { return e.checkJsDirective ? e.checkJsDirective.enabled : t.checkJs; } function Zz(e, t) { const r = []; for (const i of e) { if (i === t) return t; Va(i) || r.push(i); } return dj(r, (i) => i, t); } function eq(e, t) { const r = e.indexOf(t); return D.assert(r !== -1), e.slice(r); } function qo(e, ...t) { return t.length && (e.relatedInformation || (e.relatedInformation = []), D.assert(e.relatedInformation !== nt, "Diagnostic had empty array singleton for related info, but is still being constructed!"), e.relatedInformation.push(...t)), e; } function Sde(e, t) { D.assert(e.length !== 0); let r = t(e[0]), i = r; for (let o = 1; o < e.length; o++) { const s = t(e[o]); s < r ? r = s : s > i && (i = s); } return { min: r, max: i }; } function tq(e) { return { pos: nT(e), end: e.end }; } function nq(e, t) { const r = t.pos - 1, i = Math.min(e.text.length, zo(e.text, t.end) + 1); return { pos: r, end: i }; } function nk(e, t, r) { return t.skipLibCheck && e.isDeclarationFile || t.skipDefaultLibCheck && e.hasNoDefaultLib || r.isSourceOfProjectReferenceRedirect(e.fileName); } function rq(e, t) { return e === t || typeof e == "object" && e !== null && typeof t == "object" && t !== null && ase(e, t, rq); } function rk(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: const y = e.length - 1; let m = 0; for (; e.charCodeAt(m) === 48; ) m++; return e.slice(m, y) || "0"; } const r = 2, i = e.length - 1, o = (i - r) * t, s = new Uint16Array((o >>> 4) + (o & 15 ? 1 : 0)); for (let y = i - 1, m = 0; y >= r; y--, m += t) { const b = m >>> 4, A = e.charCodeAt(y), I = (A <= 57 ? A - 48 : 10 + A - (A <= 70 ? 65 : 97)) << (m & 15); s[b] |= I; const O = I >>> 16; O && (s[b + 1] |= O); } let c = "", f = s.length - 1, d = !0; for (; d; ) { let y = 0; d = !1; for (let m = f; m >= 0; m--) { const b = y << 16 | s[m], A = b / 10 | 0; s[m] = A, y = b - A * 10, A && !d && (f = m, d = !0); } c = y + c; } return c; } function A1({ negative: e, base10Value: t }) { return (e && t !== "0" ? "-" : "") + t; } function xde(e) { if (w3(e, !1)) return iq(e); } function iq(e) { const t = e.startsWith("-"), r = rk(`${t ? e.slice(1) : e}n`); return { negative: t, base10Value: r }; } function w3(e, t) { if (e === "") return !1; const r = sy(99, !1); let i = !0; r.setOnError(() => i = !1), r.setText(e + "n"); let o = r.scan(); const s = o === 40; s && (o = r.scan()); const c = r.getTokenFlags(); return i && o === 9 && r.getTextPos() === e.length + 1 && !(c & 512) && (!t || e === A1({ negative: s, base10Value: rk(r.getTokenValue()) })); } function cx(e) { return !!(e.flags & 16777216) || XM(e) || X8e(e) || K8e(e) || !(ag(e) || J8e(e)); } function J8e(e) { return Ve(e) && Xf(e.parent) && e.parent.name === e; } function K8e(e) { for (; e.kind === 79 || e.kind === 208; ) e = e.parent; if (e.kind !== 164) return !1; if (Jr(e.parent, 256)) return !0; const t = e.parent.parent.kind; return t === 261 || t === 184; } function X8e(e) { if (e.kind !== 79) return !1; const t = nr(e.parent, (r) => { switch (r.kind) { case 294: return !0; case 208: case 230: return !1; default: return "quit"; } }); return (t == null ? void 0 : t.token) === 117 || (t == null ? void 0 : t.parent.kind) === 261; } function Ade(e) { return V_(e) && Ve(e.typeName); } function Cde(e, t = N0) { if (e.length < 2) return !0; const r = e[0]; for (let i = 1, o = e.length; i < o; i++) { const s = e[i]; if (!t(r, s)) return !1; } return !0; } function ik(e, t) { return e.pos = t, e; } function $A(e, t) { return e.end = t, e; } function Mm(e, t, r) { return $A(ik(e, t), r); } function ak(e, t, r) { return Mm(e, t, t + r); } function Lde(e, t) { return e && (e.flags = t), e; } function Bo(e, t) { return e && t && (e.parent = t), e; } function QA(e, t) { if (e) for (const r of e) Bo(r, t); return e; } function Dv(e, t) { if (!e) return e; return FO(e, EA(e) ? r : o), e; function r(s, c) { if (t && s.parent === c) return "skip"; Bo(s, c); } function i(s) { if (yf(s)) for (const c of s.jsDoc) r(c, s), FO(c, r); } function o(s, c) { return r(s, c) || i(s); } } function Y8e(e) { return !Ic(e); } function aq(e) { return Ru(e) && Vn(e.elements, Y8e); } function Ide(e) { for (D.assertIsDefined(e.parent); ; ) { const t = e.parent; if (Pd(t)) { e = t; continue; } if (eu(t) || Ex(t) || TT(t) && (t.initializer === e || t.incrementor === e)) return !0; if (Tk(t)) { if (e !== Ho(t.elements)) return !0; e = t; continue; } if (vr(t) && t.operatorToken.kind === 27) { if (e === t.left) return !0; e = t; continue; } return !1; } } function ok(e) { return kt(yR, (t) => lu(e, t)); } function kde(e) { if (!e.parent) return; switch (e.kind) { case 165: const { parent: r } = e; return r.kind === 192 ? void 0 : r.typeParameters; case 166: return e.parent.parameters; case 201: return e.parent.templateSpans; case 236: return e.parent.templateSpans; case 167: { const { parent: i } = e; return wx(i) ? i.modifiers : void 0; } case 294: return e.parent.heritageClauses; } const { parent: t } = e; if (bI(e)) return Lk(e.parent) ? void 0 : e.parent.tags; switch (t.kind) { case 184: case 261: return QE(e) ? t.members : void 0; case 189: case 190: return t.types; case 186: case 206: case 357: case 272: case 276: return t.elements; case 207: case 289: return t.properties; case 210: case 211: return Pi(e) ? t.typeArguments : t.expression === e ? void 0 : t.arguments; case 281: case 285: return HR(e) ? t.children : void 0; case 283: case 282: return Pi(e) ? t.typeArguments : void 0; case 238: case 292: case 293: case 265: return t.statements; case 266: return t.clauses; case 260: case 228: return Pc(e) ? t.members : void 0; case 263: return D1(e) ? t.members : void 0; case 308: return t.statements; } } function D3(e) { if (!e.typeParameters) { if (kt(e.parameters, (t) => !Jc(t))) return !0; if (e.kind !== 216) { const t = Wc(e.parameters); if (!(t && E1(t))) return !0; } } return !1; } function sk(e) { return e === "Infinity" || e === "-Infinity" || e === "NaN"; } function wde(e) { return e.kind === 257 && e.parent.kind === 295; } function oq(e) { const t = e.valueDeclaration && Rm(e.valueDeclaration); return !!t && (Ma(t) || wde(t)); } function ZA(e) { return e.kind === 215 || e.kind === 216; } function yT(e) { return e.replace(/\$/gm, () => "\\$"); } function vh(e) { return (+e).toString() === e; } function R3(e, t, r, i) { return w_(e, t) ? N.createIdentifier(e) : !i && vh(e) && +e >= 0 ? N.createNumericLiteral(+e) : N.createStringLiteral(e, !!r); } function lk(e) { return !!(e.flags & 262144 && e.isThisType); } function sq(e) { let t = 0, r = 0, i = 0, o = 0, s; ((y) => { y[y.BeforeNodeModules = 0] = "BeforeNodeModules", y[y.NodeModules = 1] = "NodeModules", y[y.Scope = 2] = "Scope", y[y.PackageContent = 3] = "PackageContent"; })(s || (s = {})); let c = 0, f = 0, d = 0; for (; f >= 0; ) switch (c = f, f = e.indexOf("/", c + 1), d) { case 0: e.indexOf(Ty, c) === c && (t = c, r = f, d = 1); break; case 1: case 2: d === 1 && e.charAt(c + 1) === "@" ? d = 2 : (i = f, d = 3); break; case 3: e.indexOf(Ty, c) === c ? d = 1 : d = 3; break; } return o = c, d > 1 ? { topLevelNodeModulesIndex: t, topLevelPackageNameIndex: r, packageRootIndex: i, fileNameIndex: o } : void 0; } function $8e(e) { var t; return e.kind === 344 ? (t = e.typeExpression) == null ? void 0 : t.type : e.type; } function eC(e) { switch (e.kind) { case 165: case 260: case 261: case 262: case 263: case 349: case 341: case 343: return !0; case 270: return e.isTypeOnly; case 273: case 278: return e.parent.parent.isTypeOnly; default: return !1; } } function QN(e) { return Y0(e) || sc(e) || pc(e) || kc(e) || Yu(e) || eC(e) || Hl(e) && !_1(e) && !Hp(e); } function ZN(e) { if (!hM(e)) return !1; const { isBracketed: t, typeExpression: r } = e; return t || !!r && r.type.kind === 319; } function lq(e, t) { if (e.length === 0) return !1; const r = e.charCodeAt(0); return r === 35 ? e.length > 1 && uh(e.charCodeAt(1), t) : uh(r, t); } function Dde(e) { var t; return ((t = Gq(e)) == null ? void 0 : t.kind) === 0; } function eO(e) { return dr(e) && (e.type && e.type.kind === 319 || dI(e).some(({ isBracketed: t, typeExpression: r }) => t || !!r && r.type.kind === 319)); } function cq(e) { switch (e.kind) { case 169: case 168: return !!e.questionToken; case 166: return !!e.questionToken || eO(e); case 351: case 344: return ZN(e); default: return !1; } } function Rde(e) { const t = e.kind; return (t === 208 || t === 209) && Tx(e.expression); } function uq(e) { return dr(e) && Pd(e) && yf(e) && !!JH(e); } function dq(e) { return D.checkDefined(N3(e)); } function N3(e) { const t = JH(e); return t && t.typeExpression && t.typeExpression.type; } var O3, J0, tO, P3, ck, fq, _q, Nde, pq, Ode, mq, hq, gq, yq, Pde, Mde, Fde, Bde, Gde, vq, Ude, Vde, jde, tC, C1, Hde, Wde, Fc, bq, nO, M3, zde, Eq, F3, Tq, Sq, xq, Aq, nC, Cq, qde, Jde, Lq, uk, rO, Kde, B3, G3, Iq, U3, V3, Q8e = L({ "src/compiler/utilities.ts"() { Ra(), O3 = [], J0 = "tslib", tO = 160, P3 = 1e6, ck = OOe(), fq = /* @__PURE__ */ ((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))(fq || {}), _q = /^(\/\/\/\s*/, Nde = /^(\/\/\/\s*/, pq = /^(\/\/\/\s*/, Ode = /^(\/\/\/\s*/, mq = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Definite = 1] = "Definite", e[e.Compound = 2] = "Compound", e))(mq || {}), hq = /* @__PURE__ */ ((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))(hq || {}), gq = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(gq || {}), yq = /* @__PURE__ */ ((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))(yq || {}), Pde = /\$\{/g, Mde = /[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g, Fde = /[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g, Bde = /\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g, Gde = new Map(Object.entries({ " ": "\\t", "\v": "\\v", "\f": "\\f", "\b": "\\b", "\r": "\\r", "\n": "\\n", "\\": "\\\\", '"': '\\"', "'": "\\'", "`": "\\`", "\u2028": "\\u2028", "\u2029": "\\u2029", "…": "\\u0085", "\r\n": "\\r\\n" })), vq = /[^\u0000-\u007F]/g, Ude = /[\"\u0000-\u001f\u2028\u2029\u0085]/g, Vde = /[\'\u0000-\u001f\u2028\u2029\u0085]/g, jde = new Map(Object.entries({ '"': """, "'": "'" })), tC = ["", " "], C1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Hde = `\r `, Wde = ` `, Fc = { getNodeConstructor: () => Uz, getTokenConstructor: () => w8e, getIdentifierConstructor: () => D8e, getPrivateIdentifierConstructor: () => Uz, getSourceFileConstructor: () => Uz, getSymbolConstructor: () => L8e, getTypeConstructor: () => I8e, getSignatureConstructor: () => k8e, getSourceMapSourceConstructor: () => R8e }, bq = [], M3 = /[^\w\s\/]/g, zde = [42, 63], Eq = ["node_modules", "bower_components", "jspm_packages"], F3 = `(?!(${Eq.join("|")})(/|$))`, Tq = { singleAsteriskRegexFragment: "([^./]|(\\.(?!min\\.js$))?)*", doubleAsteriskRegexFragment: `(/${F3}[^/.][^/]*)*?`, replaceWildcardCharacter: (e) => Xz(e, Tq.singleAsteriskRegexFragment) }, Sq = { singleAsteriskRegexFragment: "[^/]*", doubleAsteriskRegexFragment: `(/${F3}[^/.][^/]*)*?`, replaceWildcardCharacter: (e) => Xz(e, Sq.singleAsteriskRegexFragment) }, xq = { singleAsteriskRegexFragment: "[^/]*", doubleAsteriskRegexFragment: "(/.+?)?", replaceWildcardCharacter: (e) => Xz(e, xq.singleAsteriskRegexFragment) }, Aq = { files: Tq, directories: Sq, exclude: xq }, nC = [[".ts", ".tsx", ".d.ts"], [".cts", ".d.cts"], [".mts", ".d.mts"]], Cq = nd(nC), qde = [...nC, [".json"]], Jde = [".d.ts", ".d.cts", ".d.mts", ".cts", ".mts", ".ts", ".tsx", ".cts", ".mts"], Lq = [[".js", ".jsx"], [".mjs"], [".cjs"]], uk = nd(Lq), rO = [[".ts", ".tsx", ".d.ts", ".js", ".jsx"], [".cts", ".d.cts", ".cjs"], [".mts", ".d.mts", ".mjs"]], Kde = [...rO, [".json"]], B3 = [".d.ts", ".d.cts", ".d.mts"], G3 = [".ts", ".cts", ".mts", ".tsx"], Iq = /* @__PURE__ */ ((e) => (e[e.Minimal = 0] = "Minimal", e[e.Index = 1] = "Index", e[e.JsExtension = 2] = "JsExtension", e[e.TsExtension = 3] = "TsExtension", e))(Iq || {}), U3 = [".d.ts", ".d.mts", ".d.cts", ".mjs", ".mts", ".cjs", ".cts", ".ts", ".js", ".tsx", ".jsx", ".json"], V3 = { files: nt, directories: nt }; } }); function Xde() { let e, t, r, i, o; return { createBaseSourceFileNode: s, createBaseIdentifierNode: c, createBasePrivateIdentifierNode: f, createBaseTokenNode: d, createBaseNode: y }; function s(m) { return new (o || (o = Fc.getSourceFileConstructor()))(m, -1, -1); } function c(m) { return new (r || (r = Fc.getIdentifierConstructor()))(m, -1, -1); } function f(m) { return new (i || (i = Fc.getPrivateIdentifierConstructor()))(m, -1, -1); } function d(m) { return new (t || (t = Fc.getTokenConstructor()))(m, -1, -1); } function y(m) { return new (e || (e = Fc.getNodeConstructor()))(m, -1, -1); } } var Z8e = L({ "src/compiler/factory/baseNodeFactory.ts"() { Ra(); } }); function Yde(e) { let t, r; return { getParenthesizeLeftSideOfBinaryForOperator: i, getParenthesizeRightSideOfBinaryForOperator: o, parenthesizeLeftSideOfBinary: y, parenthesizeRightSideOfBinary: m, parenthesizeExpressionOfComputedPropertyName: b, parenthesizeConditionOfConditionalExpression: A, parenthesizeBranchOfConditionalExpression: C, parenthesizeExpressionOfExportDefault: I, parenthesizeExpressionOfNew: O, parenthesizeLeftSideOfAccess: k, parenthesizeOperandOfPostfixUnary: B, parenthesizeOperandOfPrefixUnary: U, parenthesizeExpressionsOfCommaDelimitedList: j, parenthesizeExpressionForDisallowedComma: te, parenthesizeExpressionOfExpressionStatement: X, parenthesizeConciseBodyOfArrowFunction: Y, parenthesizeCheckTypeOfConditionalType: P, parenthesizeExtendsTypeOfConditionalType: ue, parenthesizeConstituentTypesOfUnionType: ge, parenthesizeConstituentTypeOfUnionType: ne, parenthesizeConstituentTypesOfIntersectionType: H, parenthesizeConstituentTypeOfIntersectionType: ie, parenthesizeOperandOfTypeOperator: le, parenthesizeOperandOfReadonlyTypeOperator: pe, parenthesizeNonArrayTypeOfPostfixType: ye, parenthesizeElementTypesOfTupleType: Te, parenthesizeElementTypeOfTupleType: ee, parenthesizeTypeOfOptionalType: Ge, parenthesizeTypeArguments: Re, parenthesizeLeadingTypeArgument: Fe }; function i(Pe) { t || (t = /* @__PURE__ */ new Map()); let Ke = t.get(Pe); return Ke || (Ke = (He) => y(Pe, He), t.set(Pe, Ke)), Ke; } function o(Pe) { r || (r = /* @__PURE__ */ new Map()); let Ke = r.get(Pe); return Ke || (Ke = (He) => m(Pe, void 0, He), r.set(Pe, Ke)), Ke; } function s(Pe, Ke, He, Me) { const ot = CN(223, Pe), At = uz(223, Pe), bt = D_(Ke); if (!He && Ke.kind === 216 && ot > 3) return !0; const Vt = l3(bt); switch (js(Vt, ot)) { case -1: return !(!He && At === 1 && Ke.kind === 226); case 1: return !1; case 0: if (He) return At === 1; if (vr(bt) && bt.operatorToken.kind === Pe) { if (c(Pe)) return !1; if (Pe === 39) { const it = Me ? f(Me) : 0; if (hI(it) && it === f(bt)) return !1; } } return cz(bt) === 0; } } function c(Pe) { return Pe === 41 || Pe === 51 || Pe === 50 || Pe === 52 || Pe === 27; } function f(Pe) { if (Pe = D_(Pe), hI(Pe.kind)) return Pe.kind; if (Pe.kind === 223 && Pe.operatorToken.kind === 39) { if (Pe.cachedLiteralKind !== void 0) return Pe.cachedLiteralKind; const Ke = f(Pe.left), He = hI(Ke) && Ke === f(Pe.right) ? Ke : 0; return Pe.cachedLiteralKind = He, He; } return 0; } function d(Pe, Ke, He, Me) { return D_(Ke).kind === 214 ? Ke : s(Pe, Ke, He, Me) ? e.createParenthesizedExpression(Ke) : Ke; } function y(Pe, Ke) { return d(Pe, Ke, !0); } function m(Pe, Ke, He) { return d(Pe, He, !1, Ke); } function b(Pe) { return wk(Pe) ? e.createParenthesizedExpression(Pe) : Pe; } function A(Pe) { const Ke = CN(224, 57), He = D_(Pe), Me = l3(He); return js(Me, Ke) !== 1 ? e.createParenthesizedExpression(Pe) : Pe; } function C(Pe) { const Ke = D_(Pe); return wk(Ke) ? e.createParenthesizedExpression(Pe) : Pe; } function I(Pe) { const Ke = D_(Pe); let He = wk(Ke); if (!He) switch ($I(Ke, !1).kind) { case 228: case 215: He = !0; } return He ? e.createParenthesizedExpression(Pe) : Pe; } function O(Pe) { const Ke = $I(Pe, !0); switch (Ke.kind) { case 210: return e.createParenthesizedExpression(Pe); case 211: return Ke.arguments ? Pe : e.createParenthesizedExpression(Pe); } return k(Pe); } function k(Pe, Ke) { const He = D_(Pe); return gd(He) && (He.kind !== 211 || He.arguments) && (Ke || !fu(He)) ? Pe : mt(e.createParenthesizedExpression(Pe), Pe); } function B(Pe) { return gd(Pe) ? Pe : mt(e.createParenthesizedExpression(Pe), Pe); } function U(Pe) { return sW(Pe) ? Pe : mt(e.createParenthesizedExpression(Pe), Pe); } function j(Pe) { const Ke = Xl(Pe, te); return mt(e.createNodeArray(Ke, Pe.hasTrailingComma), Pe); } function te(Pe) { const Ke = D_(Pe), He = l3(Ke), Me = CN(223, 27); return He > Me ? Pe : mt(e.createParenthesizedExpression(Pe), Pe); } function X(Pe) { const Ke = D_(Pe); if (eo(Ke)) { const Me = Ke.expression, ot = D_(Me).kind; if (ot === 215 || ot === 216) { const At = e.updateCallExpression(Ke, mt(e.createParenthesizedExpression(Me), Me), Ke.typeArguments, Ke.arguments); return e.restoreOuterExpressions(Pe, At, 8); } } const He = $I(Ke, !1).kind; return He === 207 || He === 215 ? mt(e.createParenthesizedExpression(Pe), Pe) : Pe; } function Y(Pe) { return !oo(Pe) && (wk(Pe) || $I(Pe, !1).kind === 207) ? mt(e.createParenthesizedExpression(Pe), Pe) : Pe; } function P(Pe) { switch (Pe.kind) { case 181: case 182: case 191: return e.createParenthesizedType(Pe); } return Pe; } function ue(Pe) { switch (Pe.kind) { case 191: return e.createParenthesizedType(Pe); } return Pe; } function ne(Pe) { switch (Pe.kind) { case 189: case 190: return e.createParenthesizedType(Pe); } return P(Pe); } function ge(Pe) { return e.createNodeArray(Xl(Pe, ne)); } function ie(Pe) { switch (Pe.kind) { case 189: case 190: return e.createParenthesizedType(Pe); } return ne(Pe); } function H(Pe) { return e.createNodeArray(Xl(Pe, ie)); } function le(Pe) { switch (Pe.kind) { case 190: return e.createParenthesizedType(Pe); } return ie(Pe); } function pe(Pe) { switch (Pe.kind) { case 195: return e.createParenthesizedType(Pe); } return le(Pe); } function ye(Pe) { switch (Pe.kind) { case 192: case 195: case 183: return e.createParenthesizedType(Pe); } return le(Pe); } function Te(Pe) { return e.createNodeArray(Xl(Pe, ee)); } function ee(Pe) { return $e(Pe) ? e.createParenthesizedType(Pe) : Pe; } function $e(Pe) { return hC(Pe) ? Pe.postfix : vk(Pe) || Eh(Pe) || gk(Pe) || vx(Pe) ? $e(Pe.type) : cC(Pe) ? $e(Pe.falseType) : gx(Pe) || vO(Pe) ? $e(Ho(Pe.types)) : uC(Pe) ? !!Pe.typeParameter.constraint && $e(Pe.typeParameter.constraint) : !1; } function Ge(Pe) { return $e(Pe) ? e.createParenthesizedType(Pe) : ye(Pe); } function Fe(Pe) { return Qle(Pe) && Pe.typeParameters ? e.createParenthesizedType(Pe) : Pe; } function We(Pe, Ke) { return Ke === 0 ? Fe(Pe) : Pe; } function Re(Pe) { if (kt(Pe)) return e.createNodeArray(Xl(Pe, We)); } } var kq, e6e = L({ "src/compiler/factory/parenthesizerRules.ts"() { Ra(), kq = { getParenthesizeLeftSideOfBinaryForOperator: (e) => _l, getParenthesizeRightSideOfBinaryForOperator: (e) => _l, parenthesizeLeftSideOfBinary: (e, t) => t, parenthesizeRightSideOfBinary: (e, t, r) => r, parenthesizeExpressionOfComputedPropertyName: _l, parenthesizeConditionOfConditionalExpression: _l, parenthesizeBranchOfConditionalExpression: _l, parenthesizeExpressionOfExportDefault: _l, parenthesizeExpressionOfNew: (e) => ro(e, gd), parenthesizeLeftSideOfAccess: (e) => ro(e, gd), parenthesizeOperandOfPostfixUnary: (e) => ro(e, gd), parenthesizeOperandOfPrefixUnary: (e) => ro(e, sW), parenthesizeExpressionsOfCommaDelimitedList: (e) => ro(e, c1), parenthesizeExpressionForDisallowedComma: _l, parenthesizeExpressionOfExpressionStatement: _l, parenthesizeConciseBodyOfArrowFunction: _l, parenthesizeCheckTypeOfConditionalType: _l, parenthesizeExtendsTypeOfConditionalType: _l, parenthesizeConstituentTypesOfUnionType: (e) => ro(e, c1), parenthesizeConstituentTypeOfUnionType: _l, parenthesizeConstituentTypesOfIntersectionType: (e) => ro(e, c1), parenthesizeConstituentTypeOfIntersectionType: _l, parenthesizeOperandOfTypeOperator: _l, parenthesizeOperandOfReadonlyTypeOperator: _l, parenthesizeNonArrayTypeOfPostfixType: _l, parenthesizeElementTypesOfTupleType: (e) => ro(e, c1), parenthesizeElementTypeOfTupleType: _l, parenthesizeTypeOfOptionalType: _l, parenthesizeTypeArguments: (e) => e && ro(e, c1), parenthesizeLeadingTypeArgument: _l }; } }); function $de(e) { return { convertToFunctionBlock: t, convertToFunctionExpression: r, convertToArrayAssignmentElement: i, convertToObjectAssignmentElement: o, convertToAssignmentPattern: s, convertToObjectAssignmentPattern: c, convertToArrayAssignmentPattern: f, convertToAssignmentElementTarget: d }; function t(y, m) { if (oo(y)) return y; const b = e.createReturnStatement(y); mt(b, y); const A = e.createBlock([b], m); return mt(A, y), A; } function r(y) { if (!y.body) return D.fail("Cannot convert a FunctionDeclaration without a body"); const m = e.createFunctionExpression(XE(y), y.asteriskToken, y.name, y.typeParameters, y.parameters, y.type, y.body); return Vr(m, y), mt(m, y), cO(y) && Bq(m, !0), m; } function i(y) { if (us(y)) { if (y.dotDotDotToken) return D.assertNode(y.name, Ve), Vr(mt(e.createSpreadElement(y.name), y), y); const m = d(y.name); return y.initializer ? Vr(mt(e.createAssignment(m, y.initializer), y), y) : m; } return ro(y, yt); } function o(y) { if (us(y)) { if (y.dotDotDotToken) return D.assertNode(y.name, Ve), Vr(mt(e.createSpreadAssignment(y.name), y), y); if (y.propertyName) { const m = d(y.name); return Vr(mt(e.createPropertyAssignment(y.propertyName, y.initializer ? e.createAssignment(m, y.initializer) : m), y), y); } return D.assertNode(y.name, Ve), Vr(mt(e.createShorthandPropertyAssignment(y.name, y.initializer), y), y); } return ro(y, dy); } function s(y) { switch (y.kind) { case 204: case 206: return f(y); case 203: case 207: return c(y); } } function c(y) { return Bm(y) ? Vr(mt(e.createObjectLiteralExpression(rn(y.elements, o)), y), y) : ro(y, As); } function f(y) { return dC(y) ? Vr(mt(e.createArrayLiteralExpression(rn(y.elements, i)), y), y) : ro(y, Ru); } function d(y) { return Ja(y) ? s(y) : ro(y, yt); } } var wq, t6e = L({ "src/compiler/factory/nodeConverters.ts"() { Ra(), wq = { convertToFunctionBlock: ja, convertToFunctionExpression: ja, convertToArrayAssignmentElement: ja, convertToObjectAssignmentElement: ja, convertToAssignmentPattern: ja, convertToObjectAssignmentPattern: ja, convertToArrayAssignmentPattern: ja, convertToAssignmentElementTarget: ja }; } }); function n6e(e) { Pq.push(e); } function iO(e, t) { const r = e & 8 ? r6e : i6e, i = hd(() => e & 1 ? kq : Yde(B)), o = hd(() => e & 2 ? wq : $de(B)), s = Tm((v) => (w, F) => G(w, v, F)), c = Tm((v) => (w) => y_(v, w)), f = Tm((v) => (w) => J_(w, v)), d = Tm((v) => () => nE(v)), y = Tm((v) => (w) => Ny(v, w)), m = Tm((v) => (w, F) => ws(v, w, F)), b = Tm((v) => (w, F) => uS(v, w, F)), A = Tm((v) => (w, F) => rE(v, w, F)), C = Tm((v) => (w, F) => Nh(v, w, F)), I = Tm((v) => (w, F, oe) => i0(v, w, F, oe)), O = Tm((v) => (w, F, oe) => a0(v, w, F, oe)), k = Tm((v) => (w, F, oe, ze) => au(v, w, F, oe, ze)), B = { get parenthesizer() { return i(); }, get converters() { return o(); }, baseFactory: t, flags: e, createNodeArray: U, createNumericLiteral: Y, createBigIntLiteral: P, createStringLiteral: ne, createStringLiteralFromNode: ge, createRegularExpressionLiteral: ie, createLiteralLikeNode: H, createIdentifier: ye, createTempVariable: Te, createLoopVariable: ee, createUniqueName: $e, getGeneratedNameForNode: Ge, createPrivateIdentifier: We, createUniquePrivateName: Pe, getGeneratedPrivateNameForNode: Ke, createToken: Me, createSuper: ot, createThis: At, createNull: bt, createTrue: Vt, createFalse: et, createModifier: it, createModifiersFromModifierFlags: nn, createQualifiedName: Xt, updateQualifiedName: On, createComputedPropertyName: Hn, updateComputedPropertyName: In, createTypeParameterDeclaration: Yt, updateTypeParameterDeclaration: fr, createParameterDeclaration: xi, updateParameterDeclaration: Ji, createDecorator: Ki, updateDecorator: Rr, createPropertySignature: xt, updatePropertySignature: gn, createPropertyDeclaration: ln, updatePropertyDeclaration: rr, createMethodSignature: lr, updateMethodSignature: Di, createMethodDeclaration: _i, updateMethodDeclaration: Rn, createConstructorDeclaration: Ie, updateConstructorDeclaration: gt, createGetAccessorDeclaration: xe, updateGetAccessorDeclaration: _t, createSetAccessorDeclaration: re, updateSetAccessorDeclaration: me, createCallSignature: je, updateCallSignature: Qe, createConstructSignature: Je, updateConstructSignature: Ut, createIndexSignature: on, updateIndexSignature: Sn, createClassStaticBlockDeclaration: Pn, updateClassStaticBlockDeclaration: xr, createTemplateLiteralTypeSpan: br, updateTemplateLiteralTypeSpan: ce, createKeywordTypeNode: pt, createTypePredicateNode: Wt, updateTypePredicateNode: rt, createTypeReferenceNode: K, updateTypeReferenceNode: Oe, createFunctionTypeNode: Z, updateFunctionTypeNode: we, createConstructorTypeNode: Rt, updateConstructorTypeNode: dn, createTypeQueryNode: Ti, updateTypeQueryNode: Si, createTypeLiteralNode: Bi, updateTypeLiteralNode: fo, createArrayTypeNode: vo, updateArrayTypeNode: no, createTupleTypeNode: sa, updateTupleTypeNode: Gi, createNamedTupleMember: qr, updateNamedTupleMember: is, createOptionalTypeNode: ui, updateOptionalTypeNode: la, createRestTypeNode: wn, updateRestTypeNode: da, createUnionTypeNode: Ml, updateUnionTypeNode: zl, createIntersectionTypeNode: Fl, updateIntersectionTypeNode: So, createConditionalTypeNode: Aa, updateConditionalTypeNode: Jo, createInferTypeNode: Bl, updateInferTypeNode: Xc, createImportTypeNode: jc, updateImportTypeNode: ks, createParenthesizedType: pl, updateParenthesizedType: Qs, createThisTypeNode: qs, createTypeOperatorNode: Zt, updateTypeOperatorNode: Gl, createIndexedAccessTypeNode: yu, updateIndexedAccessTypeNode: Bu, createMappedTypeNode: de, updateMappedTypeNode: It, createLiteralTypeNode: jt, updateLiteralTypeNode: Q, createTemplateLiteralType: Ud, updateTemplateLiteralType: rc, createObjectBindingPattern: at, updateObjectBindingPattern: St, createArrayBindingPattern: _n, updateArrayBindingPattern: kr, createBindingElement: Nr, updateBindingElement: va, createArrayLiteralExpression: as, updateArrayLiteralExpression: _o, createObjectLiteralExpression: Uo, updateObjectLiteralExpression: Ka, createPropertyAccessExpression: e & 4 ? (v, w) => or(lc(v, w), 262144) : lc, updatePropertyAccessExpression: ld, createPropertyAccessChain: e & 4 ? (v, w, F) => or(vs(v, w, F), 262144) : vs, updatePropertyAccessChain: ls, createElementAccessExpression: Vd, updateElementAccessExpression: Ul, createElementAccessChain: Lf, updateElementAccessChain: Se, createCallExpression: Nn, updateCallExpression: zi, createCallChain: xo, updateCallChain: ae, createNewExpression: lt, updateNewExpression: Mt, createTaggedTemplateExpression: Pt, updateTaggedTemplateExpression: sn, createTypeAssertion: jn, updateTypeAssertion: wr, createParenthesizedExpression: Zr, updateParenthesizedExpression: Ri, createFunctionExpression: Ua, updateFunctionExpression: Vo, createArrowFunction: bs, updateArrowFunction: Js, createDeleteExpression: cd, updateDeleteExpression: sf, createTypeOfExpression: Ql, updateTypeOfExpression: jd, createVoidExpression: vu, updateVoidExpression: lf, createAwaitExpression: g_, updateAwaitExpression: Ko, createPrefixUnaryExpression: y_, updatePrefixUnaryExpression: cf, createPostfixUnaryExpression: J_, updatePostfixUnaryExpression: Tp, createBinaryExpression: G, updateBinaryExpression: zt, createConditionalExpression: Yn, updateConditionalExpression: ka, createTemplateExpression: Ca, updateTemplateExpression: Ce, createTemplateHead: Tn, createTemplateMiddle: Wn, createTemplateTail: Hr, createNoSubstitutionTemplateLiteral: Hi, createTemplateLiteralLikeNode: vn, createYieldExpression: tr, updateYieldExpression: fn, createSpreadElement: ur, updateSpreadElement: Ta, createClassExpression: Ks, updateClassExpression: ic, createOmittedExpression: zm, createExpressionWithTypeArguments: yg, updateExpressionWithTypeArguments: K_, createAsExpression: ob, updateAsExpression: Jv, createNonNullExpression: i2, updateNonNullExpression: QT, createSatisfiesExpression: a2, updateSatisfiesExpression: vg, createNonNullChain: X_, updateNonNullChain: Kv, createMetaProperty: kh, updateMetaProperty: Sp, createTemplateSpan: Xv, updateTemplateSpan: q1, createSemicolonClassElement: sb, createBlock: bg, updateBlock: ZT, createVariableStatement: J1, updateVariableStatement: K1, createEmptyStatement: X1, createExpressionStatement: Yv, updateExpressionStatement: o2, createIfStatement: Y1, updateIfStatement: $1, createDoStatement: $v, updateDoStatement: lb, createWhileStatement: Qv, updateWhileStatement: eS, createForStatement: Eg, updateForStatement: Xo, createForInStatement: Q1, updateForInStatement: tL, createForOfStatement: Dy, updateForOfStatement: Tg, createContinueStatement: qm, updateContinueStatement: Y_, createBreakStatement: xd, updateBreakStatement: Ad, createReturnStatement: Cd, updateReturnStatement: cb, createWithStatement: ub, updateWithStatement: s2, createSwitchStatement: db, updateSwitchStatement: Sg, createLabeledStatement: fb, updateLabeledStatement: tS, createThrowStatement: _b, updateThrowStatement: nL, createTryStatement: l2, updateTryStatement: Zv, createDebuggerStatement: Z1, createVariableDeclaration: qe, updateVariableDeclaration: Ry, createVariableDeclarationList: tm, updateVariableDeclarationList: e0, createFunctionDeclaration: pb, updateFunctionDeclaration: t0, createClassDeclaration: nS, updateClassDeclaration: Qo, createInterfaceDeclaration: $_, updateInterfaceDeclaration: eE, createTypeAliasDeclaration: mc, updateTypeAliasDeclaration: wh, createEnumDeclaration: mb, updateEnumDeclaration: Q_, createModuleDeclaration: hb, updateModuleDeclaration: ru, createModuleBlock: Ag, updateModuleBlock: Dc, createCaseBlock: rS, updateCaseBlock: rL, createNamespaceExportDeclaration: Ui, updateNamespaceExportDeclaration: Wr, createImportEqualsDeclaration: Hd, updateImportEqualsDeclaration: tE, createImportDeclaration: Cg, updateImportDeclaration: Dh, createImportClause: Km, updateImportClause: dl, createAssertClause: gb, updateAssertClause: iS, createAssertEntry: yb, updateAssertEntry: aS, createImportTypeAssertionContainer: $f, updateImportTypeAssertionContainer: c2, createNamespaceImport: u2, updateNamespaceImport: n0, createNamespaceExport: oS, updateNamespaceExport: sS, createNamedImports: d2, updateNamedImports: vb, createImportSpecifier: lS, updateImportSpecifier: If, createExportAssignment: Lg, updateExportAssignment: xp, createExportDeclaration: Z_, updateExportDeclaration: f2, createNamedExports: nm, updateNamedExports: cS, createExportSpecifier: ud, updateExportSpecifier: Ig, createMissingDeclaration: rm, createExternalModuleReference: im, updateExternalModuleReference: kg, get createJSDocAllType() { return d(315); }, get createJSDocUnknownType() { return d(316); }, get createJSDocNonNullableType() { return b(318); }, get updateJSDocNonNullableType() { return A(318); }, get createJSDocNullableType() { return b(317); }, get updateJSDocNullableType() { return A(317); }, get createJSDocOptionalType() { return y(319); }, get updateJSDocOptionalType() { return m(319); }, get createJSDocVariadicType() { return y(321); }, get updateJSDocVariadicType() { return m(321); }, get createJSDocNamepathType() { return y(322); }, get updateJSDocNamepathType() { return m(322); }, createJSDocFunctionType: Oy, updateJSDocFunctionType: _2, createJSDocTypeLiteral: Eb, updateJSDocTypeLiteral: Tb, createJSDocTypeExpression: p2, updateJSDocTypeExpression: iL, createJSDocSignature: m2, updateJSDocSignature: _r, createJSDocTemplateTag: r0, updateJSDocTemplateTag: Xm, createJSDocTypedefTag: ir, updateJSDocTypedefTag: h2, createJSDocParameterTag: Py, updateJSDocParameterTag: xc, createJSDocPropertyTag: v_, updateJSDocPropertyTag: Ap, createJSDocCallbackTag: My, updateJSDocCallbackTag: iE, createJSDocOverloadTag: ep, updateJSDocOverloadTag: Fy, createJSDocAugmentsTag: ql, updateJSDocAugmentsTag: Zl, createJSDocImplementsTag: wg, updateJSDocImplementsTag: Dg, createJSDocSeeTag: iu, updateJSDocSeeTag: b_, createJSDocNameReference: Ym, updateJSDocNameReference: Ld, createJSDocMemberName: aE, updateJSDocMemberName: Sb, createJSDocLink: xb, updateJSDocLink: Cp, createJSDocLinkCode: Rh, updateJSDocLinkCode: oE, createJSDocLinkPlain: By, updateJSDocLinkPlain: wl, get createJSDocTypeTag() { return O(347); }, get updateJSDocTypeTag() { return k(347); }, get createJSDocReturnTag() { return O(345); }, get updateJSDocReturnTag() { return k(345); }, get createJSDocThisTag() { return O(346); }, get updateJSDocThisTag() { return k(346); }, get createJSDocAuthorTag() { return C(333); }, get updateJSDocAuthorTag() { return I(333); }, get createJSDocClassTag() { return C(335); }, get updateJSDocClassTag() { return I(335); }, get createJSDocPublicTag() { return C(336); }, get updateJSDocPublicTag() { return I(336); }, get createJSDocPrivateTag() { return C(337); }, get updateJSDocPrivateTag() { return I(337); }, get createJSDocProtectedTag() { return C(338); }, get updateJSDocProtectedTag() { return I(338); }, get createJSDocReadonlyTag() { return C(339); }, get updateJSDocReadonlyTag() { return I(339); }, get createJSDocOverrideTag() { return C(340); }, get updateJSDocOverrideTag() { return I(340); }, get createJSDocDeprecatedTag() { return C(334); }, get updateJSDocDeprecatedTag() { return I(334); }, get createJSDocThrowsTag() { return O(352); }, get updateJSDocThrowsTag() { return k(352); }, get createJSDocSatisfiesTag() { return O(353); }, get updateJSDocSatisfiesTag() { return k(353); }, createJSDocEnumTag: sE, updateJSDocEnumTag: Ph, createJSDocUnknownTag: Oh, updateJSDocUnknownTag: hc, createJSDocText: Ab, updateJSDocText: dd, createJSDocComment: $m, updateJSDocComment: Cb, createJsxElement: o0, updateJsxElement: lE, createJsxSelfClosingElement: Gy, updateJsxSelfClosingElement: dS, createJsxOpeningElement: s0, updateJsxOpeningElement: Rg, createJsxClosingElement: wf, updateJsxClosingElement: cE, createJsxFragment: uf, createJsxText: l0, updateJsxText: g2, createJsxOpeningFragment: ns, createJsxJsxClosingFragment: Lr, updateJsxFragment: Mh, createJsxAttribute: Wd, updateJsxAttribute: fd, createJsxAttributes: fS, updateJsxAttributes: uE, createJsxSpreadAttribute: Uy, updateJsxSpreadAttribute: y2, createJsxExpression: Vy, updateJsxExpression: am, createCaseClause: Lp, updateCaseClause: Ng, createDefaultClause: c0, updateDefaultClause: Fh, createHeritageClause: om, updateHeritageClause: _S, createCatchClause: Jl, updateCatchClause: df, createPropertyAssignment: Qm, updatePropertyAssignment: Id, createShorthandPropertyAssignment: jy, updateShorthandPropertyAssignment: Og, createSpreadAssignment: Df, updateSpreadAssignment: Ds, createEnumMember: fE, updateEnumMember: _E, createSourceFile: Pg, updateSourceFile: gE, createRedirectedSourceFile: u0, createBundle: yE, updateBundle: Hy, createUnparsedSource: zd, createUnparsedPrologue: aL, createUnparsedPrepend: Mg, createUnparsedTextLike: b2, createUnparsedSyntheticReference: E2, createInputFiles: S, createSyntheticExpression: se, createSyntaxList: Le, createNotEmittedStatement: tn, createPartiallyEmittedExpression: Ar, updatePartiallyEmittedExpression: vi, createCommaListExpression: Fi, updateCommaListExpression: co, createEndOfDeclarationMarker: Yc, createMergeDeclarationMarker: qd, createSyntheticReferenceExpression: ff, updateSyntheticReferenceExpression: Wy, cloneNode: E_, get createComma() { return s(27); }, get createAssignment() { return s(63); }, get createLogicalOr() { return s(56); }, get createLogicalAnd() { return s(55); }, get createBitwiseOr() { return s(51); }, get createBitwiseXor() { return s(52); }, get createBitwiseAnd() { return s(50); }, get createStrictEquality() { return s(36); }, get createStrictInequality() { return s(37); }, get createEquality() { return s(34); }, get createInequality() { return s(35); }, get createLessThan() { return s(29); }, get createLessThanEquals() { return s(32); }, get createGreaterThan() { return s(31); }, get createGreaterThanEquals() { return s(33); }, get createLeftShift() { return s(47); }, get createRightShift() { return s(48); }, get createUnsignedRightShift() { return s(49); }, get createAdd() { return s(39); }, get createSubtract() { return s(40); }, get createMultiply() { return s(41); }, get createDivide() { return s(43); }, get createModulo() { return s(44); }, get createExponent() { return s(42); }, get createPrefixPlus() { return c(39); }, get createPrefixMinus() { return c(40); }, get createPrefixIncrement() { return c(45); }, get createPrefixDecrement() { return c(46); }, get createBitwiseNot() { return c(54); }, get createLogicalNot() { return c(53); }, get createPostfixIncrement() { return f(45); }, get createPostfixDecrement() { return f(46); }, createImmediatelyInvokedFunctionExpression: vE, createImmediatelyInvokedArrowFunction: Rf, createVoidZero: Zm, createExportDefault: qy, createExternalModuleExport: Qf, createTypeCheck: bE, createMethodCall: _0, createGlobalMethodCall: Zo, createFunctionBindCall: cc, createFunctionCallCall: t4, createFunctionApplyCall: Es, createArraySliceCall: T2, createArrayConcatCall: S2, createObjectDefinePropertyCall: z, createObjectGetOwnPropertyDescriptorCall: be, createReflectGetCall: Xe, createReflectSetCall: Et, createPropertyDescriptor: Cn, createCallBinding: Cs, createAssignmentTargetWrapper: Ao, inlineExpressions: es, getInternalName: Ip, getLocalName: sm, getExportName: Fg, getDeclarationName: T_, getNamespaceMemberName: Jy, getExternalModuleOrNamespaceExportName: x2, restoreOuterExpressions: bi, restoreEnclosingLabel: Ai, createUseStrictPrologue: tp, copyPrologue: EE, copyStandardPrologue: p0, copyCustomPrologue: sL, ensureUseStrict: Nf, liftToBlock: A2, mergeLexicalEnvironment: Vw, updateModifiers: jw }; return Ye(Pq, (v) => v(B)), B; function U(v, w) { if (v === void 0 || v === nt) v = []; else if (c1(v)) { if (w === void 0 || v.hasTrailingComma === w) return v.transformFlags === void 0 && Qde(v), D.attachNodeArrayDebugInfo(v), v; const ze = v.slice(); return ze.pos = v.pos, ze.end = v.end, ze.hasTrailingComma = w, ze.transformFlags = v.transformFlags, D.attachNodeArrayDebugInfo(ze), ze; } const F = v.length, oe = F >= 1 && F <= 4 ? v.slice() : v; return oe.pos = -1, oe.end = -1, oe.hasTrailingComma = !!w, oe.transformFlags = 0, Qde(oe), D.attachNodeArrayDebugInfo(oe), oe; } function j(v) { return t.createBaseNode(v); } function te(v) { const w = j(v); return w.symbol = void 0, w.localSymbol = void 0, w; } function X(v, w) { return v !== w && (v.typeArguments = w.typeArguments), r(v, w); } function Y(v, w = 0) { const F = te(8); return F.text = typeof v == "number" ? v + "" : v, F.numericLiteralFlags = w, w & 384 && (F.transformFlags |= 1024), F; } function P(v) { const w = He(9); return w.text = typeof v == "string" ? v : A1(v) + "n", w.transformFlags |= 4, w; } function ue(v, w) { const F = te(10); return F.text = v, F.singleQuote = w, F; } function ne(v, w, F) { const oe = ue(v, w); return oe.hasExtendedUnicodeEscape = F, F && (oe.transformFlags |= 1024), oe; } function ge(v) { const w = ue(P_(v), void 0); return w.textSourceNode = v, w; } function ie(v) { const w = He(13); return w.text = v, w; } function H(v, w) { switch (v) { case 8: return Y(w, 0); case 9: return P(w); case 10: return ne(w, void 0); case 11: return l0(w, !1); case 12: return l0(w, !0); case 13: return ie(w); case 14: return vn(v, w, void 0, 0); } } function le(v) { const w = t.createBaseIdentifierNode(79); return w.escapedText = v, w.jsDoc = void 0, w.flowNode = void 0, w.symbol = void 0, w; } function pe(v, w, F, oe) { const ze = le(al(v)); return fO(ze, { flags: w, id: oO, prefix: F, suffix: oe }), oO++, ze; } function ye(v, w, F) { w === void 0 && v && (w = KE(v)), w === 79 && (w = void 0); const oe = le(al(v)); return F && (oe.flags |= 128), oe.escapedText === "await" && (oe.transformFlags |= 67108864), oe.flags & 128 && (oe.transformFlags |= 1024), oe; } function Te(v, w, F, oe) { let ze = 1; w && (ze |= 8); const qt = pe("", ze, F, oe); return v && v(qt), qt; } function ee(v) { let w = 2; return v && (w |= 8), pe("", w, void 0, void 0); } function $e(v, w = 0, F, oe) { return D.assert(!(w & 7), "Argument out of range: flags"), D.assert((w & 48) !== 32, "GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"), pe(v, 3 | w, F, oe); } function Ge(v, w = 0, F, oe) { D.assert(!(w & 7), "Argument out of range: flags"); const ze = v ? eg(v) ? LT(!1, F, v, oe, Or) : `generated@${ds(v)}` : ""; (F || oe) && (w |= 16); const qt = pe(ze, 4 | w, F, oe); return qt.original = v, qt; } function Fe(v) { const w = t.createBasePrivateIdentifierNode(80); return w.escapedText = v, w.transformFlags |= 16777216, w; } function We(v) { return Ea(v, "#") || D.fail("First character of private identifier must be #: " + v), Fe(al(v)); } function Re(v, w, F, oe) { const ze = Fe(al(v)); return fO(ze, { flags: w, id: oO, prefix: F, suffix: oe }), oO++, ze; } function Pe(v, w, F) { v && !Ea(v, "#") && D.fail("First character of private identifier must be #: " + v); const oe = 8 | (v ? 3 : 1); return Re(v ?? "", oe, w, F); } function Ke(v, w, F) { const oe = eg(v) ? LT(!0, w, v, F, Or) : `#generated@${ds(v)}`, qt = Re(oe, 4 | (w || F ? 16 : 0), w, F); return qt.original = v, qt; } function He(v) { return t.createBaseTokenNode(v); } function Me(v) { D.assert(v >= 0 && v <= 162, "Invalid token"), D.assert(v <= 14 || v >= 17, "Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."), D.assert(v <= 8 || v >= 14, "Invalid token. Use 'createLiteralLikeNode' to create literals."), D.assert(v !== 79, "Invalid token. Use 'createIdentifier' to create identifiers"); const w = He(v); let F = 0; switch (v) { case 132: F = 384; break; case 123: case 121: case 122: case 146: case 126: case 136: case 85: case 131: case 148: case 160: case 144: case 149: case 101: case 145: case 161: case 152: case 134: case 153: case 114: case 157: case 155: F = 1; break; case 106: F = 134218752, w.flowNode = void 0; break; case 124: F = 1024; break; case 127: F = 16777216; break; case 108: F = 16384, w.flowNode = void 0; break; } return F && (w.transformFlags |= F), w; } function ot() { return Me(106); } function At() { return Me(108); } function bt() { return Me(104); } function Vt() { return Me(110); } function et() { return Me(95); } function it(v) { return Me(v); } function nn(v) { const w = []; return v & 1 && w.push(it(93)), v & 2 && w.push(it(136)), v & 1024 && w.push(it(88)), v & 2048 && w.push(it(85)), v & 4 && w.push(it(123)), v & 8 && w.push(it(121)), v & 16 && w.push(it(122)), v & 256 && w.push(it(126)), v & 32 && w.push(it(124)), v & 16384 && w.push(it(161)), v & 64 && w.push(it(146)), v & 128 && w.push(it(127)), v & 512 && w.push(it(132)), v & 32768 && w.push(it(101)), v & 65536 && w.push(it(145)), w.length ? w : void 0; } function Xt(v, w) { const F = j(163); return F.left = v, F.right = vl(w), F.transformFlags |= mr(F.left) | dk(F.right), F.flowNode = void 0, F; } function On(v, w, F) { return v.left !== w || v.right !== F ? r(Xt(w, F), v) : v; } function Hn(v) { const w = j(164); return w.expression = i().parenthesizeExpressionOfComputedPropertyName(v), w.transformFlags |= mr(w.expression) | 1024 | 131072, w; } function In(v, w) { return v.expression !== w ? r(Hn(w), v) : v; } function Yt(v, w, F, oe) { const ze = te(165); return ze.modifiers = Co(v), ze.name = vl(w), ze.constraint = F, ze.default = oe, ze.transformFlags = 1, ze.expression = void 0, ze.jsDoc = void 0, ze; } function fr(v, w, F, oe, ze) { return v.modifiers !== w || v.name !== F || v.constraint !== oe || v.default !== ze ? r(Yt(w, F, oe, ze), v) : v; } function xi(v, w, F, oe, ze, qt) { var Fr, Qi; const Xa = te(166); return Xa.modifiers = Co(v), Xa.dotDotDotToken = w, Xa.name = vl(F), Xa.questionToken = oe, Xa.type = ze, Xa.initializer = Xy(qt), _T(Xa.name) ? Xa.transformFlags = 1 : Xa.transformFlags = Ro(Xa.modifiers) | mr(Xa.dotDotDotToken) | hy(Xa.name) | mr(Xa.questionToken) | mr(Xa.initializer) | (((Fr = Xa.questionToken) != null ? Fr : Xa.type) ? 1 : 0) | (((Qi = Xa.dotDotDotToken) != null ? Qi : Xa.initializer) ? 1024 : 0) | (Om(Xa.modifiers) & 16476 ? 8192 : 0), Xa.jsDoc = void 0, Xa; } function Ji(v, w, F, oe, ze, qt, Fr) { return v.modifiers !== w || v.dotDotDotToken !== F || v.name !== oe || v.questionToken !== ze || v.type !== qt || v.initializer !== Fr ? r(xi(w, F, oe, ze, qt, Fr), v) : v; } function Ki(v) { const w = j(167); return w.expression = i().parenthesizeLeftSideOfAccess(v, !1), w.transformFlags |= mr(w.expression) | 1 | 8192 | 33554432, w; } function Rr(v, w) { return v.expression !== w ? r(Ki(w), v) : v; } function xt(v, w, F, oe) { const ze = te(168); return ze.modifiers = Co(v), ze.name = vl(w), ze.type = oe, ze.questionToken = F, ze.transformFlags = 1, ze.initializer = void 0, ze.jsDoc = void 0, ze; } function gn(v, w, F, oe, ze) { return v.modifiers !== w || v.name !== F || v.questionToken !== oe || v.type !== ze ? Ht(xt(w, F, oe, ze), v) : v; } function Ht(v, w) { return v !== w && (v.initializer = w.initializer), r(v, w); } function ln(v, w, F, oe, ze) { const qt = te(169); qt.modifiers = Co(v), qt.name = vl(w), qt.questionToken = F && Rv(F) ? F : void 0, qt.exclamationToken = F && gO(F) ? F : void 0, qt.type = oe, qt.initializer = Xy(ze); const Fr = qt.flags & 16777216 || Om(qt.modifiers) & 2; return qt.transformFlags = Ro(qt.modifiers) | hy(qt.name) | mr(qt.initializer) | (Fr || qt.questionToken || qt.exclamationToken || qt.type ? 1 : 0) | (Ss(qt.name) || Om(qt.modifiers) & 32 && qt.initializer ? 8192 : 0) | 16777216, qt.jsDoc = void 0, qt; } function rr(v, w, F, oe, ze, qt) { return v.modifiers !== w || v.name !== F || v.questionToken !== (oe !== void 0 && Rv(oe) ? oe : void 0) || v.exclamationToken !== (oe !== void 0 && gO(oe) ? oe : void 0) || v.type !== ze || v.initializer !== qt ? r(ln(w, F, oe, ze, qt), v) : v; } function lr(v, w, F, oe, ze, qt) { const Fr = te(170); return Fr.modifiers = Co(v), Fr.name = vl(w), Fr.questionToken = F, Fr.typeParameters = Co(oe), Fr.parameters = Co(ze), Fr.type = qt, Fr.transformFlags = 1, Fr.jsDoc = void 0, Fr.locals = void 0, Fr.nextContainer = void 0, Fr.typeArguments = void 0, Fr; } function Di(v, w, F, oe, ze, qt, Fr) { return v.modifiers !== w || v.name !== F || v.questionToken !== oe || v.typeParameters !== ze || v.parameters !== qt || v.type !== Fr ? X(lr(w, F, oe, ze, qt, Fr), v) : v; } function _i(v, w, F, oe, ze, qt, Fr, Qi) { const Xa = te(171); if (Xa.modifiers = Co(v), Xa.asteriskToken = w, Xa.name = vl(F), Xa.questionToken = oe, Xa.exclamationToken = void 0, Xa.typeParameters = Co(ze), Xa.parameters = U(qt), Xa.type = Fr, Xa.body = Qi, !Xa.body) Xa.transformFlags = 1; else { const _f = Om(Xa.modifiers) & 512, Bg = !!Xa.asteriskToken, Gg = _f && Bg; Xa.transformFlags = Ro(Xa.modifiers) | mr(Xa.asteriskToken) | hy(Xa.name) | mr(Xa.questionToken) | Ro(Xa.typeParameters) | Ro(Xa.parameters) | mr(Xa.type) | mr(Xa.body) & -67108865 | (Gg ? 128 : _f ? 256 : Bg ? 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 Rn(v, w, F, oe, ze, qt, Fr, Qi, Xa) { return v.modifiers !== w || v.asteriskToken !== F || v.name !== oe || v.questionToken !== ze || v.typeParameters !== qt || v.parameters !== Fr || v.type !== Qi || v.body !== Xa ? en(_i(w, F, oe, ze, qt, Fr, Qi, Xa), v) : v; } function en(v, w) { return v !== w && (v.exclamationToken = w.exclamationToken), r(v, w); } function Pn(v) { const w = te(172); return w.body = v, w.transformFlags = mr(v) | 16777216, w.modifiers = void 0, w.jsDoc = void 0, w.locals = void 0, w.nextContainer = void 0, w.endFlowNode = void 0, w.returnFlowNode = void 0, w; } function xr(v, w) { return v.body !== w ? Ur(Pn(w), v) : v; } function Ur(v, w) { return v !== w && (v.modifiers = w.modifiers), r(v, w); } function Ie(v, w, F) { const oe = te(173); return oe.modifiers = Co(v), oe.parameters = U(w), oe.body = F, oe.transformFlags = Ro(oe.modifiers) | Ro(oe.parameters) | mr(oe.body) & -67108865 | 1024, oe.typeParameters = void 0, oe.type = void 0, oe.typeArguments = void 0, oe.jsDoc = void 0, oe.locals = void 0, oe.nextContainer = void 0, oe.endFlowNode = void 0, oe.returnFlowNode = void 0, oe; } function gt(v, w, F, oe) { return v.modifiers !== w || v.parameters !== F || v.body !== oe ? Nt(Ie(w, F, oe), v) : v; } function Nt(v, w) { return v !== w && (v.typeParameters = w.typeParameters, v.type = w.type), X(v, w); } function xe(v, w, F, oe, ze) { const qt = te(174); return qt.modifiers = Co(v), qt.name = vl(w), qt.parameters = U(F), qt.type = oe, qt.body = ze, qt.body ? qt.transformFlags = Ro(qt.modifiers) | hy(qt.name) | Ro(qt.parameters) | mr(qt.type) | mr(qt.body) & -67108865 | (qt.type ? 1 : 0) : qt.transformFlags = 1, qt.typeArguments = void 0, qt.typeParameters = void 0, qt.jsDoc = void 0, qt.locals = void 0, qt.nextContainer = void 0, qt.flowNode = void 0, qt.endFlowNode = void 0, qt.returnFlowNode = void 0, qt; } function _t(v, w, F, oe, ze, qt) { return v.modifiers !== w || v.name !== F || v.parameters !== oe || v.type !== ze || v.body !== qt ? _e(xe(w, F, oe, ze, qt), v) : v; } function _e(v, w) { return v !== w && (v.typeParameters = w.typeParameters), X(v, w); } function re(v, w, F, oe) { const ze = te(175); return ze.modifiers = Co(v), ze.name = vl(w), ze.parameters = U(F), ze.body = oe, ze.body ? ze.transformFlags = Ro(ze.modifiers) | hy(ze.name) | Ro(ze.parameters) | mr(ze.body) & -67108865 | (ze.type ? 1 : 0) : ze.transformFlags = 1, ze.typeArguments = void 0, ze.typeParameters = void 0, ze.type = void 0, ze.jsDoc = void 0, ze.locals = void 0, ze.nextContainer = void 0, ze.flowNode = void 0, ze.endFlowNode = void 0, ze.returnFlowNode = void 0, ze; } function me(v, w, F, oe, ze) { return v.modifiers !== w || v.name !== F || v.parameters !== oe || v.body !== ze ? V(re(w, F, oe, ze), v) : v; } function V(v, w) { return v !== w && (v.typeParameters = w.typeParameters, v.type = w.type), X(v, w); } function je(v, w, F) { const oe = te(176); return oe.typeParameters = Co(v), oe.parameters = Co(w), oe.type = F, oe.transformFlags = 1, oe.jsDoc = void 0, oe.locals = void 0, oe.nextContainer = void 0, oe.typeArguments = void 0, oe; } function Qe(v, w, F, oe) { return v.typeParameters !== w || v.parameters !== F || v.type !== oe ? X(je(w, F, oe), v) : v; } function Je(v, w, F) { const oe = te(177); return oe.typeParameters = Co(v), oe.parameters = Co(w), oe.type = F, oe.transformFlags = 1, oe.jsDoc = void 0, oe.locals = void 0, oe.nextContainer = void 0, oe.typeArguments = void 0, oe; } function Ut(v, w, F, oe) { return v.typeParameters !== w || v.parameters !== F || v.type !== oe ? X(Je(w, F, oe), v) : v; } function on(v, w, F) { const oe = te(178); return oe.modifiers = Co(v), oe.parameters = Co(w), oe.type = F, oe.transformFlags = 1, oe.jsDoc = void 0, oe.locals = void 0, oe.nextContainer = void 0, oe.typeArguments = void 0, oe; } function Sn(v, w, F, oe) { return v.parameters !== F || v.type !== oe || v.modifiers !== w ? X(on(w, F, oe), v) : v; } function br(v, w) { const F = j(201); return F.type = v, F.literal = w, F.transformFlags = 1, F; } function ce(v, w, F) { return v.type !== w || v.literal !== F ? r(br(w, F), v) : v; } function pt(v) { return Me(v); } function Wt(v, w, F) { const oe = j(179); return oe.assertsModifier = v, oe.parameterName = vl(w), oe.type = F, oe.transformFlags = 1, oe; } function rt(v, w, F, oe) { return v.assertsModifier !== w || v.parameterName !== F || v.type !== oe ? r(Wt(w, F, oe), v) : v; } function K(v, w) { const F = j(180); return F.typeName = vl(v), F.typeArguments = w && i().parenthesizeTypeArguments(U(w)), F.transformFlags = 1, F; } function Oe(v, w, F) { return v.typeName !== w || v.typeArguments !== F ? r(K(w, F), v) : v; } function Z(v, w, F) { const oe = te(181); return oe.typeParameters = Co(v), oe.parameters = Co(w), oe.type = F, oe.transformFlags = 1, oe.modifiers = void 0, oe.jsDoc = void 0, oe.locals = void 0, oe.nextContainer = void 0, oe.typeArguments = void 0, oe; } function we(v, w, F, oe) { return v.typeParameters !== w || v.parameters !== F || v.type !== oe ? q(Z(w, F, oe), v) : v; } function q(v, w) { return v !== w && (v.modifiers = w.modifiers), X(v, w); } function Rt(...v) { return v.length === 4 ? ht(...v) : v.length === 3 ? dt(...v) : D.fail("Incorrect number of arguments specified."); } function ht(v, w, F, oe) { const ze = te(182); return ze.modifiers = Co(v), ze.typeParameters = Co(w), ze.parameters = Co(F), ze.type = oe, ze.transformFlags = 1, ze.jsDoc = void 0, ze.locals = void 0, ze.nextContainer = void 0, ze.typeArguments = void 0, ze; } function dt(v, w, F) { return ht(void 0, v, w, F); } function dn(...v) { return v.length === 5 ? $n(...v) : v.length === 4 ? ii(...v) : D.fail("Incorrect number of arguments specified."); } function $n(v, w, F, oe, ze) { return v.modifiers !== w || v.typeParameters !== F || v.parameters !== oe || v.type !== ze ? X(Rt(w, F, oe, ze), v) : v; } function ii(v, w, F, oe) { return $n(v, v.modifiers, w, F, oe); } function Ti(v, w) { const F = j(183); return F.exprName = v, F.typeArguments = w && i().parenthesizeTypeArguments(w), F.transformFlags = 1, F; } function Si(v, w, F) { return v.exprName !== w || v.typeArguments !== F ? r(Ti(w, F), v) : v; } function Bi(v) { const w = te(184); return w.members = U(v), w.transformFlags = 1, w; } function fo(v, w) { return v.members !== w ? r(Bi(w), v) : v; } function vo(v) { const w = j(185); return w.elementType = i().parenthesizeNonArrayTypeOfPostfixType(v), w.transformFlags = 1, w; } function no(v, w) { return v.elementType !== w ? r(vo(w), v) : v; } function sa(v) { const w = j(186); return w.elements = U(i().parenthesizeElementTypesOfTupleType(v)), w.transformFlags = 1, w; } function Gi(v, w) { return v.elements !== w ? r(sa(w), v) : v; } function qr(v, w, F, oe) { const ze = te(199); return ze.dotDotDotToken = v, ze.name = w, ze.questionToken = F, ze.type = oe, ze.transformFlags = 1, ze.jsDoc = void 0, ze; } function is(v, w, F, oe, ze) { return v.dotDotDotToken !== w || v.name !== F || v.questionToken !== oe || v.type !== ze ? r(qr(w, F, oe, ze), v) : v; } function ui(v) { const w = j(187); return w.type = i().parenthesizeTypeOfOptionalType(v), w.transformFlags = 1, w; } function la(v, w) { return v.type !== w ? r(ui(w), v) : v; } function wn(v) { const w = j(188); return w.type = v, w.transformFlags = 1, w; } function da(v, w) { return v.type !== w ? r(wn(w), v) : v; } function $l(v, w, F) { const oe = j(v); return oe.types = B.createNodeArray(F(w)), oe.transformFlags = 1, oe; } function tl(v, w, F) { return v.types !== w ? r($l(v.kind, w, F), v) : v; } function Ml(v) { return $l(189, v, i().parenthesizeConstituentTypesOfUnionType); } function zl(v, w) { return tl(v, w, i().parenthesizeConstituentTypesOfUnionType); } function Fl(v) { return $l(190, v, i().parenthesizeConstituentTypesOfIntersectionType); } function So(v, w) { return tl(v, w, i().parenthesizeConstituentTypesOfIntersectionType); } function Aa(v, w, F, oe) { const ze = j(191); return ze.checkType = i().parenthesizeCheckTypeOfConditionalType(v), ze.extendsType = i().parenthesizeExtendsTypeOfConditionalType(w), ze.trueType = F, ze.falseType = oe, ze.transformFlags = 1, ze.locals = void 0, ze.nextContainer = void 0, ze; } function Jo(v, w, F, oe, ze) { return v.checkType !== w || v.extendsType !== F || v.trueType !== oe || v.falseType !== ze ? r(Aa(w, F, oe, ze), v) : v; } function Bl(v) { const w = j(192); return w.typeParameter = v, w.transformFlags = 1, w; } function Xc(v, w) { return v.typeParameter !== w ? r(Bl(w), v) : v; } function Ud(v, w) { const F = j(200); return F.head = v, F.templateSpans = U(w), F.transformFlags = 1, F; } function rc(v, w, F) { return v.head !== w || v.templateSpans !== F ? r(Ud(w, F), v) : v; } function jc(v, w, F, oe, ze = !1) { const qt = j(202); return qt.argument = v, qt.assertions = w, qt.qualifier = F, qt.typeArguments = oe && i().parenthesizeTypeArguments(oe), qt.isTypeOf = ze, qt.transformFlags = 1, qt; } function ks(v, w, F, oe, ze, qt = v.isTypeOf) { return v.argument !== w || v.assertions !== F || v.qualifier !== oe || v.typeArguments !== ze || v.isTypeOf !== qt ? r(jc(w, F, oe, ze, qt), v) : v; } function pl(v) { const w = j(193); return w.type = v, w.transformFlags = 1, w; } function Qs(v, w) { return v.type !== w ? r(pl(w), v) : v; } function qs() { const v = j(194); return v.transformFlags = 1, v; } function Zt(v, w) { const F = j(195); return F.operator = v, F.type = v === 146 ? i().parenthesizeOperandOfReadonlyTypeOperator(w) : i().parenthesizeOperandOfTypeOperator(w), F.transformFlags = 1, F; } function Gl(v, w) { return v.type !== w ? r(Zt(v.operator, w), v) : v; } function yu(v, w) { const F = j(196); return F.objectType = i().parenthesizeNonArrayTypeOfPostfixType(v), F.indexType = w, F.transformFlags = 1, F; } function Bu(v, w, F) { return v.objectType !== w || v.indexType !== F ? r(yu(w, F), v) : v; } function de(v, w, F, oe, ze, qt) { const Fr = te(197); return Fr.readonlyToken = v, Fr.typeParameter = w, Fr.nameType = F, Fr.questionToken = oe, Fr.type = ze, Fr.members = qt && U(qt), Fr.transformFlags = 1, Fr.locals = void 0, Fr.nextContainer = void 0, Fr; } function It(v, w, F, oe, ze, qt, Fr) { return v.readonlyToken !== w || v.typeParameter !== F || v.nameType !== oe || v.questionToken !== ze || v.type !== qt || v.members !== Fr ? r(de(w, F, oe, ze, qt, Fr), v) : v; } function jt(v) { const w = j(198); return w.literal = v, w.transformFlags = 1, w; } function Q(v, w) { return v.literal !== w ? r(jt(w), v) : v; } function at(v) { const w = j(203); return w.elements = U(v), w.transformFlags |= Ro(w.elements) | 1024 | 524288, w.transformFlags & 32768 && (w.transformFlags |= 65664), w; } function St(v, w) { return v.elements !== w ? r(at(w), v) : v; } function _n(v) { const w = j(204); return w.elements = U(v), w.transformFlags |= Ro(w.elements) | 1024 | 524288, w; } function kr(v, w) { return v.elements !== w ? r(_n(w), v) : v; } function Nr(v, w, F, oe) { const ze = te(205); return ze.dotDotDotToken = v, ze.propertyName = vl(w), ze.name = vl(F), ze.initializer = Xy(oe), ze.transformFlags |= mr(ze.dotDotDotToken) | hy(ze.propertyName) | hy(ze.name) | mr(ze.initializer) | (ze.dotDotDotToken ? 32768 : 0) | 1024, ze.flowNode = void 0, ze; } function va(v, w, F, oe, ze) { return v.propertyName !== F || v.dotDotDotToken !== w || v.name !== oe || v.initializer !== ze ? r(Nr(w, F, oe, ze), v) : v; } function as(v, w) { const F = j(206), oe = v && Zs(v), ze = U(v, oe && Ic(oe) ? !0 : void 0); return F.elements = i().parenthesizeExpressionsOfCommaDelimitedList(ze), F.multiLine = w, F.transformFlags |= Ro(F.elements), F; } function _o(v, w) { return v.elements !== w ? r(as(w, v.multiLine), v) : v; } function Uo(v, w) { const F = te(207); return F.properties = U(v), F.multiLine = w, F.transformFlags |= Ro(F.properties), F.jsDoc = void 0, F; } function Ka(v, w) { return v.properties !== w ? r(Uo(w, v.multiLine), v) : v; } function cl(v, w, F) { const oe = te(208); return oe.expression = v, oe.questionDotToken = w, oe.name = F, oe.transformFlags = mr(oe.expression) | mr(oe.questionDotToken) | (Ve(oe.name) ? dk(oe.name) : mr(oe.name) | 536870912), oe.jsDoc = void 0, oe.flowNode = void 0, oe; } function lc(v, w) { const F = cl(i().parenthesizeLeftSideOfAccess(v, !1), void 0, vl(w)); return mk(v) && (F.transformFlags |= 384), F; } function ld(v, w, F) { return _M(v) ? ls(v, w, v.questionDotToken, ro(F, Ve)) : v.expression !== w || v.name !== F ? r(lc(w, F), v) : v; } function vs(v, w, F) { const oe = cl(i().parenthesizeLeftSideOfAccess(v, !0), w, vl(F)); return oe.flags |= 32, oe.transformFlags |= 32, oe; } function ls(v, w, F, oe) { return D.assert(!!(v.flags & 32), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."), v.expression !== w || v.questionDotToken !== F || v.name !== oe ? r(vs(w, F, oe), v) : v; } function ul(v, w, F) { const oe = te(209); return oe.expression = v, oe.questionDotToken = w, oe.argumentExpression = F, oe.transformFlags |= mr(oe.expression) | mr(oe.questionDotToken) | mr(oe.argumentExpression), oe.jsDoc = void 0, oe.flowNode = void 0, oe; } function Vd(v, w) { const F = ul(i().parenthesizeLeftSideOfAccess(v, !1), void 0, m0(w)); return mk(v) && (F.transformFlags |= 384), F; } function Ul(v, w, F) { return XH(v) ? Se(v, w, v.questionDotToken, F) : v.expression !== w || v.argumentExpression !== F ? r(Vd(w, F), v) : v; } function Lf(v, w, F) { const oe = ul(i().parenthesizeLeftSideOfAccess(v, !0), w, m0(F)); return oe.flags |= 32, oe.transformFlags |= 32, oe; } function Se(v, w, F, oe) { return D.assert(!!(v.flags & 32), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."), v.expression !== w || v.questionDotToken !== F || v.argumentExpression !== oe ? r(Lf(w, F, oe), v) : v; } function Dt(v, w, F, oe) { const ze = te(210); return ze.expression = v, ze.questionDotToken = w, ze.typeArguments = F, ze.arguments = oe, ze.transformFlags |= mr(ze.expression) | mr(ze.questionDotToken) | Ro(ze.typeArguments) | Ro(ze.arguments), ze.typeArguments && (ze.transformFlags |= 1), ad(ze.expression) && (ze.transformFlags |= 16384), ze; } function Nn(v, w, F) { const oe = Dt(i().parenthesizeLeftSideOfAccess(v, !1), void 0, Co(w), i().parenthesizeExpressionsOfCommaDelimitedList(U(F))); return hk(oe.expression) && (oe.transformFlags |= 8388608), oe; } function zi(v, w, F, oe) { return YE(v) ? ae(v, w, v.questionDotToken, F, oe) : v.expression !== w || v.typeArguments !== F || v.arguments !== oe ? r(Nn(w, F, oe), v) : v; } function xo(v, w, F, oe) { const ze = Dt(i().parenthesizeLeftSideOfAccess(v, !0), w, Co(F), i().parenthesizeExpressionsOfCommaDelimitedList(U(oe))); return ze.flags |= 32, ze.transformFlags |= 32, ze; } function ae(v, w, F, oe, ze) { return D.assert(!!(v.flags & 32), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."), v.expression !== w || v.questionDotToken !== F || v.typeArguments !== oe || v.arguments !== ze ? r(xo(w, F, oe, ze), v) : v; } function lt(v, w, F) { const oe = te(211); return oe.expression = i().parenthesizeExpressionOfNew(v), oe.typeArguments = Co(w), oe.arguments = F ? i().parenthesizeExpressionsOfCommaDelimitedList(F) : void 0, oe.transformFlags |= mr(oe.expression) | Ro(oe.typeArguments) | Ro(oe.arguments) | 32, oe.typeArguments && (oe.transformFlags |= 1), oe; } function Mt(v, w, F, oe) { return v.expression !== w || v.typeArguments !== F || v.arguments !== oe ? r(lt(w, F, oe), v) : v; } function Pt(v, w, F) { const oe = j(212); return oe.tag = i().parenthesizeLeftSideOfAccess(v, !1), oe.typeArguments = Co(w), oe.template = F, oe.transformFlags |= mr(oe.tag) | Ro(oe.typeArguments) | mr(oe.template) | 1024, oe.typeArguments && (oe.transformFlags |= 1), fz(oe.template) && (oe.transformFlags |= 128), oe; } function sn(v, w, F, oe) { return v.tag !== w || v.typeArguments !== F || v.template !== oe ? r(Pt(w, F, oe), v) : v; } function jn(v, w) { const F = j(213); return F.expression = i().parenthesizeOperandOfPrefixUnary(w), F.type = v, F.transformFlags |= mr(F.expression) | mr(F.type) | 1, F; } function wr(v, w, F) { return v.type !== w || v.expression !== F ? r(jn(w, F), v) : v; } function Zr(v) { const w = j(214); return w.expression = v, w.transformFlags = mr(w.expression), w.jsDoc = void 0, w; } function Ri(v, w) { return v.expression !== w ? r(Zr(w), v) : v; } function Ua(v, w, F, oe, ze, qt, Fr) { const Qi = te(215); Qi.modifiers = Co(v), Qi.asteriskToken = w, Qi.name = vl(F), Qi.typeParameters = Co(oe), Qi.parameters = U(ze), Qi.type = qt, Qi.body = Fr; const Xa = Om(Qi.modifiers) & 512, _f = !!Qi.asteriskToken, Bg = Xa && _f; return Qi.transformFlags = Ro(Qi.modifiers) | mr(Qi.asteriskToken) | hy(Qi.name) | Ro(Qi.typeParameters) | Ro(Qi.parameters) | mr(Qi.type) | mr(Qi.body) & -67108865 | (Bg ? 128 : Xa ? 256 : _f ? 2048 : 0) | (Qi.typeParameters || Qi.type ? 1 : 0) | 4194304, Qi.typeArguments = void 0, Qi.jsDoc = void 0, Qi.locals = void 0, Qi.nextContainer = void 0, Qi.flowNode = void 0, Qi.endFlowNode = void 0, Qi.returnFlowNode = void 0, Qi; } function Vo(v, w, F, oe, ze, qt, Fr, Qi) { return v.name !== oe || v.modifiers !== w || v.asteriskToken !== F || v.typeParameters !== ze || v.parameters !== qt || v.type !== Fr || v.body !== Qi ? X(Ua(w, F, oe, ze, qt, Fr, Qi), v) : v; } function bs(v, w, F, oe, ze, qt) { const Fr = te(216); Fr.modifiers = Co(v), Fr.typeParameters = Co(w), Fr.parameters = U(F), Fr.type = oe, Fr.equalsGreaterThanToken = ze ?? Me(38), Fr.body = i().parenthesizeConciseBodyOfArrowFunction(qt); const Qi = Om(Fr.modifiers) & 512; return Fr.transformFlags = Ro(Fr.modifiers) | Ro(Fr.typeParameters) | Ro(Fr.parameters) | mr(Fr.type) | mr(Fr.equalsGreaterThanToken) | mr(Fr.body) & -67108865 | (Fr.typeParameters || Fr.type ? 1 : 0) | (Qi ? 16640 : 0) | 1024, Fr.typeArguments = void 0, Fr.jsDoc = void 0, Fr.locals = void 0, Fr.nextContainer = void 0, Fr.flowNode = void 0, Fr.endFlowNode = void 0, Fr.returnFlowNode = void 0, Fr; } function Js(v, w, F, oe, ze, qt, Fr) { return v.modifiers !== w || v.typeParameters !== F || v.parameters !== oe || v.type !== ze || v.equalsGreaterThanToken !== qt || v.body !== Fr ? X(bs(w, F, oe, ze, qt, Fr), v) : v; } function cd(v) { const w = j(217); return w.expression = i().parenthesizeOperandOfPrefixUnary(v), w.transformFlags |= mr(w.expression), w; } function sf(v, w) { return v.expression !== w ? r(cd(w), v) : v; } function Ql(v) { const w = j(218); return w.expression = i().parenthesizeOperandOfPrefixUnary(v), w.transformFlags |= mr(w.expression), w; } function jd(v, w) { return v.expression !== w ? r(Ql(w), v) : v; } function vu(v) { const w = j(219); return w.expression = i().parenthesizeOperandOfPrefixUnary(v), w.transformFlags |= mr(w.expression), w; } function lf(v, w) { return v.expression !== w ? r(vu(w), v) : v; } function g_(v) { const w = j(220); return w.expression = i().parenthesizeOperandOfPrefixUnary(v), w.transformFlags |= mr(w.expression) | 256 | 128 | 2097152, w; } function Ko(v, w) { return v.expression !== w ? r(g_(w), v) : v; } function y_(v, w) { const F = j(221); return F.operator = v, F.operand = i().parenthesizeOperandOfPrefixUnary(w), F.transformFlags |= mr(F.operand), (v === 45 || v === 46) && Ve(F.operand) && !El(F.operand) && !Pv(F.operand) && (F.transformFlags |= 268435456), F; } function cf(v, w) { return v.operand !== w ? r(y_(v.operator, w), v) : v; } function J_(v, w) { const F = j(222); return F.operator = w, F.operand = i().parenthesizeOperandOfPostfixUnary(v), F.transformFlags |= mr(F.operand), Ve(F.operand) && !El(F.operand) && !Pv(F.operand) && (F.transformFlags |= 268435456), F; } function Tp(v, w) { return v.operand !== w ? r(J_(w, v.operator), v) : v; } function G(v, w, F) { const oe = te(223), ze = Hw(w), qt = ze.kind; return oe.left = i().parenthesizeLeftSideOfBinary(qt, v), oe.operatorToken = ze, oe.right = i().parenthesizeRightSideOfBinary(qt, oe.left, F), oe.transformFlags |= mr(oe.left) | mr(oe.operatorToken) | mr(oe.right), qt === 60 ? oe.transformFlags |= 32 : qt === 63 ? As(oe.left) ? oe.transformFlags |= 5248 | Ze(oe.left) : Ru(oe.left) && (oe.transformFlags |= 5120 | Ze(oe.left)) : qt === 42 || qt === 67 ? oe.transformFlags |= 512 : jI(qt) && (oe.transformFlags |= 16), qt === 101 && ki(oe.left) && (oe.transformFlags |= 536870912), oe.jsDoc = void 0, oe; } function Ze(v) { return PO(v) ? 65536 : 0; } function zt(v, w, F, oe) { return v.left !== w || v.operatorToken !== F || v.right !== oe ? r(G(w, F, oe), v) : v; } function Yn(v, w, F, oe, ze) { const qt = j(224); return qt.condition = i().parenthesizeConditionOfConditionalExpression(v), qt.questionToken = w ?? Me(57), qt.whenTrue = i().parenthesizeBranchOfConditionalExpression(F), qt.colonToken = oe ?? Me(58), qt.whenFalse = i().parenthesizeBranchOfConditionalExpression(ze), qt.transformFlags |= mr(qt.condition) | mr(qt.questionToken) | mr(qt.whenTrue) | mr(qt.colonToken) | mr(qt.whenFalse), qt; } function ka(v, w, F, oe, ze, qt) { return v.condition !== w || v.questionToken !== F || v.whenTrue !== oe || v.colonToken !== ze || v.whenFalse !== qt ? r(Yn(w, F, oe, ze, qt), v) : v; } function Ca(v, w) { const F = j(225); return F.head = v, F.templateSpans = U(w), F.transformFlags |= mr(F.head) | Ro(F.templateSpans) | 1024, F; } function Ce(v, w, F) { return v.head !== w || v.templateSpans !== F ? r(Ca(w, F), v) : v; } function Be(v, w, F, oe = 0) { D.assert(!(oe & -2049), "Unsupported template flags."); let ze; if (F !== void 0 && F !== w && (ze = a6e(v, F), typeof ze == "object")) return D.fail("Invalid raw text"); if (w === void 0) { if (ze === void 0) return D.fail("Arguments 'text' and 'rawText' may not both be undefined."); w = ze; } else ze !== void 0 && D.assert(w === ze, "Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'."); return w; } function Lt(v) { let w = 1024; return v && (w |= 128), w; } function Ot(v, w, F, oe) { const ze = He(v); return ze.text = w, ze.rawText = F, ze.templateFlags = oe & 2048, ze.transformFlags = Lt(ze.templateFlags), ze; } function pn(v, w, F, oe) { const ze = te(v); return ze.text = w, ze.rawText = F, ze.templateFlags = oe & 2048, ze.transformFlags = Lt(ze.templateFlags), ze; } function vn(v, w, F, oe) { return v === 14 ? pn(v, w, F, oe) : Ot(v, w, F, oe); } function Tn(v, w, F) { return v = Be(15, v, w, F), vn(15, v, w, F); } function Wn(v, w, F) { return v = Be(15, v, w, F), vn(16, v, w, F); } function Hr(v, w, F) { return v = Be(15, v, w, F), vn(17, v, w, F); } function Hi(v, w, F) { return v = Be(15, v, w, F), pn(14, v, w, F); } function tr(v, w) { D.assert(!v || !!w, "A `YieldExpression` with an asteriskToken must have an expression."); const F = j(226); return F.expression = w && i().parenthesizeExpressionForDisallowedComma(w), F.asteriskToken = v, F.transformFlags |= mr(F.expression) | mr(F.asteriskToken) | 1024 | 128 | 1048576, F; } function fn(v, w, F) { return v.expression !== F || v.asteriskToken !== w ? r(tr(w, F), v) : v; } function ur(v) { const w = j(227); return w.expression = i().parenthesizeExpressionForDisallowedComma(v), w.transformFlags |= mr(w.expression) | 1024 | 32768, w; } function Ta(v, w) { return v.expression !== w ? r(ur(w), v) : v; } function Ks(v, w, F, oe, ze) { const qt = te(228); return qt.modifiers = Co(v), qt.name = vl(w), qt.typeParameters = Co(F), qt.heritageClauses = Co(oe), qt.members = U(ze), qt.transformFlags |= Ro(qt.modifiers) | hy(qt.name) | Ro(qt.typeParameters) | Ro(qt.heritageClauses) | Ro(qt.members) | (qt.typeParameters ? 1 : 0) | 1024, qt.jsDoc = void 0, qt; } function ic(v, w, F, oe, ze, qt) { return v.modifiers !== w || v.name !== F || v.typeParameters !== oe || v.heritageClauses !== ze || v.members !== qt ? r(Ks(w, F, oe, ze, qt), v) : v; } function zm() { return j(229); } function yg(v, w) { const F = j(230); return F.expression = i().parenthesizeLeftSideOfAccess(v, !1), F.typeArguments = w && i().parenthesizeTypeArguments(w), F.transformFlags |= mr(F.expression) | Ro(F.typeArguments) | 1024, F; } function K_(v, w, F) { return v.expression !== w || v.typeArguments !== F ? r(yg(w, F), v) : v; } function ob(v, w) { const F = j(231); return F.expression = v, F.type = w, F.transformFlags |= mr(F.expression) | mr(F.type) | 1, F; } function Jv(v, w, F) { return v.expression !== w || v.type !== F ? r(ob(w, F), v) : v; } function i2(v) { const w = j(232); return w.expression = i().parenthesizeLeftSideOfAccess(v, !1), w.transformFlags |= mr(w.expression) | 1, w; } function QT(v, w) { return mM(v) ? Kv(v, w) : v.expression !== w ? r(i2(w), v) : v; } function a2(v, w) { const F = j(235); return F.expression = v, F.type = w, F.transformFlags |= mr(F.expression) | mr(F.type) | 1, F; } function vg(v, w, F) { return v.expression !== w || v.type !== F ? r(a2(w, F), v) : v; } function X_(v) { const w = j(232); return w.flags |= 32, w.expression = i().parenthesizeLeftSideOfAccess(v, !0), w.transformFlags |= mr(w.expression) | 1, w; } function Kv(v, w) { return D.assert(!!(v.flags & 32), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."), v.expression !== w ? r(X_(w), v) : v; } function kh(v, w) { const F = j(233); switch (F.keywordToken = v, F.name = w, F.transformFlags |= mr(F.name), v) { case 103: F.transformFlags |= 1024; break; case 100: F.transformFlags |= 4; break; default: return D.assertNever(v); } return F.flowNode = void 0, F; } function Sp(v, w) { return v.name !== w ? r(kh(v.keywordToken, w), v) : v; } function Xv(v, w) { const F = j(236); return F.expression = v, F.literal = w, F.transformFlags |= mr(F.expression) | mr(F.literal) | 1024, F; } function q1(v, w, F) { return v.expression !== w || v.literal !== F ? r(Xv(w, F), v) : v; } function sb() { const v = j(237); return v.transformFlags |= 1024, v; } function bg(v, w) { const F = j(238); return F.statements = U(v), F.multiLine = w, F.transformFlags |= Ro(F.statements), F.jsDoc = void 0, F.locals = void 0, F.nextContainer = void 0, F; } function ZT(v, w) { return v.statements !== w ? r(bg(w, v.multiLine), v) : v; } function J1(v, w) { const F = j(240); return F.modifiers = Co(v), F.declarationList = Ga(w) ? tm(w) : w, F.transformFlags |= Ro(F.modifiers) | mr(F.declarationList), Om(F.modifiers) & 2 && (F.transformFlags = 1), F.jsDoc = void 0, F.flowNode = void 0, F; } function K1(v, w, F) { return v.modifiers !== w || v.declarationList !== F ? r(J1(w, F), v) : v; } function X1() { const v = j(239); return v.jsDoc = void 0, v; } function Yv(v) { const w = j(241); return w.expression = i().parenthesizeExpressionOfExpressionStatement(v), w.transformFlags |= mr(w.expression), w.jsDoc = void 0, w.flowNode = void 0, w; } function o2(v, w) { return v.expression !== w ? r(Yv(w), v) : v; } function Y1(v, w, F) { const oe = j(242); return oe.expression = v, oe.thenStatement = wd(w), oe.elseStatement = wd(F), oe.transformFlags |= mr(oe.expression) | mr(oe.thenStatement) | mr(oe.elseStatement), oe.jsDoc = void 0, oe.flowNode = void 0, oe; } function $1(v, w, F, oe) { return v.expression !== w || v.thenStatement !== F || v.elseStatement !== oe ? r(Y1(w, F, oe), v) : v; } function $v(v, w) { const F = j(243); return F.statement = wd(v), F.expression = w, F.transformFlags |= mr(F.statement) | mr(F.expression), F.jsDoc = void 0, F.flowNode = void 0, F; } function lb(v, w, F) { return v.statement !== w || v.expression !== F ? r($v(w, F), v) : v; } function Qv(v, w) { const F = j(244); return F.expression = v, F.statement = wd(w), F.transformFlags |= mr(F.expression) | mr(F.statement), F.jsDoc = void 0, F.flowNode = void 0, F; } function eS(v, w, F) { return v.expression !== w || v.statement !== F ? r(Qv(w, F), v) : v; } function Eg(v, w, F, oe) { const ze = j(245); return ze.initializer = v, ze.condition = w, ze.incrementor = F, ze.statement = wd(oe), ze.transformFlags |= mr(ze.initializer) | mr(ze.condition) | mr(ze.incrementor) | mr(ze.statement), ze.jsDoc = void 0, ze.locals = void 0, ze.nextContainer = void 0, ze.flowNode = void 0, ze; } function Xo(v, w, F, oe, ze) { return v.initializer !== w || v.condition !== F || v.incrementor !== oe || v.statement !== ze ? r(Eg(w, F, oe, ze), v) : v; } function Q1(v, w, F) { const oe = j(246); return oe.initializer = v, oe.expression = w, oe.statement = wd(F), oe.transformFlags |= mr(oe.initializer) | mr(oe.expression) | mr(oe.statement), oe.jsDoc = void 0, oe.locals = void 0, oe.nextContainer = void 0, oe.flowNode = void 0, oe; } function tL(v, w, F, oe) { return v.initializer !== w || v.expression !== F || v.statement !== oe ? r(Q1(w, F, oe), v) : v; } function Dy(v, w, F, oe) { const ze = j(247); return ze.awaitModifier = v, ze.initializer = w, ze.expression = i().parenthesizeExpressionForDisallowedComma(F), ze.statement = wd(oe), ze.transformFlags |= mr(ze.awaitModifier) | mr(ze.initializer) | mr(ze.expression) | mr(ze.statement) | 1024, v && (ze.transformFlags |= 128), ze.jsDoc = void 0, ze.locals = void 0, ze.nextContainer = void 0, ze.flowNode = void 0, ze; } function Tg(v, w, F, oe, ze) { return v.awaitModifier !== w || v.initializer !== F || v.expression !== oe || v.statement !== ze ? r(Dy(w, F, oe, ze), v) : v; } function qm(v) { const w = j(248); return w.label = vl(v), w.transformFlags |= mr(w.label) | 4194304, w.jsDoc = void 0, w.flowNode = void 0, w; } function Y_(v, w) { return v.label !== w ? r(qm(w), v) : v; } function xd(v) { const w = j(249); return w.label = vl(v), w.transformFlags |= mr(w.label) | 4194304, w.jsDoc = void 0, w.flowNode = void 0, w; } function Ad(v, w) { return v.label !== w ? r(xd(w), v) : v; } function Cd(v) { const w = j(250); return w.expression = v, w.transformFlags |= mr(w.expression) | 128 | 4194304, w.jsDoc = void 0, w.flowNode = void 0, w; } function cb(v, w) { return v.expression !== w ? r(Cd(w), v) : v; } function ub(v, w) { const F = j(251); return F.expression = v, F.statement = wd(w), F.transformFlags |= mr(F.expression) | mr(F.statement), F.jsDoc = void 0, F.flowNode = void 0, F; } function s2(v, w, F) { return v.expression !== w || v.statement !== F ? r(ub(w, F), v) : v; } function db(v, w) { const F = j(252); return F.expression = i().parenthesizeExpressionForDisallowedComma(v), F.caseBlock = w, F.transformFlags |= mr(F.expression) | mr(F.caseBlock), F.jsDoc = void 0, F.flowNode = void 0, F.possiblyExhaustive = !1, F; } function Sg(v, w, F) { return v.expression !== w || v.caseBlock !== F ? r(db(w, F), v) : v; } function fb(v, w) { const F = j(253); return F.label = vl(v), F.statement = wd(w), F.transformFlags |= mr(F.label) | mr(F.statement), F.jsDoc = void 0, F.flowNode = void 0, F; } function tS(v, w, F) { return v.label !== w || v.statement !== F ? r(fb(w, F), v) : v; } function _b(v) { const w = j(254); return w.expression = v, w.transformFlags |= mr(w.expression), w.jsDoc = void 0, w.flowNode = void 0, w; } function nL(v, w) { return v.expression !== w ? r(_b(w), v) : v; } function l2(v, w, F) { const oe = j(255); return oe.tryBlock = v, oe.catchClause = w, oe.finallyBlock = F, oe.transformFlags |= mr(oe.tryBlock) | mr(oe.catchClause) | mr(oe.finallyBlock), oe.jsDoc = void 0, oe.flowNode = void 0, oe; } function Zv(v, w, F, oe) { return v.tryBlock !== w || v.catchClause !== F || v.finallyBlock !== oe ? r(l2(w, F, oe), v) : v; } function Z1() { const v = j(256); return v.jsDoc = void 0, v.flowNode = void 0, v; } function qe(v, w, F, oe) { var ze; const qt = te(257); return qt.name = vl(v), qt.exclamationToken = w, qt.type = F, qt.initializer = Xy(oe), qt.transformFlags |= hy(qt.name) | mr(qt.initializer) | (((ze = qt.exclamationToken) != null ? ze : qt.type) ? 1 : 0), qt.jsDoc = void 0, qt; } function Ry(v, w, F, oe, ze) { return v.name !== w || v.type !== oe || v.exclamationToken !== F || v.initializer !== ze ? r(qe(w, F, oe, ze), v) : v; } function tm(v, w = 0) { const F = j(258); return F.flags |= w & 3, F.declarations = U(v), F.transformFlags |= Ro(F.declarations) | 4194304, w & 3 && (F.transformFlags |= 263168), F; } function e0(v, w) { return v.declarations !== w ? r(tm(w, v.flags), v) : v; } function pb(v, w, F, oe, ze, qt, Fr) { const Qi = te(259); if (Qi.modifiers = Co(v), Qi.asteriskToken = w, Qi.name = vl(F), Qi.typeParameters = Co(oe), Qi.parameters = U(ze), Qi.type = qt, Qi.body = Fr, !Qi.body || Om(Qi.modifiers) & 2) Qi.transformFlags = 1; else { const Xa = Om(Qi.modifiers) & 512, _f = !!Qi.asteriskToken, Bg = Xa && _f; Qi.transformFlags = Ro(Qi.modifiers) | mr(Qi.asteriskToken) | hy(Qi.name) | Ro(Qi.typeParameters) | Ro(Qi.parameters) | mr(Qi.type) | mr(Qi.body) & -67108865 | (Bg ? 128 : Xa ? 256 : _f ? 2048 : 0) | (Qi.typeParameters || Qi.type ? 1 : 0) | 4194304; } return Qi.typeArguments = void 0, Qi.jsDoc = void 0, Qi.locals = void 0, Qi.nextContainer = void 0, Qi.endFlowNode = void 0, Qi.returnFlowNode = void 0, Qi; } function t0(v, w, F, oe, ze, qt, Fr, Qi) { return v.modifiers !== w || v.asteriskToken !== F || v.name !== oe || v.typeParameters !== ze || v.parameters !== qt || v.type !== Fr || v.body !== Qi ? xg(pb(w, F, oe, ze, qt, Fr, Qi), v) : v; } function xg(v, w) { return v !== w && v.modifiers === w.modifiers && (v.modifiers = w.modifiers), X(v, w); } function nS(v, w, F, oe, ze) { const qt = te(260); return qt.modifiers = Co(v), qt.name = vl(w), qt.typeParameters = Co(F), qt.heritageClauses = Co(oe), qt.members = U(ze), Om(qt.modifiers) & 2 ? qt.transformFlags = 1 : (qt.transformFlags |= Ro(qt.modifiers) | hy(qt.name) | Ro(qt.typeParameters) | Ro(qt.heritageClauses) | Ro(qt.members) | (qt.typeParameters ? 1 : 0) | 1024, qt.transformFlags & 8192 && (qt.transformFlags |= 1)), qt.jsDoc = void 0, qt; } function Qo(v, w, F, oe, ze, qt) { return v.modifiers !== w || v.name !== F || v.typeParameters !== oe || v.heritageClauses !== ze || v.members !== qt ? r(nS(w, F, oe, ze, qt), v) : v; } function $_(v, w, F, oe, ze) { const qt = te(261); return qt.modifiers = Co(v), qt.name = vl(w), qt.typeParameters = Co(F), qt.heritageClauses = Co(oe), qt.members = U(ze), qt.transformFlags = 1, qt.jsDoc = void 0, qt; } function eE(v, w, F, oe, ze, qt) { return v.modifiers !== w || v.name !== F || v.typeParameters !== oe || v.heritageClauses !== ze || v.members !== qt ? r($_(w, F, oe, ze, qt), v) : v; } function mc(v, w, F, oe) { const ze = te(262); return ze.modifiers = Co(v), ze.name = vl(w), ze.typeParameters = Co(F), ze.type = oe, ze.transformFlags = 1, ze.jsDoc = void 0, ze.locals = void 0, ze.nextContainer = void 0, ze; } function wh(v, w, F, oe, ze) { return v.modifiers !== w || v.name !== F || v.typeParameters !== oe || v.type !== ze ? r(mc(w, F, oe, ze), v) : v; } function mb(v, w, F) { const oe = te(263); return oe.modifiers = Co(v), oe.name = vl(w), oe.members = U(F), oe.transformFlags |= Ro(oe.modifiers) | mr(oe.name) | Ro(oe.members) | 1, oe.transformFlags &= -67108865, oe.jsDoc = void 0, oe; } function Q_(v, w, F, oe) { return v.modifiers !== w || v.name !== F || v.members !== oe ? r(mb(w, F, oe), v) : v; } function hb(v, w, F, oe = 0) { const ze = te(264); return ze.modifiers = Co(v), ze.flags |= oe & 1044, ze.name = w, ze.body = F, Om(ze.modifiers) & 2 ? ze.transformFlags = 1 : ze.transformFlags |= Ro(ze.modifiers) | mr(ze.name) | mr(ze.body) | 1, ze.transformFlags &= -67108865, ze.jsDoc = void 0, ze.locals = void 0, ze.nextContainer = void 0, ze; } function ru(v, w, F, oe) { return v.modifiers !== w || v.name !== F || v.body !== oe ? r(hb(w, F, oe, v.flags), v) : v; } function Ag(v) { const w = j(265); return w.statements = U(v), w.transformFlags |= Ro(w.statements), w.jsDoc = void 0, w; } function Dc(v, w) { return v.statements !== w ? r(Ag(w), v) : v; } function rS(v) { const w = j(266); return w.clauses = U(v), w.transformFlags |= Ro(w.clauses), w.locals = void 0, w.nextContainer = void 0, w; } function rL(v, w) { return v.clauses !== w ? r(rS(w), v) : v; } function Ui(v) { const w = te(267); return w.name = vl(v), w.transformFlags |= dk(w.name) | 1, w.modifiers = void 0, w.jsDoc = void 0, w; } function Wr(v, w) { return v.name !== w ? Jm(Ui(w), v) : v; } function Jm(v, w) { return v !== w && (v.modifiers = w.modifiers), r(v, w); } function Hd(v, w, F, oe) { const ze = te(268); return ze.modifiers = Co(v), ze.name = vl(F), ze.isTypeOnly = w, ze.moduleReference = oe, ze.transformFlags |= Ro(ze.modifiers) | dk(ze.name) | mr(ze.moduleReference), Um(ze.moduleReference) || (ze.transformFlags |= 1), ze.transformFlags &= -67108865, ze.jsDoc = void 0, ze; } function tE(v, w, F, oe, ze) { return v.modifiers !== w || v.isTypeOnly !== F || v.name !== oe || v.moduleReference !== ze ? r(Hd(w, F, oe, ze), v) : v; } function Cg(v, w, F, oe) { const ze = j(269); return ze.modifiers = Co(v), ze.importClause = w, ze.moduleSpecifier = F, ze.assertClause = oe, ze.transformFlags |= mr(ze.importClause) | mr(ze.moduleSpecifier), ze.transformFlags &= -67108865, ze.jsDoc = void 0, ze; } function Dh(v, w, F, oe, ze) { return v.modifiers !== w || v.importClause !== F || v.moduleSpecifier !== oe || v.assertClause !== ze ? r(Cg(w, F, oe, ze), v) : v; } function Km(v, w, F) { const oe = te(270); return oe.isTypeOnly = v, oe.name = w, oe.namedBindings = F, oe.transformFlags |= mr(oe.name) | mr(oe.namedBindings), v && (oe.transformFlags |= 1), oe.transformFlags &= -67108865, oe; } function dl(v, w, F, oe) { return v.isTypeOnly !== w || v.name !== F || v.namedBindings !== oe ? r(Km(w, F, oe), v) : v; } function gb(v, w) { const F = j(296); return F.elements = U(v), F.multiLine = w, F.transformFlags |= 4, F; } function iS(v, w, F) { return v.elements !== w || v.multiLine !== F ? r(gb(w, F), v) : v; } function yb(v, w) { const F = j(297); return F.name = v, F.value = w, F.transformFlags |= 4, F; } function aS(v, w, F) { return v.name !== w || v.value !== F ? r(yb(w, F), v) : v; } function $f(v, w) { const F = j(298); return F.assertClause = v, F.multiLine = w, F; } function c2(v, w, F) { return v.assertClause !== w || v.multiLine !== F ? r($f(w, F), v) : v; } function u2(v) { const w = te(271); return w.name = v, w.transformFlags |= mr(w.name), w.transformFlags &= -67108865, w; } function n0(v, w) { return v.name !== w ? r(u2(w), v) : v; } function oS(v) { const w = te(277); return w.name = v, w.transformFlags |= mr(w.name) | 4, w.transformFlags &= -67108865, w; } function sS(v, w) { return v.name !== w ? r(oS(w), v) : v; } function d2(v) { const w = j(272); return w.elements = U(v), w.transformFlags |= Ro(w.elements), w.transformFlags &= -67108865, w; } function vb(v, w) { return v.elements !== w ? r(d2(w), v) : v; } function lS(v, w, F) { const oe = te(273); return oe.isTypeOnly = v, oe.propertyName = w, oe.name = F, oe.transformFlags |= mr(oe.propertyName) | mr(oe.name), oe.transformFlags &= -67108865, oe; } function If(v, w, F, oe) { return v.isTypeOnly !== w || v.propertyName !== F || v.name !== oe ? r(lS(w, F, oe), v) : v; } function Lg(v, w, F) { const oe = te(274); return oe.modifiers = Co(v), oe.isExportEquals = w, oe.expression = w ? i().parenthesizeRightSideOfBinary(63, void 0, F) : i().parenthesizeExpressionOfExportDefault(F), oe.transformFlags |= Ro(oe.modifiers) | mr(oe.expression), oe.transformFlags &= -67108865, oe.jsDoc = void 0, oe; } function xp(v, w, F) { return v.modifiers !== w || v.expression !== F ? r(Lg(w, v.isExportEquals, F), v) : v; } function Z_(v, w, F, oe, ze) { const qt = te(275); return qt.modifiers = Co(v), qt.isTypeOnly = w, qt.exportClause = F, qt.moduleSpecifier = oe, qt.assertClause = ze, qt.transformFlags |= Ro(qt.modifiers) | mr(qt.exportClause) | mr(qt.moduleSpecifier), qt.transformFlags &= -67108865, qt.jsDoc = void 0, qt; } function f2(v, w, F, oe, ze, qt) { return v.modifiers !== w || v.isTypeOnly !== F || v.exportClause !== oe || v.moduleSpecifier !== ze || v.assertClause !== qt ? bb(Z_(w, F, oe, ze, qt), v) : v; } function bb(v, w) { return v !== w && v.modifiers === w.modifiers && (v.modifiers = w.modifiers), r(v, w); } function nm(v) { const w = j(276); return w.elements = U(v), w.transformFlags |= Ro(w.elements), w.transformFlags &= -67108865, w; } function cS(v, w) { return v.elements !== w ? r(nm(w), v) : v; } function ud(v, w, F) { const oe = j(278); return oe.isTypeOnly = v, oe.propertyName = vl(w), oe.name = vl(F), oe.transformFlags |= mr(oe.propertyName) | mr(oe.name), oe.transformFlags &= -67108865, oe.jsDoc = void 0, oe; } function Ig(v, w, F, oe) { return v.isTypeOnly !== w || v.propertyName !== F || v.name !== oe ? r(ud(w, F, oe), v) : v; } function rm() { const v = te(279); return v.jsDoc = void 0, v; } function im(v) { const w = j(280); return w.expression = v, w.transformFlags |= mr(w.expression), w.transformFlags &= -67108865, w; } function kg(v, w) { return v.expression !== w ? r(im(w), v) : v; } function nE(v) { return j(v); } function uS(v, w, F = !1) { const oe = Ny(v, F ? w && i().parenthesizeNonArrayTypeOfPostfixType(w) : w); return oe.postfix = F, oe; } function Ny(v, w) { const F = j(v); return F.type = w, F; } function rE(v, w, F) { return w.type !== F ? r(uS(v, F, w.postfix), w) : w; } function ws(v, w, F) { return w.type !== F ? r(Ny(v, F), w) : w; } function Oy(v, w) { const F = te(320); return F.parameters = Co(v), F.type = w, F.transformFlags = Ro(F.parameters) | (F.type ? 1 : 0), F.jsDoc = void 0, F.locals = void 0, F.nextContainer = void 0, F.typeArguments = void 0, F; } function _2(v, w, F) { return v.parameters !== w || v.type !== F ? r(Oy(w, F), v) : v; } function Eb(v, w = !1) { const F = te(325); return F.jsDocPropertyTags = Co(v), F.isArrayType = w, F; } function Tb(v, w, F) { return v.jsDocPropertyTags !== w || v.isArrayType !== F ? r(Eb(w, F), v) : v; } function p2(v) { const w = j(312); return w.type = v, w; } function iL(v, w) { return v.type !== w ? r(p2(w), v) : v; } function m2(v, w, F) { const oe = te(326); return oe.typeParameters = Co(v), oe.parameters = U(w), oe.type = F, oe.jsDoc = void 0, oe.locals = void 0, oe.nextContainer = void 0, oe; } function _r(v, w, F, oe) { return v.typeParameters !== w || v.parameters !== F || v.type !== oe ? r(m2(w, F, oe), v) : v; } function kl(v) { const w = j3(v.kind); return v.tagName.escapedText === al(w) ? v.tagName : ye(w); } function ca(v, w, F) { const oe = j(v); return oe.tagName = w, oe.comment = F, oe; } function kf(v, w, F) { const oe = te(v); return oe.tagName = w, oe.comment = F, oe; } function r0(v, w, F, oe) { const ze = ca(348, v ?? ye("template"), oe); return ze.constraint = w, ze.typeParameters = U(F), ze; } function Xm(v, w = kl(v), F, oe, ze) { return v.tagName !== w || v.constraint !== F || v.typeParameters !== oe || v.comment !== ze ? r(r0(w, F, oe, ze), v) : v; } function ir(v, w, F, oe) { const ze = kf(349, v ?? ye("typedef"), oe); return ze.typeExpression = w, ze.fullName = F, ze.name = SJ(F), ze.locals = void 0, ze.nextContainer = void 0, ze; } function h2(v, w = kl(v), F, oe, ze) { return v.tagName !== w || v.typeExpression !== F || v.fullName !== oe || v.comment !== ze ? r(ir(w, F, oe, ze), v) : v; } function Py(v, w, F, oe, ze, qt) { const Fr = kf(344, v ?? ye("param"), qt); return Fr.typeExpression = oe, Fr.name = w, Fr.isNameFirst = !!ze, Fr.isBracketed = F, Fr; } function xc(v, w = kl(v), F, oe, ze, qt, Fr) { return v.tagName !== w || v.name !== F || v.isBracketed !== oe || v.typeExpression !== ze || v.isNameFirst !== qt || v.comment !== Fr ? r(Py(w, F, oe, ze, qt, Fr), v) : v; } function v_(v, w, F, oe, ze, qt) { const Fr = kf(351, v ?? ye("prop"), qt); return Fr.typeExpression = oe, Fr.name = w, Fr.isNameFirst = !!ze, Fr.isBracketed = F, Fr; } function Ap(v, w = kl(v), F, oe, ze, qt, Fr) { return v.tagName !== w || v.name !== F || v.isBracketed !== oe || v.typeExpression !== ze || v.isNameFirst !== qt || v.comment !== Fr ? r(v_(w, F, oe, ze, qt, Fr), v) : v; } function My(v, w, F, oe) { const ze = kf(341, v ?? ye("callback"), oe); return ze.typeExpression = w, ze.fullName = F, ze.name = SJ(F), ze.locals = void 0, ze.nextContainer = void 0, ze; } function iE(v, w = kl(v), F, oe, ze) { return v.tagName !== w || v.typeExpression !== F || v.fullName !== oe || v.comment !== ze ? r(My(w, F, oe, ze), v) : v; } function ep(v, w, F) { const oe = ca(342, v ?? ye("overload"), F); return oe.typeExpression = w, oe; } function Fy(v, w = kl(v), F, oe) { return v.tagName !== w || v.typeExpression !== F || v.comment !== oe ? r(ep(w, F, oe), v) : v; } function ql(v, w, F) { const oe = ca(331, v ?? ye("augments"), F); return oe.class = w, oe; } function Zl(v, w = kl(v), F, oe) { return v.tagName !== w || v.class !== F || v.comment !== oe ? r(ql(w, F, oe), v) : v; } function wg(v, w, F) { const oe = ca(332, v ?? ye("implements"), F); return oe.class = w, oe; } function iu(v, w, F) { const oe = ca(350, v ?? ye("see"), F); return oe.name = w, oe; } function b_(v, w, F, oe) { return v.tagName !== w || v.name !== F || v.comment !== oe ? r(iu(w, F, oe), v) : v; } function Ym(v) { const w = j(313); return w.name = v, w; } function Ld(v, w) { return v.name !== w ? r(Ym(w), v) : v; } function aE(v, w) { const F = j(314); return F.left = v, F.right = w, F.transformFlags |= mr(F.left) | mr(F.right), F; } function Sb(v, w, F) { return v.left !== w || v.right !== F ? r(aE(w, F), v) : v; } function xb(v, w) { const F = j(327); return F.name = v, F.text = w, F; } function Cp(v, w, F) { return v.name !== w ? r(xb(w, F), v) : v; } function Rh(v, w) { const F = j(328); return F.name = v, F.text = w, F; } function oE(v, w, F) { return v.name !== w ? r(Rh(w, F), v) : v; } function By(v, w) { const F = j(329); return F.name = v, F.text = w, F; } function wl(v, w, F) { return v.name !== w ? r(By(w, F), v) : v; } function Dg(v, w = kl(v), F, oe) { return v.tagName !== w || v.class !== F || v.comment !== oe ? r(wg(w, F, oe), v) : v; } function Nh(v, w, F) { return ca(v, w ?? ye(j3(v)), F); } function i0(v, w, F = kl(w), oe) { return w.tagName !== F || w.comment !== oe ? r(Nh(v, F, oe), w) : w; } function a0(v, w, F, oe) { const ze = ca(v, w ?? ye(j3(v)), oe); return ze.typeExpression = F, ze; } function au(v, w, F = kl(w), oe, ze) { return w.tagName !== F || w.typeExpression !== oe || w.comment !== ze ? r(a0(v, F, oe, ze), w) : w; } function Oh(v, w) { return ca(330, v, w); } function hc(v, w, F) { return v.tagName !== w || v.comment !== F ? r(Oh(w, F), v) : v; } function sE(v, w, F) { const oe = kf(343, v ?? ye(j3(343)), F); return oe.typeExpression = w, oe.locals = void 0, oe.nextContainer = void 0, oe; } function Ph(v, w = kl(v), F, oe) { return v.tagName !== w || v.typeExpression !== F || v.comment !== oe ? r(sE(w, F, oe), v) : v; } function Ab(v) { const w = j(324); return w.text = v, w; } function dd(v, w) { return v.text !== w ? r(Ab(w), v) : v; } function $m(v, w) { const F = j(323); return F.comment = v, F.tags = Co(w), F; } function Cb(v, w, F) { return v.comment !== w || v.tags !== F ? r($m(w, F), v) : v; } function o0(v, w, F) { const oe = j(281); return oe.openingElement = v, oe.children = U(w), oe.closingElement = F, oe.transformFlags |= mr(oe.openingElement) | Ro(oe.children) | mr(oe.closingElement) | 2, oe; } function lE(v, w, F, oe) { return v.openingElement !== w || v.children !== F || v.closingElement !== oe ? r(o0(w, F, oe), v) : v; } function Gy(v, w, F) { const oe = j(282); return oe.tagName = v, oe.typeArguments = Co(w), oe.attributes = F, oe.transformFlags |= mr(oe.tagName) | Ro(oe.typeArguments) | mr(oe.attributes) | 2, oe.typeArguments && (oe.transformFlags |= 1), oe; } function dS(v, w, F, oe) { return v.tagName !== w || v.typeArguments !== F || v.attributes !== oe ? r(Gy(w, F, oe), v) : v; } function s0(v, w, F) { const oe = j(283); return oe.tagName = v, oe.typeArguments = Co(w), oe.attributes = F, oe.transformFlags |= mr(oe.tagName) | Ro(oe.typeArguments) | mr(oe.attributes) | 2, w && (oe.transformFlags |= 1), oe; } function Rg(v, w, F, oe) { return v.tagName !== w || v.typeArguments !== F || v.attributes !== oe ? r(s0(w, F, oe), v) : v; } function wf(v) { const w = j(284); return w.tagName = v, w.transformFlags |= mr(w.tagName) | 2, w; } function cE(v, w) { return v.tagName !== w ? r(wf(w), v) : v; } function uf(v, w, F) { const oe = j(285); return oe.openingFragment = v, oe.children = U(w), oe.closingFragment = F, oe.transformFlags |= mr(oe.openingFragment) | Ro(oe.children) | mr(oe.closingFragment) | 2, oe; } function Mh(v, w, F, oe) { return v.openingFragment !== w || v.children !== F || v.closingFragment !== oe ? r(uf(w, F, oe), v) : v; } function l0(v, w) { const F = j(11); return F.text = v, F.containsOnlyTriviaWhiteSpaces = !!w, F.transformFlags |= 2, F; } function g2(v, w, F) { return v.text !== w || v.containsOnlyTriviaWhiteSpaces !== F ? r(l0(w, F), v) : v; } function ns() { const v = j(286); return v.transformFlags |= 2, v; } function Lr() { const v = j(287); return v.transformFlags |= 2, v; } function Wd(v, w) { const F = te(288); return F.name = v, F.initializer = w, F.transformFlags |= mr(F.name) | mr(F.initializer) | 2, F; } function fd(v, w, F) { return v.name !== w || v.initializer !== F ? r(Wd(w, F), v) : v; } function fS(v) { const w = te(289); return w.properties = U(v), w.transformFlags |= Ro(w.properties) | 2, w; } function uE(v, w) { return v.properties !== w ? r(fS(w), v) : v; } function Uy(v) { const w = j(290); return w.expression = v, w.transformFlags |= mr(w.expression) | 2, w; } function y2(v, w) { return v.expression !== w ? r(Uy(w), v) : v; } function Vy(v, w) { const F = j(291); return F.dotDotDotToken = v, F.expression = w, F.transformFlags |= mr(F.dotDotDotToken) | mr(F.expression) | 2, F; } function am(v, w) { return v.expression !== w ? r(Vy(v.dotDotDotToken, w), v) : v; } function Lp(v, w) { const F = j(292); return F.expression = i().parenthesizeExpressionForDisallowedComma(v), F.statements = U(w), F.transformFlags |= mr(F.expression) | Ro(F.statements), F.jsDoc = void 0, F; } function Ng(v, w, F) { return v.expression !== w || v.statements !== F ? r(Lp(w, F), v) : v; } function c0(v) { const w = j(293); return w.statements = U(v), w.transformFlags = Ro(w.statements), w; } function Fh(v, w) { return v.statements !== w ? r(c0(w), v) : v; } function om(v, w) { const F = j(294); switch (F.token = v, F.types = U(w), F.transformFlags |= Ro(F.types), v) { case 94: F.transformFlags |= 1024; break; case 117: F.transformFlags |= 1; break; default: return D.assertNever(v); } return F; } function _S(v, w) { return v.types !== w ? r(om(v.token, w), v) : v; } function Jl(v, w) { const F = j(295); return F.variableDeclaration = Ww(v), F.block = w, F.transformFlags |= mr(F.variableDeclaration) | mr(F.block) | (v ? 0 : 64), F.locals = void 0, F.nextContainer = void 0, F; } function df(v, w, F) { return v.variableDeclaration !== w || v.block !== F ? r(Jl(w, F), v) : v; } function Qm(v, w) { const F = te(299); return F.name = vl(v), F.initializer = i().parenthesizeExpressionForDisallowedComma(w), F.transformFlags |= hy(F.name) | mr(F.initializer), F.modifiers = void 0, F.questionToken = void 0, F.exclamationToken = void 0, F.jsDoc = void 0, F; } function Id(v, w, F) { return v.name !== w || v.initializer !== F ? dE(Qm(w, F), v) : v; } function dE(v, w) { return v !== w && (v.modifiers = w.modifiers, v.questionToken = w.questionToken, v.exclamationToken = w.exclamationToken), r(v, w); } function jy(v, w) { const F = te(300); return F.name = vl(v), F.objectAssignmentInitializer = w && i().parenthesizeExpressionForDisallowedComma(w), F.transformFlags |= dk(F.name) | mr(F.objectAssignmentInitializer) | 1024, F.equalsToken = void 0, F.modifiers = void 0, F.questionToken = void 0, F.exclamationToken = void 0, F.jsDoc = void 0, F; } function Og(v, w, F) { return v.name !== w || v.objectAssignmentInitializer !== F ? v2(jy(w, F), v) : v; } function v2(v, w) { return v !== w && (v.modifiers = w.modifiers, v.questionToken = w.questionToken, v.exclamationToken = w.exclamationToken, v.equalsToken = w.equalsToken), r(v, w); } function Df(v) { const w = te(301); return w.expression = i().parenthesizeExpressionForDisallowedComma(v), w.transformFlags |= mr(w.expression) | 128 | 65536, w.jsDoc = void 0, w; } function Ds(v, w) { return v.expression !== w ? r(Df(w), v) : v; } function fE(v, w) { const F = te(302); return F.name = vl(v), F.initializer = w && i().parenthesizeExpressionForDisallowedComma(w), F.transformFlags |= mr(F.name) | mr(F.initializer) | 1, F.jsDoc = void 0, F; } function _E(v, w, F) { return v.name !== w || v.initializer !== F ? r(fE(w, F), v) : v; } function Pg(v, w, F) { const oe = t.createBaseSourceFileNode(308); return oe.statements = U(v), oe.endOfFileToken = w, oe.flags |= F, oe.text = "", oe.fileName = "", oe.path = "", oe.resolvedPath = "", oe.originalFileName = "", oe.languageVersion = 0, oe.languageVariant = 0, oe.scriptKind = 0, oe.isDeclarationFile = !1, oe.hasNoDefaultLib = !1, oe.transformFlags |= Ro(oe.statements) | mr(oe.endOfFileToken), oe.locals = void 0, oe.nextContainer = void 0, oe.endFlowNode = void 0, oe.nodeCount = 0, oe.identifierCount = 0, oe.symbolCount = 0, oe.parseDiagnostics = void 0, oe.bindDiagnostics = void 0, oe.bindSuggestionDiagnostics = void 0, oe.lineMap = void 0, oe.externalModuleIndicator = void 0, oe.setExternalModuleIndicator = void 0, oe.pragmas = void 0, oe.checkJsDirective = void 0, oe.referencedFiles = void 0, oe.typeReferenceDirectives = void 0, oe.libReferenceDirectives = void 0, oe.amdDependencies = void 0, oe.commentDirectives = void 0, oe.identifiers = void 0, oe.packageJsonLocations = void 0, oe.packageJsonScope = void 0, oe.imports = void 0, oe.moduleAugmentations = void 0, oe.ambientModuleNames = void 0, oe.resolvedModules = void 0, oe.classifiableNames = void 0, oe.impliedNodeFormat = void 0, oe; } function u0(v) { const w = Object.create(v.redirectTarget); return Object.defineProperties(w, { id: { get() { return this.redirectInfo.redirectTarget.id; }, set(F) { this.redirectInfo.redirectTarget.id = F; } }, symbol: { get() { return this.redirectInfo.redirectTarget.symbol; }, set(F) { this.redirectInfo.redirectTarget.symbol = F; } } }), w.redirectInfo = v, w; } function pS(v) { const w = u0(v.redirectInfo); return w.flags |= v.flags & -9, w.fileName = v.fileName, w.path = v.path, w.resolvedPath = v.resolvedPath, w.originalFileName = v.originalFileName, w.packageJsonLocations = v.packageJsonLocations, w.packageJsonScope = v.packageJsonScope, w.emitNode = void 0, w; } function pE(v) { const w = t.createBaseSourceFileNode(308); w.flags |= v.flags & -9; for (const F in v) if (!(Ns(w, F) || !Ns(v, F))) { if (F === "emitNode") { w.emitNode = void 0; continue; } w[F] = v[F]; } return w; } function mE(v) { const w = v.redirectInfo ? pS(v) : pE(v); return Vr(w, v), w; } function hE(v, w, F, oe, ze, qt, Fr) { const Qi = mE(v); return Qi.statements = U(w), Qi.isDeclarationFile = F, Qi.referencedFiles = oe, Qi.typeReferenceDirectives = ze, Qi.hasNoDefaultLib = qt, Qi.libReferenceDirectives = Fr, Qi.transformFlags = Ro(Qi.statements) | mr(Qi.endOfFileToken), Qi; } function gE(v, w, F = v.isDeclarationFile, oe = v.referencedFiles, ze = v.typeReferenceDirectives, qt = v.hasNoDefaultLib, Fr = v.libReferenceDirectives) { return v.statements !== w || v.isDeclarationFile !== F || v.referencedFiles !== oe || v.typeReferenceDirectives !== ze || v.hasNoDefaultLib !== qt || v.libReferenceDirectives !== Fr ? r(hE(v, w, F, oe, ze, qt, Fr), v) : v; } function yE(v, w = nt) { const F = j(309); return F.prepends = w, F.sourceFiles = v, F.syntheticFileReferences = void 0, F.syntheticTypeReferences = void 0, F.syntheticLibReferences = void 0, F.hasNoDefaultLib = void 0, F; } function Hy(v, w, F = nt) { return v.sourceFiles !== w || v.prepends !== F ? r(yE(w, F), v) : v; } function zd(v, w, F) { const oe = j(310); return oe.prologues = v, oe.syntheticReferences = w, oe.texts = F, oe.fileName = "", oe.text = "", oe.referencedFiles = nt, oe.libReferenceDirectives = nt, oe.getLineAndCharacterOfPosition = (ze) => il(oe, ze), oe; } function Bh(v, w) { const F = j(v); return F.data = w, F; } function aL(v) { return Bh(303, v); } function Mg(v, w) { const F = Bh(304, v); return F.texts = w, F; } function b2(v, w) { return Bh(w ? 306 : 305, v); } function E2(v) { const w = j(307); return w.data = v.data, w.section = v, w; } function S() { const v = j(311); return v.javascriptText = "", v.declarationText = "", v; } function se(v, w = !1, F) { const oe = j(234); return oe.type = v, oe.isSpread = w, oe.tupleNameSource = F, oe; } function Le(v) { const w = j(354); return w._children = v, w; } function tn(v) { const w = j(355); return w.original = v, mt(w, v), w; } function Ar(v, w) { const F = j(356); return F.expression = v, F.original = w, F.transformFlags |= mr(F.expression) | 1, mt(F, w), F; } function vi(v, w) { return v.expression !== w ? r(Ar(w, v.original), v) : v; } function oi(v) { if ($s(v) && !uI(v) && !v.original && !v.emitNode && !v.id) { if (Tk(v)) return v.elements; if (vr(v) && mfe(v.operatorToken)) return [v.left, v.right]; } return v; } function Fi(v) { const w = j(357); return w.elements = U(aA(v, oi)), w.transformFlags |= Ro(w.elements), w; } function co(v, w) { return v.elements !== w ? r(Fi(w), v) : v; } function Yc(v) { const w = j(359); return w.emitNode = {}, w.original = v, w; } function qd(v) { const w = j(358); return w.emitNode = {}, w.original = v, w; } function ff(v, w) { const F = j(360); return F.expression = v, F.thisArg = w, F.transformFlags |= mr(F.expression) | mr(F.thisArg), F; } function Wy(v, w, F) { return v.expression !== w || v.thisArg !== F ? r(ff(w, F), v) : v; } function Jd(v) { const w = le(v.escapedText); return w.flags |= v.flags & -9, w.transformFlags = v.transformFlags, Vr(w, v), fO(w, { ...v.emitNode.autoGenerate }), w; } function d0(v) { const w = le(v.escapedText); w.flags |= v.flags & -9, w.jsDoc = v.jsDoc, w.flowNode = v.flowNode, w.symbol = v.symbol, w.transformFlags = v.transformFlags, Vr(w, v); const F = vT(v); return F && yy(w, F), w; } function f0(v) { const w = Fe(v.escapedText); return w.flags |= v.flags & -9, w.transformFlags = v.transformFlags, Vr(w, v), fO(w, { ...v.emitNode.autoGenerate }), w; } function zy(v) { const w = Fe(v.escapedText); return w.flags |= v.flags & -9, w.transformFlags = v.transformFlags, Vr(w, v), w; } function E_(v) { if (v === void 0) return v; if (ji(v)) return mE(v); if (El(v)) return Jd(v); if (Ve(v)) return d0(v); if (jS(v)) return f0(v); if (ki(v)) return zy(v); const w = PR(v.kind) ? t.createBaseNode(v.kind) : t.createBaseTokenNode(v.kind); w.flags |= v.flags & -9, w.transformFlags = v.transformFlags, Vr(w, v); for (const F in v) Ns(w, F) || !Ns(v, F) || (w[F] = v[F]); return w; } function vE(v, w, F) { return Nn(Ua(void 0, void 0, void 0, void 0, w ? [w] : [], void 0, bg(v, !0)), void 0, F ? [F] : []); } function Rf(v, w, F) { return Nn(bs(void 0, void 0, w ? [w] : [], void 0, void 0, bg(v, !0)), void 0, F ? [F] : []); } function Zm() { return vu(Y("0")); } function qy(v) { return Lg(void 0, !1, v); } function Qf(v) { return Z_(void 0, !1, nm([ ud(!1, void 0, v) ])); } function bE(v, w) { return w === "undefined" ? B.createStrictEquality(v, Zm()) : B.createStrictEquality(Ql(v), ne(w)); } function _0(v, w, F) { return YE(v) ? xo(vs(v, void 0, w), void 0, void 0, F) : Nn(lc(v, w), void 0, F); } function cc(v, w, F) { return _0(v, "bind", [w, ...F]); } function t4(v, w, F) { return _0(v, "call", [w, ...F]); } function Es(v, w, F) { return _0(v, "apply", [w, F]); } function Zo(v, w, F) { return _0(ye(v), w, F); } function T2(v, w) { return _0(v, "slice", w === void 0 ? [] : [m0(w)]); } function S2(v, w) { return _0(v, "concat", w); } function z(v, w, F) { return Zo("Object", "defineProperty", [v, m0(w), F]); } function be(v, w) { return Zo("Object", "getOwnPropertyDescriptor", [v, m0(w)]); } function Xe(v, w, F) { return Zo("Reflect", "get", F ? [v, w, F] : [v, w]); } function Et(v, w, F, oe) { return Zo("Reflect", "set", oe ? [v, w, F, oe] : [v, w, F]); } function Gt(v, w, F) { return F ? (v.push(Qm(w, F)), !0) : !1; } function Cn(v, w) { const F = []; Gt(F, "enumerable", m0(v.enumerable)), Gt(F, "configurable", m0(v.configurable)); let oe = Gt(F, "writable", m0(v.writable)); oe = Gt(F, "value", v.value) || oe; let ze = Gt(F, "get", v.get); return ze = Gt(F, "set", v.set) || ze, D.assert(!(oe && ze), "A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."), Uo(F, !w); } function Mr(v, w) { switch (v.kind) { case 214: return Ri(v, w); case 213: return wr(v, v.type, w); case 231: return Jv(v, w, v.type); case 235: return vg(v, w, v.type); case 232: return QT(v, w); case 356: return vi(v, w); } } function pi(v) { return Pd(v) && $s(v) && $s(K0(v)) && $s(Fm(v)) && !kt(rC(v)) && !kt(dO(v)); } function bi(v, w, F = 15) { return v && O7(v, F) && !pi(v) ? Mr(v, bi(v.expression, w)) : w; } function Ai(v, w, F) { if (!w) return v; const oe = tS(w, w.label, k1(w.statement) ? Ai(v, w.statement) : v); return F && F(w), oe; } function Pa(v, w) { const F = Us(v); switch (F.kind) { case 79: return w; case 108: case 8: case 9: case 10: return !1; case 206: return F.elements.length !== 0; case 207: return F.properties.length > 0; default: return !0; } } function Cs(v, w, F, oe = !1) { const ze = pu(v, 15); let qt, Fr; return ad(ze) ? (qt = At(), Fr = ze) : mk(ze) ? (qt = At(), Fr = F !== void 0 && F < 2 ? mt(ye("_super"), ze) : ze) : ho(ze) & 8192 ? (qt = Zm(), Fr = i().parenthesizeLeftSideOfAccess(ze, !1)) : Pr(ze) ? Pa(ze.expression, oe) ? (qt = Te(w), Fr = lc(mt(B.createAssignment(qt, ze.expression), ze.expression), ze.name), mt(Fr, ze)) : (qt = ze.expression, Fr = ze) : sl(ze) ? Pa(ze.expression, oe) ? (qt = Te(w), Fr = Vd(mt(B.createAssignment(qt, ze.expression), ze.expression), ze.argumentExpression), mt(Fr, ze)) : (qt = ze.expression, Fr = ze) : (qt = Zm(), Fr = i().parenthesizeLeftSideOfAccess(v, !1)), { target: Fr, thisArg: qt }; } function Ao(v, w) { return lc(Zr(Uo([ re(void 0, "value", [xi(void 0, void 0, v, void 0, void 0, void 0)], bg([ Yv(w) ])) ])), "value"); } function es(v) { return v.length > 10 ? Fi(v) : Cu(v, B.createComma); } function kd(v, w, F, oe = 0) { const ze = La(v); if (ze && Ve(ze) && !El(ze)) { const qt = Bo(mt(E_(ze), ze), ze.parent); return oe |= ho(ze), F || (oe |= 96), w || (oe |= 3072), oe && or(qt, oe), qt; } return Ge(v); } function Ip(v, w, F) { return kd(v, w, F, 98304); } function sm(v, w, F) { return kd(v, w, F, 32768); } function Fg(v, w, F) { return kd(v, w, F, 16384); } function T_(v, w, F) { return kd(v, w, F); } function Jy(v, w, F, oe) { const ze = lc(v, $s(w) ? w : E_(w)); mt(ze, w); let qt = 0; return oe || (qt |= 96), F || (qt |= 3072), qt && or(ze, qt), ze; } function x2(v, w, F, oe) { return v && Jr(w, 1) ? Jy(v, kd(w), F, oe) : Fg(w, F, oe); } function EE(v, w, F, oe) { const ze = p0(v, w, 0, F); return sL(v, w, ze, oe); } function oL(v) { return Go(v.expression) && v.expression.text === "use strict"; } function tp() { return Pu(Yv(ne("use strict"))); } function p0(v, w, F = 0, oe) { D.assert(w.length === 0, "Prologue directives should be at the first statement in the target statements array"); let ze = !1; const qt = v.length; for (; F < qt; ) { const Fr = v[F]; if (dp(Fr)) oL(Fr) && (ze = !0), w.push(Fr); else break; F++; } return oe && !ze && w.push(tp()), F; } function sL(v, w, F, oe, ze = Zb) { const qt = v.length; for (; F !== void 0 && F < qt; ) { const Fr = v[F]; if (ho(Fr) & 2097152 && ze(Fr)) Fn(w, oe ? st(Fr, oe, Ia) : Fr); else break; F++; } return F; } function Nf(v) { return bJ(v) ? v : mt(U([tp(), ...v]), v); } function A2(v) { return D.assert(Vn(v, uce), "Cannot lift nodes to a Block."), bm(v) || bg(v); } function Ky(v, w, F) { let oe = F; for (; oe < v.length && w(v[oe]); ) oe++; return oe; } function Vw(v, w) { if (!kt(w)) return v; const F = Ky(v, dp, 0), oe = Ky(v, FM, F), ze = Ky(v, BM, oe), qt = Ky(w, dp, 0), Fr = Ky(w, FM, qt), Qi = Ky(w, BM, Fr), Xa = Ky(w, MM, Qi); D.assert(Xa === w.length, "Expected declarations to be valid standard or custom prologues"); const _f = c1(v) ? v.slice() : v; if (Xa > Qi && _f.splice(ze, 0, ...w.slice(Qi, Xa)), Qi > Fr && _f.splice(oe, 0, ...w.slice(Fr, Qi)), Fr > qt && _f.splice(F, 0, ...w.slice(qt, Fr)), qt > 0) if (F === 0) _f.splice(0, 0, ...w.slice(0, qt)); else { const Bg = /* @__PURE__ */ new Map(); for (let Gg = 0; Gg < F; Gg++) { const Ug = v[Gg]; Bg.set(Ug.expression.text, !0); } for (let Gg = qt - 1; Gg >= 0; Gg--) { const Ug = w[Gg]; Bg.has(Ug.expression.text) || _f.unshift(Ug); } } return c1(v) ? mt(U(_f, v.hasTrailingComma), v) : v; } function jw(v, w) { var F; let oe; return typeof w == "number" ? oe = nn(w) : oe = w, Ol(v) ? fr(v, oe, v.name, v.constraint, v.default) : Ma(v) ? Ji(v, oe, v.dotDotDotToken, v.name, v.questionToken, v.type, v.initializer) : gk(v) ? $n(v, oe, v.typeParameters, v.parameters, v.type) : Tf(v) ? gn(v, oe, v.name, v.questionToken, v.type) : Za(v) ? rr(v, oe, v.name, (F = v.questionToken) != null ? F : v.exclamationToken, v.type, v.initializer) : bh(v) ? Di(v, oe, v.name, v.questionToken, v.typeParameters, v.parameters, v.type) : nc(v) ? Rn(v, oe, v.asteriskToken, v.name, v.questionToken, v.typeParameters, v.parameters, v.type, v.body) : jl(v) ? gt(v, oe, v.parameters, v.body) : U_(v) ? _t(v, oe, v.name, v.parameters, v.type, v.body) : Kf(v) ? me(v, oe, v.name, v.parameters, v.body) : hx(v) ? Sn(v, oe, v.parameters, v.type) : Ms(v) ? Vo(v, oe, v.asteriskToken, v.name, v.typeParameters, v.parameters, v.type, v.body) : zs(v) ? Js(v, oe, v.typeParameters, v.parameters, v.type, v.equalsGreaterThanToken, v.body) : Nu(v) ? ic(v, oe, v.name, v.typeParameters, v.heritageClauses, v.members) : sc(v) ? K1(v, oe, v.declarationList) : pc(v) ? t0(v, oe, v.asteriskToken, v.name, v.typeParameters, v.parameters, v.type, v.body) : kc(v) ? Qo(v, oe, v.name, v.typeParameters, v.heritageClauses, v.members) : Yu(v) ? eE(v, oe, v.name, v.typeParameters, v.heritageClauses, v.members) : Xp(v) ? wh(v, oe, v.name, v.typeParameters, v.type) : Y0(v) ? Q_(v, oe, v.name, v.members) : Hl(v) ? ru(v, oe, v.name, v.body) : tu(v) ? tE(v, oe, v.isTypeOnly, v.name, v.moduleReference) : Gc(v) ? Dh(v, oe, v.importClause, v.moduleSpecifier, v.assertClause) : Pl(v) ? xp(v, oe, v.expression) : Kc(v) ? f2(v, oe, v.isTypeOnly, v.exportClause, v.moduleSpecifier, v.assertClause) : D.assertNever(v); } function Co(v) { return v ? U(v) : void 0; } function vl(v) { return typeof v == "string" ? ye(v) : v; } function m0(v) { return typeof v == "string" ? ne(v) : typeof v == "number" ? Y(v) : typeof v == "boolean" ? v ? Vt() : et() : v; } function Xy(v) { return v && i().parenthesizeExpressionForDisallowedComma(v); } function Hw(v) { return typeof v == "number" ? Me(v) : v; } function wd(v) { return v && rJ(v) ? mt(Vr(X1(), v), v) : v; } function Ww(v) { return typeof v == "string" || v && !Wi(v) ? qe(v, void 0, void 0, void 0) : v; } } function r6e(e, t) { return e !== t && mt(e, t), e; } function i6e(e, t) { return e !== t && (Vr(e, t), mt(e, t)), e; } function j3(e) { switch (e) { case 347: return "type"; case 345: return "returns"; case 346: return "this"; case 343: return "enum"; case 333: return "author"; case 335: return "class"; case 336: return "public"; case 337: return "private"; case 338: return "protected"; case 339: return "readonly"; case 340: return "override"; case 348: return "template"; case 349: return "typedef"; case 344: return "param"; case 351: return "prop"; case 341: return "callback"; case 342: return "overload"; case 331: return "augments"; case 332: return "implements"; default: return D.fail(`Unsupported kind: ${D.formatSyntaxKind(e)}`); } } function a6e(e, t) { switch (ug || (ug = sy(99, !1, 0)), e) { case 14: ug.setText("`" + t + "`"); break; case 15: ug.setText("`" + t + "${"); break; case 16: ug.setText("}" + t + "${"); break; case 17: ug.setText("}" + t + "`"); break; } let r = ug.scan(); if (r === 19 && (r = ug.reScanTemplateToken(!1)), ug.isUnterminated()) return ug.setText(void 0), Mq; let i; switch (r) { case 14: case 15: case 16: case 17: i = ug.getTokenValue(); break; } return i === void 0 || ug.scan() !== 1 ? (ug.setText(void 0), Mq) : (ug.setText(void 0), i); } function hy(e) { return e && Ve(e) ? dk(e) : mr(e); } function dk(e) { return mr(e) & -67108865; } function o6e(e, t) { return t | e.transformFlags & 134234112; } function mr(e) { if (!e) return 0; const t = e.transformFlags & ~Zde(e.kind); return du(e) && hl(e.name) ? o6e(e.name, t) : t; } function Ro(e) { return e ? e.transformFlags : 0; } function Qde(e) { let t = 0; for (const r of e) t |= mr(r); e.transformFlags = t; } function Zde(e) { if (e >= 179 && e <= 202) return -2; switch (e) { case 210: case 211: case 206: return -2147450880; case 264: return -1941676032; case 166: return -2147483648; case 216: return -2072174592; case 215: case 259: return -1937940480; case 258: return -2146893824; case 260: case 228: return -2147344384; case 173: return -1937948672; case 169: return -2013249536; case 171: case 174: case 175: return -2005057536; case 131: case 148: case 160: case 144: case 152: case 149: case 134: case 153: case 114: case 165: case 168: case 170: case 176: case 177: case 178: case 261: case 262: return -2; case 207: return -2147278848; case 295: return -2147418112; case 203: case 204: return -2147450880; case 213: case 235: case 231: case 356: case 214: case 106: return -2147483648; case 208: case 209: return -2147483648; default: return -2147483648; } } function aO(e) { return e.flags |= 8, e; } function Dq(e, t, r) { let i, o, s, c, f, d, y, m, b, A; Va(e) ? (s = "", c = e, f = e.length, d = t, y = r) : (D.assert(t === "js" || t === "dts"), s = (t === "js" ? e.javascriptPath : e.declarationPath) || "", d = t === "js" ? e.javascriptMapPath : e.declarationMapPath, m = () => t === "js" ? e.javascriptText : e.declarationText, b = () => t === "js" ? e.javascriptMapText : e.declarationMapText, f = () => m().length, e.buildInfo && e.buildInfo.bundle && (D.assert(r === void 0 || typeof r == "boolean"), i = r, o = t === "js" ? e.buildInfo.bundle.js : e.buildInfo.bundle.dts, A = e.oldFileOfCurrentEmit)); const C = A ? l6e(D.checkDefined(o)) : s6e(o, i, f); return C.fileName = s, C.sourceMapPath = d, C.oldFileOfCurrentEmit = A, m && b ? (Object.defineProperty(C, "text", { get: m }), Object.defineProperty(C, "sourceMapText", { get: b })) : (D.assert(!A), C.text = c ?? "", C.sourceMapText = y), C; } function s6e(e, t, r) { let i, o, s, c, f, d, y, m; for (const A of e ? e.sections : nt) switch (A.kind) { case "prologue": i = Fn(i, mt(N.createUnparsedPrologue(A.data), A)); break; case "emitHelpers": o = Fn(o, Hq().get(A.data)); break; case "no-default-lib": m = !0; break; case "reference": s = Fn(s, { pos: -1, end: -1, fileName: A.data }); break; case "type": c = Fn(c, { pos: -1, end: -1, fileName: A.data }); break; case "type-import": c = Fn(c, { pos: -1, end: -1, fileName: A.data, resolutionMode: 99 }); break; case "type-require": c = Fn(c, { pos: -1, end: -1, fileName: A.data, resolutionMode: 1 }); break; case "lib": f = Fn(f, { pos: -1, end: -1, fileName: A.data }); break; case "prepend": let C; for (const I of A.texts) (!t || I.kind !== "internal") && (C = Fn(C, mt(N.createUnparsedTextLike(I.data, I.kind === "internal"), I))); d = yi(d, C), y = Fn(y, N.createUnparsedPrepend(A.data, C ?? nt)); break; case "internal": if (t) { y || (y = []); break; } case "text": y = Fn(y, mt(N.createUnparsedTextLike(A.data, A.kind === "internal"), A)); break; default: D.assertNever(A); } if (!y) { const A = N.createUnparsedTextLike(void 0, !1); ak(A, 0, typeof r == "function" ? r() : r), y = [A]; } const b = jm.createUnparsedSource(i ?? nt, void 0, y); return QA(i, b), QA(y, b), QA(d, b), b.hasNoDefaultLib = m, b.helpers = o, b.referencedFiles = s || nt, b.typeReferenceDirectives = c, b.libReferenceDirectives = f || nt, b; } function l6e(e) { let t, r; for (const o of e.sections) switch (o.kind) { case "internal": case "text": t = Fn(t, mt(N.createUnparsedTextLike(o.data, o.kind === "internal"), o)); break; case "no-default-lib": case "reference": case "type": case "type-import": case "type-require": case "lib": r = Fn(r, mt(N.createUnparsedSyntheticReference(o), o)); break; case "prologue": case "emitHelpers": case "prepend": break; default: D.assertNever(o); } const i = N.createUnparsedSource(nt, r, t ?? nt); return QA(r, i), QA(t, i), i.helpers = rn(e.sources && e.sources.helpers, (o) => Hq().get(o)), i; } function c6e(e, t, r, i, o, s) { return Va(e) ? Nq(void 0, e, r, i, void 0, t, o, s) : Rq(e, t, r, i, o, s); } function Rq(e, t, r, i, o, s, c, f) { const d = jm.createInputFiles(); d.javascriptPath = t, d.javascriptMapPath = r, d.declarationPath = i, d.declarationMapPath = o, d.buildInfoPath = s; const y = /* @__PURE__ */ new Map(), m = (I) => { if (I === void 0) return; let O = y.get(I); return O === void 0 && (O = e(I), y.set(I, O !== void 0 ? O : !1)), O !== !1 ? O : void 0; }, b = (I) => { const O = m(I); return O !== void 0 ? O : `/* Input file ${I} was missing */\r `; }; let A; return Object.defineProperties(d, { javascriptText: { get: () => b(t) }, javascriptMapText: { get: () => m(r) }, declarationText: { get: () => b(D.checkDefined(i)) }, declarationMapText: { get: () => m(o) }, buildInfo: { get: () => { var I, O; if (A === void 0 && s) if (c != null && c.getBuildInfo) A = (I = c.getBuildInfo(s, f.configFilePath)) != null ? I : !1; else { const k = m(s); A = k !== void 0 && (O = B5(s, k)) != null ? O : !1; } return A || void 0; } } }), d; } function Nq(e, t, r, i, o, s, c, f, d, y, m) { const b = jm.createInputFiles(); return b.javascriptPath = e, b.javascriptText = t, b.javascriptMapPath = r, b.javascriptMapText = i, b.declarationPath = o, b.declarationText = s, b.declarationMapPath = c, b.declarationMapText = f, b.buildInfoPath = d, b.buildInfo = y, b.oldFileOfCurrentEmit = m, b; } function u6e(e, t, r) { return new (tfe || (tfe = Fc.getSourceMapSourceConstructor()))(e, t, r); } function Vr(e, t) { if (e.original = t, t) { const r = t.emitNode; r && (e.emitNode = d6e(r, e.emitNode)); } return e; } function d6e(e, t) { const { flags: r, internalFlags: i, leadingComments: o, trailingComments: s, commentRange: c, sourceMapRange: f, tokenSourceMapRanges: d, constantValue: y, helpers: m, startsOnNewLine: b, snippetElement: A } = e; if (t || (t = {}), o && (t.leadingComments = yi(o.slice(), t.leadingComments)), s && (t.trailingComments = yi(s.slice(), t.trailingComments)), r && (t.flags = r), i && (t.internalFlags = i & -9), c && (t.commentRange = c), f && (t.sourceMapRange = f), d && (t.tokenSourceMapRanges = f6e(d, t.tokenSourceMapRanges)), y !== void 0 && (t.constantValue = y), m) for (const C of m) t.helpers = ny(t.helpers, C); return b !== void 0 && (t.startsOnNewLine = b), A !== void 0 && (t.snippetElement = A), t; } function f6e(e, t) { t || (t = []); for (const r in e) t[r] = e[r]; return t; } var oO, Oq, Pq, ug, Mq, fk, efe, N, tfe, _6e = L({ "src/compiler/factory/nodeFactory.ts"() { Ra(), oO = 0, Oq = /* @__PURE__ */ ((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))(Oq || {}), Pq = [], Mq = {}, fk = Xde(), efe = { createBaseSourceFileNode: (e) => aO(fk.createBaseSourceFileNode(e)), createBaseIdentifierNode: (e) => aO(fk.createBaseIdentifierNode(e)), createBasePrivateIdentifierNode: (e) => aO(fk.createBasePrivateIdentifierNode(e)), createBaseTokenNode: (e) => aO(fk.createBaseTokenNode(e)), createBaseNode: (e) => aO(fk.createBaseNode(e)) }, N = iO(4, efe); } }); function Xu(e) { var t; if (e.emitNode) D.assert(!(e.emitNode.internalFlags & 8), "Invalid attempt to mutate an immutable node."); else { if (uI(e)) { if (e.kind === 308) return e.emitNode = { annotatedNodes: [e] }; const r = (t = Zn(ya(Zn(e)))) != null ? t : D.fail("Could not determine parsed source file."); Xu(r).annotatedNodes.push(e); } e.emitNode = {}; } return e.emitNode; } function Fq(e) { var t, r; const i = (r = (t = Zn(ya(e))) == null ? void 0 : t.emitNode) == null ? void 0 : r.annotatedNodes; if (i) for (const o of i) o.emitNode = void 0; } function sO(e) { const t = Xu(e); return t.flags |= 3072, t.leadingComments = void 0, t.trailingComments = void 0, e; } function or(e, t) { return Xu(e).flags = t, e; } function Kp(e, t) { const r = Xu(e); return r.flags = r.flags | t, e; } function lO(e, t) { return Xu(e).internalFlags = t, e; } function ux(e, t) { const r = Xu(e); return r.internalFlags = r.internalFlags | t, e; } function K0(e) { var t, r; return (r = (t = e.emitNode) == null ? void 0 : t.sourceMapRange) != null ? r : e; } function cs(e, t) { return Xu(e).sourceMapRange = t, e; } function p6e(e, t) { var r, i; return (i = (r = e.emitNode) == null ? void 0 : r.tokenSourceMapRanges) == null ? void 0 : i[t]; } function nfe(e, t, r) { var i; const o = Xu(e), s = (i = o.tokenSourceMapRanges) != null ? i : o.tokenSourceMapRanges = []; return s[t] = r, e; } function cO(e) { var t; return (t = e.emitNode) == null ? void 0 : t.startsOnNewLine; } function Bq(e, t) { return Xu(e).startsOnNewLine = t, e; } function Fm(e) { var t, r; return (r = (t = e.emitNode) == null ? void 0 : t.commentRange) != null ? r : e; } function Bc(e, t) { return Xu(e).commentRange = t, e; } function rC(e) { var t; return (t = e.emitNode) == null ? void 0 : t.leadingComments; } function L1(e, t) { return Xu(e).leadingComments = t, e; } function uO(e, t, r, i) { return L1(e, Fn(rC(e), { kind: t, pos: -1, end: -1, hasTrailingNewLine: i, text: r })); } function dO(e) { var t; return (t = e.emitNode) == null ? void 0 : t.trailingComments; } function iC(e, t) { return Xu(e).trailingComments = t, e; } function H3(e, t, r, i) { return iC(e, Fn(dO(e), { kind: t, pos: -1, end: -1, hasTrailingNewLine: i, text: r })); } function rfe(e, t) { L1(e, rC(t)), iC(e, dO(t)); const r = Xu(t); return r.leadingComments = void 0, r.trailingComments = void 0, e; } function ife(e) { var t; return (t = e.emitNode) == null ? void 0 : t.constantValue; } function afe(e, t) { const r = Xu(e); return r.constantValue = t, e; } function dx(e, t) { const r = Xu(e); return r.helpers = Fn(r.helpers, t), e; } function gy(e, t) { if (kt(t)) { const r = Xu(e); for (const i of t) r.helpers = ny(r.helpers, i); } return e; } function m6e(e, t) { var r; const i = (r = e.emitNode) == null ? void 0 : r.helpers; return i ? CP(i, t) : !1; } function W3(e) { var t; return (t = e.emitNode) == null ? void 0 : t.helpers; } function ofe(e, t, r) { const i = e.emitNode, o = i && i.helpers; if (!kt(o)) return; const s = Xu(t); let c = 0; for (let f = 0; f < o.length; f++) { const d = o[f]; r(d) ? (c++, s.helpers = ny(s.helpers, d)) : c > 0 && (o[f - c] = d); } c > 0 && (o.length -= c); } function Gq(e) { var t; return (t = e.emitNode) == null ? void 0 : t.snippetElement; } function Uq(e, t) { const r = Xu(e); return r.snippetElement = t, e; } function Vq(e) { return Xu(e).internalFlags |= 4, e; } function sfe(e, t) { const r = Xu(e); return r.typeNode = t, e; } function lfe(e) { var t; return (t = e.emitNode) == null ? void 0 : t.typeNode; } function yy(e, t) { return Xu(e).identifierTypeArguments = t, e; } function vT(e) { var t; return (t = e.emitNode) == null ? void 0 : t.identifierTypeArguments; } function fO(e, t) { return Xu(e).autoGenerate = t, e; } function h6e(e) { var t; return (t = e.emitNode) == null ? void 0 : t.autoGenerate; } function cfe(e, t) { return Xu(e).generatedImportReference = t, e; } function ufe(e) { var t; return (t = e.emitNode) == null ? void 0 : t.generatedImportReference; } var g6e = L({ "src/compiler/factory/emitNode.ts"() { Ra(); } }); function dfe(e) { const t = e.factory, r = hd(() => lO(t.createTrue(), 8)), i = hd(() => lO(t.createFalse(), 8)); return { getUnscopedHelperName: o, createDecorateHelper: s, createMetadataHelper: c, createParamHelper: f, createESDecorateHelper: O, createRunInitializersHelper: k, createAssignHelper: B, createAwaitHelper: U, createAsyncGeneratorHelper: j, createAsyncDelegatorHelper: te, createAsyncValuesHelper: X, createRestHelper: Y, createAwaiterHelper: P, createExtendsHelper: ue, createTemplateObjectHelper: ne, createSpreadArrayHelper: ge, createPropKeyHelper: ie, createSetFunctionNameHelper: H, createValuesHelper: le, createReadHelper: pe, createGeneratorHelper: ye, createCreateBindingHelper: Te, createImportStarHelper: ee, createImportStarCallbackHelper: $e, createImportDefaultHelper: Ge, createExportStarHelper: Fe, createClassPrivateFieldGetHelper: We, createClassPrivateFieldSetHelper: Re, createClassPrivateFieldInHelper: Pe }; function o(Ke) { return or(t.createIdentifier(Ke), 8196); } function s(Ke, He, Me, ot) { e.requestEmitHelper(z3); const At = []; return At.push(t.createArrayLiteralExpression(Ke, !0)), At.push(He), Me && (At.push(Me), ot && At.push(ot)), t.createCallExpression(o("__decorate"), void 0, At); } function c(Ke, He) { return e.requestEmitHelper(q3), t.createCallExpression(o("__metadata"), void 0, [ t.createStringLiteral(Ke), He ]); } function f(Ke, He, Me) { return e.requestEmitHelper(J3), mt(t.createCallExpression(o("__param"), void 0, [ t.createNumericLiteral(He + ""), Ke ]), Me); } function d(Ke) { return t.createObjectLiteralExpression([ t.createPropertyAssignment(t.createIdentifier("kind"), t.createStringLiteral("class")), t.createPropertyAssignment(t.createIdentifier("name"), Ke.name) ]); } function y(Ke) { const He = Ke.computed ? t.createElementAccessExpression(t.createIdentifier("obj"), Ke.name) : t.createPropertyAccessExpression(t.createIdentifier("obj"), Ke.name); return t.createPropertyAssignment("get", t.createArrowFunction(void 0, void 0, [t.createParameterDeclaration(void 0, void 0, t.createIdentifier("obj"))], void 0, void 0, He)); } function m(Ke) { const He = Ke.computed ? t.createElementAccessExpression(t.createIdentifier("obj"), Ke.name) : t.createPropertyAccessExpression(t.createIdentifier("obj"), Ke.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(He, t.createIdentifier("value"))) ]))); } function b(Ke) { const He = Ke.computed ? Ke.name : Ve(Ke.name) ? t.createStringLiteralFromNode(Ke.name) : Ke.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(He, 101, t.createIdentifier("obj")))); } function A(Ke, He) { const Me = []; return Me.push(b(Ke)), He.get && Me.push(y(Ke)), He.set && Me.push(m(Ke)), t.createObjectLiteralExpression(Me); } function C(Ke) { return t.createObjectLiteralExpression([ t.createPropertyAssignment(t.createIdentifier("kind"), t.createStringLiteral(Ke.kind)), t.createPropertyAssignment(t.createIdentifier("name"), Ke.name.computed ? Ke.name.name : t.createStringLiteralFromNode(Ke.name.name)), t.createPropertyAssignment(t.createIdentifier("static"), Ke.static ? t.createTrue() : t.createFalse()), t.createPropertyAssignment(t.createIdentifier("private"), Ke.private ? t.createTrue() : t.createFalse()), t.createPropertyAssignment(t.createIdentifier("access"), A(Ke.name, Ke.access)) ]); } function I(Ke) { return Ke.kind === "class" ? d(Ke) : C(Ke); } function O(Ke, He, Me, ot, At, bt) { return e.requestEmitHelper(K3), t.createCallExpression(o("__esDecorate"), void 0, [ Ke ?? t.createNull(), He ?? t.createNull(), Me, I(ot), At, bt ]); } function k(Ke, He, Me) { return e.requestEmitHelper(X3), t.createCallExpression(o("__runInitializers"), void 0, Me ? [Ke, He, Me] : [Ke, He]); } function B(Ke) { return $o(e.getCompilerOptions()) >= 2 ? t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"), "assign"), void 0, Ke) : (e.requestEmitHelper(Y3), t.createCallExpression(o("__assign"), void 0, Ke)); } function U(Ke) { return e.requestEmitHelper(fx), t.createCallExpression(o("__await"), void 0, [Ke]); } function j(Ke, He) { return e.requestEmitHelper(fx), e.requestEmitHelper($3), (Ke.emitNode || (Ke.emitNode = {})).flags |= 1572864, t.createCallExpression(o("__asyncGenerator"), void 0, [ He ? t.createThis() : t.createVoidZero(), t.createIdentifier("arguments"), Ke ]); } function te(Ke) { return e.requestEmitHelper(fx), e.requestEmitHelper(Q3), t.createCallExpression(o("__asyncDelegator"), void 0, [Ke]); } function X(Ke) { return e.requestEmitHelper(Z3), t.createCallExpression(o("__asyncValues"), void 0, [Ke]); } function Y(Ke, He, Me, ot) { e.requestEmitHelper(e7); const At = []; let bt = 0; for (let Vt = 0; Vt < He.length - 1; Vt++) { const et = TJ(He[Vt]); if (et) if (Ss(et)) { D.assertIsDefined(Me, "Encountered computed property name but 'computedTempVariables' argument was not provided."); const it = Me[bt]; bt++, At.push(t.createConditionalExpression(t.createTypeCheck(it, "symbol"), void 0, it, void 0, t.createAdd(it, t.createStringLiteral("")))); } else At.push(t.createStringLiteralFromNode(et)); } return t.createCallExpression(o("__rest"), void 0, [ Ke, mt(t.createArrayLiteralExpression(At), ot) ]); } function P(Ke, He, Me, ot) { e.requestEmitHelper(t7); const At = t.createFunctionExpression(void 0, t.createToken(41), void 0, void 0, [], void 0, ot); return (At.emitNode || (At.emitNode = {})).flags |= 1572864, t.createCallExpression(o("__awaiter"), void 0, [ Ke ? t.createThis() : t.createVoidZero(), He ? t.createIdentifier("arguments") : t.createVoidZero(), Me ? kO(t, Me) : t.createVoidZero(), At ]); } function ue(Ke) { return e.requestEmitHelper(n7), t.createCallExpression(o("__extends"), void 0, [Ke, t.createUniqueName("_super", 48)]); } function ne(Ke, He) { return e.requestEmitHelper(r7), t.createCallExpression(o("__makeTemplateObject"), void 0, [Ke, He]); } function ge(Ke, He, Me) { return e.requestEmitHelper(a7), t.createCallExpression(o("__spreadArray"), void 0, [Ke, He, Me ? r() : i()]); } function ie(Ke) { return e.requestEmitHelper(o7), t.createCallExpression(o("__propKey"), void 0, [Ke]); } function H(Ke, He, Me) { return e.requestEmitHelper(s7), e.factory.createCallExpression(o("__setFunctionName"), void 0, Me ? [Ke, He, e.factory.createStringLiteral(Me)] : [Ke, He]); } function le(Ke) { return e.requestEmitHelper(l7), t.createCallExpression(o("__values"), void 0, [Ke]); } function pe(Ke, He) { return e.requestEmitHelper(i7), t.createCallExpression(o("__read"), void 0, He !== void 0 ? [Ke, t.createNumericLiteral(He + "")] : [Ke]); } function ye(Ke) { return e.requestEmitHelper(c7), t.createCallExpression(o("__generator"), void 0, [t.createThis(), Ke]); } function Te(Ke, He, Me) { return e.requestEmitHelper(aC), t.createCallExpression(o("__createBinding"), void 0, [t.createIdentifier("exports"), Ke, He, ...Me ? [Me] : []]); } function ee(Ke) { return e.requestEmitHelper(_O), t.createCallExpression(o("__importStar"), void 0, [Ke]); } function $e() { return e.requestEmitHelper(_O), o("__importStar"); } function Ge(Ke) { return e.requestEmitHelper(d7), t.createCallExpression(o("__importDefault"), void 0, [Ke]); } function Fe(Ke, He = t.createIdentifier("exports")) { return e.requestEmitHelper(f7), e.requestEmitHelper(aC), t.createCallExpression(o("__exportStar"), void 0, [Ke, He]); } function We(Ke, He, Me, ot) { e.requestEmitHelper(_7); let At; return ot ? At = [Ke, He, t.createStringLiteral(Me), ot] : At = [Ke, He, t.createStringLiteral(Me)], t.createCallExpression(o("__classPrivateFieldGet"), void 0, At); } function Re(Ke, He, Me, ot, At) { e.requestEmitHelper(p7); let bt; return At ? bt = [Ke, He, Me, t.createStringLiteral(ot), At] : bt = [Ke, He, Me, t.createStringLiteral(ot)], t.createCallExpression(o("__classPrivateFieldSet"), void 0, bt); } function Pe(Ke, He) { return e.requestEmitHelper(m7), t.createCallExpression(o("__classPrivateFieldIn"), void 0, [Ke, He]); } } function ffe(e, t) { return e === t || e.priority === t.priority ? 0 : e.priority === void 0 ? 1 : t.priority === void 0 ? -1 : js(e.priority, t.priority); } function jq(e, ...t) { return (r) => { let i = ""; for (let o = 0; o < t.length; o++) i += e[o], i += r(t[o]); return i += e[e.length - 1], i; }; } function Hq() { return _fe || (_fe = $b([ z3, q3, J3, K3, X3, Y3, fx, $3, Q3, Z3, e7, t7, n7, r7, a7, l7, i7, o7, s7, c7, _O, d7, f7, _7, p7, m7, aC, u7 ], (e) => e.name)); } function _k(e, t) { return eo(e) && Ve(e.expression) && (ho(e.expression) & 8192) !== 0 && e.expression.escapedText === t; } var Wq, z3, q3, J3, K3, X3, Y3, fx, $3, Q3, Z3, e7, t7, n7, r7, i7, a7, o7, s7, l7, c7, aC, u7, _O, d7, f7, _7, p7, m7, _fe, pO, mO, y6e = L({ "src/compiler/factory/emitHelpers.ts"() { Ra(), Wq = /* @__PURE__ */ ((e) => (e.Field = "f", e.Method = "m", e.Accessor = "a", e))(Wq || {}), z3 = { name: "typescript:decorate", importName: "__decorate", scoped: !1, priority: 2, text: ` var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 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; };` }, q3 = { 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); };` }, J3 = { 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); } };` }, K3 = { 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.push(_); } else if (_ = accept(result)) { if (kind === "field") initializers.push(_); else descriptor[key] = _; } } if (target) Object.defineProperty(target, contextIn.name, descriptor); done = true; };` }, X3 = { 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; };` }, Y3 = { 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); };` }, fx = { 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); }` }, $3 = { name: "typescript:asyncGenerator", importName: "__asyncGenerator", scoped: !1, dependencies: [fx], 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"), i[Symbol.asyncIterator] = function () { return this; }, i; function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } 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]); } };` }, Q3 = { name: "typescript:asyncDelegator", importName: "__asyncDelegator", scoped: !1, dependencies: [fx], 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; } };` }, Z3 = { 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); } };` }, e7 = { 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; };` }, t7 = { 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()); }); };` }, n7 = { 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 __()); }; })();` }, r7 = { 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; };` }, i7 = { 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; };` }, a7 = { 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)); };` }, o7 = { name: "typescript:propKey", importName: "__propKey", scoped: !1, text: ` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); };` }, s7 = { 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 }); };` }, l7 = { 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."); };` }, c7 = { 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 }; } };` }, aC = { 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]; }));` }, u7 = { 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; });` }, _O = { name: "typescript:commonjsimportstar", importName: "__importStar", scoped: !1, dependencies: [aC, u7], 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; };` }, d7 = { name: "typescript:commonjsimportdefault", importName: "__importDefault", scoped: !1, text: ` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; };` }, f7 = { name: "typescript:export-star", importName: "__exportStar", scoped: !1, dependencies: [aC], 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); };` }, _7 = { 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); };` }, p7 = { 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; };` }, m7 = { 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); };` }, pO = { name: "typescript:async-super", scoped: !0, text: jq` const ${"_superIndex"} = name => super[name];` }, mO = { name: "typescript:advanced-async-super", scoped: !0, text: jq` 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 __(e) { return e.kind === 8; } function h7(e) { return e.kind === 9; } function Go(e) { return e.kind === 10; } function _x(e) { return e.kind === 11; } function zq(e) { return e.kind === 13; } function px(e) { return e.kind === 14; } function oC(e) { return e.kind === 15; } function pfe(e) { return e.kind === 16; } function qq(e) { return e.kind === 17; } function g7(e) { return e.kind === 25; } function mfe(e) { return e.kind === 27; } function Jq(e) { return e.kind === 39; } function Kq(e) { return e.kind === 40; } function hO(e) { return e.kind === 41; } function gO(e) { return e.kind === 53; } function Rv(e) { return e.kind === 57; } function hfe(e) { return e.kind === 58; } function y7(e) { return e.kind === 28; } function gfe(e) { return e.kind === 38; } function Ve(e) { return e.kind === 79; } function ki(e) { return e.kind === 80; } function v7(e) { return e.kind === 93; } function yfe(e) { return e.kind === 88; } function pk(e) { return e.kind === 132; } function vfe(e) { return e.kind === 129; } function Xq(e) { return e.kind === 133; } function bfe(e) { return e.kind === 146; } function mx(e) { return e.kind === 124; } function Efe(e) { return e.kind === 126; } function Tfe(e) { return e.kind === 161; } function Sfe(e) { return e.kind === 127; } function mk(e) { return e.kind === 106; } function hk(e) { return e.kind === 100; } function xfe(e) { return e.kind === 82; } function Ed(e) { return e.kind === 163; } function Ss(e) { return e.kind === 164; } function Ol(e) { return e.kind === 165; } function Ma(e) { return e.kind === 166; } function Du(e) { return e.kind === 167; } function Tf(e) { return e.kind === 168; } function Za(e) { return e.kind === 169; } function bh(e) { return e.kind === 170; } function nc(e) { return e.kind === 171; } function Cl(e) { return e.kind === 172; } function jl(e) { return e.kind === 173; } function U_(e) { return e.kind === 174; } function Kf(e) { return e.kind === 175; } function sC(e) { return e.kind === 176; } function yO(e) { return e.kind === 177; } function hx(e) { return e.kind === 178; } function b7(e) { return e.kind === 179; } function V_(e) { return e.kind === 180; } function Eh(e) { return e.kind === 181; } function gk(e) { return e.kind === 182; } function yk(e) { return e.kind === 183; } function rf(e) { return e.kind === 184; } function Yq(e) { return e.kind === 185; } function lC(e) { return e.kind === 186; } function vk(e) { return e.kind === 199; } function $q(e) { return e.kind === 187; } function Qq(e) { return e.kind === 188; } function gx(e) { return e.kind === 189; } function vO(e) { return e.kind === 190; } function cC(e) { return e.kind === 191; } function uC(e) { return e.kind === 192; } function yx(e) { return e.kind === 193; } function E7(e) { return e.kind === 194; } function vx(e) { return e.kind === 195; } function bx(e) { return e.kind === 196; } function bk(e) { return e.kind === 197; } function X0(e) { return e.kind === 198; } function dg(e) { return e.kind === 202; } function Afe(e) { return e.kind === 201; } function v6e(e) { return e.kind === 200; } function Bm(e) { return e.kind === 203; } function dC(e) { return e.kind === 204; } function us(e) { return e.kind === 205; } function Ru(e) { return e.kind === 206; } function As(e) { return e.kind === 207; } function Pr(e) { return e.kind === 208; } function sl(e) { return e.kind === 209; } function eo(e) { return e.kind === 210; } function I1(e) { return e.kind === 211; } function bT(e) { return e.kind === 212; } function Cfe(e) { return e.kind === 213; } function Pd(e) { return e.kind === 214; } function Ms(e) { return e.kind === 215; } function zs(e) { return e.kind === 216; } function Lfe(e) { return e.kind === 217; } function fC(e) { return e.kind === 218; } function Ex(e) { return e.kind === 219; } function _C(e) { return e.kind === 220; } function Nv(e) { return e.kind === 221; } function Zq(e) { return e.kind === 222; } function vr(e) { return e.kind === 223; } function pC(e) { return e.kind === 224; } function T7(e) { return e.kind === 225; } function S7(e) { return e.kind === 226; } function Th(e) { return e.kind === 227; } function Nu(e) { return e.kind === 228; } function Ic(e) { return e.kind === 229; } function vy(e) { return e.kind === 230; } function bO(e) { return e.kind === 231; } function b6e(e) { return e.kind === 235; } function Tx(e) { return e.kind === 232; } function Ek(e) { return e.kind === 233; } function E6e(e) { return e.kind === 234; } function x7(e) { return e.kind === 356; } function Tk(e) { return e.kind === 357; } function Sk(e) { return e.kind === 236; } function Ife(e) { return e.kind === 237; } function oo(e) { return e.kind === 238; } function sc(e) { return e.kind === 240; } function eJ(e) { return e.kind === 239; } function eu(e) { return e.kind === 241; } function ET(e) { return e.kind === 242; } function T6e(e) { return e.kind === 243; } function S6e(e) { return e.kind === 244; } function TT(e) { return e.kind === 245; } function tJ(e) { return e.kind === 246; } function EO(e) { return e.kind === 247; } function x6e(e) { return e.kind === 248; } function A6e(e) { return e.kind === 249; } function pp(e) { return e.kind === 250; } function kfe(e) { return e.kind === 251; } function TO(e) { return e.kind === 252; } function k1(e) { return e.kind === 253; } function nJ(e) { return e.kind === 254; } function SO(e) { return e.kind === 255; } function C6e(e) { return e.kind === 256; } function Wi(e) { return e.kind === 257; } function Ou(e) { return e.kind === 258; } function pc(e) { return e.kind === 259; } function kc(e) { return e.kind === 260; } function Yu(e) { return e.kind === 261; } function Xp(e) { return e.kind === 262; } function Y0(e) { return e.kind === 263; } function Hl(e) { return e.kind === 264; } function Yp(e) { return e.kind === 265; } function xO(e) { return e.kind === 266; } function AO(e) { return e.kind === 267; } function tu(e) { return e.kind === 268; } function Gc(e) { return e.kind === 269; } function Gm(e) { return e.kind === 270; } function wfe(e) { return e.kind === 298; } function A7(e) { return e.kind === 296; } function Dfe(e) { return e.kind === 297; } function Ov(e) { return e.kind === 271; } function Sh(e) { return e.kind === 277; } function by(e) { return e.kind === 272; } function Td(e) { return e.kind === 273; } function Pl(e) { return e.kind === 274; } function Kc(e) { return e.kind === 275; } function j_(e) { return e.kind === 276; } function od(e) { return e.kind === 278; } function L6e(e) { return e.kind === 279; } function rJ(e) { return e.kind === 355; } function Sx(e) { return e.kind === 360; } function I6e(e) { return e.kind === 358; } function k6e(e) { return e.kind === 359; } function Um(e) { return e.kind === 280; } function Ey(e) { return e.kind === 281; } function xx(e) { return e.kind === 282; } function xh(e) { return e.kind === 283; } function Ax(e) { return e.kind === 284; } function Cx(e) { return e.kind === 285; } function Lx(e) { return e.kind === 286; } function Rfe(e) { return e.kind === 287; } function $p(e) { return e.kind === 288; } function w1(e) { return e.kind === 289; } function ST(e) { return e.kind === 290; } function xk(e) { return e.kind === 291; } function Ak(e) { return e.kind === 292; } function CO(e) { return e.kind === 293; } function Md(e) { return e.kind === 294; } function mC(e) { return e.kind === 295; } function Uc(e) { return e.kind === 299; } function Xf(e) { return e.kind === 300; } function Ix(e) { return e.kind === 301; } function D1(e) { return e.kind === 302; } function Nfe(e) { return e.kind === 304; } function ji(e) { return e.kind === 308; } function iJ(e) { return e.kind === 309; } function xT(e) { return e.kind === 310; } function AT(e) { return e.kind === 312; } function Ck(e) { return e.kind === 313; } function $0(e) { return e.kind === 314; } function Ofe(e) { return e.kind === 327; } function Pfe(e) { return e.kind === 328; } function w6e(e) { return e.kind === 329; } function Mfe(e) { return e.kind === 315; } function Ffe(e) { return e.kind === 316; } function hC(e) { return e.kind === 317; } function C7(e) { return e.kind === 318; } function aJ(e) { return e.kind === 319; } function gC(e) { return e.kind === 320; } function L7(e) { return e.kind === 321; } function D6e(e) { return e.kind === 322; } function Vm(e) { return e.kind === 323; } function Lk(e) { return e.kind === 325; } function R1(e) { return e.kind === 326; } function yC(e) { return e.kind === 331; } function R6e(e) { return e.kind === 333; } function Bfe(e) { return e.kind === 335; } function oJ(e) { return e.kind === 341; } function sJ(e) { return e.kind === 336; } function lJ(e) { return e.kind === 337; } function cJ(e) { return e.kind === 338; } function uJ(e) { return e.kind === 339; } function I7(e) { return e.kind === 340; } function Ik(e) { return e.kind === 342; } function dJ(e) { return e.kind === 334; } function N6e(e) { return e.kind === 350; } function LO(e) { return e.kind === 343; } function Qp(e) { return e.kind === 344; } function k7(e) { return e.kind === 345; } function Gfe(e) { return e.kind === 346; } function kk(e) { return e.kind === 347; } function mp(e) { return e.kind === 348; } function fJ(e) { return e.kind === 349; } function O6e(e) { return e.kind === 330; } function Ufe(e) { return e.kind === 351; } function _J(e) { return e.kind === 332; } function w7(e) { return e.kind === 353; } function P6e(e) { return e.kind === 352; } function vC(e) { return e.kind === 354; } var M6e = L({ "src/compiler/factory/nodeTests.ts"() { Ra(); } }); function IO(e) { return e.createExportDeclaration(void 0, !1, e.createNamedExports([]), void 0); } function CT(e, t, r, i) { if (Ss(r)) return mt(e.createElementAccessExpression(t, r.expression), i); { const o = mt(eg(r) ? e.createPropertyAccessExpression(t, r) : e.createElementAccessExpression(t, r), r); return Kp(o, 128), o; } } function pJ(e, t) { const r = jm.createIdentifier(e || "React"); return Bo(r, ya(t)), r; } function mJ(e, t, r) { if (Ed(t)) { const i = mJ(e, t.left, r), o = e.createIdentifier(Or(t.right)); return o.escapedText = t.right.escapedText, e.createPropertyAccessExpression(i, o); } else return pJ(Or(t), r); } function hJ(e, t, r, i) { return t ? mJ(e, t, i) : e.createPropertyAccessExpression(pJ(r, i), "createElement"); } function F6e(e, t, r, i) { return t ? mJ(e, t, i) : e.createPropertyAccessExpression(pJ(r, i), "Fragment"); } function Vfe(e, t, r, i, o, s) { const c = [r]; if (i && c.push(i), o && o.length > 0) if (i || c.push(e.createNull()), o.length > 1) for (const f of o) Pu(f), c.push(f); else c.push(o[0]); return mt(e.createCallExpression(t, void 0, c), s); } function jfe(e, t, r, i, o, s, c) { const d = [F6e(e, r, i, s), e.createNull()]; if (o && o.length > 0) if (o.length > 1) for (const y of o) Pu(y), d.push(y); else d.push(o[0]); return mt(e.createCallExpression(hJ(e, t, i, s), void 0, d), c); } function gJ(e, t, r) { if (Ou(t)) { const i = ss(t.declarations), o = e.updateVariableDeclaration(i, i.name, void 0, void 0, r); return mt(e.createVariableStatement(void 0, e.updateVariableDeclarationList(t, [o])), t); } else { const i = mt(e.createAssignment(t, r), t); return mt(e.createExpressionStatement(i), t); } } function B6e(e, t, r) { return oo(t) ? e.updateBlock(t, mt(e.createNodeArray([r, ...t.statements]), t.statements)) : e.createBlock(e.createNodeArray([t, r]), !0); } function kO(e, t) { if (Ed(t)) { const r = kO(e, t.left), i = Bo(mt(e.cloneNode(t.right), t.right), t.right.parent); return mt(e.createPropertyAccessExpression(r, i), t); } else return Bo(mt(e.cloneNode(t), t), t.parent); } function yJ(e, t) { return Ve(t) ? e.createStringLiteralFromNode(t) : Ss(t) ? Bo(mt(e.cloneNode(t.expression), t.expression), t.expression.parent) : Bo(mt(e.cloneNode(t), t), t.parent); } function G6e(e, t, r, i, o) { const { firstAccessor: s, getAccessor: c, setAccessor: f } = pT(t, r); if (r === s) return mt(e.createObjectDefinePropertyCall(i, yJ(e, r.name), e.createPropertyDescriptor({ enumerable: e.createFalse(), configurable: !0, get: c && mt(Vr(e.createFunctionExpression(XE(c), void 0, void 0, void 0, c.parameters, void 0, c.body), c), c), set: f && mt(Vr(e.createFunctionExpression(XE(f), void 0, void 0, void 0, f.parameters, void 0, f.body), f), f) }, !o)), s); } function U6e(e, t, r) { return Vr(mt(e.createAssignment(CT(e, r, t.name, t.name), t.initializer), t), t); } function V6e(e, t, r) { return Vr(mt(e.createAssignment(CT(e, r, t.name, t.name), e.cloneNode(t.name)), t), t); } function j6e(e, t, r) { return Vr(mt(e.createAssignment(CT(e, r, t.name, t.name), Vr(mt(e.createFunctionExpression(XE(t), t.asteriskToken, void 0, void 0, t.parameters, void 0, t.body), t), t)), t), t); } function Hfe(e, t, r, i) { switch (r.name && ki(r.name) && D.failBadSyntaxKind(r.name, "Private identifiers are not allowed in object literals."), r.kind) { case 174: case 175: return G6e(e, t.properties, r, i, !!t.multiLine); case 299: return U6e(e, r, i); case 300: return V6e(e, r, i); case 171: return j6e(e, r, i); } } function D7(e, t, r, i, o) { const s = t.operator; D.assert(s === 45 || s === 46, "Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression"); const c = e.createTempVariable(i); r = e.createAssignment(c, r), mt(r, t.operand); let f = Nv(t) ? e.createPrefixUnaryExpression(s, c) : e.createPostfixUnaryExpression(c, s); return mt(f, t), o && (f = e.createAssignment(o, f), mt(f, t)), r = e.createComma(r, f), mt(r, t), Zq(t) && (r = e.createComma(r, c), mt(r, t)), r; } function vJ(e) { return (ho(e) & 65536) !== 0; } function Pv(e) { return (ho(e) & 32768) !== 0; } function R7(e) { return (ho(e) & 16384) !== 0; } function Wfe(e) { return Go(e.expression) && e.expression.text === "use strict"; } function bJ(e) { for (const t of e) if (dp(t)) { if (Wfe(t)) return t; } else break; } function zfe(e) { const t = Wc(e); return t !== void 0 && dp(t) && Wfe(t); } function wO(e) { return e.kind === 223 && e.operatorToken.kind === 27; } function wk(e) { return wO(e) || Tk(e); } function Dk(e) { return Pd(e) && dr(e) && !!s1(e); } function N7(e) { const t = vv(e); return D.assertIsDefined(t), t; } function O7(e, t = 15) { switch (e.kind) { case 214: return t & 16 && Dk(e) ? !1 : (t & 1) !== 0; case 213: case 231: case 230: case 235: return (t & 2) !== 0; case 232: return (t & 4) !== 0; case 356: return (t & 8) !== 0; } return !1; } function pu(e, t = 15) { for (; O7(e, t); ) e = e.expression; return e; } function qfe(e, t = 15) { let r = e.parent; for (; O7(r, t); ) r = r.parent, D.assert(r); return r; } function H6e(e) { return pu(e, 6); } function Pu(e) { return Bq(e, !0); } function DO(e) { const t = bl(e, ji), r = t && t.emitNode; return r && r.externalHelpersModuleName; } function Jfe(e) { const t = bl(e, ji), r = t && t.emitNode; return !!r && (!!r.externalHelpersModuleName || !!r.externalHelpers); } function EJ(e, t, r, i, o, s, c) { if (i.importHelpers && qS(r, i)) { let f; const d = Zc(i); if (d >= 5 && d <= 99 || r.impliedNodeFormat === 99) { const y = W3(r); if (y) { const m = []; for (const b of y) if (!b.scoped) { const A = b.importName; A && a_(m, A); } if (kt(m)) { m.sort(Lu), f = e.createNamedImports(rn(m, (C) => IM(r, C) ? e.createImportSpecifier(!1, void 0, e.createIdentifier(C)) : e.createImportSpecifier(!1, e.createIdentifier(C), t.getUnscopedHelperName(C)))); const b = bl(r, ji), A = Xu(b); A.externalHelpers = !0; } } } else { const y = Kfe(e, r, i, o, s || c); y && (f = e.createNamespaceImport(y)); } if (f) { const y = e.createImportDeclaration(void 0, e.createImportClause(!1, void 0, f), e.createStringLiteral(J0), void 0); return ux(y, 2), y; } } } function Kfe(e, t, r, i, o) { if (r.importHelpers && qS(t, r)) { const s = DO(t); if (s) return s; const c = Zc(r); let f = (i || B_(r) && o) && c !== 4 && (c < 5 || t.impliedNodeFormat === 1); if (!f) { const d = W3(t); if (d) { for (const y of d) if (!y.scoped) { f = !0; break; } } } if (f) { const d = bl(t, ji), y = Xu(d); return y.externalHelpersModuleName || (y.externalHelpersModuleName = e.createUniqueName(J0)); } } } function bC(e, t, r) { const i = PA(t); if (i && !YS(t) && !wM(t)) { const o = i.name; return El(o) ? o : e.createIdentifier(f1(r, o) || Or(o)); } if (t.kind === 269 && t.importClause || t.kind === 275 && t.moduleSpecifier) return e.getGeneratedNameForNode(t); } function kx(e, t, r, i, o, s) { const c = OA(t); if (c && Go(c)) return z6e(t, i, e, o, s) || W6e(e, c, r) || e.cloneNode(c); } function W6e(e, t, r) { const i = r.renamedDependencies && r.renamedDependencies.get(t.text); return i ? e.createStringLiteral(i) : void 0; } function RO(e, t, r, i) { if (t) { if (t.moduleName) return e.createStringLiteral(t.moduleName); if (!t.isDeclarationFile && Ws(i)) return e.createStringLiteral(mz(r, t.fileName)); } } function z6e(e, t, r, i, o) { return RO(r, i.getExternalModuleFileFromDeclaration(e), t, o); } function NO(e) { if (MR(e)) return e.initializer; if (Uc(e)) { const t = e.initializer; return Ku(t, !0) ? t.right : void 0; } if (Xf(e)) return e.objectAssignmentInitializer; if (Ku(e, !0)) return e.right; if (Th(e)) return NO(e.expression); } function Mv(e) { if (MR(e)) return e.name; if (dy(e)) { switch (e.kind) { case 299: return Mv(e.initializer); case 300: return e.name; case 301: return Mv(e.expression); } return; } return Ku(e, !0) ? Mv(e.left) : Th(e) ? Mv(e.expression) : e; } function P7(e) { switch (e.kind) { case 166: case 205: return e.dotDotDotToken; case 227: case 301: return e; } } function TJ(e) { const t = M7(e); return D.assert(!!t || Ix(e), "Invalid property name for binding element."), t; } function M7(e) { switch (e.kind) { case 205: if (e.propertyName) { const r = e.propertyName; return ki(r) ? D.failBadSyntaxKind(r) : Ss(r) && Xfe(r.expression) ? r.expression : r; } break; case 299: if (e.name) { const r = e.name; return ki(r) ? D.failBadSyntaxKind(r) : Ss(r) && Xfe(r.expression) ? r.expression : r; } break; case 301: return e.name && ki(e.name) ? D.failBadSyntaxKind(e.name) : e.name; } const t = Mv(e); if (t && hl(t)) return t; } function Xfe(e) { const t = e.kind; return t === 10 || t === 8; } function EC(e) { switch (e.kind) { case 203: case 204: case 206: return e.elements; case 207: return e.properties; } } function SJ(e) { if (e) { let t = e; for (; ; ) { if (Ve(t) || !t.body) return Ve(t) ? t : t.name; t = t.body; } } } function q6e(e) { const t = e.kind; return t === 173 || t === 175; } function Yfe(e) { const t = e.kind; return t === 173 || t === 174 || t === 175; } function xJ(e) { const t = e.kind; return t === 299 || t === 300 || t === 259 || t === 173 || t === 178 || t === 172 || t === 279 || t === 240 || t === 261 || t === 262 || t === 263 || t === 264 || t === 268 || t === 269 || t === 267 || t === 275 || t === 274; } function $fe(e) { const t = e.kind; return t === 172 || t === 299 || t === 300 || t === 279 || t === 267; } function Qfe(e) { return Rv(e) || gO(e); } function Zfe(e) { return Ve(e) || E7(e); } function e_e(e) { return bfe(e) || Jq(e) || Kq(e); } function t_e(e) { return Rv(e) || Jq(e) || Kq(e); } function n_e(e) { return Ve(e) || Go(e); } function J6e(e) { const t = e.kind; return t === 104 || t === 110 || t === 95 || $E(e) || Nv(e); } function K6e(e) { return e === 42; } function X6e(e) { return e === 41 || e === 43 || e === 44; } function Y6e(e) { return K6e(e) || X6e(e); } function $6e(e) { return e === 39 || e === 40; } function Q6e(e) { return $6e(e) || Y6e(e); } function Z6e(e) { return e === 47 || e === 48 || e === 49; } function e4e(e) { return Z6e(e) || Q6e(e); } function t4e(e) { return e === 29 || e === 32 || e === 31 || e === 33 || e === 102 || e === 101; } function n4e(e) { return t4e(e) || e4e(e); } function r4e(e) { return e === 34 || e === 36 || e === 35 || e === 37; } function i4e(e) { return r4e(e) || n4e(e); } function a4e(e) { return e === 50 || e === 51 || e === 52; } function o4e(e) { return a4e(e) || i4e(e); } function s4e(e) { return e === 55 || e === 56; } function l4e(e) { return s4e(e) || o4e(e); } function c4e(e) { return e === 60 || l4e(e) || py(e); } function u4e(e) { return c4e(e) || e === 27; } function r_e(e) { return u4e(e.kind); } function F7(e, t, r, i, o, s) { const c = new c_e(e, t, r, i, o, s); return f; function f(d, y) { const m = { value: void 0 }, b = [U7.enter], A = [d], C = [void 0]; let I = 0; for (; b[I] !== U7.done; ) I = b[I](c, I, b, A, C, m, y); return D.assertEqual(I, 0), m.value; } } function i_e(e) { return e === 93 || e === 88; } function AJ(e) { const t = e.kind; return i_e(t); } function d4e(e) { const t = e.kind; return uy(t) && !i_e(t); } function a_e(e, t) { if (t !== void 0) return t.length === 0 ? t : mt(e.createNodeArray([], t.hasTrailingComma), t); } function B7(e) { var t; const r = e.emitNode.autoGenerate; if (r.flags & 4) { const i = r.id; let o = e, s = o.original; for (; s; ) { o = s; const c = (t = o.emitNode) == null ? void 0 : t.autoGenerate; if (eg(o) && (c === void 0 || c.flags & 4 && c.id !== i)) break; s = o.original; } return o; } return e; } function TC(e, t) { return typeof e == "object" ? LT(!1, e.prefix, e.node, e.suffix, t) : typeof e == "string" ? e.length > 0 && e.charCodeAt(0) === 35 ? e.slice(1) : e : ""; } function f4e(e, t) { return typeof e == "string" ? e : _4e(e, D.checkDefined(t)); } function _4e(e, t) { return jS(e) ? t(e).slice(1) : El(e) ? t(e) : ki(e) ? e.escapedText.slice(1) : Or(e); } function LT(e, t, r, i, o) { return t = TC(t, o), i = TC(i, o), r = f4e(r, o), `${e ? "#" : ""}${t}${r}${i}`; } function CJ(e, t, r, i) { return e.updatePropertyDeclaration(t, r, e.getGeneratedPrivateNameForNode(t.name, void 0, "_accessor_storage"), void 0, void 0, i); } function o_e(e, t, r, i) { return e.createGetAccessorDeclaration(r, i, [], void 0, e.createBlock([ e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(), e.getGeneratedPrivateNameForNode(t.name, void 0, "_accessor_storage"))) ])); } function s_e(e, t, r, i) { return e.createSetAccessorDeclaration(r, i, [e.createParameterDeclaration(void 0, void 0, "value")], e.createBlock([ e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(), e.getGeneratedPrivateNameForNode(t.name, void 0, "_accessor_storage")), e.createIdentifier("value"))) ])); } function G7(e) { let t = e.expression; for (; ; ) { if (t = pu(t), Tk(t)) { t = Ho(t.elements); continue; } if (wO(t)) { t = t.right; continue; } if (Ku(t, !0) && El(t.left)) return t; break; } } function p4e(e) { return Pd(e) && $s(e) && !e.emitNode; } function OO(e, t) { if (p4e(e)) OO(e.expression, t); else if (wO(e)) OO(e.left, t), OO(e.right, t); else if (Tk(e)) for (const r of e.elements) OO(r, t); else t.push(e); } function l_e(e) { const t = []; return OO(e, t), t; } function PO(e) { if (e.transformFlags & 65536) return !0; if (e.transformFlags & 128) for (const t of EC(e)) { const r = Mv(t); if (r && yI(r) && (r.transformFlags & 65536 || r.transformFlags & 128 && PO(r))) return !0; } return !1; } var U7, c_e, m4e = L({ "src/compiler/factory/utilities.ts"() { Ra(), ((e) => { function t(m, b, A, C, I, O, k) { const B = b > 0 ? I[b - 1] : void 0; return D.assertEqual(A[b], t), I[b] = m.onEnter(C[b], B, k), A[b] = f(m, t), b; } e.enter = t; function r(m, b, A, C, I, O, k) { D.assertEqual(A[b], r), D.assertIsDefined(m.onLeft), A[b] = f(m, r); const B = m.onLeft(C[b].left, I[b], C[b]); return B ? (y(b, C, B), d(b, A, C, I, B)) : b; } e.left = r; function i(m, b, A, C, I, O, k) { return D.assertEqual(A[b], i), D.assertIsDefined(m.onOperator), A[b] = f(m, i), m.onOperator(C[b].operatorToken, I[b], C[b]), b; } e.operator = i; function o(m, b, A, C, I, O, k) { D.assertEqual(A[b], o), D.assertIsDefined(m.onRight), A[b] = f(m, o); const B = m.onRight(C[b].right, I[b], C[b]); return B ? (y(b, C, B), d(b, A, C, I, B)) : b; } e.right = o; function s(m, b, A, C, I, O, k) { D.assertEqual(A[b], s), A[b] = f(m, s); const B = m.onExit(C[b], I[b]); if (b > 0) { if (b--, m.foldState) { const U = A[b] === s ? "right" : "left"; I[b] = m.foldState(I[b], B, U); } } else O.value = B; return b; } e.exit = s; function c(m, b, A, C, I, O, k) { return D.assertEqual(A[b], c), b; } e.done = c; function f(m, b) { switch (b) { case t: if (m.onLeft) return r; case r: if (m.onOperator) return i; case i: if (m.onRight) return o; case o: return s; case s: return c; case c: return c; default: D.fail("Invalid state"); } } e.nextState = f; function d(m, b, A, C, I) { return m++, b[m] = t, A[m] = I, C[m] = void 0, m; } function y(m, b, A) { if (D.shouldAssert(2)) for (; m >= 0; ) D.assert(b[m] !== A, "Circular traversal detected."), m--; } })(U7 || (U7 = {})), c_e = class { constructor(e, t, r, i, o, s) { this.onEnter = e, this.onLeft = t, this.onOperator = r, this.onRight = i, this.onExit = o, this.foldState = s; } }; } }); function mt(e, t) { return t ? Mm(e, t.pos, t.end) : e; } function H_(e) { const t = e.kind; return t === 165 || t === 166 || t === 168 || t === 169 || t === 170 || t === 171 || t === 173 || t === 174 || t === 175 || t === 178 || t === 182 || t === 215 || t === 216 || t === 228 || t === 240 || t === 259 || t === 260 || t === 261 || t === 262 || t === 263 || t === 264 || t === 268 || t === 269 || t === 274 || t === 275; } function wx(e) { const t = e.kind; return t === 166 || t === 169 || t === 171 || t === 174 || t === 175 || t === 228 || t === 260; } var h4e = L({ "src/compiler/factory/utilitiesPublic.ts"() { Ra(); } }); function Jt(e, t) { return t && e(t); } function Ci(e, t, r) { if (r) { if (t) return t(r); for (const i of r) { const o = e(i); if (o) return o; } } } function LJ(e, t) { return e.charCodeAt(t + 1) === 42 && e.charCodeAt(t + 2) === 42 && e.charCodeAt(t + 3) !== 47; } function MO(e) { return Ye(e.statements, g4e) || y4e(e); } function g4e(e) { return H_(e) && v4e(e, 93) || tu(e) && Um(e.moduleReference) || Gc(e) || Pl(e) || Kc(e) ? e : void 0; } function y4e(e) { return e.flags & 4194304 ? u_e(e) : void 0; } function u_e(e) { return b4e(e) ? e : Oa(e, u_e); } function v4e(e, t) { return kt(e.modifiers, (r) => r.kind === t); } function b4e(e) { return Ek(e) && e.keywordToken === 100 && e.name.escapedText === "meta"; } function d_e(e, t, r) { return Ci(t, r, e.typeParameters) || Ci(t, r, e.parameters) || Jt(t, e.type); } function f_e(e, t, r) { return Ci(t, r, e.types); } function __e(e, t, r) { return Jt(t, e.type); } function p_e(e, t, r) { return Ci(t, r, e.elements); } function m_e(e, t, r) { return Jt(t, e.expression) || Jt(t, e.questionDotToken) || Ci(t, r, e.typeArguments) || Ci(t, r, e.arguments); } function h_e(e, t, r) { return Ci(t, r, e.statements); } function g_e(e, t, r) { return Jt(t, e.label); } function y_e(e, t, r) { return Ci(t, r, e.modifiers) || Jt(t, e.name) || Ci(t, r, e.typeParameters) || Ci(t, r, e.heritageClauses) || Ci(t, r, e.members); } function v_e(e, t, r) { return Ci(t, r, e.elements); } function b_e(e, t, r) { return Jt(t, e.propertyName) || Jt(t, e.name); } function E_e(e, t, r) { return Jt(t, e.tagName) || Ci(t, r, e.typeArguments) || Jt(t, e.attributes); } function SC(e, t, r) { return Jt(t, e.type); } function T_e(e, t, r) { return Jt(t, e.tagName) || (e.isNameFirst ? Jt(t, e.name) || Jt(t, e.typeExpression) : Jt(t, e.typeExpression) || Jt(t, e.name)) || (typeof e.comment == "string" ? void 0 : Ci(t, r, e.comment)); } function xC(e, t, r) { return Jt(t, e.tagName) || Jt(t, e.typeExpression) || (typeof e.comment == "string" ? void 0 : Ci(t, r, e.comment)); } function IJ(e, t, r) { return Jt(t, e.name); } function Dx(e, t, r) { return Jt(t, e.tagName) || (typeof e.comment == "string" ? void 0 : Ci(t, r, e.comment)); } function E4e(e, t, r) { return Jt(t, e.expression); } function Oa(e, t, r) { if (e === void 0 || e.kind <= 162) return; const i = R_e[e.kind]; return i === void 0 ? void 0 : i(e, t, r); } function FO(e, t, r) { const i = S_e(e), o = []; for (; o.length < i.length; ) o.push(e); for (; i.length !== 0; ) { const s = i.pop(), c = o.pop(); if (Ga(s)) { if (r) { const f = r(s, c); if (f) { if (f === "skip") continue; return f; } } for (let f = s.length - 1; f >= 0; --f) i.push(s[f]), o.push(c); } else { const f = t(s, c); if (f) { if (f === "skip") continue; return f; } if (s.kind >= 163) for (const d of S_e(s)) i.push(d), o.push(s); } } } function S_e(e) { const t = []; return Oa(e, r, r), t; function r(i) { t.unshift(i); } } function x_e(e) { e.externalModuleIndicator = MO(e); } function BO(e, t, r, i = !1, o) { var s, c; (s = hi) == null || s.push(hi.Phase.Parse, "createSourceFile", { path: e }, !0), rl("beforeParse"); let f; Up.logStartParseSourceFile(e); const { languageVersion: d, setExternalModuleIndicator: y, impliedNodeFormat: m } = typeof r == "object" ? r : { languageVersion: r }; if (d === 100) f = Fv.parseSourceFile(e, t, d, void 0, i, 6, io); else { const b = m === void 0 ? y : (A) => (A.impliedNodeFormat = m, (y || x_e)(A)); f = Fv.parseSourceFile(e, t, d, void 0, i, o, b); } return Up.logStopParseSourceFile(), rl("afterParse"), Vf("Parse", "beforeParse", "afterParse"), (c = hi) == null || c.pop(), f; } function Rx(e, t) { return Fv.parseIsolatedEntityName(e, t); } function GO(e, t) { return Fv.parseJsonText(e, t); } function Yl(e) { return e.externalModuleIndicator !== void 0; } function kJ(e, t, r, i = !1) { const o = V7.updateSourceFile(e, t, r, i); return o.flags |= e.flags & 6291456, o; } function A_e(e, t, r) { const i = Fv.JSDocParser.parseIsolatedJSDocComment(e, t, r); return i && i.jsDoc && Fv.fixupParentReferences(i.jsDoc), i; } function T4e(e, t, r) { return Fv.JSDocParser.parseJSDocTypeExpressionForTests(e, t, r); } function sd(e) { return vc(e, B3) || oc(e, ".ts") && lu(cu(e), ".d."); } function S4e(e, t, r, i) { if (e) { if (e === "import") return 99; if (e === "require") return 1; i(t, r - t, _.resolution_mode_should_be_either_require_or_import); } } function wJ(e, t) { const r = []; for (const i of ch(t, 0) || nt) { const o = t.substring(i.pos, i.end); A4e(r, i, o); } e.pragmas = /* @__PURE__ */ new Map(); for (const i of r) { if (e.pragmas.has(i.name)) { const o = e.pragmas.get(i.name); o instanceof Array ? o.push(i.args) : e.pragmas.set(i.name, [o, i.args]); continue; } e.pragmas.set(i.name, i.args); } } function DJ(e, t) { e.checkJsDirective = void 0, e.referencedFiles = [], e.typeReferenceDirectives = [], e.libReferenceDirectives = [], e.amdDependencies = [], e.hasNoDefaultLib = !1, e.pragmas.forEach((r, i) => { switch (i) { case "reference": { const o = e.referencedFiles, s = e.typeReferenceDirectives, c = e.libReferenceDirectives; Ye(nR(r), (f) => { const { types: d, lib: y, path: m, ["resolution-mode"]: b } = f.arguments; if (f.arguments["no-default-lib"]) e.hasNoDefaultLib = !0; else if (d) { const A = S4e(b, d.pos, d.end, t); s.push({ pos: d.pos, end: d.end, fileName: d.value, ...A ? { resolutionMode: A } : {} }); } else y ? c.push({ pos: y.pos, end: y.end, fileName: y.value }) : m ? o.push({ pos: m.pos, end: m.end, fileName: m.value }) : t(f.range.pos, f.range.end - f.range.pos, _.Invalid_reference_directive_syntax); }); break; } case "amd-dependency": { e.amdDependencies = rn(nR(r), (o) => ({ name: o.arguments.name, path: o.arguments.path })); break; } case "amd-module": { if (r instanceof Array) for (const o of r) e.moduleName && t(o.range.pos, o.range.end - o.range.pos, _.An_AMD_module_cannot_have_multiple_name_assignments), e.moduleName = o.arguments.name; else e.moduleName = r.arguments.name; break; } case "ts-nocheck": case "ts-check": { Ye(nR(r), (o) => { (!e.checkJsDirective || o.range.pos > e.checkJsDirective.pos) && (e.checkJsDirective = { enabled: i === "ts-check", end: o.range.end, pos: o.range.pos }); }); break; } case "jsx": case "jsxfrag": case "jsximportsource": case "jsxruntime": return; default: D.fail("Unhandled pragma kind"); } }); } function x4e(e) { if (j7.has(e)) return j7.get(e); const t = new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`, "im"); return j7.set(e, t), t; } function A4e(e, t, r) { const i = t.kind === 2 && N_e.exec(r); if (i) { const s = i[1].toLowerCase(), c = fR[s]; if (!c || !(c.kind & 1)) return; if (c.args) { const f = {}; for (const d of c.args) { const m = x4e(d.name).exec(r); if (!m && !d.optional) return; if (m) { const b = m[2] || m[3]; if (d.captureSpan) { const A = t.pos + m.index + m[1].length + 1; f[d.name] = { value: b, pos: A, end: A + b.length }; } else f[d.name] = b; } } e.push({ name: s, args: { arguments: f, range: t } }); } else e.push({ name: s, args: { arguments: {}, range: t } }); return; } const o = t.kind === 2 && O_e.exec(r); if (o) return C_e(e, t, 2, o); if (t.kind === 3) { const s = /@(\S+)(\s+.*)?$/gim; let c; for (; c = s.exec(r); ) C_e(e, t, 4, c); } } function C_e(e, t, r, i) { if (!i) return; const o = i[1].toLowerCase(), s = fR[o]; if (!s || !(s.kind & r)) return; const c = i[2], f = C4e(s, c); f !== "fail" && e.push({ name: o, args: { arguments: f, range: t } }); } function C4e(e, t) { if (!t) return {}; if (!e.args) return {}; const r = n1(t).split(/\s+/), i = {}; for (let o = 0; o < e.args.length; o++) { const s = e.args[o]; if (!r[o] && !s.optional) return "fail"; if (s.captureSpan) return D.fail("Capture spans not yet implemented for non-xml pragmas"); i[s.name] = r[o]; } return i; } function Q0(e, t) { return e.kind !== t.kind ? !1 : e.kind === 79 ? e.escapedText === t.escapedText : e.kind === 108 ? !0 : e.name.escapedText === t.name.escapedText && Q0(e.expression, t.expression); } var L_e, I_e, k_e, w_e, D_e, RJ, jm, R_e, Fv, V7, j7, N_e, O_e, L4e = L({ "src/compiler/parser.ts"() { Ra(), Ra(), i1(), RJ = { createBaseSourceFileNode: (e) => new (D_e || (D_e = Fc.getSourceFileConstructor()))(e, -1, -1), createBaseIdentifierNode: (e) => new (k_e || (k_e = Fc.getIdentifierConstructor()))(e, -1, -1), createBasePrivateIdentifierNode: (e) => new (w_e || (w_e = Fc.getPrivateIdentifierConstructor()))(e, -1, -1), createBaseTokenNode: (e) => new (I_e || (I_e = Fc.getTokenConstructor()))(e, -1, -1), createBaseNode: (e) => new (L_e || (L_e = Fc.getNodeConstructor()))(e, -1, -1) }, jm = iO(1, RJ), R_e = { [163]: function(t, r, i) { return Jt(r, t.left) || Jt(r, t.right); }, [165]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Jt(r, t.constraint) || Jt(r, t.default) || Jt(r, t.expression); }, [300]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Jt(r, t.questionToken) || Jt(r, t.exclamationToken) || Jt(r, t.equalsToken) || Jt(r, t.objectAssignmentInitializer); }, [301]: function(t, r, i) { return Jt(r, t.expression); }, [166]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.dotDotDotToken) || Jt(r, t.name) || Jt(r, t.questionToken) || Jt(r, t.type) || Jt(r, t.initializer); }, [169]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Jt(r, t.questionToken) || Jt(r, t.exclamationToken) || Jt(r, t.type) || Jt(r, t.initializer); }, [168]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Jt(r, t.questionToken) || Jt(r, t.type) || Jt(r, t.initializer); }, [299]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Jt(r, t.questionToken) || Jt(r, t.exclamationToken) || Jt(r, t.initializer); }, [257]: function(t, r, i) { return Jt(r, t.name) || Jt(r, t.exclamationToken) || Jt(r, t.type) || Jt(r, t.initializer); }, [205]: function(t, r, i) { return Jt(r, t.dotDotDotToken) || Jt(r, t.propertyName) || Jt(r, t.name) || Jt(r, t.initializer); }, [178]: function(t, r, i) { return Ci(r, i, t.modifiers) || Ci(r, i, t.typeParameters) || Ci(r, i, t.parameters) || Jt(r, t.type); }, [182]: function(t, r, i) { return Ci(r, i, t.modifiers) || Ci(r, i, t.typeParameters) || Ci(r, i, t.parameters) || Jt(r, t.type); }, [181]: function(t, r, i) { return Ci(r, i, t.modifiers) || Ci(r, i, t.typeParameters) || Ci(r, i, t.parameters) || Jt(r, t.type); }, [176]: d_e, [177]: d_e, [171]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.asteriskToken) || Jt(r, t.name) || Jt(r, t.questionToken) || Jt(r, t.exclamationToken) || Ci(r, i, t.typeParameters) || Ci(r, i, t.parameters) || Jt(r, t.type) || Jt(r, t.body); }, [170]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Jt(r, t.questionToken) || Ci(r, i, t.typeParameters) || Ci(r, i, t.parameters) || Jt(r, t.type); }, [173]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Ci(r, i, t.typeParameters) || Ci(r, i, t.parameters) || Jt(r, t.type) || Jt(r, t.body); }, [174]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Ci(r, i, t.typeParameters) || Ci(r, i, t.parameters) || Jt(r, t.type) || Jt(r, t.body); }, [175]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Ci(r, i, t.typeParameters) || Ci(r, i, t.parameters) || Jt(r, t.type) || Jt(r, t.body); }, [259]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.asteriskToken) || Jt(r, t.name) || Ci(r, i, t.typeParameters) || Ci(r, i, t.parameters) || Jt(r, t.type) || Jt(r, t.body); }, [215]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.asteriskToken) || Jt(r, t.name) || Ci(r, i, t.typeParameters) || Ci(r, i, t.parameters) || Jt(r, t.type) || Jt(r, t.body); }, [216]: function(t, r, i) { return Ci(r, i, t.modifiers) || Ci(r, i, t.typeParameters) || Ci(r, i, t.parameters) || Jt(r, t.type) || Jt(r, t.equalsGreaterThanToken) || Jt(r, t.body); }, [172]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.body); }, [180]: function(t, r, i) { return Jt(r, t.typeName) || Ci(r, i, t.typeArguments); }, [179]: function(t, r, i) { return Jt(r, t.assertsModifier) || Jt(r, t.parameterName) || Jt(r, t.type); }, [183]: function(t, r, i) { return Jt(r, t.exprName) || Ci(r, i, t.typeArguments); }, [184]: function(t, r, i) { return Ci(r, i, t.members); }, [185]: function(t, r, i) { return Jt(r, t.elementType); }, [186]: function(t, r, i) { return Ci(r, i, t.elements); }, [189]: f_e, [190]: f_e, [191]: function(t, r, i) { return Jt(r, t.checkType) || Jt(r, t.extendsType) || Jt(r, t.trueType) || Jt(r, t.falseType); }, [192]: function(t, r, i) { return Jt(r, t.typeParameter); }, [202]: function(t, r, i) { return Jt(r, t.argument) || Jt(r, t.assertions) || Jt(r, t.qualifier) || Ci(r, i, t.typeArguments); }, [298]: function(t, r, i) { return Jt(r, t.assertClause); }, [193]: __e, [195]: __e, [196]: function(t, r, i) { return Jt(r, t.objectType) || Jt(r, t.indexType); }, [197]: function(t, r, i) { return Jt(r, t.readonlyToken) || Jt(r, t.typeParameter) || Jt(r, t.nameType) || Jt(r, t.questionToken) || Jt(r, t.type) || Ci(r, i, t.members); }, [198]: function(t, r, i) { return Jt(r, t.literal); }, [199]: function(t, r, i) { return Jt(r, t.dotDotDotToken) || Jt(r, t.name) || Jt(r, t.questionToken) || Jt(r, t.type); }, [203]: p_e, [204]: p_e, [206]: function(t, r, i) { return Ci(r, i, t.elements); }, [207]: function(t, r, i) { return Ci(r, i, t.properties); }, [208]: function(t, r, i) { return Jt(r, t.expression) || Jt(r, t.questionDotToken) || Jt(r, t.name); }, [209]: function(t, r, i) { return Jt(r, t.expression) || Jt(r, t.questionDotToken) || Jt(r, t.argumentExpression); }, [210]: m_e, [211]: m_e, [212]: function(t, r, i) { return Jt(r, t.tag) || Jt(r, t.questionDotToken) || Ci(r, i, t.typeArguments) || Jt(r, t.template); }, [213]: function(t, r, i) { return Jt(r, t.type) || Jt(r, t.expression); }, [214]: function(t, r, i) { return Jt(r, t.expression); }, [217]: function(t, r, i) { return Jt(r, t.expression); }, [218]: function(t, r, i) { return Jt(r, t.expression); }, [219]: function(t, r, i) { return Jt(r, t.expression); }, [221]: function(t, r, i) { return Jt(r, t.operand); }, [226]: function(t, r, i) { return Jt(r, t.asteriskToken) || Jt(r, t.expression); }, [220]: function(t, r, i) { return Jt(r, t.expression); }, [222]: function(t, r, i) { return Jt(r, t.operand); }, [223]: function(t, r, i) { return Jt(r, t.left) || Jt(r, t.operatorToken) || Jt(r, t.right); }, [231]: function(t, r, i) { return Jt(r, t.expression) || Jt(r, t.type); }, [232]: function(t, r, i) { return Jt(r, t.expression); }, [235]: function(t, r, i) { return Jt(r, t.expression) || Jt(r, t.type); }, [233]: function(t, r, i) { return Jt(r, t.name); }, [224]: function(t, r, i) { return Jt(r, t.condition) || Jt(r, t.questionToken) || Jt(r, t.whenTrue) || Jt(r, t.colonToken) || Jt(r, t.whenFalse); }, [227]: function(t, r, i) { return Jt(r, t.expression); }, [238]: h_e, [265]: h_e, [308]: function(t, r, i) { return Ci(r, i, t.statements) || Jt(r, t.endOfFileToken); }, [240]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.declarationList); }, [258]: function(t, r, i) { return Ci(r, i, t.declarations); }, [241]: function(t, r, i) { return Jt(r, t.expression); }, [242]: function(t, r, i) { return Jt(r, t.expression) || Jt(r, t.thenStatement) || Jt(r, t.elseStatement); }, [243]: function(t, r, i) { return Jt(r, t.statement) || Jt(r, t.expression); }, [244]: function(t, r, i) { return Jt(r, t.expression) || Jt(r, t.statement); }, [245]: function(t, r, i) { return Jt(r, t.initializer) || Jt(r, t.condition) || Jt(r, t.incrementor) || Jt(r, t.statement); }, [246]: function(t, r, i) { return Jt(r, t.initializer) || Jt(r, t.expression) || Jt(r, t.statement); }, [247]: function(t, r, i) { return Jt(r, t.awaitModifier) || Jt(r, t.initializer) || Jt(r, t.expression) || Jt(r, t.statement); }, [248]: g_e, [249]: g_e, [250]: function(t, r, i) { return Jt(r, t.expression); }, [251]: function(t, r, i) { return Jt(r, t.expression) || Jt(r, t.statement); }, [252]: function(t, r, i) { return Jt(r, t.expression) || Jt(r, t.caseBlock); }, [266]: function(t, r, i) { return Ci(r, i, t.clauses); }, [292]: function(t, r, i) { return Jt(r, t.expression) || Ci(r, i, t.statements); }, [293]: function(t, r, i) { return Ci(r, i, t.statements); }, [253]: function(t, r, i) { return Jt(r, t.label) || Jt(r, t.statement); }, [254]: function(t, r, i) { return Jt(r, t.expression); }, [255]: function(t, r, i) { return Jt(r, t.tryBlock) || Jt(r, t.catchClause) || Jt(r, t.finallyBlock); }, [295]: function(t, r, i) { return Jt(r, t.variableDeclaration) || Jt(r, t.block); }, [167]: function(t, r, i) { return Jt(r, t.expression); }, [260]: y_e, [228]: y_e, [261]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Ci(r, i, t.typeParameters) || Ci(r, i, t.heritageClauses) || Ci(r, i, t.members); }, [262]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Ci(r, i, t.typeParameters) || Jt(r, t.type); }, [263]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Ci(r, i, t.members); }, [302]: function(t, r, i) { return Jt(r, t.name) || Jt(r, t.initializer); }, [264]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Jt(r, t.body); }, [268]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name) || Jt(r, t.moduleReference); }, [269]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.importClause) || Jt(r, t.moduleSpecifier) || Jt(r, t.assertClause); }, [270]: function(t, r, i) { return Jt(r, t.name) || Jt(r, t.namedBindings); }, [296]: function(t, r, i) { return Ci(r, i, t.elements); }, [297]: function(t, r, i) { return Jt(r, t.name) || Jt(r, t.value); }, [267]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.name); }, [271]: function(t, r, i) { return Jt(r, t.name); }, [277]: function(t, r, i) { return Jt(r, t.name); }, [272]: v_e, [276]: v_e, [275]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.exportClause) || Jt(r, t.moduleSpecifier) || Jt(r, t.assertClause); }, [273]: b_e, [278]: b_e, [274]: function(t, r, i) { return Ci(r, i, t.modifiers) || Jt(r, t.expression); }, [225]: function(t, r, i) { return Jt(r, t.head) || Ci(r, i, t.templateSpans); }, [236]: function(t, r, i) { return Jt(r, t.expression) || Jt(r, t.literal); }, [200]: function(t, r, i) { return Jt(r, t.head) || Ci(r, i, t.templateSpans); }, [201]: function(t, r, i) { return Jt(r, t.type) || Jt(r, t.literal); }, [164]: function(t, r, i) { return Jt(r, t.expression); }, [294]: function(t, r, i) { return Ci(r, i, t.types); }, [230]: function(t, r, i) { return Jt(r, t.expression) || Ci(r, i, t.typeArguments); }, [280]: function(t, r, i) { return Jt(r, t.expression); }, [279]: function(t, r, i) { return Ci(r, i, t.modifiers); }, [357]: function(t, r, i) { return Ci(r, i, t.elements); }, [281]: function(t, r, i) { return Jt(r, t.openingElement) || Ci(r, i, t.children) || Jt(r, t.closingElement); }, [285]: function(t, r, i) { return Jt(r, t.openingFragment) || Ci(r, i, t.children) || Jt(r, t.closingFragment); }, [282]: E_e, [283]: E_e, [289]: function(t, r, i) { return Ci(r, i, t.properties); }, [288]: function(t, r, i) { return Jt(r, t.name) || Jt(r, t.initializer); }, [290]: function(t, r, i) { return Jt(r, t.expression); }, [291]: function(t, r, i) { return Jt(r, t.dotDotDotToken) || Jt(r, t.expression); }, [284]: function(t, r, i) { return Jt(r, t.tagName); }, [187]: SC, [188]: SC, [312]: SC, [318]: SC, [317]: SC, [319]: SC, [321]: SC, [320]: function(t, r, i) { return Ci(r, i, t.parameters) || Jt(r, t.type); }, [323]: function(t, r, i) { return (typeof t.comment == "string" ? void 0 : Ci(r, i, t.comment)) || Ci(r, i, t.tags); }, [350]: function(t, r, i) { return Jt(r, t.tagName) || Jt(r, t.name) || (typeof t.comment == "string" ? void 0 : Ci(r, i, t.comment)); }, [313]: function(t, r, i) { return Jt(r, t.name); }, [314]: function(t, r, i) { return Jt(r, t.left) || Jt(r, t.right); }, [344]: T_e, [351]: T_e, [333]: function(t, r, i) { return Jt(r, t.tagName) || (typeof t.comment == "string" ? void 0 : Ci(r, i, t.comment)); }, [332]: function(t, r, i) { return Jt(r, t.tagName) || Jt(r, t.class) || (typeof t.comment == "string" ? void 0 : Ci(r, i, t.comment)); }, [331]: function(t, r, i) { return Jt(r, t.tagName) || Jt(r, t.class) || (typeof t.comment == "string" ? void 0 : Ci(r, i, t.comment)); }, [348]: function(t, r, i) { return Jt(r, t.tagName) || Jt(r, t.constraint) || Ci(r, i, t.typeParameters) || (typeof t.comment == "string" ? void 0 : Ci(r, i, t.comment)); }, [349]: function(t, r, i) { return Jt(r, t.tagName) || (t.typeExpression && t.typeExpression.kind === 312 ? Jt(r, t.typeExpression) || Jt(r, t.fullName) || (typeof t.comment == "string" ? void 0 : Ci(r, i, t.comment)) : Jt(r, t.fullName) || Jt(r, t.typeExpression) || (typeof t.comment == "string" ? void 0 : Ci(r, i, t.comment))); }, [341]: function(t, r, i) { return Jt(r, t.tagName) || Jt(r, t.fullName) || Jt(r, t.typeExpression) || (typeof t.comment == "string" ? void 0 : Ci(r, i, t.comment)); }, [345]: xC, [347]: xC, [346]: xC, [343]: xC, [353]: xC, [352]: xC, [342]: xC, [326]: function(t, r, i) { return Ye(t.typeParameters, r) || Ye(t.parameters, r) || Jt(r, t.type); }, [327]: IJ, [328]: IJ, [329]: IJ, [325]: function(t, r, i) { return Ye(t.jsDocPropertyTags, r); }, [330]: Dx, [335]: Dx, [336]: Dx, [337]: Dx, [338]: Dx, [339]: Dx, [334]: Dx, [340]: Dx, [356]: E4e }, ((e) => { var t = sy(99, !0), r = 20480, i, o, s, c, f; function d(z) { return et++, z; } var y = { createBaseSourceFileNode: (z) => d(new f(z, 0, 0)), createBaseIdentifierNode: (z) => d(new s(z, 0, 0)), createBasePrivateIdentifierNode: (z) => d(new c(z, 0, 0)), createBaseTokenNode: (z) => d(new o(z, 0, 0)), createBaseNode: (z) => d(new i(z, 0, 0)) }, m = iO(11, y), { createNodeArray: b, createNumericLiteral: A, createStringLiteral: C, createLiteralLikeNode: I, createIdentifier: O, createPrivateIdentifier: k, createToken: B, createArrayLiteralExpression: U, createObjectLiteralExpression: j, createPropertyAccessExpression: te, createPropertyAccessChain: X, createElementAccessExpression: Y, createElementAccessChain: P, createCallExpression: ue, createCallChain: ne, createNewExpression: ge, createParenthesizedExpression: ie, createBlock: H, createVariableStatement: le, createExpressionStatement: pe, createIfStatement: ye, createWhileStatement: Te, createForStatement: ee, createForOfStatement: $e, createVariableDeclaration: Ge, createVariableDeclarationList: Fe } = m, We, Re, Pe, Ke, He, Me, ot, At, bt, Vt, et, it, nn, Xt, On, Hn, In = !0, Yt = !1; function fr(z, be, Xe, Et, Gt = !1, Cn, Mr) { var pi; if (Cn = L3(z, Cn), Cn === 6) { const Ai = Ji(z, be, Xe, Et, Gt); return HO(Ai, (pi = Ai.statements[0]) == null ? void 0 : pi.expression, Ai.parseDiagnostics, !1, void 0, void 0), Ai.referencedFiles = nt, Ai.typeReferenceDirectives = nt, Ai.libReferenceDirectives = nt, Ai.amdDependencies = nt, Ai.hasNoDefaultLib = !1, Ai.pragmas = DP, Ai; } Ki(z, be, Xe, Et, Cn); const bi = xt(Xe, Gt, Cn, Mr || x_e); return Rr(), bi; } e.parseSourceFile = fr; function xi(z, be) { Ki("", z, be, void 0, 1), dt(); const Xe = Ko(!0), Et = q() === 1 && !ot.length; return Rr(), Et ? Xe : void 0; } e.parseIsolatedEntityName = xi; function Ji(z, be, Xe = 2, Et, Gt = !1) { Ki(z, be, Xe, Et, 6), Re = Hn, dt(); const Cn = Z(); let Mr, pi; if (q() === 1) Mr = qs([], Cn, Cn), pi = rc(); else { let Pa; for (; q() !== 1; ) { let es; switch (q()) { case 22: es = Fy(); break; case 110: case 95: case 104: es = rc(); break; case 40: qr(() => dt() === 8 && dt() !== 58) ? es = sS() : es = Zl(); break; case 8: case 10: if (qr(() => dt() !== 58)) { es = Ca(); break; } default: es = Zl(); break; } Pa && Ga(Pa) ? Pa.push(es) : Pa ? Pa = [Pa, es] : (Pa = es, q() !== 1 && pt(_.Unexpected_token)); } const Cs = Ga(Pa) ? Zt(U(Pa), Cn) : D.checkDefined(Pa), Ao = pe(Cs); Zt(Ao, Cn), Mr = qs([Ao], Cn), pi = Xc(1, _.Unexpected_token); } const bi = Di(z, 2, 6, !1, Mr, pi, Re, io); Gt && lr(bi), bi.nodeCount = et, bi.identifierCount = nn, bi.identifiers = it, bi.parseDiagnostics = ox(ot, bi), At && (bi.jsDocDiagnostics = ox(At, bi)); const Ai = bi; return Rr(), Ai; } e.parseJsonText = Ji; function Ki(z, be, Xe, Et, Gt) { switch (i = Fc.getNodeConstructor(), o = Fc.getTokenConstructor(), s = Fc.getIdentifierConstructor(), c = Fc.getPrivateIdentifierConstructor(), f = Fc.getSourceFileConstructor(), We = Wo(z), Pe = be, Ke = Xe, bt = Et, He = Gt, Me = UN(Gt), ot = [], Xt = 0, it = /* @__PURE__ */ new Map(), nn = 0, et = 0, Re = 0, In = !0, He) { case 1: case 2: Hn = 262144; break; case 6: Hn = 67371008; break; default: Hn = 0; break; } Yt = !1, t.setText(Pe), t.setOnError(Oe), t.setScriptTarget(Ke), t.setLanguageVariant(Me); } function Rr() { t.clearCommentDirectives(), t.setText(""), t.setOnError(void 0), Pe = void 0, Ke = void 0, bt = void 0, He = void 0, Me = void 0, Re = 0, ot = void 0, At = void 0, Xt = 0, it = void 0, On = void 0, In = !0; } function xt(z, be, Xe, Et) { const Gt = sd(We); Gt && (Hn |= 16777216), Re = Hn, dt(); const Cn = ae(0, wf); D.assert(q() === 1); const Mr = ln(rc()), pi = Di(We, z, Xe, Gt, Cn, Mr, Re, Et); return wJ(pi, Pe), DJ(pi, bi), pi.commentDirectives = t.getCommentDirectives(), pi.nodeCount = et, pi.identifierCount = nn, pi.identifiers = it, pi.parseDiagnostics = ox(ot, pi), At && (pi.jsDocDiagnostics = ox(At, pi)), be && lr(pi), pi; function bi(Ai, Pa, Cs) { ot.push(XA(We, Ai, Pa, Cs)); } } function gn(z, be) { return be ? ln(z) : z; } let Ht = !1; function ln(z) { D.assert(!z.jsDoc); const be = _a(UW(z, Pe), (Xe) => S2.parseJSDocComment(z, Xe.pos, Xe.end - Xe.pos)); return be.length && (z.jsDoc = be), Ht && (Ht = !1, z.flags |= 268435456), z; } function rr(z) { const be = bt, Xe = V7.createSyntaxCursor(z); bt = { currentNode: Pa }; const Et = [], Gt = ot; ot = []; let Cn = 0, Mr = bi(z.statements, 0); for (; Mr !== -1; ) { const Cs = z.statements[Cn], Ao = z.statements[Mr]; yi(Et, z.statements, Cn, Mr), Cn = Ai(z.statements, Mr); const es = $i(Gt, (Ip) => Ip.start >= Cs.pos), kd = es >= 0 ? $i(Gt, (Ip) => Ip.start >= Ao.pos, es) : -1; es >= 0 && yi(ot, Gt, es, kd >= 0 ? kd : void 0), Gi(() => { const Ip = Hn; for (Hn |= 32768, t.setTextPos(Ao.pos), dt(); q() !== 1; ) { const sm = t.getStartPos(), Fg = lt(0, wf); if (Et.push(Fg), sm === t.getStartPos() && dt(), Cn >= 0) { const T_ = z.statements[Cn]; if (Fg.end === T_.pos) break; Fg.end > T_.pos && (Cn = Ai(z.statements, Cn + 1)); } } Hn = Ip; }, 2), Mr = Cn >= 0 ? bi(z.statements, Cn) : -1; } if (Cn >= 0) { const Cs = z.statements[Cn]; yi(Et, z.statements, Cn); const Ao = $i(Gt, (es) => es.start >= Cs.pos); Ao >= 0 && yi(ot, Gt, Ao); } return bt = be, m.updateSourceFile(z, mt(b(Et), z.statements)); function pi(Cs) { return !(Cs.flags & 32768) && !!(Cs.transformFlags & 67108864); } function bi(Cs, Ao) { for (let es = Ao; es < Cs.length; es++) if (pi(Cs[es])) return es; return -1; } function Ai(Cs, Ao) { for (let es = Ao; es < Cs.length; es++) if (!pi(Cs[es])) return es; return -1; } function Pa(Cs) { const Ao = Xe.currentNode(Cs); return In && Ao && pi(Ao) && (Ao.intersectsChange = !0), Ao; } } function lr(z) { Dv(z, !0); } e.fixupParentReferences = lr; function Di(z, be, Xe, Et, Gt, Cn, Mr, pi) { let bi = m.createSourceFile(Gt, Cn, Mr); return ak(bi, 0, Pe.length), Ai(bi), !Et && Yl(bi) && bi.transformFlags & 67108864 && (bi = rr(bi), Ai(bi)), bi; function Ai(Pa) { Pa.text = Pe, Pa.bindDiagnostics = [], Pa.bindSuggestionDiagnostics = void 0, Pa.languageVersion = be, Pa.fileName = z, Pa.languageVariant = UN(Xe), Pa.isDeclarationFile = Et, Pa.scriptKind = Xe, pi(Pa), Pa.setExternalModuleIndicator = pi; } } function _i(z, be) { z ? Hn |= be : Hn &= ~be; } function Rn(z) { _i(z, 4096); } function en(z) { _i(z, 8192); } function Pn(z) { _i(z, 16384); } function xr(z) { _i(z, 32768); } function Ur(z, be) { const Xe = z & Hn; if (Xe) { _i(!1, Xe); const Et = be(); return _i(!0, Xe), Et; } return be(); } function Ie(z, be) { const Xe = z & ~Hn; if (Xe) { _i(!0, Xe); const Et = be(); return _i(!1, Xe), Et; } return be(); } function gt(z) { return Ur(4096, z); } function Nt(z) { return Ie(4096, z); } function xe(z) { return Ur(65536, z); } function _t(z) { return Ie(65536, z); } function _e(z) { return Ie(8192, z); } function re(z) { return Ie(16384, z); } function me(z) { return Ie(32768, z); } function V(z) { return Ur(32768, z); } function je(z) { return Ie(40960, z); } function Qe(z) { return Ur(40960, z); } function Je(z) { return (Hn & z) !== 0; } function Ut() { return Je(8192); } function on() { return Je(4096); } function Sn() { return Je(65536); } function br() { return Je(16384); } function ce() { return Je(32768); } function pt(z, be) { return rt(t.getTokenPos(), t.getTextPos(), z, be); } function Wt(z, be, Xe, Et) { const Gt = Zs(ot); let Cn; return (!Gt || z !== Gt.start) && (Cn = XA(We, z, be, Xe, Et), ot.push(Cn)), Yt = !0, Cn; } function rt(z, be, Xe, Et) { return Wt(z, be - z, Xe, Et); } function K(z, be, Xe) { rt(z.pos, z.end, be, Xe); } function Oe(z, be) { Wt(t.getTextPos(), be, z); } function Z() { return t.getStartPos(); } function we() { return t.hasPrecedingJSDocComment(); } function q() { return Vt; } function Rt() { return Vt = t.scan(); } function ht(z) { return dt(), z(); } function dt() { return bd(Vt) && (t.hasUnicodeEscape() || t.hasExtendedUnicodeEscape()) && rt(t.getTokenPos(), t.getTextPos(), _.Keywords_cannot_contain_escape_characters), Rt(); } function dn() { return Vt = t.scanJsDocToken(); } function $n() { return Vt = t.reScanGreaterToken(); } function ii() { return Vt = t.reScanSlashToken(); } function Ti(z) { return Vt = t.reScanTemplateToken(z); } function Si() { return Vt = t.reScanTemplateHeadOrNoSubstitutionTemplate(); } function Bi() { return Vt = t.reScanLessThanToken(); } function fo() { return Vt = t.reScanHashToken(); } function vo() { return Vt = t.scanJsxIdentifier(); } function no() { return Vt = t.scanJsxToken(); } function sa() { return Vt = t.scanJsxAttributeValue(); } function Gi(z, be) { const Xe = Vt, Et = ot.length, Gt = Yt, Cn = Hn, Mr = be !== 0 ? t.lookAhead(z) : t.tryScan(z); return D.assert(Cn === Hn), (!Mr || be !== 0) && (Vt = Xe, be !== 2 && (ot.length = Et), Yt = Gt), Mr; } function qr(z) { return Gi(z, 1); } function is(z) { return Gi(z, 0); } function ui() { return q() === 79 ? !0 : q() > 116; } function la() { return q() === 79 ? !0 : q() === 125 && Ut() || q() === 133 && ce() ? !1 : q() > 116; } function wn(z, be, Xe = !0) { return q() === z ? (Xe && dt(), !0) : (be ? pt(be) : pt(_._0_expected, mo(z)), !1); } const da = Object.keys(kR).filter((z) => z.length > 2); function $l(z) { var be; if (bT(z)) { rt(zo(Pe, z.template.pos), z.template.end, _.Module_declaration_names_may_only_use_or_quoted_strings); return; } const Xe = Ve(z) ? Or(z) : void 0; if (!Xe || !w_(Xe, Ke)) { pt(_._0_expected, mo(26)); return; } const Et = zo(Pe, z.pos); switch (Xe) { case "const": case "let": case "var": rt(Et, z.end, _.Variable_declaration_not_allowed_at_this_location); return; case "declare": return; case "interface": tl(_.Interface_name_cannot_be_0, _.Interface_must_be_given_a_name, 18); return; case "is": rt(Et, t.getTextPos(), _.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); return; case "module": case "namespace": tl(_.Namespace_name_cannot_be_0, _.Namespace_must_be_given_a_name, 18); return; case "type": tl(_.Type_alias_name_cannot_be_0, _.Type_alias_must_be_given_a_name, 63); return; } const Gt = (be = YL(Xe, da, (Cn) => Cn)) != null ? be : Ml(Xe); if (Gt) { rt(Et, z.end, _.Unknown_keyword_or_identifier_Did_you_mean_0, Gt); return; } q() !== 0 && rt(Et, z.end, _.Unexpected_keyword_or_identifier); } function tl(z, be, Xe) { q() === Xe ? pt(be) : pt(z, t.getTokenValue()); } function Ml(z) { for (const be of da) if (z.length > be.length + 2 && Ea(z, be)) return `${be} ${z.slice(be.length)}`; } function zl(z, be, Xe) { if (q() === 59 && !t.hasPrecedingLineBreak()) { pt(_.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations); return; } if (q() === 20) { pt(_.Cannot_start_a_function_call_in_a_type_annotation), dt(); return; } if (be && !ks()) { Xe ? pt(_._0_expected, mo(26)) : pt(_.Expected_for_property_initializer); return; } if (!pl()) { if (Xe) { pt(_._0_expected, mo(26)); return; } $l(z); } } function Fl(z) { return q() === z ? (dn(), !0) : (pt(_._0_expected, mo(z)), !1); } function So(z, be, Xe, Et) { if (q() === be) { dt(); return; } const Gt = pt(_._0_expected, mo(be)); Xe && Gt && qo(Gt, XA(We, Et, 1, _.The_parser_expected_to_find_a_1_to_match_the_0_token_here, mo(z), mo(be))); } function Aa(z) { return q() === z ? (dt(), !0) : !1; } function Jo(z) { if (q() === z) return rc(); } function Bl(z) { if (q() === z) return jc(); } function Xc(z, be, Xe) { return Jo(z) || Gl(z, !1, be || _._0_expected, Xe || mo(z)); } function Ud(z) { return Bl(z) || Gl(z, !1, _._0_expected, mo(z)); } function rc() { const z = Z(), be = q(); return dt(), Zt(B(be), z); } function jc() { const z = Z(), be = q(); return dn(), Zt(B(be), z); } function ks() { return q() === 26 ? !0 : q() === 19 || q() === 1 || t.hasPrecedingLineBreak(); } function pl() { return ks() ? (q() === 26 && dt(), !0) : !1; } function Qs() { return pl() || wn(26); } function qs(z, be, Xe, Et) { const Gt = b(z, Et); return Mm(Gt, be, Xe ?? t.getStartPos()), Gt; } function Zt(z, be, Xe) { return Mm(z, be, Xe ?? t.getStartPos()), Hn && (z.flags |= Hn), Yt && (Yt = !1, z.flags |= 131072), z; } function Gl(z, be, Xe, Et) { be ? Wt(t.getStartPos(), 0, Xe, Et) : Xe && pt(Xe, Et); const Gt = Z(), Cn = z === 79 ? O("", void 0) : Ev(z) ? m.createTemplateLiteralLikeNode(z, "", "", void 0) : z === 8 ? A("", void 0) : z === 10 ? C("", void 0) : z === 279 ? m.createMissingDeclaration() : B(z); return Zt(Cn, Gt); } function yu(z) { let be = it.get(z); return be === void 0 && it.set(z, be = z), be; } function Bu(z, be, Xe) { if (z) { nn++; const pi = Z(), bi = q(), Ai = yu(t.getTokenValue()), Pa = t.hasExtendedUnicodeEscape(); return Rt(), Zt(O(Ai, bi, Pa), pi); } if (q() === 80) return pt(Xe || _.Private_identifiers_are_not_allowed_outside_class_bodies), Bu(!0); if (q() === 0 && t.tryScan(() => t.reScanInvalidIdentifier() === 79)) return Bu(!0); nn++; const Et = q() === 1, Gt = t.isReservedWord(), Cn = t.getTokenText(), Mr = Gt ? _.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here : _.Identifier_expected; return Gl(79, Et, be || Mr, Cn); } function de(z) { return Bu(ui(), void 0, z); } function It(z, be) { return Bu(la(), z, be); } function jt(z) { return Bu(Wu(q()), z); } function Q() { return Wu(q()) || q() === 10 || q() === 8; } function at() { return Wu(q()) || q() === 10; } function St(z) { if (q() === 10 || q() === 8) { const be = Ca(); return be.text = yu(be.text), be; } return z && q() === 22 ? kr() : q() === 80 ? Nr() : jt(); } function _n() { return St(!0); } function kr() { const z = Z(); wn(22); const be = gt(ru); return wn(23), Zt(m.createComputedPropertyName(be), z); } function Nr() { const z = Z(), be = k(yu(t.getTokenValue())); return dt(), Zt(be, z); } function va(z) { return q() === z && is(_o); } function as() { return dt(), t.hasPrecedingLineBreak() ? !1 : lc(); } function _o() { switch (q()) { case 85: return dt() === 92; case 93: return dt(), q() === 88 ? qr(ld) : q() === 154 ? qr(Ka) : Uo(); case 88: return ld(); case 124: case 137: case 151: return dt(), lc(); default: return as(); } } function Uo() { return q() === 59 || q() !== 41 && q() !== 128 && q() !== 18 && lc(); } function Ka() { return dt(), Uo(); } function cl() { return uy(q()) && is(_o); } function lc() { return q() === 22 || q() === 18 || q() === 41 || q() === 25 || Q(); } function ld() { return dt(), q() === 84 || q() === 98 || q() === 118 || q() === 59 || q() === 126 && qr($m) || q() === 132 && qr(Cb); } function vs(z, be) { if (Mt(z)) return !0; switch (z) { case 0: case 1: case 3: return !(q() === 26 && be) && dS(); case 2: return q() === 82 || q() === 88; case 4: return qr(K1); case 5: return qr(Id) || q() === 26 && !be; case 6: return q() === 22 || Q(); case 12: switch (q()) { case 22: case 41: case 25: case 24: return !0; default: return Q(); } case 18: return Q(); case 9: return q() === 22 || q() === 25 || Q(); case 24: return at(); case 7: return q() === 18 ? qr(ls) : be ? la() && !Lf() : mb() && !Lf(); case 8: return uE(); case 10: return q() === 27 || q() === 25 || uE(); case 19: return q() === 101 || q() === 85 || la(); case 15: switch (q()) { case 27: case 24: return !0; } case 11: return q() === 25 || Q_(); case 16: return ob(!1); case 17: return ob(!0); case 20: case 21: return q() === 27 || Sg(); case 22: return Bh(); case 23: return Wu(q()); case 13: return Wu(q()) || q() === 18; case 14: return !0; } return D.fail("Non-exhaustive case in 'isListElement'."); } function ls() { if (D.assert(q() === 18), dt() === 19) { const z = dt(); return z === 27 || z === 18 || z === 94 || z === 117; } return !0; } function ul() { return dt(), la(); } function Vd() { return dt(), Wu(q()); } function Ul() { return dt(), ile(q()); } function Lf() { return q() === 117 || q() === 94 ? qr(Se) : !1; } function Se() { return dt(), Q_(); } function Dt() { return dt(), Sg(); } function Nn(z) { if (q() === 1) return !0; switch (z) { case 1: case 2: case 4: case 5: case 6: case 12: case 9: case 23: case 24: return q() === 19; case 3: return q() === 19 || q() === 82 || q() === 88; case 7: return q() === 18 || q() === 94 || q() === 117; case 8: return zi(); case 19: return q() === 31 || q() === 20 || q() === 18 || q() === 94 || q() === 117; case 11: return q() === 21 || q() === 26; case 15: case 21: case 10: return q() === 23; case 17: case 16: case 18: return q() === 21 || q() === 23; case 20: return q() !== 27; case 22: return q() === 18 || q() === 19; case 13: return q() === 31 || q() === 43; case 14: return q() === 29 && qr(co); default: return !1; } } function zi() { return !!(ks() || aS(q()) || q() === 38); } function xo() { for (let z = 0; z < 25; z++) if (Xt & 1 << z && (vs(z, !0) || Nn(z))) return !0; return !1; } function ae(z, be) { const Xe = Xt; Xt |= 1 << z; const Et = [], Gt = Z(); for (; !Nn(z); ) { if (vs(z, !1)) { Et.push(lt(z, be)); continue; } if (cd(z)) break; } return Xt = Xe, qs(Et, Gt); } function lt(z, be) { const Xe = Mt(z); return Xe ? Pt(Xe) : be(); } function Mt(z, be) { var Xe; if (!bt || !sn(z) || Yt) return; const Et = bt.currentNode(be ?? t.getStartPos()); if (!(Sl(Et) || Et.intersectsChange || qR(Et) || (Et.flags & 50720768) !== Hn) && jn(Et, z)) return gN(Et) && ((Xe = Et.jsDoc) != null && Xe.jsDocCache) && (Et.jsDoc.jsDocCache = void 0), Et; } function Pt(z) { return t.setTextPos(z.end), dt(), z; } function sn(z) { switch (z) { case 5: case 2: case 0: case 1: case 3: case 6: case 4: case 8: case 17: case 16: return !0; } return !1; } function jn(z, be) { switch (be) { case 5: return wr(z); case 2: return Zr(z); case 0: case 1: case 3: return Ri(z); case 6: return Ua(z); case 4: return Vo(z); case 8: return bs(z); case 17: case 16: return Js(z); } return !1; } function wr(z) { if (z) switch (z.kind) { case 173: case 178: case 174: case 175: case 169: case 237: return !0; case 171: const be = z; return !(be.name.kind === 79 && be.name.escapedText === "constructor"); } return !1; } function Zr(z) { if (z) switch (z.kind) { case 292: case 293: return !0; } return !1; } function Ri(z) { if (z) switch (z.kind) { case 259: case 240: case 238: case 242: case 241: case 254: case 250: case 252: case 249: case 248: case 246: case 247: case 245: case 244: case 251: case 239: case 255: case 253: case 243: case 256: case 269: case 268: case 275: case 274: case 264: case 260: case 261: case 263: case 262: return !0; } return !1; } function Ua(z) { return z.kind === 302; } function Vo(z) { if (z) switch (z.kind) { case 177: case 170: case 178: case 168: case 176: return !0; } return !1; } function bs(z) { return z.kind !== 257 ? !1 : z.initializer === void 0; } function Js(z) { return z.kind !== 166 ? !1 : z.initializer === void 0; } function cd(z) { return sf(z), xo() ? !0 : (dt(), !1); } function sf(z) { switch (z) { case 0: return q() === 88 ? pt(_._0_expected, mo(93)) : pt(_.Declaration_or_statement_expected); case 1: return pt(_.Declaration_or_statement_expected); case 2: return pt(_.case_or_default_expected); case 3: return pt(_.Statement_expected); case 18: case 4: return pt(_.Property_or_signature_expected); case 5: return pt(_.Unexpected_token_A_constructor_method_accessor_or_property_was_expected); case 6: return pt(_.Enum_member_expected); case 7: return pt(_.Expression_expected); case 8: return bd(q()) ? pt(_._0_is_not_allowed_as_a_variable_declaration_name, mo(q())) : pt(_.Variable_declaration_expected); case 9: return pt(_.Property_destructuring_pattern_expected); case 10: return pt(_.Array_element_destructuring_pattern_expected); case 11: return pt(_.Argument_expression_expected); case 12: return pt(_.Property_assignment_expected); case 15: return pt(_.Expression_or_comma_expected); case 17: return pt(_.Parameter_declaration_expected); case 16: return bd(q()) ? pt(_._0_is_not_allowed_as_a_parameter_name, mo(q())) : pt(_.Parameter_declaration_expected); case 19: return pt(_.Type_parameter_declaration_expected); case 20: return pt(_.Type_argument_expected); case 21: return pt(_.Type_expected); case 22: return pt(_.Unexpected_token_expected); case 23: return pt(_.Identifier_expected); case 13: return pt(_.Identifier_expected); case 14: return pt(_.Identifier_expected); case 24: return pt(_.Identifier_or_string_literal_expected); case 25: return D.fail("ParsingContext.Count used as a context"); default: D.assertNever(z); } } function Ql(z, be, Xe) { const Et = Xt; Xt |= 1 << z; const Gt = [], Cn = Z(); let Mr = -1; for (; ; ) { if (vs(z, !1)) { const pi = t.getStartPos(), bi = lt(z, be); if (!bi) { Xt = Et; return; } if (Gt.push(bi), Mr = t.getTokenPos(), Aa(27)) continue; if (Mr = -1, Nn(z)) break; wn(27, jd(z)), Xe && q() === 26 && !t.hasPrecedingLineBreak() && dt(), pi === t.getStartPos() && dt(); continue; } if (Nn(z) || cd(z)) break; } return Xt = Et, qs(Gt, Cn, void 0, Mr >= 0); } function jd(z) { return z === 6 ? _.An_enum_member_name_must_be_followed_by_a_or : void 0; } function vu() { const z = qs([], Z()); return z.isMissingList = !0, z; } function lf(z) { return !!z.isMissingList; } function g_(z, be, Xe, Et) { if (wn(Xe)) { const Gt = Ql(z, be); return wn(Et), Gt; } return vu(); } function Ko(z, be) { const Xe = Z(); let Et = z ? jt(be) : It(be); for (; Aa(24) && q() !== 29; ) Et = Zt(m.createQualifiedName(Et, cf(z, !1)), Xe); return Et; } function y_(z, be) { return Zt(m.createQualifiedName(z, be), z.pos); } function cf(z, be) { if (t.hasPrecedingLineBreak() && Wu(q()) && qr(dd)) return Gl(79, !0, _.Identifier_expected); if (q() === 80) { const Xe = Nr(); return be ? Xe : Gl(79, !0, _.Identifier_expected); } return z ? jt() : It(); } function J_(z) { const be = Z(), Xe = []; let Et; do Et = ka(z), Xe.push(Et); while (Et.literal.kind === 16); return qs(Xe, be); } function Tp(z) { const be = Z(); return Zt(m.createTemplateExpression(Ce(z), J_(z)), be); } function G() { const z = Z(); return Zt(m.createTemplateLiteralType(Ce(!1), Ze()), z); } function Ze() { const z = Z(), be = []; let Xe; do Xe = zt(), be.push(Xe); while (Xe.literal.kind === 16); return qs(be, z); } function zt() { const z = Z(); return Zt(m.createTemplateLiteralTypeSpan(mc(), Yn(!1)), z); } function Yn(z) { return q() === 19 ? (Ti(z), Be()) : Xc(17, _._0_expected, mo(19)); } function ka(z) { const be = Z(); return Zt(m.createTemplateSpan(gt(ru), Yn(z)), be); } function Ca() { return Ot(q()); } function Ce(z) { z && Si(); const be = Ot(q()); return D.assert(be.kind === 15, "Template head has wrong token kind"), be; } function Be() { const z = Ot(q()); return D.assert(z.kind === 16 || z.kind === 17, "Template fragment has wrong token kind"), z; } function Lt(z) { const be = z === 14 || z === 17, Xe = t.getTokenText(); return Xe.substring(1, Xe.length - (t.isUnterminated() ? 0 : be ? 1 : 2)); } function Ot(z) { const be = Z(), Xe = Ev(z) ? m.createTemplateLiteralLikeNode(z, t.getTokenValue(), Lt(z), t.getTokenFlags() & 2048) : z === 8 ? A(t.getTokenValue(), t.getNumericLiteralFlags()) : z === 10 ? C(t.getTokenValue(), void 0, t.hasExtendedUnicodeEscape()) : hI(z) ? I(z, t.getTokenValue()) : D.fail(); return t.hasExtendedUnicodeEscape() && (Xe.hasExtendedUnicodeEscape = !0), t.isUnterminated() && (Xe.isUnterminated = !0), dt(), Zt(Xe, be); } function pn() { return Ko(!0, _.Type_expected); } function vn() { if (!t.hasPrecedingLineBreak() && Bi() === 29) return g_(20, mc, 29, 31); } function Tn() { const z = Z(); return Zt(m.createTypeReferenceNode(pn(), vn()), z); } function Wn(z) { switch (z.kind) { case 180: return Sl(z.typeName); case 181: case 182: { const { parameters: be, type: Xe } = z; return lf(be) || Wn(Xe); } case 193: return Wn(z.type); default: return !1; } } function Hr(z) { return dt(), Zt(m.createTypePredicateNode(void 0, z, mc()), z.pos); } function Hi() { const z = Z(); return dt(), Zt(m.createThisTypeNode(), z); } function tr() { const z = Z(); return dt(), Zt(m.createJSDocAllType(), z); } function fn() { const z = Z(); return dt(), Zt(m.createJSDocNonNullableType(db(), !1), z); } function ur() { const z = Z(); return dt(), q() === 27 || q() === 19 || q() === 21 || q() === 31 || q() === 63 || q() === 51 ? Zt(m.createJSDocUnknownType(), z) : Zt(m.createJSDocNullableType(mc(), !1), z); } function Ta() { const z = Z(), be = we(); if (qr(oi)) { dt(); const Xe = Sp(36), Et = X_(58, !1); return gn(Zt(m.createJSDocFunctionType(Xe, Et), z), be); } return Zt(m.createTypeReferenceNode(jt(), void 0), z); } function Ks() { const z = Z(); let be; return (q() === 108 || q() === 103) && (be = jt(), wn(58)), Zt(m.createParameterDeclaration(void 0, void 0, be, void 0, ic(), void 0), z); } function ic() { t.setInJSDocType(!0); const z = Z(); if (Aa(142)) { const Et = m.createJSDocNamepathType(void 0); e: for (; ; ) switch (q()) { case 19: case 1: case 27: case 5: break e; default: dn(); } return t.setInJSDocType(!1), Zt(Et, z); } const be = Aa(25); let Xe = Qo(); return t.setInJSDocType(!1), be && (Xe = Zt(m.createJSDocVariadicType(Xe), z)), q() === 63 ? (dt(), Zt(m.createJSDocOptionalType(Xe), z)) : Xe; } function zm() { const z = Z(); wn(112); const be = Ko(!0), Xe = t.hasPrecedingLineBreak() ? void 0 : zd(); return Zt(m.createTypeQueryNode(be, Xe), z); } function yg() { const z = Z(), be = Ds(!1, !0), Xe = It(); let Et, Gt; Aa(94) && (Sg() || !Q_() ? Et = mc() : Gt = xp()); const Cn = Aa(63) ? mc() : void 0, Mr = m.createTypeParameterDeclaration(be, Xe, Et, Cn); return Mr.expression = Gt, Zt(Mr, z); } function K_() { if (q() === 29) return g_(19, yg, 29, 31); } function ob(z) { return q() === 25 || uE() || uy(q()) || q() === 59 || Sg(!z); } function Jv(z) { const be = Uy(_.Private_identifiers_cannot_be_used_as_parameters); return zR(be) === 0 && !kt(z) && uy(q()) && dt(), be; } function i2() { return ui() || q() === 22 || q() === 18; } function QT(z) { return vg(z); } function a2(z) { return vg(z, !1); } function vg(z, be = !0) { const Xe = Z(), Et = we(), Gt = z ? me(() => Ds(!0)) : V(() => Ds(!0)); if (q() === 108) { const bi = m.createParameterDeclaration(Gt, void 0, Bu(!0), void 0, wh(), void 0), Ai = Wc(Gt); return Ai && K(Ai, _.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters), gn(Zt(bi, Xe), Et); } const Cn = In; In = !1; const Mr = Jo(25); if (!be && !i2()) return; const pi = gn(Zt(m.createParameterDeclaration(Gt, Mr, Jv(Gt), Jo(57), wh(), Ag()), Xe), Et); return In = Cn, pi; } function X_(z, be) { if (Kv(z, be)) return xe(Qo); } function Kv(z, be) { return z === 38 ? (wn(z), !0) : Aa(58) ? !0 : be && q() === 38 ? (pt(_._0_expected, mo(58)), dt(), !0) : !1; } function kh(z, be) { const Xe = Ut(), Et = ce(); en(!!(z & 1)), xr(!!(z & 2)); const Gt = z & 32 ? Ql(17, Ks) : Ql(16, () => be ? QT(Et) : a2(Et)); return en(Xe), xr(Et), Gt; } function Sp(z) { if (!wn(20)) return vu(); const be = kh(z, !0); return wn(21), be; } function Xv() { Aa(27) || Qs(); } function q1(z) { const be = Z(), Xe = we(); z === 177 && wn(103); const Et = K_(), Gt = Sp(4), Cn = X_(58, !0); Xv(); const Mr = z === 176 ? m.createCallSignature(Et, Gt, Cn) : m.createConstructSignature(Et, Gt, Cn); return gn(Zt(Mr, be), Xe); } function sb() { return q() === 22 && qr(bg); } function bg() { if (dt(), q() === 25 || q() === 23) return !0; if (uy(q())) { if (dt(), la()) return !0; } else if (la()) dt(); else return !1; return q() === 58 || q() === 27 ? !0 : q() !== 57 ? !1 : (dt(), q() === 58 || q() === 27 || q() === 23); } function ZT(z, be, Xe) { const Et = g_(16, () => QT(!1), 22, 23), Gt = wh(); Xv(); const Cn = m.createIndexSignature(Xe, Et, Gt); return gn(Zt(Cn, z), be); } function J1(z, be, Xe) { const Et = _n(), Gt = Jo(57); let Cn; if (q() === 20 || q() === 29) { const Mr = K_(), pi = Sp(4), bi = X_(58, !0); Cn = m.createMethodSignature(Xe, Et, Gt, Mr, pi, bi); } else { const Mr = wh(); Cn = m.createPropertySignature(Xe, Et, Gt, Mr), q() === 63 && (Cn.initializer = Ag()); } return Xv(), gn(Zt(Cn, z), be); } function K1() { if (q() === 20 || q() === 29 || q() === 137 || q() === 151) return !0; let z = !1; for (; uy(q()); ) z = !0, dt(); return q() === 22 ? !0 : (Q() && (z = !0, dt()), z ? q() === 20 || q() === 29 || q() === 57 || q() === 58 || q() === 27 || ks() : !1); } function X1() { if (q() === 20 || q() === 29) return q1(176); if (q() === 103 && qr(Yv)) return q1(177); const z = Z(), be = we(), Xe = Ds(!1); return va(137) ? Qm(z, be, Xe, 174, 4) : va(151) ? Qm(z, be, Xe, 175, 4) : sb() ? ZT(z, be, Xe) : J1(z, be, Xe); } function Yv() { return dt(), q() === 20 || q() === 29; } function o2() { return dt() === 24; } function Y1() { switch (dt()) { case 20: case 29: case 24: return !0; } return !1; } function $1() { const z = Z(); return Zt(m.createTypeLiteralNode($v()), z); } function $v() { let z; return wn(18) ? (z = ae(4, X1), wn(19)) : z = vu(), z; } function lb() { return dt(), q() === 39 || q() === 40 ? dt() === 146 : (q() === 146 && dt(), q() === 22 && ul() && dt() === 101); } function Qv() { const z = Z(), be = jt(); wn(101); const Xe = mc(); return Zt(m.createTypeParameterDeclaration(void 0, be, Xe, void 0), z); } function eS() { const z = Z(); wn(18); let be; (q() === 146 || q() === 39 || q() === 40) && (be = rc(), be.kind !== 146 && wn(146)), wn(22); const Xe = Qv(), Et = Aa(128) ? mc() : void 0; wn(23); let Gt; (q() === 57 || q() === 39 || q() === 40) && (Gt = rc(), Gt.kind !== 57 && wn(57)); const Cn = wh(); Qs(); const Mr = ae(4, X1); return wn(19), Zt(m.createMappedTypeNode(be, Xe, Et, Gt, Cn, Mr), z); } function Eg() { const z = Z(); if (Aa(25)) return Zt(m.createRestTypeNode(mc()), z); const be = mc(); if (hC(be) && be.pos === be.type.pos) { const Xe = m.createOptionalTypeNode(be.type); return mt(Xe, be), Xe.flags = be.flags, Xe; } return be; } function Xo() { return dt() === 58 || q() === 57 && dt() === 58; } function Q1() { return q() === 25 ? Wu(dt()) && Xo() : Wu(q()) && Xo(); } function tL() { if (qr(Q1)) { const z = Z(), be = we(), Xe = Jo(25), Et = jt(), Gt = Jo(57); wn(58); const Cn = Eg(), Mr = m.createNamedTupleMember(Xe, Et, Gt, Cn); return gn(Zt(Mr, z), be); } return Eg(); } function Dy() { const z = Z(); return Zt(m.createTupleTypeNode(g_(21, tL, 22, 23)), z); } function Tg() { const z = Z(); wn(20); const be = mc(); return wn(21), Zt(m.createParenthesizedType(be), z); } function qm() { let z; if (q() === 126) { const be = Z(); dt(); const Xe = Zt(B(126), be); z = qs([Xe], be); } return z; } function Y_() { const z = Z(), be = we(), Xe = qm(), Et = Aa(103); D.assert(!Xe || Et, "Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers."); const Gt = K_(), Cn = Sp(4), Mr = X_(38, !1), pi = Et ? m.createConstructorTypeNode(Xe, Gt, Cn, Mr) : m.createFunctionTypeNode(Gt, Cn, Mr); return gn(Zt(pi, z), be); } function xd() { const z = rc(); return q() === 24 ? void 0 : z; } function Ad(z) { const be = Z(); z && dt(); let Xe = q() === 110 || q() === 95 || q() === 104 ? rc() : Ot(q()); return z && (Xe = Zt(m.createPrefixUnaryExpression(40, Xe), be)), Zt(m.createLiteralTypeNode(Xe), be); } function Cd() { return dt(), q() === 100; } function cb() { const z = Z(), be = t.getTokenPos(); wn(18); const Xe = t.hasPrecedingLineBreak(); wn(130), wn(58); const Et = Wy(!0); if (!wn(19)) { const Gt = Zs(ot); Gt && Gt.code === _._0_expected.code && qo(Gt, XA(We, be, 1, _.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")); } return Zt(m.createImportTypeAssertionContainer(Et, Xe), z); } function ub() { Re |= 2097152; const z = Z(), be = Aa(112); wn(100), wn(20); const Xe = mc(); let Et; Aa(27) && (Et = cb()), wn(21); const Gt = Aa(24) ? pn() : void 0, Cn = vn(); return Zt(m.createImportTypeNode(Xe, Et, Gt, Cn, be), z); } function s2() { return dt(), q() === 8 || q() === 9; } function db() { switch (q()) { case 131: case 157: case 152: case 148: case 160: case 153: case 134: case 155: case 144: case 149: return is(xd) || Tn(); case 66: t.reScanAsteriskEqualsToken(); case 41: return tr(); case 60: t.reScanQuestionToken(); case 57: return ur(); case 98: return Ta(); case 53: return fn(); case 14: case 10: case 8: case 9: case 110: case 95: case 104: return Ad(); case 40: return qr(s2) ? Ad(!0) : Tn(); case 114: return rc(); case 108: { const z = Hi(); return q() === 140 && !t.hasPrecedingLineBreak() ? Hr(z) : z; } case 112: return qr(Cd) ? ub() : zm(); case 18: return qr(lb) ? eS() : $1(); case 22: return Dy(); case 20: return Tg(); case 100: return ub(); case 129: return qr(dd) ? eE() : Tn(); case 15: return G(); default: return Tn(); } } function Sg(z) { switch (q()) { case 131: case 157: case 152: case 148: case 160: case 134: case 146: case 153: case 156: case 114: case 155: case 104: case 108: case 112: case 144: case 18: case 22: case 29: case 51: case 50: case 103: case 10: case 8: case 9: case 110: case 95: case 149: case 41: case 57: case 53: case 25: case 138: case 100: case 129: case 14: case 15: return !0; case 98: return !z; case 40: return !z && qr(s2); case 20: return !z && qr(fb); default: return la(); } } function fb() { return dt(), q() === 21 || ob(!1) || Sg(); } function tS() { const z = Z(); let be = db(); for (; !t.hasPrecedingLineBreak(); ) switch (q()) { case 53: dt(), be = Zt(m.createJSDocNonNullableType(be, !0), z); break; case 57: if (qr(Dt)) return be; dt(), be = Zt(m.createJSDocNullableType(be, !0), z); break; case 22: if (wn(22), Sg()) { const Xe = mc(); wn(23), be = Zt(m.createIndexedAccessTypeNode(be, Xe), z); } else wn(23), be = Zt(m.createArrayTypeNode(be), z); break; default: return be; } return be; } function _b(z) { const be = Z(); return wn(z), Zt(m.createTypeOperatorNode(z, Z1()), be); } function nL() { if (Aa(94)) { const z = _t(mc); if (Sn() || q() !== 57) return z; } } function l2() { const z = Z(), be = It(), Xe = is(nL), Et = m.createTypeParameterDeclaration(void 0, be, Xe); return Zt(Et, z); } function Zv() { const z = Z(); return wn(138), Zt(m.createInferTypeNode(l2()), z); } function Z1() { const z = q(); switch (z) { case 141: case 156: case 146: return _b(z); case 138: return Zv(); } return xe(tS); } function qe(z) { if (t0()) { const be = Y_(); let Xe; return Eh(be) ? Xe = z ? _.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type : _.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type : Xe = z ? _.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type : _.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type, K(be, Xe), be; } } function Ry(z, be, Xe) { const Et = Z(), Gt = z === 51, Cn = Aa(z); let Mr = Cn && qe(Gt) || be(); if (q() === z || Cn) { const pi = [Mr]; for (; Aa(z); ) pi.push(qe(Gt) || be()); Mr = Zt(Xe(qs(pi, Et)), Et); } return Mr; } function tm() { return Ry(50, Z1, m.createIntersectionTypeNode); } function e0() { return Ry(51, tm, m.createUnionTypeNode); } function pb() { return dt(), q() === 103; } function t0() { return q() === 29 || q() === 20 && qr(nS) ? !0 : q() === 103 || q() === 126 && qr(pb); } function xg() { if (uy(q()) && Ds(!1), la() || q() === 108) return dt(), !0; if (q() === 22 || q() === 18) { const z = ot.length; return Uy(), z === ot.length; } return !1; } function nS() { return dt(), !!(q() === 21 || q() === 25 || xg() && (q() === 58 || q() === 27 || q() === 57 || q() === 63 || q() === 21 && (dt(), q() === 38))); } function Qo() { const z = Z(), be = la() && is($_), Xe = mc(); return be ? Zt(m.createTypePredicateNode(void 0, be, Xe), z) : Xe; } function $_() { const z = It(); if (q() === 140 && !t.hasPrecedingLineBreak()) return dt(), z; } function eE() { const z = Z(), be = Xc(129), Xe = q() === 108 ? Hi() : It(), Et = Aa(140) ? mc() : void 0; return Zt(m.createTypePredicateNode(be, Xe, Et), z); } function mc() { if (Hn & 40960) return Ur(40960, mc); if (t0()) return Y_(); const z = Z(), be = e0(); if (!Sn() && !t.hasPrecedingLineBreak() && Aa(94)) { const Xe = _t(mc); wn(57); const Et = xe(mc); wn(58); const Gt = xe(mc); return Zt(m.createConditionalTypeNode(be, Xe, Et, Gt), z); } return be; } function wh() { return Aa(58) ? mc() : void 0; } function mb() { switch (q()) { case 108: case 106: case 104: case 110: case 95: case 8: case 9: case 10: case 14: case 15: case 20: case 22: case 18: case 98: case 84: case 103: case 43: case 68: case 79: return !0; case 100: return qr(Y1); default: return la(); } } function Q_() { if (mb()) return !0; switch (q()) { case 39: case 40: case 54: case 53: case 89: case 112: case 114: case 45: case 46: case 29: case 133: case 125: case 80: case 59: return !0; default: return c2() ? !0 : la(); } } function hb() { return q() !== 18 && q() !== 98 && q() !== 84 && q() !== 59 && Q_(); } function ru() { const z = br(); z && Pn(!1); const be = Z(); let Xe = Dc(!0), Et; for (; Et = Jo(27); ) Xe = n0(Xe, Et, Dc(!0), be); return z && Pn(!0), Xe; } function Ag() { return Aa(63) ? Dc(!0) : void 0; } function Dc(z) { if (rS()) return Ui(); const be = Jm(z) || Dh(z); if (be) return be; const Xe = Z(), Et = yb(0); return Et.kind === 79 && q() === 38 ? Wr(Xe, Et, z, void 0) : gd(Et) && py($n()) ? n0(Et, rc(), Dc(z), Xe) : iS(Et, Xe, z); } function rS() { return q() === 125 ? Ut() ? !0 : qr(o0) : !1; } function rL() { return dt(), !t.hasPrecedingLineBreak() && la(); } function Ui() { const z = Z(); return dt(), !t.hasPrecedingLineBreak() && (q() === 41 || Q_()) ? Zt(m.createYieldExpression(Jo(41), Dc(!0)), z) : Zt(m.createYieldExpression(void 0, void 0), z); } function Wr(z, be, Xe, Et) { D.assert(q() === 38, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); const Gt = m.createParameterDeclaration(void 0, void 0, be, void 0, void 0, void 0); Zt(Gt, be.pos); const Cn = qs([Gt], Gt.pos, Gt.end), Mr = Xc(38), pi = gb(!!Et, Xe), bi = m.createArrowFunction(Et, void 0, Cn, void 0, Mr, pi); return ln(Zt(bi, z)); } function Jm(z) { const be = Hd(); if (be !== 0) return be === 1 ? dl(!0, !0) : is(() => Cg(z)); } function Hd() { return q() === 20 || q() === 29 || q() === 132 ? qr(tE) : q() === 38 ? 1 : 0; } function tE() { if (q() === 132 && (dt(), t.hasPrecedingLineBreak() || q() !== 20 && q() !== 29)) return 0; const z = q(), be = dt(); if (z === 20) { if (be === 21) switch (dt()) { case 38: case 58: case 18: return 1; default: return 0; } if (be === 22 || be === 18) return 2; if (be === 25) return 1; if (uy(be) && be !== 132 && qr(ul)) return dt() === 128 ? 0 : 1; if (!la() && be !== 108) return 0; switch (dt()) { case 58: return 1; case 57: return dt(), q() === 58 || q() === 27 || q() === 63 || q() === 21 ? 1 : 0; case 27: case 63: case 21: return 2; } return 0; } else return D.assert(z === 29), !la() && q() !== 85 ? 0 : Me === 1 ? qr(() => { Aa(85); const Et = dt(); if (Et === 94) switch (dt()) { case 63: case 31: case 43: return !1; default: return !0; } else if (Et === 27 || Et === 63) return !0; return !1; }) ? 1 : 0 : 2; } function Cg(z) { const be = t.getTokenPos(); if (On != null && On.has(be)) return; const Xe = dl(!1, z); return Xe || (On || (On = /* @__PURE__ */ new Set())).add(be), Xe; } function Dh(z) { if (q() === 132 && qr(Km) === 1) { const be = Z(), Xe = fE(), Et = yb(0); return Wr(be, Et, z, Xe); } } function Km() { if (q() === 132) { if (dt(), t.hasPrecedingLineBreak() || q() === 38) return 0; const z = yb(0); if (!t.hasPrecedingLineBreak() && z.kind === 79 && q() === 38) return 1; } return 0; } function dl(z, be) { const Xe = Z(), Et = we(), Gt = fE(), Cn = kt(Gt, pk) ? 2 : 0, Mr = K_(); let pi; if (wn(20)) { if (z) pi = kh(Cn, z); else { const sm = kh(Cn, z); if (!sm) return; pi = sm; } if (!wn(21) && !z) return; } else { if (!z) return; pi = vu(); } const bi = q() === 58, Ai = X_(58, !1); if (Ai && !z && Wn(Ai)) return; let Pa = Ai; for (; (Pa == null ? void 0 : Pa.kind) === 193; ) Pa = Pa.type; const Cs = Pa && gC(Pa); if (!z && q() !== 38 && (Cs || q() !== 18)) return; const Ao = q(), es = Xc(38), kd = Ao === 38 || Ao === 18 ? gb(kt(Gt, pk), be) : It(); if (!be && bi && q() !== 58) return; const Ip = m.createArrowFunction(Gt, Mr, pi, Ai, es, kd); return gn(Zt(Ip, Xe), Et); } function gb(z, be) { if (q() === 18) return Ld(z ? 2 : 0); if (q() !== 26 && q() !== 98 && q() !== 84 && dS() && !hb()) return Ld(16 | (z ? 2 : 0)); const Xe = In; In = !1; const Et = z ? me(() => Dc(be)) : V(() => Dc(be)); return In = Xe, Et; } function iS(z, be, Xe) { const Et = Jo(57); if (!Et) return z; let Gt; return Zt(m.createConditionalExpression(z, Et, Ur(r, () => Dc(!1)), Gt = Xc(58), s_(Gt) ? Dc(Xe) : Gl(79, !1, _._0_expected, mo(58))), be); } function yb(z) { const be = Z(), Xe = xp(); return $f(z, Xe, be); } function aS(z) { return z === 101 || z === 162; } function $f(z, be, Xe) { for (; ; ) { $n(); const Et = LN(q()); if (!(q() === 42 ? Et >= z : Et > z) || q() === 101 && on()) break; if (q() === 128 || q() === 150) { if (t.hasPrecedingLineBreak()) break; { const Cn = q(); dt(), be = Cn === 150 ? u2(be, mc()) : oS(be, mc()); } } else be = n0(be, rc(), yb(Et), Xe); } return be; } function c2() { return on() && q() === 101 ? !1 : LN(q()) > 0; } function u2(z, be) { return Zt(m.createSatisfiesExpression(z, be), z.pos); } function n0(z, be, Xe, Et) { return Zt(m.createBinaryExpression(z, be, Xe), Et); } function oS(z, be) { return Zt(m.createAsExpression(z, be), z.pos); } function sS() { const z = Z(); return Zt(m.createPrefixUnaryExpression(q(), ht(Z_)), z); } function d2() { const z = Z(); return Zt(m.createDeleteExpression(ht(Z_)), z); } function vb() { const z = Z(); return Zt(m.createTypeOfExpression(ht(Z_)), z); } function lS() { const z = Z(); return Zt(m.createVoidExpression(ht(Z_)), z); } function If() { return q() === 133 ? ce() ? !0 : qr(o0) : !1; } function Lg() { const z = Z(); return Zt(m.createAwaitExpression(ht(Z_)), z); } function xp() { if (f2()) { const Xe = Z(), Et = bb(); return q() === 42 ? $f(LN(q()), Et, Xe) : Et; } const z = q(), be = Z_(); if (q() === 42) { const Xe = zo(Pe, be.pos), { end: Et } = be; be.kind === 213 ? rt(Xe, Et, _.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses) : rt(Xe, Et, _.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, mo(z)); } return be; } function Z_() { switch (q()) { case 39: case 40: case 54: case 53: return sS(); case 89: return d2(); case 112: return vb(); case 114: return lS(); case 29: return Me === 1 ? Ig(!0) : p2(); case 133: if (If()) return Lg(); default: return bb(); } } function f2() { switch (q()) { case 39: case 40: case 54: case 53: case 89: case 112: case 114: case 133: return !1; case 29: if (Me !== 1) return !1; default: return !0; } } function bb() { if (q() === 45 || q() === 46) { const be = Z(); return Zt(m.createPrefixUnaryExpression(q(), ht(nm)), be); } else if (Me === 1 && q() === 29 && qr(Ul)) return Ig(!0); const z = nm(); if (D.assert(gd(z)), (q() === 45 || q() === 46) && !t.hasPrecedingLineBreak()) { const be = q(); return dt(), Zt(m.createPostfixUnaryExpression(z, be), z.pos); } return z; } function nm() { const z = Z(); let be; return q() === 100 ? qr(Yv) ? (Re |= 2097152, be = rc()) : qr(o2) ? (dt(), dt(), be = Zt(m.createMetaProperty(100, jt()), z), Re |= 4194304) : be = cS() : be = q() === 106 ? ud() : cS(), ir(z, be); } function cS() { const z = Z(), be = v_(); return kf(z, be, !0); } function ud() { const z = Z(); let be = rc(); if (q() === 29) { const Xe = Z(), Et = is(Py); Et !== void 0 && (rt(Xe, Z(), _.super_may_not_use_type_arguments), r0() || (be = m.createExpressionWithTypeArguments(be, Et))); } return q() === 20 || q() === 24 || q() === 22 ? be : (Xc(24, _.super_must_be_followed_by_an_argument_list_or_member_access), Zt(te(be, cf(!0, !0)), z)); } function Ig(z, be, Xe) { const Et = Z(), Gt = uS(z); let Cn; if (Gt.kind === 283) { let Mr = kg(Gt), pi; const bi = Mr[Mr.length - 1]; if ((bi == null ? void 0 : bi.kind) === 281 && !Q0(bi.openingElement.tagName, bi.closingElement.tagName) && Q0(Gt.tagName, bi.closingElement.tagName)) { const Ai = bi.children.end, Pa = Zt(m.createJsxElement(bi.openingElement, bi.children, Zt(m.createJsxClosingElement(Zt(O(""), Ai, Ai)), Ai, Ai)), bi.openingElement.pos, Ai); Mr = qs([...Mr.slice(0, Mr.length - 1), Pa], Mr.pos, Ai), pi = bi.closingElement; } else pi = Eb(Gt, z), Q0(Gt.tagName, pi.tagName) || (Xe && xh(Xe) && Q0(pi.tagName, Xe.tagName) ? K(Gt.tagName, _.JSX_element_0_has_no_corresponding_closing_tag, xI(Pe, Gt.tagName)) : K(pi.tagName, _.Expected_corresponding_JSX_closing_tag_for_0, xI(Pe, Gt.tagName))); Cn = Zt(m.createJsxElement(Gt, Mr, pi), Et); } else Gt.kind === 286 ? Cn = Zt(m.createJsxFragment(Gt, kg(Gt), Tb(z)), Et) : (D.assert(Gt.kind === 282), Cn = Gt); if (z && q() === 29) { const Mr = typeof be > "u" ? Cn.pos : be, pi = is(() => Ig(!0, Mr)); if (pi) { const bi = Gl(27, !1); return ak(bi, pi.pos, 0), rt(zo(Pe, Mr), pi.end, _.JSX_expressions_must_have_one_parent_element), Zt(m.createBinaryExpression(Cn, bi, pi), Et); } } return Cn; } function rm() { const z = Z(), be = m.createJsxText(t.getTokenValue(), Vt === 12); return Vt = t.scanJsxToken(), Zt(be, z); } function im(z, be) { switch (be) { case 1: if (Lx(z)) K(z, _.JSX_fragment_has_no_corresponding_closing_tag); else { const Xe = z.tagName, Et = zo(Pe, Xe.pos); rt(Et, Xe.end, _.JSX_element_0_has_no_corresponding_closing_tag, xI(Pe, z.tagName)); } return; case 30: case 7: return; case 11: case 12: return rm(); case 18: return rE(!1); case 29: return Ig(!1, void 0, z); default: return D.assertNever(be); } } function kg(z) { const be = [], Xe = Z(), Et = Xt; for (Xt |= 1 << 14; ; ) { const Gt = im(z, Vt = t.reScanJsxToken()); if (!Gt || (be.push(Gt), xh(z) && (Gt == null ? void 0 : Gt.kind) === 281 && !Q0(Gt.openingElement.tagName, Gt.closingElement.tagName) && Q0(z.tagName, Gt.closingElement.tagName))) break; } return Xt = Et, qs(be, Xe); } function nE() { const z = Z(); return Zt(m.createJsxAttributes(ae(13, ws)), z); } function uS(z) { const be = Z(); if (wn(29), q() === 31) return no(), Zt(m.createJsxOpeningFragment(), be); const Xe = Ny(), Et = Hn & 262144 ? void 0 : zd(), Gt = nE(); let Cn; return q() === 31 ? (no(), Cn = m.createJsxOpeningElement(Xe, Et, Gt)) : (wn(43), wn(31, void 0, !1) && (z ? dt() : no()), Cn = m.createJsxSelfClosingElement(Xe, Et, Gt)), Zt(Cn, be); } function Ny() { const z = Z(); vo(); let be = q() === 108 ? rc() : jt(); for (; Aa(24); ) be = Zt(te(be, cf(!0, !1)), z); return be; } function rE(z) { const be = Z(); if (!wn(18)) return; let Xe, Et; return q() !== 19 && (Xe = Jo(25), Et = ru()), z ? wn(19) : wn(19, void 0, !1) && no(), Zt(m.createJsxExpression(Xe, Et), be); } function ws() { if (q() === 18) return _2(); vo(); const z = Z(); return Zt(m.createJsxAttribute(jt(), Oy()), z); } function Oy() { if (q() === 63) { if (sa() === 10) return Ca(); if (q() === 18) return rE(!0); if (q() === 29) return Ig(!0); pt(_.or_JSX_element_expected); } } function _2() { const z = Z(); wn(18), wn(25); const be = ru(); return wn(19), Zt(m.createJsxSpreadAttribute(be), z); } function Eb(z, be) { const Xe = Z(); wn(30); const Et = Ny(); return wn(31, void 0, !1) && (be || !Q0(z.tagName, Et) ? dt() : no()), Zt(m.createJsxClosingElement(Et), Xe); } function Tb(z) { const be = Z(); return wn(30), wn(31, _.Expected_corresponding_closing_tag_for_JSX_fragment, !1) && (z ? dt() : no()), Zt(m.createJsxJsxClosingFragment(), be); } function p2() { D.assert(Me !== 1, "Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments."); const z = Z(); wn(29); const be = mc(); wn(31); const Xe = Z_(); return Zt(m.createTypeAssertion(be, Xe), z); } function iL() { return dt(), Wu(q()) || q() === 22 || r0(); } function m2() { return q() === 28 && qr(iL); } function _r(z) { if (z.flags & 32) return !0; if (Tx(z)) { let be = z.expression; for (; Tx(be) && !(be.flags & 32); ) be = be.expression; if (be.flags & 32) { for (; Tx(z); ) z.flags |= 32, z = z.expression; return !0; } } return !1; } function kl(z, be, Xe) { const Et = cf(!0, !0), Gt = Xe || _r(be), Cn = Gt ? X(be, Xe, Et) : te(be, Et); if (Gt && ki(Cn.name) && K(Cn.name, _.An_optional_chain_cannot_contain_private_identifiers), vy(be) && be.typeArguments) { const Mr = be.typeArguments.pos - 1, pi = zo(Pe, be.typeArguments.end) + 1; rt(Mr, pi, _.An_instantiation_expression_cannot_be_followed_by_a_property_access); } return Zt(Cn, z); } function ca(z, be, Xe) { let Et; if (q() === 23) Et = Gl(79, !0, _.An_element_access_expression_should_take_an_argument); else { const Cn = gt(ru); Hf(Cn) && (Cn.text = yu(Cn.text)), Et = Cn; } wn(23); const Gt = Xe || _r(be) ? P(be, Xe, Et) : Y(be, Et); return Zt(Gt, z); } function kf(z, be, Xe) { for (; ; ) { let Et, Gt = !1; if (Xe && m2() ? (Et = Xc(28), Gt = Wu(q())) : Gt = Aa(24), Gt) { be = kl(z, be, Et); continue; } if ((Et || !br()) && Aa(22)) { be = ca(z, be, Et); continue; } if (r0()) { be = !Et && be.kind === 230 ? Xm(z, be.expression, Et, be.typeArguments) : Xm(z, be, Et, void 0); continue; } if (!Et) { if (q() === 53 && !t.hasPrecedingLineBreak()) { dt(), be = Zt(m.createNonNullExpression(be), z); continue; } const Cn = is(Py); if (Cn) { be = Zt(m.createExpressionWithTypeArguments(be, Cn), z); continue; } } return be; } } function r0() { return q() === 14 || q() === 15; } function Xm(z, be, Xe, Et) { const Gt = m.createTaggedTemplateExpression(be, Et, q() === 14 ? (Si(), Ca()) : Tp(!0)); return (Xe || be.flags & 32) && (Gt.flags |= 32), Gt.questionDotToken = Xe, Zt(Gt, z); } function ir(z, be) { for (; ; ) { be = kf(z, be, !0); let Xe; const Et = Jo(28); if (Et && (Xe = is(Py), r0())) { be = Xm(z, be, Et, Xe); continue; } if (Xe || q() === 20) { !Et && be.kind === 230 && (Xe = be.typeArguments, be = be.expression); const Gt = h2(), Cn = Et || _r(be) ? ne(be, Et, Xe, Gt) : ue(be, Xe, Gt); be = Zt(Cn, z); continue; } if (Et) { const Gt = Gl(79, !1, _.Identifier_expected); be = Zt(X(be, Et, Gt), z); } break; } return be; } function h2() { wn(20); const z = Ql(11, ep); return wn(21), z; } function Py() { if (Hn & 262144 || Bi() !== 29) return; dt(); const z = Ql(20, mc); if ($n() === 31) return dt(), z && xc() ? z : void 0; } function xc() { switch (q()) { case 20: case 14: case 15: return !0; case 29: case 31: case 39: case 40: return !1; } return t.hasPrecedingLineBreak() || c2() || !Q_(); } function v_() { switch (q()) { case 8: case 9: case 10: case 14: return Ca(); case 108: case 106: case 104: case 110: case 95: return rc(); case 20: return Ap(); case 22: return Fy(); case 18: return Zl(); case 132: if (!qr(Cb)) break; return wg(); case 59: return Pg(); case 84: return u0(); case 98: return wg(); case 103: return b_(); case 43: case 68: if (ii() === 13) return Ca(); break; case 15: return Tp(!1); case 80: return Nr(); } return It(_.Expression_expected); } function Ap() { const z = Z(), be = we(); wn(20); const Xe = gt(ru); return wn(21), gn(Zt(ie(Xe), z), be); } function My() { const z = Z(); wn(25); const be = Dc(!0); return Zt(m.createSpreadElement(be), z); } function iE() { return q() === 25 ? My() : q() === 27 ? Zt(m.createOmittedExpression(), Z()) : Dc(!0); } function ep() { return Ur(r, iE); } function Fy() { const z = Z(), be = t.getTokenPos(), Xe = wn(22), Et = t.hasPrecedingLineBreak(), Gt = Ql(15, iE); return So(22, 23, Xe, be), Zt(U(Gt, Et), z); } function ql() { const z = Z(), be = we(); if (Jo(25)) { const Pa = Dc(!0); return gn(Zt(m.createSpreadAssignment(Pa), z), be); } const Xe = Ds(!0); if (va(137)) return Qm(z, be, Xe, 174, 0); if (va(151)) return Qm(z, be, Xe, 175, 0); const Et = Jo(41), Gt = la(), Cn = _n(), Mr = Jo(57), pi = Jo(53); if (Et || q() === 20 || q() === 29) return _S(z, be, Xe, Et, Cn, Mr, pi); let bi; if (Gt && q() !== 58) { const Pa = Jo(63), Cs = Pa ? gt(() => Dc(!0)) : void 0; bi = m.createShorthandPropertyAssignment(Cn, Cs), bi.equalsToken = Pa; } else { wn(58); const Pa = gt(() => Dc(!0)); bi = m.createPropertyAssignment(Cn, Pa); } return bi.modifiers = Xe, bi.questionToken = Mr, bi.exclamationToken = pi, gn(Zt(bi, z), be); } function Zl() { const z = Z(), be = t.getTokenPos(), Xe = wn(18), Et = t.hasPrecedingLineBreak(), Gt = Ql(12, ql, !0); return So(18, 19, Xe, be), Zt(j(Gt, Et), z); } function wg() { const z = br(); Pn(!1); const be = Z(), Xe = we(), Et = Ds(!1); wn(98); const Gt = Jo(41), Cn = Gt ? 1 : 0, Mr = kt(Et, pk) ? 2 : 0, pi = Cn && Mr ? je(iu) : Cn ? _e(iu) : Mr ? me(iu) : iu(), bi = K_(), Ai = Sp(Cn | Mr), Pa = X_(58, !1), Cs = Ld(Cn | Mr); Pn(z); const Ao = m.createFunctionExpression(Et, Gt, pi, bi, Ai, Pa, Cs); return gn(Zt(Ao, be), Xe); } function iu() { return ui() ? de() : void 0; } function b_() { const z = Z(); if (wn(103), Aa(24)) { const Cn = jt(); return Zt(m.createMetaProperty(103, Cn), z); } const be = Z(); let Xe = kf(be, v_(), !1), Et; Xe.kind === 230 && (Et = Xe.typeArguments, Xe = Xe.expression), q() === 28 && pt(_.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0, xI(Pe, Xe)); const Gt = q() === 20 ? h2() : void 0; return Zt(ge(Xe, Et, Gt), z); } function Ym(z, be) { const Xe = Z(), Et = we(), Gt = t.getTokenPos(), Cn = wn(18, be); if (Cn || z) { const Mr = t.hasPrecedingLineBreak(), pi = ae(1, wf); So(18, 19, Cn, Gt); const bi = gn(Zt(H(pi, Mr), Xe), Et); return q() === 63 && (pt(_.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), dt()), bi; } else { const Mr = vu(); return gn(Zt(H(Mr, void 0), Xe), Et); } } function Ld(z, be) { const Xe = Ut(); en(!!(z & 1)); const Et = ce(); xr(!!(z & 2)); const Gt = In; In = !1; const Cn = br(); Cn && Pn(!1); const Mr = Ym(!!(z & 16), be); return Cn && Pn(!0), In = Gt, en(Xe), xr(Et), Mr; } function aE() { const z = Z(), be = we(); return wn(26), gn(Zt(m.createEmptyStatement(), z), be); } function Sb() { const z = Z(), be = we(); wn(99); const Xe = t.getTokenPos(), Et = wn(20), Gt = gt(ru); So(20, 21, Et, Xe); const Cn = wf(), Mr = Aa(91) ? wf() : void 0; return gn(Zt(ye(Gt, Cn, Mr), z), be); } function xb() { const z = Z(), be = we(); wn(90); const Xe = wf(); wn(115); const Et = t.getTokenPos(), Gt = wn(20), Cn = gt(ru); return So(20, 21, Gt, Et), Aa(26), gn(Zt(m.createDoStatement(Xe, Cn), z), be); } function Cp() { const z = Z(), be = we(); wn(115); const Xe = t.getTokenPos(), Et = wn(20), Gt = gt(ru); So(20, 21, Et, Xe); const Cn = wf(); return gn(Zt(Te(Gt, Cn), z), be); } function Rh() { const z = Z(), be = we(); wn(97); const Xe = Jo(133); wn(20); let Et; q() !== 26 && (q() === 113 || q() === 119 || q() === 85 ? Et = am(!0) : Et = Nt(ru)); let Gt; if (Xe ? wn(162) : Aa(162)) { const Cn = gt(() => Dc(!0)); wn(21), Gt = $e(Xe, Et, Cn, wf()); } else if (Aa(101)) { const Cn = gt(ru); wn(21), Gt = m.createForInStatement(Et, Cn, wf()); } else { wn(26); const Cn = q() !== 26 && q() !== 21 ? gt(ru) : void 0; wn(26); const Mr = q() !== 21 ? gt(ru) : void 0; wn(21), Gt = ee(Et, Cn, Mr, wf()); } return gn(Zt(Gt, z), be); } function oE(z) { const be = Z(), Xe = we(); wn(z === 249 ? 81 : 86); const Et = ks() ? void 0 : It(); Qs(); const Gt = z === 249 ? m.createBreakStatement(Et) : m.createContinueStatement(Et); return gn(Zt(Gt, be), Xe); } function By() { const z = Z(), be = we(); wn(105); const Xe = ks() ? void 0 : gt(ru); return Qs(), gn(Zt(m.createReturnStatement(Xe), z), be); } function wl() { const z = Z(), be = we(); wn(116); const Xe = t.getTokenPos(), Et = wn(20), Gt = gt(ru); So(20, 21, Et, Xe); const Cn = Ie(33554432, wf); return gn(Zt(m.createWithStatement(Gt, Cn), z), be); } function Dg() { const z = Z(), be = we(); wn(82); const Xe = gt(ru); wn(58); const Et = ae(3, wf); return gn(Zt(m.createCaseClause(Xe, Et), z), be); } function Nh() { const z = Z(); wn(88), wn(58); const be = ae(3, wf); return Zt(m.createDefaultClause(be), z); } function i0() { return q() === 82 ? Dg() : Nh(); } function a0() { const z = Z(); wn(18); const be = ae(2, i0); return wn(19), Zt(m.createCaseBlock(be), z); } function au() { const z = Z(), be = we(); wn(107), wn(20); const Xe = gt(ru); wn(21); const Et = a0(); return gn(Zt(m.createSwitchStatement(Xe, Et), z), be); } function Oh() { const z = Z(), be = we(); wn(109); let Xe = t.hasPrecedingLineBreak() ? void 0 : gt(ru); return Xe === void 0 && (nn++, Xe = Zt(O(""), Z())), pl() || $l(Xe), gn(Zt(m.createThrowStatement(Xe), z), be); } function hc() { const z = Z(), be = we(); wn(111); const Xe = Ym(!1), Et = q() === 83 ? sE() : void 0; let Gt; return (!Et || q() === 96) && (wn(96, _.catch_or_finally_expected), Gt = Ym(!1)), gn(Zt(m.createTryStatement(Xe, Et, Gt), z), be); } function sE() { const z = Z(); wn(83); let be; Aa(20) ? (be = Vy(), wn(21)) : be = void 0; const Xe = Ym(!1); return Zt(m.createCatchClause(be, Xe), z); } function Ph() { const z = Z(), be = we(); return wn(87), Qs(), gn(Zt(m.createDebuggerStatement(), z), be); } function Ab() { const z = Z(); let be = we(), Xe; const Et = q() === 20, Gt = gt(ru); return Ve(Gt) && Aa(58) ? Xe = m.createLabeledStatement(Gt, wf()) : (pl() || $l(Gt), Xe = pe(Gt), Et && (be = !1)), gn(Zt(Xe, z), be); } function dd() { return dt(), Wu(q()) && !t.hasPrecedingLineBreak(); } function $m() { return dt(), q() === 84 && !t.hasPrecedingLineBreak(); } function Cb() { return dt(), q() === 98 && !t.hasPrecedingLineBreak(); } function o0() { return dt(), (Wu(q()) || q() === 8 || q() === 9 || q() === 10) && !t.hasPrecedingLineBreak(); } function lE() { for (; ; ) switch (q()) { case 113: case 119: case 85: case 98: case 84: case 92: return !0; case 118: case 154: return rL(); case 142: case 143: return g2(); case 126: case 127: case 132: case 136: case 121: case 122: case 123: case 146: if (dt(), t.hasPrecedingLineBreak()) return !1; continue; case 159: return dt(), q() === 18 || q() === 79 || q() === 93; case 100: return dt(), q() === 10 || q() === 41 || q() === 18 || Wu(q()); case 93: let z = dt(); if (z === 154 && (z = qr(dt)), z === 63 || z === 41 || z === 18 || z === 88 || z === 128 || z === 59) return !0; continue; case 124: dt(); continue; default: return !1; } } function Gy() { return qr(lE); } function dS() { switch (q()) { case 59: case 26: case 18: case 113: case 119: case 98: case 84: case 92: case 99: case 90: case 115: case 97: case 86: case 81: case 105: case 116: case 107: case 109: case 111: case 87: case 83: case 96: return !0; case 100: return Gy() || qr(Y1); case 85: case 93: return Gy(); case 132: case 136: case 118: case 142: case 143: case 154: case 159: return !0; case 127: case 123: case 121: case 122: case 124: case 146: return Gy() || !qr(dd); default: return Q_(); } } function s0() { return dt(), ui() || q() === 18 || q() === 22; } function Rg() { return qr(s0); } function wf() { switch (q()) { case 26: return aE(); case 18: return Ym(!1); case 113: return Ng(Z(), we(), void 0); case 119: if (Rg()) return Ng(Z(), we(), void 0); break; case 98: return c0(Z(), we(), void 0); case 84: return pS(Z(), we(), void 0); case 99: return Sb(); case 90: return xb(); case 115: return Cp(); case 97: return Rh(); case 86: return oE(248); case 81: return oE(249); case 105: return By(); case 116: return wl(); case 107: return au(); case 109: return Oh(); case 111: case 83: case 96: return hc(); case 87: return Ph(); case 59: return uf(); case 132: case 118: case 154: case 142: case 143: case 136: case 85: case 92: case 93: case 100: case 121: case 122: case 123: case 126: case 127: case 124: case 146: case 159: if (Gy()) return uf(); break; } return Ab(); } function cE(z) { return z.kind === 136; } function uf() { const z = Z(), be = we(), Xe = Ds(!0); if (kt(Xe, cE)) { const Gt = Mh(z); if (Gt) return Gt; for (const Cn of Xe) Cn.flags |= 16777216; return Ie(16777216, () => l0(z, be, Xe)); } else return l0(z, be, Xe); } function Mh(z) { return Ie(16777216, () => { const be = Mt(Xt, z); if (be) return Pt(be); }); } function l0(z, be, Xe) { switch (q()) { case 113: case 119: case 85: return Ng(z, be, Xe); case 98: return c0(z, be, Xe); case 84: return pS(z, be, Xe); case 118: return Mg(z, be, Xe); case 154: return b2(z, be, Xe); case 92: return S(z, be, Xe); case 159: case 142: case 143: return Ar(z, be, Xe); case 100: return qd(z, be, Xe); case 93: switch (dt(), q()) { case 88: case 63: return Es(z, be, Xe); case 128: return Yc(z, be, Xe); default: return t4(z, be, Xe); } default: if (Xe) { const Et = Gl(279, !0, _.Declaration_expected); return ik(Et, z), Et.modifiers = Xe, Et; } return; } } function g2() { return dt(), !t.hasPrecedingLineBreak() && (la() || q() === 10); } function ns(z, be) { if (q() !== 18) { if (z & 4) { Xv(); return; } if (ks()) { Qs(); return; } } return Ld(z, be); } function Lr() { const z = Z(); if (q() === 27) return Zt(m.createOmittedExpression(), z); const be = Jo(25), Xe = Uy(), Et = Ag(); return Zt(m.createBindingElement(be, void 0, Xe, Et), z); } function Wd() { const z = Z(), be = Jo(25), Xe = ui(); let Et = _n(), Gt; Xe && q() !== 58 ? (Gt = Et, Et = void 0) : (wn(58), Gt = Uy()); const Cn = Ag(); return Zt(m.createBindingElement(be, Et, Gt, Cn), z); } function fd() { const z = Z(); wn(18); const be = Ql(9, Wd); return wn(19), Zt(m.createObjectBindingPattern(be), z); } function fS() { const z = Z(); wn(22); const be = Ql(10, Lr); return wn(23), Zt(m.createArrayBindingPattern(be), z); } function uE() { return q() === 18 || q() === 22 || q() === 80 || ui(); } function Uy(z) { return q() === 22 ? fS() : q() === 18 ? fd() : de(z); } function y2() { return Vy(!0); } function Vy(z) { const be = Z(), Xe = we(), Et = Uy(_.Private_identifiers_are_not_allowed_in_variable_declarations); let Gt; z && Et.kind === 79 && q() === 53 && !t.hasPrecedingLineBreak() && (Gt = rc()); const Cn = wh(), Mr = aS(q()) ? void 0 : Ag(), pi = Ge(Et, Gt, Cn, Mr); return gn(Zt(pi, be), Xe); } function am(z) { const be = Z(); let Xe = 0; switch (q()) { case 113: break; case 119: Xe |= 1; break; case 85: Xe |= 2; break; default: D.fail(); } dt(); let Et; if (q() === 162 && qr(Lp)) Et = vu(); else { const Gt = on(); Rn(z), Et = Ql(8, z ? Vy : y2), Rn(Gt); } return Zt(Fe(Et, Xe), be); } function Lp() { return ul() && dt() === 21; } function Ng(z, be, Xe) { const Et = am(!1); Qs(); const Gt = le(Xe, Et); return gn(Zt(Gt, z), be); } function c0(z, be, Xe) { const Et = ce(), Gt = Om(Xe); wn(98); const Cn = Jo(41), Mr = Gt & 1024 ? iu() : de(), pi = Cn ? 1 : 0, bi = Gt & 512 ? 2 : 0, Ai = K_(); Gt & 1 && xr(!0); const Pa = Sp(pi | bi), Cs = X_(58, !1), Ao = ns(pi | bi, _.or_expected); xr(Et); const es = m.createFunctionDeclaration(Xe, Cn, Mr, Ai, Pa, Cs, Ao); return gn(Zt(es, z), be); } function Fh() { if (q() === 135) return wn(135); if (q() === 10 && qr(dt) === 20) return is(() => { const z = Ca(); return z.text === "constructor" ? z : void 0; }); } function om(z, be, Xe) { return is(() => { if (Fh()) { const Et = K_(), Gt = Sp(0), Cn = X_(58, !1), Mr = ns(0, _.or_expected), pi = m.createConstructorDeclaration(Xe, Gt, Mr); return pi.typeParameters = Et, pi.type = Cn, gn(Zt(pi, z), be); } }); } function _S(z, be, Xe, Et, Gt, Cn, Mr, pi) { const bi = Et ? 1 : 0, Ai = kt(Xe, pk) ? 2 : 0, Pa = K_(), Cs = Sp(bi | Ai), Ao = X_(58, !1), es = ns(bi | Ai, pi), kd = m.createMethodDeclaration(Xe, Et, Gt, Cn, Pa, Cs, Ao, es); return kd.exclamationToken = Mr, gn(Zt(kd, z), be); } function Jl(z, be, Xe, Et, Gt) { const Cn = !Gt && !t.hasPrecedingLineBreak() ? Jo(53) : void 0, Mr = wh(), pi = Ur(45056, Ag); zl(Et, Mr, pi); const bi = m.createPropertyDeclaration(Xe, Et, Gt || Cn, Mr, pi); return gn(Zt(bi, z), be); } function df(z, be, Xe) { const Et = Jo(41), Gt = _n(), Cn = Jo(57); return Et || q() === 20 || q() === 29 ? _S(z, be, Xe, Et, Gt, Cn, void 0, _.or_expected) : Jl(z, be, Xe, Gt, Cn); } function Qm(z, be, Xe, Et, Gt) { const Cn = _n(), Mr = K_(), pi = Sp(0), bi = X_(58, !1), Ai = ns(Gt), Pa = Et === 174 ? m.createGetAccessorDeclaration(Xe, Cn, pi, bi, Ai) : m.createSetAccessorDeclaration(Xe, Cn, pi, Ai); return Pa.typeParameters = Mr, Kf(Pa) && (Pa.type = bi), gn(Zt(Pa, z), be); } function Id() { let z; if (q() === 59) return !0; for (; uy(q()); ) { if (z = q(), rW(z)) return !0; dt(); } if (q() === 41 || (Q() && (z = q(), dt()), q() === 22)) return !0; if (z !== void 0) { if (!bd(z) || z === 151 || z === 137) return !0; switch (q()) { case 20: case 29: case 53: case 58: case 63: case 57: return !0; default: return ks(); } } return !1; } function dE(z, be, Xe) { Xc(124); const Et = jy(), Gt = gn(Zt(m.createClassStaticBlockDeclaration(Et), z), be); return Gt.modifiers = Xe, Gt; } function jy() { const z = Ut(), be = ce(); en(!1), xr(!0); const Xe = Ym(!1); return en(z), xr(be), Xe; } function Og() { if (ce() && q() === 133) { const z = Z(), be = It(_.Expression_expected); dt(); const Xe = kf(z, be, !0); return ir(z, Xe); } return nm(); } function v2() { const z = Z(); if (!Aa(59)) return; const be = re(Og); return Zt(m.createDecorator(be), z); } function Df(z, be, Xe) { const Et = Z(), Gt = q(); if (q() === 85 && be) { if (!is(as)) return; } else { if (Xe && q() === 124 && qr(Fi)) return; if (z && q() === 124) return; if (!cl()) return; } return Zt(B(Gt), Et); } function Ds(z, be, Xe) { const Et = Z(); let Gt, Cn, Mr, pi = !1, bi = !1, Ai = !1; if (z && q() === 59) for (; Cn = v2(); ) Gt = Fn(Gt, Cn); for (; Mr = Df(pi, be, Xe); ) Mr.kind === 124 && (pi = !0), Gt = Fn(Gt, Mr), bi = !0; if (bi && z && q() === 59) for (; Cn = v2(); ) Gt = Fn(Gt, Cn), Ai = !0; if (Ai) for (; Mr = Df(pi, be, Xe); ) Mr.kind === 124 && (pi = !0), Gt = Fn(Gt, Mr); return Gt && qs(Gt, Et); } function fE() { let z; if (q() === 132) { const be = Z(); dt(); const Xe = Zt(B(132), be); z = qs([Xe], be); } return z; } function _E() { const z = Z(); if (q() === 26) return dt(), Zt(m.createSemicolonClassElement(), z); const be = we(), Xe = Ds(!0, !0, !0); if (q() === 124 && qr(Fi)) return dE(z, be, Xe); if (va(137)) return Qm(z, be, Xe, 174, 0); if (va(151)) return Qm(z, be, Xe, 175, 0); if (q() === 135 || q() === 10) { const Et = om(z, be, Xe); if (Et) return Et; } if (sb()) return ZT(z, be, Xe); if (Wu(q()) || q() === 10 || q() === 8 || q() === 41 || q() === 22) if (kt(Xe, cE)) { for (const Gt of Xe) Gt.flags |= 16777216; return Ie(16777216, () => df(z, be, Xe)); } else return df(z, be, Xe); if (Xe) { const Et = Gl(79, !0, _.Declaration_expected); return Jl(z, be, Xe, Et, void 0); } return D.fail("Should not have attempted to parse class member declaration."); } function Pg() { const z = Z(), be = we(), Xe = Ds(!0); if (q() === 84) return pE(z, be, Xe, 228); const Et = Gl(279, !0, _.Expression_expected); return ik(Et, z), Et.modifiers = Xe, Et; } function u0() { return pE(Z(), we(), void 0, 228); } function pS(z, be, Xe) { return pE(z, be, Xe, 260); } function pE(z, be, Xe, Et) { const Gt = ce(); wn(84); const Cn = mE(), Mr = K_(); kt(Xe, v7) && xr(!0); const pi = gE(); let bi; wn(18) ? (bi = aL(), wn(19)) : bi = vu(), xr(Gt); const Ai = Et === 260 ? m.createClassDeclaration(Xe, Cn, Mr, pi, bi) : m.createClassExpression(Xe, Cn, Mr, pi, bi); return gn(Zt(Ai, z), be); } function mE() { return ui() && !hE() ? Bu(ui()) : void 0; } function hE() { return q() === 117 && qr(Vd); } function gE() { if (Bh()) return ae(22, yE); } function yE() { const z = Z(), be = q(); D.assert(be === 94 || be === 117), dt(); const Xe = Ql(7, Hy); return Zt(m.createHeritageClause(be, Xe), z); } function Hy() { const z = Z(), be = nm(); if (be.kind === 230) return be; const Xe = zd(); return Zt(m.createExpressionWithTypeArguments(be, Xe), z); } function zd() { return q() === 29 ? g_(20, mc, 29, 31) : void 0; } function Bh() { return q() === 94 || q() === 117; } function aL() { return ae(5, _E); } function Mg(z, be, Xe) { wn(118); const Et = It(), Gt = K_(), Cn = gE(), Mr = $v(), pi = m.createInterfaceDeclaration(Xe, Et, Gt, Cn, Mr); return gn(Zt(pi, z), be); } function b2(z, be, Xe) { wn(154); const Et = It(), Gt = K_(); wn(63); const Cn = q() === 139 && is(xd) || mc(); Qs(); const Mr = m.createTypeAliasDeclaration(Xe, Et, Gt, Cn); return gn(Zt(Mr, z), be); } function E2() { const z = Z(), be = we(), Xe = _n(), Et = gt(Ag); return gn(Zt(m.createEnumMember(Xe, Et), z), be); } function S(z, be, Xe) { wn(92); const Et = It(); let Gt; wn(18) ? (Gt = Qe(() => Ql(6, E2)), wn(19)) : Gt = vu(); const Cn = m.createEnumDeclaration(Xe, Et, Gt); return gn(Zt(Cn, z), be); } function se() { const z = Z(); let be; return wn(18) ? (be = ae(1, wf), wn(19)) : be = vu(), Zt(m.createModuleBlock(be), z); } function Le(z, be, Xe, Et) { const Gt = Et & 16, Cn = It(), Mr = Aa(24) ? Le(Z(), !1, void 0, 4 | Gt) : se(), pi = m.createModuleDeclaration(Xe, Cn, Mr, Et); return gn(Zt(pi, z), be); } function tn(z, be, Xe) { let Et = 0, Gt; q() === 159 ? (Gt = It(), Et |= 1024) : (Gt = Ca(), Gt.text = yu(Gt.text)); let Cn; q() === 18 ? Cn = se() : Qs(); const Mr = m.createModuleDeclaration(Xe, Gt, Cn, Et); return gn(Zt(Mr, z), be); } function Ar(z, be, Xe) { let Et = 0; if (q() === 159) return tn(z, be, Xe); if (Aa(143)) Et |= 16; else if (wn(142), q() === 10) return tn(z, be, Xe); return Le(z, be, Xe, Et); } function vi() { return q() === 147 && qr(oi); } function oi() { return dt() === 20; } function Fi() { return dt() === 18; } function co() { return dt() === 43; } function Yc(z, be, Xe) { wn(128), wn(143); const Et = It(); Qs(); const Gt = m.createNamespaceExportDeclaration(Et); return Gt.modifiers = Xe, gn(Zt(Gt, z), be); } function qd(z, be, Xe) { wn(100); const Et = t.getStartPos(); let Gt; la() && (Gt = It()); let Cn = !1; if (q() !== 158 && (Gt == null ? void 0 : Gt.escapedText) === "type" && (la() || Jd()) && (Cn = !0, Gt = la() ? It() : void 0), Gt && !d0()) return f0(z, be, Xe, Gt, Cn); let Mr; (Gt || q() === 41 || q() === 18) && (Mr = zy(Gt, Et, Cn), wn(158)); const pi = Rf(); let bi; q() === 130 && !t.hasPrecedingLineBreak() && (bi = Wy()), Qs(); const Ai = m.createImportDeclaration(Xe, Mr, pi, bi); return gn(Zt(Ai, z), be); } function ff() { const z = Z(), be = Wu(q()) ? jt() : Ot(10); wn(58); const Xe = Dc(!0); return Zt(m.createAssertEntry(be, Xe), z); } function Wy(z) { const be = Z(); z || wn(130); const Xe = t.getTokenPos(); if (wn(18)) { const Et = t.hasPrecedingLineBreak(), Gt = Ql(24, ff, !0); if (!wn(19)) { const Cn = Zs(ot); Cn && Cn.code === _._0_expected.code && qo(Cn, XA(We, Xe, 1, _.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")); } return Zt(m.createAssertClause(Gt, Et), be); } else { const Et = qs([], Z(), void 0, !1); return Zt(m.createAssertClause(Et, !1), be); } } function Jd() { return q() === 41 || q() === 18; } function d0() { return q() === 27 || q() === 158; } function f0(z, be, Xe, Et, Gt) { wn(63); const Cn = E_(); Qs(); const Mr = m.createImportEqualsDeclaration(Xe, Gt, Et, Cn); return gn(Zt(Mr, z), be); } function zy(z, be, Xe) { let Et; return (!z || Aa(27)) && (Et = q() === 41 ? Zm() : qy(272)), Zt(m.createImportClause(Xe, z, Et), be); } function E_() { return vi() ? vE() : Ko(!1); } function vE() { const z = Z(); wn(147), wn(20); const be = Rf(); return wn(21), Zt(m.createExternalModuleReference(be), z); } function Rf() { if (q() === 10) { const z = Ca(); return z.text = yu(z.text), z; } else return ru(); } function Zm() { const z = Z(); wn(41), wn(128); const be = It(); return Zt(m.createNamespaceImport(be), z); } function qy(z) { const be = Z(), Xe = z === 272 ? m.createNamedImports(g_(23, bE, 18, 19)) : m.createNamedExports(g_(23, Qf, 18, 19)); return Zt(Xe, be); } function Qf() { const z = we(); return gn(_0(278), z); } function bE() { return _0(273); } function _0(z) { const be = Z(); let Xe = bd(q()) && !la(), Et = t.getTokenPos(), Gt = t.getTextPos(), Cn = !1, Mr, pi = !0, bi = jt(); if (bi.escapedText === "type") if (q() === 128) { const Cs = jt(); if (q() === 128) { const Ao = jt(); Wu(q()) ? (Cn = !0, Mr = Cs, bi = Pa(), pi = !1) : (Mr = bi, bi = Ao, pi = !1); } else Wu(q()) ? (Mr = bi, pi = !1, bi = Pa()) : (Cn = !0, bi = Cs); } else Wu(q()) && (Cn = !0, bi = Pa()); pi && q() === 128 && (Mr = bi, wn(128), bi = Pa()), z === 273 && Xe && rt(Et, Gt, _.Identifier_expected); const Ai = z === 273 ? m.createImportSpecifier(Cn, Mr, bi) : m.createExportSpecifier(Cn, Mr, bi); return Zt(Ai, be); function Pa() { return Xe = bd(q()) && !la(), Et = t.getTokenPos(), Gt = t.getTextPos(), jt(); } } function cc(z) { return Zt(m.createNamespaceExport(jt()), z); } function t4(z, be, Xe) { const Et = ce(); xr(!0); let Gt, Cn, Mr; const pi = Aa(154), bi = Z(); Aa(41) ? (Aa(128) && (Gt = cc(bi)), wn(158), Cn = Rf()) : (Gt = qy(276), (q() === 158 || q() === 10 && !t.hasPrecedingLineBreak()) && (wn(158), Cn = Rf())), Cn && q() === 130 && !t.hasPrecedingLineBreak() && (Mr = Wy()), Qs(), xr(Et); const Ai = m.createExportDeclaration(Xe, pi, Gt, Cn, Mr); return gn(Zt(Ai, z), be); } function Es(z, be, Xe) { const Et = ce(); xr(!0); let Gt; Aa(63) ? Gt = !0 : wn(88); const Cn = Dc(!0); Qs(), xr(Et); const Mr = m.createExportAssignment(Xe, Gt, Cn); return gn(Zt(Mr, z), be); } let Zo; ((z) => { z[z.SourceElements = 0] = "SourceElements", z[z.BlockStatements = 1] = "BlockStatements", z[z.SwitchClauses = 2] = "SwitchClauses", z[z.SwitchClauseStatements = 3] = "SwitchClauseStatements", z[z.TypeMembers = 4] = "TypeMembers", z[z.ClassMembers = 5] = "ClassMembers", z[z.EnumMembers = 6] = "EnumMembers", z[z.HeritageClauseElement = 7] = "HeritageClauseElement", z[z.VariableDeclarations = 8] = "VariableDeclarations", z[z.ObjectBindingElements = 9] = "ObjectBindingElements", z[z.ArrayBindingElements = 10] = "ArrayBindingElements", z[z.ArgumentExpressions = 11] = "ArgumentExpressions", z[z.ObjectLiteralMembers = 12] = "ObjectLiteralMembers", z[z.JsxAttributes = 13] = "JsxAttributes", z[z.JsxChildren = 14] = "JsxChildren", z[z.ArrayLiteralMembers = 15] = "ArrayLiteralMembers", z[z.Parameters = 16] = "Parameters", z[z.JSDocParameters = 17] = "JSDocParameters", z[z.RestProperties = 18] = "RestProperties", z[z.TypeParameters = 19] = "TypeParameters", z[z.TypeArguments = 20] = "TypeArguments", z[z.TupleElementTypes = 21] = "TupleElementTypes", z[z.HeritageClauses = 22] = "HeritageClauses", z[z.ImportOrExportSpecifiers = 23] = "ImportOrExportSpecifiers", z[z.AssertEntries = 24] = "AssertEntries", z[z.Count = 25] = "Count"; })(Zo || (Zo = {})); let T2; ((z) => { z[z.False = 0] = "False", z[z.True = 1] = "True", z[z.Unknown = 2] = "Unknown"; })(T2 || (T2 = {})); let S2; ((z) => { function be(Ai, Pa, Cs) { Ki("file.js", Ai, 99, void 0, 1), t.setText(Ai, Pa, Cs), Vt = t.scan(); const Ao = Xe(), es = Di("file.js", 99, 1, !1, [], B(1), 0, io), kd = ox(ot, es); return At && (es.jsDocDiagnostics = ox(At, es)), Rr(), Ao ? { jsDocTypeExpression: Ao, diagnostics: kd } : void 0; } z.parseJSDocTypeExpressionForTests = be; function Xe(Ai) { const Pa = Z(), Cs = (Ai ? Aa : wn)(18), Ao = Ie(8388608, ic); (!Ai || Cs) && Fl(19); const es = m.createJSDocTypeExpression(Ao); return lr(es), Zt(es, Pa); } z.parseJSDocTypeExpression = Xe; function Et() { const Ai = Z(), Pa = Aa(18), Cs = Z(); let Ao = Ko(!1); for (; q() === 80; ) fo(), dn(), Ao = Zt(m.createJSDocMemberName(Ao, It()), Cs); Pa && Fl(19); const es = m.createJSDocNameReference(Ao); return lr(es), Zt(es, Ai); } z.parseJSDocNameReference = Et; function Gt(Ai, Pa, Cs) { Ki("", Ai, 99, void 0, 1); const Ao = Ie(8388608, () => bi(Pa, Cs)), kd = ox(ot, { languageVariant: 0, text: Ai }); return Rr(), Ao ? { jsDoc: Ao, diagnostics: kd } : void 0; } z.parseIsolatedJSDocComment = Gt; function Cn(Ai, Pa, Cs) { const Ao = Vt, es = ot.length, kd = Yt, Ip = Ie(8388608, () => bi(Pa, Cs)); return Bo(Ip, Ai), Hn & 262144 && (At || (At = []), At.push(...ot)), Vt = Ao, ot.length = es, Yt = kd, Ip; } z.parseJSDocComment = Cn; let Mr; ((Ai) => { Ai[Ai.BeginningOfLine = 0] = "BeginningOfLine", Ai[Ai.SawAsterisk = 1] = "SawAsterisk", Ai[Ai.SavingComments = 2] = "SavingComments", Ai[Ai.SavingBackticks = 3] = "SavingBackticks"; })(Mr || (Mr = {})); let pi; ((Ai) => { Ai[Ai.Property = 1] = "Property", Ai[Ai.Parameter = 2] = "Parameter", Ai[Ai.CallbackParameter = 4] = "CallbackParameter"; })(pi || (pi = {})); function bi(Ai = 0, Pa) { const Cs = Pe, Ao = Pa === void 0 ? Cs.length : Ai + Pa; if (Pa = Ao - Ai, D.assert(Ai >= 0), D.assert(Ai <= Ao), D.assert(Ao <= Cs.length), !LJ(Cs, Ai)) return; let es, kd, Ip, sm, Fg, T_ = []; const Jy = []; return t.scanRange(Ai + 3, Pa - 5, () => { let Dn = 1, zr, Br = Ai - (Cs.lastIndexOf(` `, Ai) + 1) + 4; function ti(bo) { zr || (zr = Br), T_.push(bo), Br += bo.length; } for (dn(); mS(5); ) ; mS(4) && (Dn = 0, Br = 0); e: for (; ; ) { switch (q()) { case 59: Dn === 0 || Dn === 1 ? (EE(T_), Fg || (Fg = Z()), m0(sL(Br)), Dn = 0, zr = void 0) : ti(t.getTokenText()); break; case 4: T_.push(t.getTokenText()), Dn = 0, Br = 0; break; case 41: const bo = t.getTokenText(); Dn === 1 || Dn === 2 ? (Dn = 2, ti(bo)) : (Dn = 1, Br += bo.length); break; case 5: const No = t.getTokenText(); Dn === 2 ? T_.push(No) : zr !== void 0 && Br + No.length > zr && T_.push(No.slice(zr - Br)), Br += No.length; break; case 1: break e; case 18: Dn = 2; const pf = t.getStartPos(), np = t.getTextPos() - 1, Gh = Vw(np); if (Gh) { sm || x2(T_), Jy.push(Zt(m.createJSDocText(T_.join("")), sm ?? Ai, pf)), Jy.push(Gh), T_ = [], sm = t.getTextPos(); break; } default: Dn = 2, ti(t.getTokenText()); break; } dn(); } EE(T_), Jy.length && T_.length && Jy.push(Zt(m.createJSDocText(T_.join("")), sm ?? Ai, Fg)), Jy.length && es && D.assertIsDefined(Fg, "having parsed tags implies that the end of the comment span should be set"); const Vi = es && qs(es, kd, Ip); return Zt(m.createJSDocComment(Jy.length ? qs(Jy, Ai, Fg) : T_.length ? T_.join("") : void 0, Vi), Ai, Ao); }); function x2(Dn) { for (; Dn.length && (Dn[0] === ` ` || Dn[0] === "\r"); ) Dn.shift(); } function EE(Dn) { for (; Dn.length && Dn[Dn.length - 1].trim() === ""; ) Dn.pop(); } function oL() { for (; ; ) { if (dn(), q() === 1) return !0; if (!(q() === 5 || q() === 4)) return !1; } } function tp() { if (!((q() === 5 || q() === 4) && qr(oL))) for (; q() === 5 || q() === 4; ) dn(); } function p0() { if ((q() === 5 || q() === 4) && qr(oL)) return ""; let Dn = t.hasPrecedingLineBreak(), zr = !1, Br = ""; for (; Dn && q() === 41 || q() === 5 || q() === 4; ) Br += t.getTokenText(), q() === 4 ? (Dn = !0, zr = !0, Br = "") : q() === 41 && (Dn = !1), dn(); return zr ? Br : ""; } function sL(Dn) { D.assert(q() === 59); const zr = t.getTokenPos(); dn(); const Br = y0(void 0), ti = p0(); let Vi; switch (Br.escapedText) { case "author": Vi = qt(zr, Br, Dn, ti); break; case "implements": Vi = Qi(zr, Br, Dn, ti); break; case "augments": case "extends": Vi = Xa(zr, Br, Dn, ti); break; case "class": case "constructor": Vi = Ug(zr, m.createJSDocClassTag, Br, Dn, ti); break; case "public": Vi = Ug(zr, m.createJSDocPublicTag, Br, Dn, ti); break; case "private": Vi = Ug(zr, m.createJSDocPrivateTag, Br, Dn, ti); break; case "protected": Vi = Ug(zr, m.createJSDocProtectedTag, Br, Dn, ti); break; case "readonly": Vi = Ug(zr, m.createJSDocReadonlyTag, Br, Dn, ti); break; case "override": Vi = Ug(zr, m.createJSDocOverrideTag, Br, Dn, ti); break; case "deprecated": Ht = !0, Vi = Ug(zr, m.createJSDocDeprecatedTag, Br, Dn, ti); break; case "this": Vi = Yne(zr, Br, Dn, ti); break; case "enum": Vi = $ne(zr, Br, Dn, ti); break; case "arg": case "argument": case "param": return Ww(zr, Br, 2, Dn); case "return": case "returns": Vi = w(zr, Br, Dn, ti); break; case "template": Vi = Yy(zr, Br, Dn, ti); break; case "type": Vi = F(zr, Br, Dn, ti); break; case "typedef": Vi = lL(zr, Br, Dn, ti); break; case "callback": Vi = ar(zr, Br, Dn, ti); break; case "overload": Vi = h0(zr, Br, Dn, ti); break; case "satisfies": Vi = _f(zr, Br, Dn, ti); break; case "see": Vi = oe(zr, Br, Dn, ti); break; case "exception": case "throws": Vi = ze(zr, Br, Dn, ti); break; default: Vi = vl(zr, Br, Dn, ti); break; } return Vi; } function Nf(Dn, zr, Br, ti) { return ti || (Br += zr - Dn), A2(Br, ti.slice(Br)); } function A2(Dn, zr) { const Br = Z(); let ti = []; const Vi = []; let bo, No = 0, pf = !0, np; function Gh(Uh) { np || (np = Dn), ti.push(Uh), Dn += Uh.length; } zr !== void 0 && (zr !== "" && Gh(zr), No = 1); let eh = q(); e: for (; ; ) { switch (eh) { case 4: No = 0, ti.push(t.getTokenText()), Dn = 0; break; case 59: if (No === 3 || No === 2 && (!pf || qr(Ky))) { ti.push(t.getTokenText()); break; } t.setTextPos(t.getTextPos() - 1); case 1: break e; case 5: if (No === 2 || No === 3) Gh(t.getTokenText()); else { const Lb = t.getTokenText(); np !== void 0 && Dn + Lb.length > np && ti.push(Lb.slice(np - Dn)), Dn += Lb.length; } break; case 18: No = 2; const Uh = t.getStartPos(), dL = t.getTextPos() - 1, Gu = Vw(dL); Gu ? (Vi.push(Zt(m.createJSDocText(ti.join("")), bo ?? Br, Uh)), Vi.push(Gu), ti = [], bo = t.getTextPos()) : Gh(t.getTokenText()); break; case 61: No === 3 ? No = 2 : No = 3, Gh(t.getTokenText()); break; case 41: if (No === 0) { No = 1, Dn += 1; break; } default: No !== 3 && (No = 2), Gh(t.getTokenText()); break; } pf = q() === 5, eh = dn(); } if (x2(ti), EE(ti), Vi.length) return ti.length && Vi.push(Zt(m.createJSDocText(ti.join("")), bo ?? Br)), qs(Vi, Br, t.getTextPos()); if (ti.length) return ti.join(""); } function Ky() { const Dn = dn(); return Dn === 5 || Dn === 4; } function Vw(Dn) { const zr = is(jw); if (!zr) return; dn(), tp(); const Br = Z(); let ti = Wu(q()) ? Ko(!0) : void 0; if (ti) for (; q() === 80; ) fo(), dn(), ti = Zt(m.createJSDocMemberName(ti, It()), Br); const Vi = []; for (; q() !== 19 && q() !== 4 && q() !== 1; ) Vi.push(t.getTokenText()), dn(); const bo = zr === "link" ? m.createJSDocLink : zr === "linkcode" ? m.createJSDocLinkCode : m.createJSDocLinkPlain; return Zt(bo(ti, Vi.join("")), Dn, t.getTextPos()); } function jw() { if (p0(), q() === 18 && dn() === 59 && Wu(dn())) { const Dn = t.getTokenValue(); if (Co(Dn)) return Dn; } } function Co(Dn) { return Dn === "link" || Dn === "linkcode" || Dn === "linkplain"; } function vl(Dn, zr, Br, ti) { return Zt(m.createJSDocUnknownTag(zr, Nf(Dn, Z(), Br, ti)), Dn); } function m0(Dn) { Dn && (es ? es.push(Dn) : (es = [Dn], kd = Dn.pos), Ip = Dn.end); } function Xy() { return p0(), q() === 18 ? Xe() : void 0; } function Hw() { const Dn = mS(22); Dn && tp(); const zr = mS(61), Br = r4(); return zr && Ud(61), Dn && (tp(), Jo(63) && ru(), wn(23)), { name: Br, isBracketed: Dn }; } function wd(Dn) { switch (Dn.kind) { case 149: return !0; case 185: return wd(Dn.elementType); default: return V_(Dn) && Ve(Dn.typeName) && Dn.typeName.escapedText === "Object" && !Dn.typeArguments; } } function Ww(Dn, zr, Br, ti) { let Vi = Xy(), bo = !Vi; p0(); const { name: No, isBracketed: pf } = Hw(), np = p0(); bo && !qr(jw) && (Vi = Xy()); const Gh = Nf(Dn, Z(), ti, np), eh = Br !== 4 && v(Vi, No, Br, ti); eh && (Vi = eh, bo = !0); const Uh = Br === 1 ? m.createJSDocPropertyTag(zr, No, pf, Vi, bo, Gh) : m.createJSDocParameterTag(zr, No, pf, Vi, bo, Gh); return Zt(Uh, Dn); } function v(Dn, zr, Br, ti) { if (Dn && wd(Dn.type)) { const Vi = Z(); let bo, No; for (; bo = is(() => TE(Br, ti, zr)); ) (bo.kind === 344 || bo.kind === 351) && (No = Fn(No, bo)); if (No) { const pf = Zt(m.createJSDocTypeLiteral(No, Dn.type.kind === 185), Vi); return Zt(m.createJSDocTypeExpression(pf), Vi); } } } function w(Dn, zr, Br, ti) { kt(es, k7) && rt(zr.pos, t.getTokenPos(), _._0_tag_already_specified, zr.escapedText); const Vi = Xy(); return Zt(m.createJSDocReturnTag(zr, Vi, Nf(Dn, Z(), Br, ti)), Dn); } function F(Dn, zr, Br, ti) { kt(es, kk) && rt(zr.pos, t.getTokenPos(), _._0_tag_already_specified, zr.escapedText); const Vi = Xe(!0), bo = Br !== void 0 && ti !== void 0 ? Nf(Dn, Z(), Br, ti) : void 0; return Zt(m.createJSDocTypeTag(zr, Vi, bo), Dn); } function oe(Dn, zr, Br, ti) { const bo = q() === 22 || qr(() => dn() === 59 && Wu(dn()) && Co(t.getTokenValue())) ? void 0 : Et(), No = Br !== void 0 && ti !== void 0 ? Nf(Dn, Z(), Br, ti) : void 0; return Zt(m.createJSDocSeeTag(zr, bo, No), Dn); } function ze(Dn, zr, Br, ti) { const Vi = Xy(), bo = Nf(Dn, Z(), Br, ti); return Zt(m.createJSDocThrowsTag(zr, Vi, bo), Dn); } function qt(Dn, zr, Br, ti) { const Vi = Z(), bo = Fr(); let No = t.getStartPos(); const pf = Nf(Dn, No, Br, ti); pf || (No = t.getStartPos()); const np = typeof pf != "string" ? qs(ha([Zt(bo, Vi, No)], pf), Vi) : bo.text + pf; return Zt(m.createJSDocAuthorTag(zr, np), Dn); } function Fr() { const Dn = []; let zr = !1, Br = t.getToken(); for (; Br !== 1 && Br !== 4; ) { if (Br === 29) zr = !0; else { if (Br === 59 && !zr) break; if (Br === 31 && zr) { Dn.push(t.getTokenText()), t.setTextPos(t.getTokenPos() + 1); break; } } Dn.push(t.getTokenText()), Br = dn(); } return m.createJSDocText(Dn.join("")); } function Qi(Dn, zr, Br, ti) { const Vi = Bg(); return Zt(m.createJSDocImplementsTag(zr, Vi, Nf(Dn, Z(), Br, ti)), Dn); } function Xa(Dn, zr, Br, ti) { const Vi = Bg(); return Zt(m.createJSDocAugmentsTag(zr, Vi, Nf(Dn, Z(), Br, ti)), Dn); } function _f(Dn, zr, Br, ti) { const Vi = Xe(!1), bo = Br !== void 0 && ti !== void 0 ? Nf(Dn, Z(), Br, ti) : void 0; return Zt(m.createJSDocSatisfiesTag(zr, Vi, bo), Dn); } function Bg() { const Dn = Aa(18), zr = Z(), Br = Gg(), ti = zd(), Vi = m.createExpressionWithTypeArguments(Br, ti), bo = Zt(Vi, zr); return Dn && wn(19), bo; } function Gg() { const Dn = Z(); let zr = y0(); for (; Aa(24); ) { const Br = y0(); zr = Zt(te(zr, Br), Dn); } return zr; } function Ug(Dn, zr, Br, ti, Vi) { return Zt(zr(Br, Nf(Dn, Z(), ti, Vi)), Dn); } function Yne(Dn, zr, Br, ti) { const Vi = Xe(!0); return tp(), Zt(m.createJSDocThisTag(zr, Vi, Nf(Dn, Z(), Br, ti)), Dn); } function $ne(Dn, zr, Br, ti) { const Vi = Xe(!0); return tp(), Zt(m.createJSDocEnumTag(zr, Vi, Nf(Dn, Z(), Br, ti)), Dn); } function lL(Dn, zr, Br, ti) { var Vi; let bo = Xy(); p0(); const No = zw(); tp(); let pf = A2(Br), np; if (!bo || wd(bo.type)) { let eh, Uh, dL, Gu = !1; for (; eh = is(() => C2(Br)); ) if (Gu = !0, eh.kind === 347) if (Uh) { const Lb = pt(_.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags); Lb && qo(Lb, XA(We, 0, 0, _.The_tag_was_first_specified_here)); break; } else Uh = eh; else dL = Fn(dL, eh); if (Gu) { const Lb = bo && bo.type.kind === 185, qw = m.createJSDocTypeLiteral(dL, Lb); bo = Uh && Uh.typeExpression && !wd(Uh.typeExpression.type) ? Uh.typeExpression : Zt(qw, Dn), np = bo.end; } } np = np || pf !== void 0 ? Z() : ((Vi = No ?? bo) != null ? Vi : zr).end, pf || (pf = Nf(Dn, np, Br, ti)); const Gh = m.createJSDocTypedefTag(zr, bo, No, pf); return Zt(Gh, Dn, np); } function zw(Dn) { const zr = t.getTokenPos(); if (!Wu(q())) return; const Br = y0(); if (Aa(24)) { const ti = zw(!0), Vi = m.createModuleDeclaration(void 0, Br, ti, Dn ? 4 : void 0); return Zt(Vi, zr); } return Dn && (Br.flags |= 2048), Br; } function Qne(Dn) { const zr = Z(); let Br, ti; for (; Br = is(() => TE(4, Dn)); ) ti = Fn(ti, Br); return qs(ti || [], zr); } function cL(Dn, zr) { const Br = Qne(zr), ti = is(() => { if (mS(59)) { const Vi = sL(zr); if (Vi && Vi.kind === 345) return Vi; } }); return Zt(m.createJSDocSignature(void 0, Br, ti), Dn); } function ar(Dn, zr, Br, ti) { const Vi = zw(); tp(); let bo = A2(Br); const No = cL(Dn, Br); bo || (bo = Nf(Dn, Z(), Br, ti)); const pf = bo !== void 0 ? Z() : No.end; return Zt(m.createJSDocCallbackTag(zr, No, Vi, bo), Dn, pf); } function h0(Dn, zr, Br, ti) { tp(); let Vi = A2(Br); const bo = cL(Dn, Br); Vi || (Vi = Nf(Dn, Z(), Br, ti)); const No = Vi !== void 0 ? Z() : bo.end; return Zt(m.createJSDocOverloadTag(zr, bo, Vi), Dn, No); } function g0(Dn, zr) { for (; !Ve(Dn) || !Ve(zr); ) if (!Ve(Dn) && !Ve(zr) && Dn.right.escapedText === zr.right.escapedText) Dn = Dn.left, zr = zr.left; else return !1; return Dn.escapedText === zr.escapedText; } function C2(Dn) { return TE(1, Dn); } function TE(Dn, zr, Br) { let ti = !0, Vi = !1; for (; ; ) switch (dn()) { case 59: if (ti) { const bo = n4(Dn, zr); return bo && (bo.kind === 344 || bo.kind === 351) && Dn !== 4 && Br && (Ve(bo.name) || !g0(Br, bo.name.left)) ? !1 : bo; } Vi = !1; break; case 4: ti = !0, Vi = !1; break; case 41: Vi && (ti = !1), Vi = !0; break; case 79: ti = !1; break; case 1: return !1; } } function n4(Dn, zr) { D.assert(q() === 59); const Br = t.getStartPos(); dn(); const ti = y0(); tp(); let Vi; switch (ti.escapedText) { case "type": return Dn === 1 && F(Br, ti); case "prop": case "property": Vi = 1; break; case "arg": case "argument": case "param": Vi = 6; break; default: return !1; } return Dn & Vi ? Ww(Br, ti, Dn, zr) : !1; } function uL() { const Dn = Z(), zr = mS(22); zr && tp(); const Br = y0(_.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces); let ti; if (zr && (tp(), wn(63), ti = Ie(8388608, ic), wn(23)), !Sl(Br)) return Zt(m.createTypeParameterDeclaration(void 0, Br, void 0, ti), Dn); } function tU() { const Dn = Z(), zr = []; do { tp(); const Br = uL(); Br !== void 0 && zr.push(Br), p0(); } while (mS(27)); return qs(zr, Dn); } function Yy(Dn, zr, Br, ti) { const Vi = q() === 18 ? Xe() : void 0, bo = tU(); return Zt(m.createJSDocTemplateTag(zr, Vi, bo, Nf(Dn, Z(), Br, ti)), Dn); } function mS(Dn) { return q() === Dn ? (dn(), !0) : !1; } function r4() { let Dn = y0(); for (Aa(22) && wn(23); Aa(24); ) { const zr = y0(); Aa(22) && wn(23), Dn = y_(Dn, zr); } return Dn; } function y0(Dn) { if (!Wu(q())) return Gl(79, !Dn, Dn || _.Identifier_expected); nn++; const zr = t.getTokenPos(), Br = t.getTextPos(), ti = q(), Vi = yu(t.getTokenValue()), bo = Zt(O(Vi, ti), zr, Br); return dn(), bo; } } })(S2 = e.JSDocParser || (e.JSDocParser = {})); })(Fv || (Fv = {})), ((e) => { function t(C, I, O, k) { if (k = k || D.shouldAssert(2), m(C, I, O, k), Ale(O)) return C; if (C.statements.length === 0) return Fv.parseSourceFile(C.fileName, I, C.languageVersion, void 0, !0, C.scriptKind, C.setExternalModuleIndicator); const B = C; D.assert(!B.hasBeenIncrementallyParsed), B.hasBeenIncrementallyParsed = !0, Fv.fixupParentReferences(B); const U = C.text, j = b(C), te = d(C, O); m(C, I, te, k), D.assert(te.span.start <= O.span.start), D.assert(Qc(te.span) === Qc(O.span)), D.assert(Qc(cI(te)) === Qc(cI(O))); const X = cI(te).length - te.span.length; f(B, te.span.start, Qc(te.span), Qc(cI(te)), X, U, I, k); const Y = Fv.parseSourceFile(C.fileName, I, C.languageVersion, j, !0, C.scriptKind, C.setExternalModuleIndicator); return Y.commentDirectives = r(C.commentDirectives, Y.commentDirectives, te.span.start, Qc(te.span), X, U, I, k), Y.impliedNodeFormat = C.impliedNodeFormat, Y; } e.updateSourceFile = t; function r(C, I, O, k, B, U, j, te) { if (!C) return I; let X, Y = !1; for (const ue of C) { const { range: ne, type: ge } = ue; if (ne.end < O) X = Fn(X, ue); else if (ne.pos > k) { P(); const ie = { range: { pos: ne.pos + B, end: ne.end + B }, type: ge }; X = Fn(X, ie), te && D.assert(U.substring(ne.pos, ne.end) === j.substring(ie.range.pos, ie.range.end)); } } return P(), X; function P() { Y || (Y = !0, X ? I && X.push(...I) : X = I); } } function i(C, I, O, k, B, U) { I ? te(C) : j(C); return; function j(X) { let Y = ""; if (U && o(X) && (Y = k.substring(X.pos, X.end)), X._children && (X._children = void 0), Mm(X, X.pos + O, X.end + O), U && o(X) && D.assert(Y === B.substring(X.pos, X.end)), Oa(X, j, te), yf(X)) for (const P of X.jsDoc) j(P); c(X, U); } function te(X) { X._children = void 0, Mm(X, X.pos + O, X.end + O); for (const Y of X) j(Y); } } function o(C) { switch (C.kind) { case 10: case 8: case 79: return !0; } return !1; } function s(C, I, O, k, B) { D.assert(C.end >= I, "Adjusting an element that was entirely before the change range"), D.assert(C.pos <= O, "Adjusting an element that was entirely after the change range"), D.assert(C.pos <= C.end); const U = Math.min(C.pos, k), j = C.end >= O ? C.end + B : Math.min(C.end, k); D.assert(U <= j), C.parent && (D.assertGreaterThanOrEqual(U, C.parent.pos), D.assertLessThanOrEqual(j, C.parent.end)), Mm(C, U, j); } function c(C, I) { if (I) { let O = C.pos; const k = (B) => { D.assert(B.pos >= O), O = B.end; }; if (yf(C)) for (const B of C.jsDoc) k(B); Oa(C, k), D.assert(O <= C.end); } } function f(C, I, O, k, B, U, j, te) { X(C); return; function X(P) { if (D.assert(P.pos <= P.end), P.pos > O) { i(P, !1, B, U, j, te); return; } const ue = P.end; if (ue >= I) { if (P.intersectsChange = !0, P._children = void 0, s(P, I, O, k, B), Oa(P, X, Y), yf(P)) for (const ne of P.jsDoc) X(ne); c(P, te); return; } D.assert(ue < I); } function Y(P) { if (D.assert(P.pos <= P.end), P.pos > O) { i(P, !0, B, U, j, te); return; } const ue = P.end; if (ue >= I) { P.intersectsChange = !0, P._children = void 0, s(P, I, O, k, B); for (const ne of P) X(ne); return; } D.assert(ue < I); } } function d(C, I) { let k = I.span.start; for (let j = 0; k > 0 && j <= 1; j++) { const te = y(C, k); D.assert(te.pos <= k); const X = te.pos; k = Math.max(0, X - 1); } const B = fc(k, Qc(I.span)), U = I.newLength + (I.span.start - k); return DR(B, U); } function y(C, I) { let O = C, k; if (Oa(C, U), k) { const j = B(k); j.pos > O.pos && (O = j); } return O; function B(j) { for (; ; ) { const te = Fz(j); if (te) j = te; else return j; } } function U(j) { if (!Sl(j)) if (j.pos <= I) { if (j.pos >= O.pos && (O = j), I < j.end) return Oa(j, U), !0; D.assert(j.end <= I), k = j; } else return D.assert(j.pos > I), !0; } } function m(C, I, O, k) { const B = C.text; if (O && (D.assert(B.length - O.span.length + O.newLength === I.length), k || D.shouldAssert(3))) { const U = B.substr(0, O.span.start), j = I.substr(0, O.span.start); D.assert(U === j); const te = B.substring(Qc(O.span), B.length), X = I.substring(Qc(cI(O)), I.length); D.assert(te === X); } } function b(C) { let I = C.statements, O = 0; D.assert(O < I.length); let k = I[O], B = -1; return { currentNode(j) { return j !== B && (k && k.end === j && O < I.length - 1 && (O++, k = I[O]), (!k || k.pos !== j) && U(j)), B = j, D.assert(!k || k.pos === j), k; } }; function U(j) { I = void 0, O = -1, k = void 0, Oa(C, te, X); return; function te(Y) { return j >= Y.pos && j < Y.end ? (Oa(Y, te, X), !0) : !1; } function X(Y) { if (j >= Y.pos && j < Y.end) for (let P = 0; P < Y.length; P++) { const ue = Y[P]; if (ue) { if (ue.pos === j) return I = Y, O = P, k = ue, !0; if (ue.pos < j && j < ue.end) return Oa(ue, te, X), !0; } } return !1; } } } e.createSyntaxCursor = b; let A; ((C) => { C[C.Value = -1] = "Value"; })(A || (A = {})); })(V7 || (V7 = {})), j7 = /* @__PURE__ */ new Map(), N_e = /^\/\/\/\s*<(\S+)\s.*?\/>/im, O_e = /^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im; } }); function H7(e) { const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(); return Ye(e, (i) => { t.set(i.name.toLowerCase(), i), i.shortName && r.set(i.shortName, i.name); }), { optionsNameMap: t, shortOptionNames: r }; } function AC() { return upe || (upe = H7(fg)); } function NJ(e) { return P_e(e, Ps); } function P_e(e, t) { const r = ko(e.type.keys()), i = (e.deprecatedKeys ? r.filter((o) => !e.deprecatedKeys.has(o)) : r).map((o) => `'${o}'`).join(", "); return t(_.Argument_for_0_option_must_be_Colon_1, `--${e.name}`, i); } function W7(e, t, r) { return ipe(e, n1(t || ""), r); } function M_e(e, t = "", r) { if (t = n1(t), Ea(t, "-")) return; if (e.type === "listOrElement" && !lu(t, ",")) return IT(e, t, r); if (t === "") return []; const i = t.split(","); switch (e.element.type) { case "number": return _a(i, (o) => IT(e.element, parseInt(o), r)); case "string": return _a(i, (o) => IT(e.element, o || "", r)); case "boolean": case "object": return D.fail(`List of ${e.element.type} is not yet supported.`); default: return _a(i, (o) => W7(e.element, o, r)); } } function F_e(e) { return e.name; } function OJ(e, t, r, i) { var o; if ((o = t.alternateMode) != null && o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase())) return r(t.alternateMode.diagnostic, e); const s = YL(e, t.optionDeclarations, F_e); return s ? r(t.unknownDidYouMeanDiagnostic, i || e, s.name) : r(t.unknownOptionDiagnostic, i || e); } function PJ(e, t, r) { const i = {}; let o; const s = [], c = []; return f(t), { options: i, watchOptions: o, fileNames: s, errors: c }; function f(y) { let m = 0; for (; m < y.length; ) { const b = y[m]; if (m++, b.charCodeAt(0) === 64) d(b.slice(1)); else if (b.charCodeAt(0) === 45) { const A = b.slice(b.charCodeAt(1) === 45 ? 2 : 1), C = FJ(e.getOptionsNameMap, A, !0); if (C) m = B_e(y, m, e, C, i, c); else { const I = FJ(t8.getOptionsNameMap, A, !0); I ? m = B_e(y, m, t8, I, o || (o = {}), c) : c.push(OJ(A, e, Ps, b)); } } else s.push(b); } } function d(y) { const m = jO(y, r || ((C) => zc.readFile(C))); if (!Va(m)) { c.push(m); return; } const b = []; let A = 0; for (; ; ) { for (; A < m.length && m.charCodeAt(A) <= 32; ) A++; if (A >= m.length) break; const C = A; if (m.charCodeAt(C) === 34) { for (A++; A < m.length && m.charCodeAt(A) !== 34; ) A++; A < m.length ? (b.push(m.substring(C + 1, A)), A++) : c.push(Ps(_.Unterminated_quoted_string_in_response_file_0, y)); } else { for (; m.charCodeAt(A) > 32; ) A++; b.push(m.substring(C, A)); } } f(b); } } function B_e(e, t, r, i, o, s) { if (i.isTSConfigOnly) { const c = e[t]; c === "null" ? (o[i.name] = void 0, t++) : i.type === "boolean" ? c === "false" ? (o[i.name] = IT(i, !1, s), t++) : (c === "true" && t++, s.push(Ps(_.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line, i.name))) : (s.push(Ps(_.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line, i.name)), c && !Ea(c, "-") && t++); } else if (!e[t] && i.type !== "boolean" && s.push(Ps(r.optionTypeMismatchDiagnostic, i.name, Rk(i))), e[t] !== "null") switch (i.type) { case "number": o[i.name] = IT(i, parseInt(e[t]), s), t++; break; case "boolean": const c = e[t]; o[i.name] = IT(i, c !== "false", s), (c === "false" || c === "true") && t++; break; case "string": o[i.name] = IT(i, e[t] || "", s), t++; break; case "list": const f = M_e(i, e[t], s); o[i.name] = f || [], f && t++; break; case "listOrElement": D.fail("listOrElement not supported here"); break; default: o[i.name] = W7(i, e[t], s), t++; break; } else o[i.name] = void 0, t++; return t; } function I4e(e, t) { return PJ(e8, e, t); } function MJ(e, t) { return FJ(AC, e, t); } function FJ(e, t, r = !1) { t = t.toLowerCase(); const { optionsNameMap: i, shortOptionNames: o } = e(); if (r) { const s = o.get(t); s !== void 0 && (t = s); } return i.get(t); } function G_e() { return fpe || (fpe = H7(Z7)); } function k4e(e) { const { options: t, watchOptions: r, fileNames: i, errors: o } = PJ(ppe, e), s = t; return i.length === 0 && i.push("."), s.clean && s.force && o.push(Ps(_.Options_0_and_1_cannot_be_combined, "clean", "force")), s.clean && s.verbose && o.push(Ps(_.Options_0_and_1_cannot_be_combined, "clean", "verbose")), s.clean && s.watch && o.push(Ps(_.Options_0_and_1_cannot_be_combined, "clean", "watch")), s.watch && s.dry && o.push(Ps(_.Options_0_and_1_cannot_be_combined, "watch", "dry")), { buildOptions: s, watchOptions: r, projects: i, errors: o }; } function w4e(e, ...t) { return Ps.apply(void 0, arguments).messageText; } function UO(e, t, r, i, o, s) { const c = jO(e, (y) => r.readFile(y)); if (!Va(c)) { r.onUnRecoverableConfigFileDiagnostic(c); return; } const f = GO(e, c), d = r.getCurrentDirectory(); return f.path = Hs(e, d, $c(r.useCaseSensitiveFileNames)), f.resolvedPath = f.path, f.originalFileName = f.fileName, WO(f, r, Na(fi(e), d), t, Na(e, d), void 0, s, i, o); } function VO(e, t) { const r = jO(e, t); return Va(r) ? BJ(e, r) : { config: {}, error: r }; } function BJ(e, t) { const r = GO(e, t); return { config: z_e(r, r.parseDiagnostics, !1, void 0), error: r.parseDiagnostics.length ? r.parseDiagnostics[0] : void 0 }; } function U_e(e, t) { const r = jO(e, t); return Va(r) ? GO(e, r) : { fileName: e, parseDiagnostics: [r] }; } function jO(e, t) { let r; try { r = t(e); } catch (i) { return Ps(_.Cannot_read_file_0_Colon_1, e, i.message); } return r === void 0 ? Ps(_.Cannot_read_file_0, e) : r; } function z7(e) { return $b(e, F_e); } function V_e() { return mpe || (mpe = H7($O)); } function j_e() { return hpe || (hpe = z7(fg)); } function H_e() { return gpe || (gpe = z7($O)); } function W_e() { return ype || (ype = z7(e5)); } function D4e() { return sK === void 0 && (sK = { name: void 0, type: "object", elementOptions: z7([ { name: "compilerOptions", type: "object", elementOptions: j_e(), extraKeyDiagnostics: e8 }, { name: "watchOptions", type: "object", elementOptions: H_e(), extraKeyDiagnostics: t8 }, { name: "typeAcquisition", type: "object", elementOptions: W_e(), extraKeyDiagnostics: oK }, n8, { name: "references", type: "list", element: { name: "references", type: "object" }, category: _.Projects }, { name: "files", type: "list", element: { name: "files", type: "string" }, category: _.File_Management }, { name: "include", type: "list", element: { name: "include", type: "string" }, category: _.File_Management, defaultValueDescription: _.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk }, { name: "exclude", type: "list", element: { name: "exclude", type: "string" }, category: _.File_Management, defaultValueDescription: _.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified }, KO ]) }), sK; } function z_e(e, t, r, i) { var o; const s = (o = e.statements[0]) == null ? void 0 : o.expression, c = r ? D4e() : void 0; if (s && s.kind !== 207) { if (t.push(id(e, s, _.The_root_value_of_a_0_file_must_be_an_object, cu(e.fileName) === "jsconfig.json" ? "jsconfig.json" : "tsconfig.json")), Ru(s)) { const f = un(s.elements, As); if (f) return HO(e, f, t, !0, c, i); } return {}; } return HO(e, s, t, !0, c, i); } function q_e(e, t) { var r; return HO(e, (r = e.statements[0]) == null ? void 0 : r.expression, t, !0, void 0, void 0); } function HO(e, t, r, i, o, s) { if (!t) return i ? {} : void 0; return y(t, o); function c(b) { return o && o.elementOptions === b; } function f(b, A, C, I) { const O = i ? {} : void 0; for (const k of b.properties) { if (k.kind !== 299) { r.push(id(e, k, _.Property_assignment_expected)); continue; } k.questionToken && r.push(id(e, k.questionToken, _.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")), m(k.name) || r.push(id(e, k.name, _.String_literal_with_double_quotes_expected)); const B = XR(k.name) ? void 0 : AA(k.name), U = B && Zi(B), j = U && A ? A.get(U) : void 0; U && C && !j && (A ? r.push(OJ(U, C, (X, Y, P) => id(e, k.name, X, Y, P))) : r.push(id(e, k.name, C.unknownOptionDiagnostic, U))); const te = y(k.initializer, j); if (typeof U < "u" && (i && (O[U] = te), s && (I || c(A)))) { const X = q7(j, te); I ? X && s.onSetValidOptionKeyValueInParent(I, j, te) : c(A) && (X ? s.onSetValidOptionKeyValueInRoot(U, k.name, te, k.initializer) : j || s.onSetUnknownOptionKeyValueInRoot(U, k.name, te, k.initializer)); } } return O; } function d(b, A) { if (!i) { b.forEach((C) => y(C, A)); return; } return yn(b.map((C) => y(C, A)), (C) => C !== void 0); } function y(b, A) { let C; switch (b.kind) { case 110: return O(A && A.type !== "boolean" && (A.type !== "listOrElement" || A.element.type !== "boolean")), I(!0); case 95: return O(A && A.type !== "boolean" && (A.type !== "listOrElement" || A.element.type !== "boolean")), I(!1); case 104: return O(A && A.name === "extends"), I(null); case 10: m(b) || r.push(id(e, b, _.String_literal_with_double_quotes_expected)), O(A && Va(A.type) && A.type !== "string" && (A.type !== "listOrElement" || Va(A.element.type) && A.element.type !== "string")); const k = b.text; if (A && D.assert(A.type !== "listOrElement" || A.element.type === "string", "Only string or array of string is handled for now"), A && !Va(A.type)) { const U = A; U.type.has(k.toLowerCase()) || (r.push(P_e(U, (j, te, X) => id(e, b, j, te, X))), C = !0); } return I(k); case 8: return O(A && A.type !== "number" && (A.type !== "listOrElement" || A.element.type !== "number")), I(Number(b.text)); case 221: if (b.operator !== 40 || b.operand.kind !== 8) break; return O(A && A.type !== "number" && (A.type !== "listOrElement" || A.element.type !== "number")), I(-Number(b.operand.text)); case 207: O(A && A.type !== "object" && (A.type !== "listOrElement" || A.element.type !== "object")); const B = b; if (A) { const { elementOptions: U, extraKeyDiagnostics: j, name: te } = A; return I(f(B, U, j, te)); } else return I(f(B, void 0, void 0, void 0)); case 206: return O(A && A.type !== "list" && A.type !== "listOrElement"), I(d(b.elements, A && A.element)); } A ? O(!0) : r.push(id(e, b, _.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)); return; function I(k) { var B; if (!C) { const U = (B = A == null ? void 0 : A.extraValidation) == null ? void 0 : B.call(A, k); if (U) { r.push(id(e, b, ...U)); return; } } return k; } function O(k) { k && (r.push(id(e, b, _.Compiler_option_0_requires_a_value_of_type_1, A.name, Rk(A))), C = !0); } } function m(b) { return Go(b) && QM(b, e); } } function Rk(e) { return e.type === "listOrElement" ? `${Rk(e.element)} or Array` : e.type === "list" ? "Array" : Va(e.type) ? e.type : "string"; } function q7(e, t) { if (e) { if (CC(t)) return !0; if (e.type === "list") return Ga(t); if (e.type === "listOrElement") return Ga(t) || q7(e.element, t); const r = Va(e.type) ? e.type : "string"; return typeof t === r; } return !1; } function R4e(e, t, r) { var i, o, s; const c = $c(r.useCaseSensitiveFileNames), f = rn(yn(e.fileNames, (o = (i = e.options.configFile) == null ? void 0 : i.configFileSpecs) != null && o.validatedIncludeSpecs ? O4e(t, e.options.configFile.configFileSpecs.validatedIncludeSpecs, e.options.configFile.configFileSpecs.validatedExcludeSpecs, r) : Zb), (b) => ER(Na(t, r.getCurrentDirectory()), Na(b, r.getCurrentDirectory()), c)), d = VJ(e.options, { configFilePath: Na(t, r.getCurrentDirectory()), useCaseSensitiveFileNames: r.useCaseSensitiveFileNames }), y = e.watchOptions && P4e(e.watchOptions); return { compilerOptions: { ...GJ(d), 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: y && GJ(y), references: rn(e.projectReferences, (b) => ({ ...b, path: b.originalPath ? b.originalPath : "", originalPath: void 0 })), files: Ne(f) ? f : void 0, ...(s = e.options.configFile) != null && s.configFileSpecs ? { include: N4e(e.options.configFile.configFileSpecs.validatedIncludeSpecs), exclude: e.options.configFile.configFileSpecs.validatedExcludeSpecs } : {}, compileOnSave: e.compileOnSave ? !0 : void 0 }; } function GJ(e) { return { ...ko(e.entries()).reduce((t, r) => ({ ...t, [r[0]]: r[1] }), {}) }; } function N4e(e) { if (Ne(e)) { if (Ne(e) !== 1) return e; if (e[0] !== n5) return e; } } function O4e(e, t, r, i) { if (!t) return Zb; const o = ek(e, r, t, i.useCaseSensitiveFileNames, i.getCurrentDirectory()), s = o.excludePattern && wv(o.excludePattern, i.useCaseSensitiveFileNames), c = o.includeFilePattern && wv(o.includeFilePattern, i.useCaseSensitiveFileNames); return c ? s ? (f) => !(c.test(f) && !s.test(f)) : (f) => !c.test(f) : s ? (f) => s.test(f) : Zb; } function J_e(e) { switch (e.type) { case "string": case "number": case "boolean": case "object": return; case "list": case "listOrElement": return J_e(e.element); default: return e.type; } } function UJ(e, t) { return Zd(t, (r, i) => { if (r === e) return i; }); } function VJ(e, t) { return K_e(e, AC(), t); } function P4e(e) { return K_e(e, V_e()); } function K_e(e, { optionsNameMap: t }, r) { const i = /* @__PURE__ */ new Map(), o = r && $c(r.useCaseSensitiveFileNames); for (const s in e) if (Ns(e, s)) { if (t.has(s) && (t.get(s).category === _.Command_line_Options || t.get(s).category === _.Output_Formatting)) continue; const c = e[s], f = t.get(s.toLowerCase()); if (f) { D.assert(f.type !== "listOrElement"); const d = J_e(f); d ? f.type === "list" ? i.set(s, c.map((y) => UJ(y, d))) : i.set(s, UJ(c, d)) : r && f.isFilePath ? i.set(s, ER(r.configFilePath, Na(c, fi(r.configFilePath)), o)) : i.set(s, c); } } return i; } function M4e(e, t) { const r = X_e(e); return o(); function i(s) { return Array(s + 1).join(" "); } function o() { const s = [], c = i(2); return Y7.forEach((f) => { if (!r.has(f.name)) return; const d = r.get(f.name), y = YJ(f); d !== y ? s.push(`${c}${f.name}: ${d}`) : Ns(t5, f.name) && s.push(`${c}${f.name}: ${y}`); }), s.join(t) + t; } } function X_e(e) { const t = TP(e, t5); return VJ(t); } function F4e(e, t, r) { const i = X_e(e); return c(); function o(f) { return Array(f + 1).join(" "); } function s({ category: f, name: d, isCommandLineOnly: y }) { const m = [_.Command_line_Options, _.Editor_Support, _.Compiler_Diagnostics, _.Backwards_Compatibility, _.Watch_and_Build_Modes, _.Output_Formatting]; return !y && f !== void 0 && (!m.includes(f) || i.has(d)); } function c() { const f = /* @__PURE__ */ new Map(); f.set(_.Projects, []), f.set(_.Language_and_Environment, []), f.set(_.Modules, []), f.set(_.JavaScript_Support, []), f.set(_.Emit, []), f.set(_.Interop_Constraints, []), f.set(_.Type_Checking, []), f.set(_.Completeness, []); for (const C of fg) if (s(C)) { let I = f.get(C.category); I || f.set(C.category, I = []), I.push(C); } let d = 0, y = 0; const m = []; f.forEach((C, I) => { m.length !== 0 && m.push({ value: "" }), m.push({ value: `/* ${Do(I)} */` }); for (const O of C) { let k; i.has(O.name) ? k = `"${O.name}": ${JSON.stringify(i.get(O.name))}${(y += 1) === i.size ? "" : ","}` : k = `// "${O.name}": ${JSON.stringify(YJ(O))},`, m.push({ value: k, description: `/* ${O.description && Do(O.description) || O.name} */` }), d = Math.max(k.length, d); } }); const b = o(2), A = []; A.push("{"), A.push(`${b}"compilerOptions": {`), A.push(`${b}${b}/* ${Do(_.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`), A.push(""); for (const C of m) { const { value: I, description: O = "" } = C; A.push(I && `${b}${b}${I}${O && o(d - I.length + 2) + O}`); } if (t.length) { A.push(`${b}},`), A.push(`${b}"files": [`); for (let C = 0; C < t.length; C++) A.push(`${b}${b}${JSON.stringify(t[C])}${C === t.length - 1 ? "" : ","}`); A.push(`${b}]`); } else A.push(`${b}}`); return A.push("}"), A.join(r) + r; } } function jJ(e, t) { const r = {}, i = AC().optionsNameMap; for (const o in e) Ns(e, o) && (r[o] = B4e(i.get(o.toLowerCase()), e[o], t)); return r.configFilePath && (r.configFilePath = t(r.configFilePath)), r; } function B4e(e, t, r) { if (e && !CC(t)) { if (e.type === "list") { const i = t; if (e.element.isFilePath && i.length) return i.map(r); } else if (e.isFilePath) return r(t); D.assert(e.type !== "listOrElement"); } return t; } function G4e(e, t, r, i, o, s, c, f, d) { return Y_e(e, void 0, t, r, i, d, o, s, c, f); } function WO(e, t, r, i, o, s, c, f, d) { var y, m; (y = hi) == null || y.push(hi.Phase.Parse, "parseJsonSourceFileConfigFileContent", { path: e.fileName }); const b = Y_e(void 0, e, t, r, i, d, o, s, c, f); return (m = hi) == null || m.pop(), b; } function HJ(e, t) { t && Object.defineProperty(e, "configFile", { enumerable: !1, writable: !1, value: t }); } function CC(e) { return e == null; } function WJ(e, t) { return fi(Na(e, t)); } function Y_e(e, t, r, i, o = {}, s, c, f = [], d = [], y) { D.assert(e === void 0 && t !== void 0 || e !== void 0 && t === void 0); const m = [], b = Z_e(e, t, r, i, c, f, m, y), { raw: A } = b, C = TP(o, b.options || {}), I = s && b.watchOptions ? TP(s, b.watchOptions) : b.watchOptions || s; C.configFilePath = c && qc(c); const O = B(); t && (t.configFileSpecs = O), HJ(C, t); const k = Wo(c ? WJ(c, i) : i); return { options: C, watchOptions: I, fileNames: U(k), projectReferences: j(k), typeAcquisition: b.typeAcquisition || K7(), raw: A, errors: m, wildcardDirectories: X4e(O, k, r.useCaseSensitiveFileNames), compileOnSave: !!A.compileOnSave }; function B() { const ue = Y("references", (Te) => typeof Te == "object", "object"), ne = te(X("files")); if (ne) { const Te = ue === "no-prop" || Ga(ue) && ue.length === 0, ee = Ns(A, "extends"); if (ne.length === 0 && Te && !ee) if (t) { const $e = c || "tsconfig.json", Ge = _.The_files_list_in_config_file_0_is_empty, Fe = En($R(t, "files"), (Re) => Re.initializer), We = Fe ? id(t, Fe, Ge, $e) : Ps(Ge, $e); m.push(We); } else P(_.The_files_list_in_config_file_0_is_empty, c || "tsconfig.json"); } let ge = te(X("include")); const ie = X("exclude"); let H = !1, le = te(ie); if (ie === "no-prop" && A.compilerOptions) { const Te = A.compilerOptions.outDir, ee = A.compilerOptions.declarationDir; (Te || ee) && (le = [Te, ee].filter(($e) => !!$e)); } ne === void 0 && ge === void 0 && (ge = [n5], H = !0); let pe, ye; return ge && (pe = cpe(ge, m, !0, t, "include")), le && (ye = cpe(le, m, !1, t, "exclude")), { filesSpecs: ne, includeSpecs: ge, excludeSpecs: le, validatedFilesSpec: yn(ne, Va), validatedIncludeSpecs: pe, validatedExcludeSpecs: ye, pathPatterns: void 0, isDefaultIncludeSpec: H }; } function U(ue) { const ne = JO(O, ue, C, r, d); return Q_e(ne, zO(A), f) && m.push($_e(O, c)), ne; } function j(ue) { let ne; const ge = Y("references", (ie) => typeof ie == "object", "object"); if (Ga(ge)) for (const ie of ge) typeof ie.path != "string" ? P(_.Compiler_option_0_requires_a_value_of_type_1, "reference.path", "string") : (ne || (ne = [])).push({ path: Na(ie.path, ue), originalPath: ie.path, prepend: ie.prepend, circular: ie.circular }); return ne; } function te(ue) { return Ga(ue) ? ue : void 0; } function X(ue) { return Y(ue, Va, "string"); } function Y(ue, ne, ge) { if (Ns(A, ue) && !CC(A[ue])) if (Ga(A[ue])) { const ie = A[ue]; return !t && !Vn(ie, ne) && m.push(Ps(_.Compiler_option_0_requires_a_value_of_type_1, ue, ge)), ie; } else return P(_.Compiler_option_0_requires_a_value_of_type_1, ue, "Array"), "not-array"; return "no-prop"; } function P(ue, ne, ge) { t || m.push(Ps(ue, ne, ge)); } } function U4e(e) { return e.code === _.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code; } function $_e({ includeSpecs: e, excludeSpecs: t }, r) { return Ps(_.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2, r || "tsconfig.json", JSON.stringify(e || []), JSON.stringify(t || [])); } function Q_e(e, t, r) { return e.length === 0 && t && (!r || r.length === 0); } function zO(e) { return !Ns(e, "files") && !Ns(e, "references"); } function zJ(e, t, r, i, o) { const s = i.length; return Q_e(e, o) ? i.push($_e(r, t)) : ua(i, (c) => !U4e(c)), s !== i.length; } function V4e(e) { return !!e.options; } function Z_e(e, t, r, i, o, s, c, f) { var d; i = qc(i); const y = Na(o || "", i); if (s.indexOf(y) >= 0) return c.push(Ps(_.Circularity_detected_while_resolving_configuration_Colon_0, [...s, y].join(" -> "))), { raw: e || q_e(t, c) }; const m = e ? j4e(e, r, i, o, c) : H4e(t, r, i, o, c); if ((d = m.options) != null && d.paths && (m.options.pathsBasePath = i), m.extendedConfigPath) { s = s.concat([y]); const A = { options: {} }; Va(m.extendedConfigPath) ? b(A, m.extendedConfigPath) : m.extendedConfigPath.forEach((C) => b(A, C)), !m.raw.include && A.include && (m.raw.include = A.include), !m.raw.exclude && A.exclude && (m.raw.exclude = A.exclude), !m.raw.files && A.files && (m.raw.files = A.files), m.raw.compileOnSave === void 0 && A.compileOnSave && (m.raw.compileOnSave = A.compileOnSave), t && A.extendedSourceFiles && (t.extendedSourceFiles = ko(A.extendedSourceFiles.keys())), m.options = eR(A.options, m.options), m.watchOptions = m.watchOptions && A.watchOptions ? eR(A.watchOptions, m.watchOptions) : m.watchOptions || A.watchOptions; } return m; function b(A, C) { const I = W4e(t, C, r, s, c, f, A); if (I && V4e(I)) { const O = I.raw; let k; const B = (U) => { O[U] && (A[U] = rn(O[U], (j) => xm(j) ? j : Oi(k || (k = nI(fi(C), i, $c(r.useCaseSensitiveFileNames))), j))); }; B("include"), B("exclude"), B("files"), O.compileOnSave !== void 0 && (A.compileOnSave = O.compileOnSave), eR(A.options, I.options), A.watchOptions = A.watchOptions && I.watchOptions ? eR({}, A.watchOptions, I.watchOptions) : A.watchOptions || I.watchOptions; } } } function j4e(e, t, r, i, o) { Ns(e, "excludes") && o.push(Ps(_.Unknown_option_excludes_Did_you_mean_exclude)); const s = tpe(e.compilerOptions, r, o, i), c = npe(e.typeAcquisition, r, o, i), f = K4e(e.watchOptions, r, o); e.compileOnSave = z4e(e, r, o); let d; if (e.extends || e.extends === "") if (!q7(n8, e.extends)) o.push(Ps(_.Compiler_option_0_requires_a_value_of_type_1, "extends", Rk(n8))); else { const y = i ? WJ(i, r) : r; if (Va(e.extends)) d = J7(e.extends, t, y, o, Ps); else { d = []; for (const m of e.extends) Va(m) ? d = Fn(d, J7(m, t, y, o, Ps)) : o.push(Ps(_.Compiler_option_0_requires_a_value_of_type_1, "extends", Rk(n8.element))); } } return { raw: e, options: s, watchOptions: f, typeAcquisition: c, extendedConfigPath: d }; } function H4e(e, t, r, i, o) { const s = epe(i); let c, f, d, y; const b = z_e(e, o, !0, { onSetValidOptionKeyValueInParent(A, C, I) { let O; switch (A) { case "compilerOptions": O = s; break; case "watchOptions": O = f || (f = {}); break; case "typeAcquisition": O = c || (c = K7(i)); break; default: D.fail("Unknown option"); } O[C.name] = JJ(C, r, I); }, onSetValidOptionKeyValueInRoot(A, C, I, O) { switch (A) { case "extends": const k = i ? WJ(i, r) : r; if (Va(I)) d = J7(I, t, k, o, (B, U) => id(e, O, B, U)); else { d = []; for (let B = 0; B < I.length; B++) { const U = I[B]; Va(U) && (d = Fn(d, J7(U, t, k, o, (j, te) => id(e, O.elements[B], j, te)))); } } return; } }, onSetUnknownOptionKeyValueInRoot(A, C, I, O) { A === "excludes" && o.push(id(e, C, _.Unknown_option_excludes_Did_you_mean_exclude)), un(Y7, (k) => k.name === A) && (y = Fn(y, C)); } }); return c || (c = K7(i)), y && b && b.compilerOptions === void 0 && o.push(id(e, y[0], _._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file, AA(y[0]))), { raw: b, options: s, watchOptions: f, typeAcquisition: c, extendedConfigPath: d }; } function J7(e, t, r, i, o) { if (e = qc(e), xm(e) || Ea(e, "./") || Ea(e, "../")) { let c = Na(e, r); if (!t.fileExists(c) && !tc(c, ".json") && (c = `${c}.json`, !t.fileExists(c))) { i.push(o(_.File_0_not_found, e)); return; } return c; } const s = Ppe(e, Oi(r, "tsconfig.json"), t); if (s.resolvedModule) return s.resolvedModule.resolvedFileName; e === "" ? i.push(o(_.Compiler_option_0_cannot_be_given_an_empty_string, "extends")) : i.push(o(_.File_0_not_found, e)); } function W4e(e, t, r, i, o, s, c) { var f; const d = r.useCaseSensitiveFileNames ? t : I_(t); let y, m, b; if (s && (y = s.get(d)) ? { extendedResult: m, extendedConfig: b } = y : (m = U_e(t, (A) => r.readFile(A)), m.parseDiagnostics.length || (b = Z_e(void 0, m, r, fi(t), cu(t), i, o, s)), s && s.set(d, { extendedResult: m, extendedConfig: b })), e && (((f = c.extendedSourceFiles) != null ? f : c.extendedSourceFiles = /* @__PURE__ */ new Set()).add(m.fileName), m.extendedSourceFiles)) for (const A of m.extendedSourceFiles) c.extendedSourceFiles.add(A); if (m.parseDiagnostics.length) { o.push(...m.parseDiagnostics); return; } return b; } function z4e(e, t, r) { if (!Ns(e, KO.name)) return !1; const i = qO(KO, e.compileOnSave, t, r); return typeof i == "boolean" && i; } function q4e(e, t, r) { const i = []; return { options: tpe(e, t, i, r), errors: i }; } function J4e(e, t, r) { const i = []; return { options: npe(e, t, i, r), errors: i }; } function epe(e) { return e && cu(e) === "jsconfig.json" ? { allowJs: !0, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: !0, skipLibCheck: !0, noEmit: !0 } : {}; } function tpe(e, t, r, i) { const o = epe(i); return qJ(j_e(), e, t, o, e8, r), i && (o.configFilePath = qc(i)), o; } function K7(e) { return { enable: !!e && cu(e) === "jsconfig.json", include: [], exclude: [] }; } function npe(e, t, r, i) { const o = K7(i); return qJ(W_e(), e, t, o, oK, r), o; } function K4e(e, t, r) { return qJ(H_e(), e, t, void 0, t8, r); } function qJ(e, t, r, i, o, s) { if (t) { for (const c in t) { const f = e.get(c); f ? (i || (i = {}))[f.name] = qO(f, t[c], r, s) : s.push(OJ(c, o, Ps)); } return i; } } function qO(e, t, r, i) { if (q7(e, t)) { const o = e.type; if (o === "list" && Ga(t)) return ape(e, t, r, i); if (o === "listOrElement") return Ga(t) ? ape(e, t, r, i) : qO(e.element, t, r, i); if (!Va(e.type)) return ipe(e, t, i); const s = IT(e, t, i); return CC(s) ? s : rpe(e, r, s); } else i.push(Ps(_.Compiler_option_0_requires_a_value_of_type_1, e.name, Rk(e))); } function JJ(e, t, r) { if (!CC(r)) { if (e.type === "listOrElement" && !Ga(r)) return JJ(e.element, t, r); if (e.type === "list" || e.type === "listOrElement") { const i = e; return i.element.isFilePath || !Va(i.element.type) ? yn(rn(r, (o) => JJ(i.element, t, o)), (o) => i.listPreserveFalsyValues ? !0 : !!o) : r; } else if (!Va(e.type)) return e.type.get(Va(r) ? r.toLowerCase() : r); return rpe(e, t, r); } } function rpe(e, t, r) { return e.isFilePath && (r = Na(r, t), r === "" && (r = ".")), r; } function IT(e, t, r) { var i; if (CC(t)) return; const o = (i = e.extraValidation) == null ? void 0 : i.call(e, t); if (!o) return t; r.push(Ps(...o)); } function ipe(e, t, r) { if (CC(t)) return; const i = t.toLowerCase(), o = e.type.get(i); if (o !== void 0) return IT(e, o, r); r.push(NJ(e)); } function ape(e, t, r, i) { return yn(rn(t, (o) => qO(e.element, o, r, i)), (o) => e.listPreserveFalsyValues ? !0 : !!o); } function JO(e, t, r, i, o = nt) { t = Wo(t); const s = $c(i.useCaseSensitiveFileNames), c = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), { validatedFilesSpec: y, validatedIncludeSpecs: m, validatedExcludeSpecs: b } = e, A = tk(r, o), C = zN(r, A); if (y) for (const B of y) { const U = Na(B, t); c.set(s(U), U); } let I; if (m && m.length > 0) for (const B of i.readDirectory(t, nd(C), b, m, void 0)) { if (oc(B, ".json")) { if (!I) { const te = m.filter((Y) => tc(Y, ".json")), X = rn(C3(te, t, "files"), (Y) => `^${Y}$`); I = X ? X.map((Y) => wv(Y, i.useCaseSensitiveFileNames)) : nt; } if ($i(I, (te) => te.test(B)) !== -1) { const te = s(B); !c.has(te) && !d.has(te) && d.set(te, B); } continue; } if ($4e(B, c, f, A, s)) continue; Q4e(B, f, A, s); const U = s(B); !c.has(U) && !f.has(U) && f.set(U, B); } const O = ko(c.values()), k = ko(f.values()); return O.concat(k, ko(d.values())); } function ope(e, t, r, i, o) { const { validatedFilesSpec: s, validatedIncludeSpecs: c, validatedExcludeSpecs: f } = t; if (!Ne(c) || !Ne(f)) return !1; r = Wo(r); const d = $c(i); if (s) { for (const y of s) if (d(Na(y, r)) === e) return !1; } return lpe(e, f, i, o, r); } function spe(e) { const t = Ea(e, "**/") ? 0 : e.indexOf("/**/"); return t === -1 ? !1 : (tc(e, "/..") ? e.length : e.lastIndexOf("/../")) > t; } function X7(e, t, r, i) { return lpe(e, yn(t, (o) => !spe(o)), r, i); } function lpe(e, t, r, i, o) { const s = ZI(t, Oi(Wo(i), o), "exclude"), c = s && wv(s, r); return c ? c.test(e) ? !0 : !dA(e) && c.test(Iu(e)) : !1; } function cpe(e, t, r, i, o) { return e.filter((c) => { if (!Va(c)) return !1; const f = KJ(c, r); return f !== void 0 && t.push(s(...f)), f === void 0; }); function s(c, f) { const d = jM(i, o, f); return d ? id(i, d, c, f) : Ps(c, f); } } function KJ(e, t) { if (D.assert(typeof e == "string"), t && vpe.test(e)) return [_.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, e]; if (spe(e)) return [_.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, e]; } function X4e({ validatedIncludeSpecs: e, validatedExcludeSpecs: t }, r, i) { const o = ZI(t, r, "exclude"), s = o && new RegExp(o, i ? "" : "i"), c = {}; if (e !== void 0) { const f = []; for (const d of e) { const y = Wo(Oi(r, d)); if (s && s.test(y)) continue; const m = Y4e(y, i); if (m) { const { key: b, flags: A } = m, C = c[b]; (C === void 0 || C < A) && (c[b] = A, A === 1 && f.push(b)); } } for (const d in c) if (Ns(c, d)) for (const y of f) d !== y && hv(y, d, r, !i) && delete c[d]; } return c; } function Y4e(e, t) { const r = bpe.exec(e); if (r) { const i = e.indexOf("?"), o = e.indexOf("*"), s = e.lastIndexOf(Os); return { key: t ? r[0] : I_(r[0]), flags: i !== -1 && i < s || o !== -1 && o < s ? 1 : 0 }; } if (Jz(e.substring(e.lastIndexOf(Os) + 1))) return { key: qE(t ? e : I_(e)), flags: 1 }; } function $4e(e, t, r, i, o) { const s = Ye(i, (c) => vc(e, c) ? c : void 0); if (!s) return !1; for (const c of s) { if (oc(e, c)) return !1; const f = o(x1(e, c)); if (t.has(f) || r.has(f)) { if (c === ".d.ts" && (oc(e, ".js") || oc(e, ".jsx"))) continue; return !0; } } return !1; } function Q4e(e, t, r, i) { const o = Ye(r, (s) => vc(e, s) ? s : void 0); if (o) for (let s = o.length - 1; s >= 0; s--) { const c = o[s]; if (oc(e, c)) return; const f = i(x1(e, c)); t.delete(f); } } function Z4e(e) { const t = {}; for (const r in e) if (Ns(e, r)) { const i = MJ(r); i !== void 0 && (t[r] = XJ(e[r], i)); } return t; } function XJ(e, t) { 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 (!Ga(e)) return XJ(e, t.element); case "list": const r = t.element; return Ga(e) ? e.map((i) => XJ(i, r)) : ""; default: return Zd(t.type, (i, o) => { if (i === e) return o; }); } } function YJ(e) { switch (e.type) { case "number": return 1; case "boolean": return !0; case "string": const t = e.defaultValueDescription; return e.isFilePath ? `./${t && typeof t == "string" ? t : ""}` : ""; case "list": return []; case "listOrElement": return YJ(e.element); case "object": return {}; default: const r = EP(e.type.keys()); return r !== void 0 ? r : D.fail("Expected 'option.type' to have entries."); } } var KO, $J, Nk, QJ, XO, YO, $O, QO, ZO, ZJ, Y7, fg, eK, tK, nK, $7, Q7, rK, iK, aK, Z7, e5, upe, dpe, t5, e8, fpe, _pe, ppe, oK, mpe, t8, hpe, gpe, ype, n8, sK, n5, vpe, bpe, ePe = L({ "src/compiler/commandLineParser.ts"() { Ra(), KO = { name: "compileOnSave", type: "boolean", defaultValueDescription: !1 }, $J = new Map(Object.entries({ preserve: 1, "react-native": 3, react: 2, "react-jsx": 4, "react-jsxdev": 5 })), Nk = new Map(Fp($J.entries(), ([e, t]) => ["" + t, e])), QJ = [ ["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"], ["webworker", "lib.webworker.d.ts"], ["webworker.importscripts", "lib.webworker.importscripts.d.ts"], ["webworker.iterable", "lib.webworker.iterable.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"], ["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"], ["esnext.array", "lib.es2023.array.d.ts"], ["esnext.symbol", "lib.es2019.symbol.d.ts"], ["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"], ["esnext.intl", "lib.esnext.intl.d.ts"], ["esnext.bigint", "lib.es2020.bigint.d.ts"], ["esnext.string", "lib.es2022.string.d.ts"], ["esnext.promise", "lib.es2021.promise.d.ts"], ["esnext.weakref", "lib.es2021.weakref.d.ts"], ["decorators", "lib.decorators.d.ts"], ["decorators.legacy", "lib.decorators.legacy.d.ts"] ], XO = QJ.map((e) => e[0]), YO = new Map(QJ), $O = [ { name: "watchFile", type: new Map(Object.entries({ fixedpollinginterval: 0, prioritypollinginterval: 1, dynamicprioritypolling: 2, fixedchunksizepolling: 3, usefsevents: 4, usefseventsonparentdirectory: 5 })), category: _.Watch_and_Build_Modes, description: _.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: _.Watch_and_Build_Modes, description: _.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: _.Watch_and_Build_Modes, description: _.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers, defaultValueDescription: 1 }, { name: "synchronousWatchDirectory", type: "boolean", category: _.Watch_and_Build_Modes, description: _.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: KJ }, category: _.Watch_and_Build_Modes, description: _.Remove_a_list_of_directories_from_the_watch_process }, { name: "excludeFiles", type: "list", element: { name: "excludeFile", type: "string", isFilePath: !0, extraValidation: KJ }, category: _.Watch_and_Build_Modes, description: _.Remove_a_list_of_files_from_the_watch_mode_s_processing } ], QO = [ { name: "help", shortName: "h", type: "boolean", showInSimplifiedHelpView: !0, isCommandLineOnly: !0, category: _.Command_line_Options, description: _.Print_this_message, defaultValueDescription: !1 }, { name: "help", shortName: "?", type: "boolean", isCommandLineOnly: !0, category: _.Command_line_Options, defaultValueDescription: !1 }, { name: "watch", shortName: "w", type: "boolean", showInSimplifiedHelpView: !0, isCommandLineOnly: !0, category: _.Command_line_Options, description: _.Watch_input_files, defaultValueDescription: !1 }, { name: "preserveWatchOutput", type: "boolean", showInSimplifiedHelpView: !1, category: _.Output_Formatting, description: _.Disable_wiping_the_console_in_watch_mode, defaultValueDescription: !1 }, { name: "listFiles", type: "boolean", category: _.Compiler_Diagnostics, description: _.Print_all_of_the_files_read_during_the_compilation, defaultValueDescription: !1 }, { name: "explainFiles", type: "boolean", category: _.Compiler_Diagnostics, description: _.Print_files_read_during_the_compilation_including_why_it_was_included, defaultValueDescription: !1 }, { name: "listEmittedFiles", type: "boolean", category: _.Compiler_Diagnostics, description: _.Print_the_names_of_emitted_files_after_a_compilation, defaultValueDescription: !1 }, { name: "pretty", type: "boolean", showInSimplifiedHelpView: !0, category: _.Output_Formatting, description: _.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read, defaultValueDescription: !0 }, { name: "traceResolution", type: "boolean", category: _.Compiler_Diagnostics, description: _.Log_paths_used_during_the_moduleResolution_process, defaultValueDescription: !1 }, { name: "diagnostics", type: "boolean", category: _.Compiler_Diagnostics, description: _.Output_compiler_performance_information_after_building, defaultValueDescription: !1 }, { name: "extendedDiagnostics", type: "boolean", category: _.Compiler_Diagnostics, description: _.Output_more_detailed_compiler_performance_information_after_building, defaultValueDescription: !1 }, { name: "generateCpuProfile", type: "string", isFilePath: !0, paramType: _.FILE_OR_DIRECTORY, category: _.Compiler_Diagnostics, description: _.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging, defaultValueDescription: "profile.cpuprofile" }, { name: "generateTrace", type: "string", isFilePath: !0, isCommandLineOnly: !0, paramType: _.DIRECTORY, category: _.Compiler_Diagnostics, description: _.Generates_an_event_trace_and_a_list_of_types }, { name: "incremental", shortName: "i", type: "boolean", category: _.Projects, description: _.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects, transpileOptionValue: void 0, defaultValueDescription: _.false_unless_composite_is_set }, { name: "declaration", shortName: "d", type: "boolean", affectsBuildInfo: !0, showInSimplifiedHelpView: !0, category: _.Emit, transpileOptionValue: void 0, description: _.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project, defaultValueDescription: _.false_unless_composite_is_set }, { name: "declarationMap", type: "boolean", affectsBuildInfo: !0, showInSimplifiedHelpView: !0, category: _.Emit, transpileOptionValue: void 0, defaultValueDescription: !1, description: _.Create_sourcemaps_for_d_ts_files }, { name: "emitDeclarationOnly", type: "boolean", affectsBuildInfo: !0, showInSimplifiedHelpView: !0, category: _.Emit, description: _.Only_output_d_ts_files_and_not_JavaScript_files, transpileOptionValue: void 0, defaultValueDescription: !1 }, { name: "sourceMap", type: "boolean", affectsBuildInfo: !0, showInSimplifiedHelpView: !0, category: _.Emit, defaultValueDescription: !1, description: _.Create_source_map_files_for_emitted_JavaScript_files }, { name: "inlineSourceMap", type: "boolean", affectsBuildInfo: !0, category: _.Emit, description: _.Include_sourcemap_files_inside_the_emitted_JavaScript, defaultValueDescription: !1 }, { name: "assumeChangesOnlyAffectDirectDependencies", type: "boolean", affectsSemanticDiagnostics: !0, affectsEmit: !0, affectsBuildInfo: !0, category: _.Watch_and_Build_Modes, description: _.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: _.Command_line_Options, isCommandLineOnly: !0, description: _.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit, defaultValueDescription: _.Platform_specific } ], ZO = { 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, esnext: 99 })), affectsSourceFile: !0, affectsModuleResolution: !0, affectsEmit: !0, affectsBuildInfo: !0, paramType: _.VERSION, showInSimplifiedHelpView: !0, category: _.Language_and_Environment, description: _.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations, defaultValueDescription: 1 }, ZJ = { 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 })), affectsModuleResolution: !0, affectsEmit: !0, affectsBuildInfo: !0, paramType: _.KIND, showInSimplifiedHelpView: !0, category: _.Modules, description: _.Specify_what_module_code_is_generated, defaultValueDescription: void 0 }, Y7 = [ { name: "all", type: "boolean", showInSimplifiedHelpView: !0, category: _.Command_line_Options, description: _.Show_all_compiler_options, defaultValueDescription: !1 }, { name: "version", shortName: "v", type: "boolean", showInSimplifiedHelpView: !0, category: _.Command_line_Options, description: _.Print_the_compiler_s_version, defaultValueDescription: !1 }, { name: "init", type: "boolean", showInSimplifiedHelpView: !0, category: _.Command_line_Options, description: _.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file, defaultValueDescription: !1 }, { name: "project", shortName: "p", type: "string", isFilePath: !0, showInSimplifiedHelpView: !0, category: _.Command_line_Options, paramType: _.FILE_OR_DIRECTORY, description: _.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: _.Command_line_Options, description: _.Build_one_or_more_projects_and_their_dependencies_if_out_of_date, defaultValueDescription: !1 }, { name: "showConfig", type: "boolean", showInSimplifiedHelpView: !0, category: _.Command_line_Options, isCommandLineOnly: !0, description: _.Print_the_final_configuration_instead_of_building, defaultValueDescription: !1 }, { name: "listFilesOnly", type: "boolean", category: _.Command_line_Options, isCommandLineOnly: !0, description: _.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing, defaultValueDescription: !1 }, ZO, ZJ, { name: "lib", type: "list", element: { name: "lib", type: YO, defaultValueDescription: void 0 }, affectsProgramStructure: !0, showInSimplifiedHelpView: !0, category: _.Language_and_Environment, description: _.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment, transpileOptionValue: void 0 }, { name: "allowJs", type: "boolean", affectsModuleResolution: !0, showInSimplifiedHelpView: !0, category: _.JavaScript_Support, description: _.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", showInSimplifiedHelpView: !0, category: _.JavaScript_Support, description: _.Enable_error_reporting_in_type_checked_JavaScript_files, defaultValueDescription: !1 }, { name: "jsx", type: $J, affectsSourceFile: !0, affectsEmit: !0, affectsBuildInfo: !0, affectsModuleResolution: !0, paramType: _.KIND, showInSimplifiedHelpView: !0, category: _.Language_and_Environment, description: _.Specify_what_JSX_code_is_generated, defaultValueDescription: void 0 }, { name: "outFile", type: "string", affectsEmit: !0, affectsBuildInfo: !0, affectsDeclarationPath: !0, isFilePath: !0, paramType: _.FILE, showInSimplifiedHelpView: !0, category: _.Emit, description: _.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: _.DIRECTORY, showInSimplifiedHelpView: !0, category: _.Emit, description: _.Specify_an_output_folder_for_all_emitted_files }, { name: "rootDir", type: "string", affectsEmit: !0, affectsBuildInfo: !0, affectsDeclarationPath: !0, isFilePath: !0, paramType: _.LOCATION, category: _.Modules, description: _.Specify_the_root_folder_within_your_source_files, defaultValueDescription: _.Computed_from_the_list_of_input_files }, { name: "composite", type: "boolean", affectsBuildInfo: !0, isTSConfigOnly: !0, category: _.Projects, transpileOptionValue: void 0, defaultValueDescription: !1, description: _.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references }, { name: "tsBuildInfoFile", type: "string", affectsEmit: !0, affectsBuildInfo: !0, isFilePath: !0, paramType: _.FILE, category: _.Projects, transpileOptionValue: void 0, defaultValueDescription: ".tsbuildinfo", description: _.Specify_the_path_to_tsbuildinfo_incremental_compilation_file }, { name: "removeComments", type: "boolean", affectsEmit: !0, affectsBuildInfo: !0, showInSimplifiedHelpView: !0, category: _.Emit, defaultValueDescription: !1, description: _.Disable_emitting_comments }, { name: "noEmit", type: "boolean", showInSimplifiedHelpView: !0, category: _.Emit, description: _.Disable_emitting_files_from_a_compilation, transpileOptionValue: void 0, defaultValueDescription: !1 }, { name: "importHelpers", type: "boolean", affectsEmit: !0, affectsBuildInfo: !0, category: _.Emit, description: _.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: _.Emit, description: _.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types, defaultValueDescription: 0 }, { name: "downlevelIteration", type: "boolean", affectsEmit: !0, affectsBuildInfo: !0, category: _.Emit, description: _.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration, defaultValueDescription: !1 }, { name: "isolatedModules", type: "boolean", category: _.Interop_Constraints, description: _.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports, transpileOptionValue: !0, defaultValueDescription: !1 }, { name: "verbatimModuleSyntax", type: "boolean", category: _.Interop_Constraints, description: _.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: "strict", type: "boolean", affectsBuildInfo: !0, showInSimplifiedHelpView: !0, category: _.Type_Checking, description: _.Enable_all_strict_type_checking_options, defaultValueDescription: !1 }, { name: "noImplicitAny", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, strictFlag: !0, category: _.Type_Checking, description: _.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type, defaultValueDescription: _.false_unless_strict_is_set }, { name: "strictNullChecks", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, strictFlag: !0, category: _.Type_Checking, description: _.When_type_checking_take_into_account_null_and_undefined, defaultValueDescription: _.false_unless_strict_is_set }, { name: "strictFunctionTypes", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, strictFlag: !0, category: _.Type_Checking, description: _.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible, defaultValueDescription: _.false_unless_strict_is_set }, { name: "strictBindCallApply", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, strictFlag: !0, category: _.Type_Checking, description: _.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function, defaultValueDescription: _.false_unless_strict_is_set }, { name: "strictPropertyInitialization", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, strictFlag: !0, category: _.Type_Checking, description: _.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor, defaultValueDescription: _.false_unless_strict_is_set }, { name: "noImplicitThis", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, strictFlag: !0, category: _.Type_Checking, description: _.Enable_error_reporting_when_this_is_given_the_type_any, defaultValueDescription: _.false_unless_strict_is_set }, { name: "useUnknownInCatchVariables", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, strictFlag: !0, category: _.Type_Checking, description: _.Default_catch_clause_variables_as_unknown_instead_of_any, defaultValueDescription: !1 }, { name: "alwaysStrict", type: "boolean", affectsSourceFile: !0, affectsEmit: !0, affectsBuildInfo: !0, strictFlag: !0, category: _.Type_Checking, description: _.Ensure_use_strict_is_always_emitted, defaultValueDescription: _.false_unless_strict_is_set }, { name: "noUnusedLocals", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Type_Checking, description: _.Enable_error_reporting_when_local_variables_aren_t_read, defaultValueDescription: !1 }, { name: "noUnusedParameters", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Type_Checking, description: _.Raise_an_error_when_a_function_parameter_isn_t_read, defaultValueDescription: !1 }, { name: "exactOptionalPropertyTypes", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Type_Checking, description: _.Interpret_optional_property_types_as_written_rather_than_adding_undefined, defaultValueDescription: !1 }, { name: "noImplicitReturns", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Type_Checking, description: _.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: _.Type_Checking, description: _.Enable_error_reporting_for_fallthrough_cases_in_switch_statements, defaultValueDescription: !1 }, { name: "noUncheckedIndexedAccess", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Type_Checking, description: _.Add_undefined_to_a_type_when_accessed_using_an_index, defaultValueDescription: !1 }, { name: "noImplicitOverride", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Type_Checking, description: _.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: _.Type_Checking, description: _.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: /* @__PURE__ */ new Set(["node"]), affectsModuleResolution: !0, paramType: _.STRATEGY, category: _.Modules, description: _.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier, defaultValueDescription: _.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node }, { name: "baseUrl", type: "string", affectsModuleResolution: !0, isFilePath: !0, category: _.Modules, description: _.Specify_the_base_directory_to_resolve_non_relative_module_names }, { name: "paths", type: "object", affectsModuleResolution: !0, isTSConfigOnly: !0, category: _.Modules, description: _.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, category: _.Modules, description: _.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules, transpileOptionValue: void 0, defaultValueDescription: _.Computed_from_the_list_of_input_files }, { name: "typeRoots", type: "list", element: { name: "typeRoots", type: "string", isFilePath: !0 }, affectsModuleResolution: !0, category: _.Modules, description: _.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types }, { name: "types", type: "list", element: { name: "types", type: "string" }, affectsProgramStructure: !0, showInSimplifiedHelpView: !0, category: _.Modules, description: _.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: _.Interop_Constraints, description: _.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export, defaultValueDescription: _.module_system_or_esModuleInterop }, { name: "esModuleInterop", type: "boolean", affectsSemanticDiagnostics: !0, affectsEmit: !0, affectsBuildInfo: !0, showInSimplifiedHelpView: !0, category: _.Interop_Constraints, description: _.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility, defaultValueDescription: !1 }, { name: "preserveSymlinks", type: "boolean", category: _.Interop_Constraints, description: _.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: _.Modules, description: _.Allow_accessing_UMD_globals_from_modules, defaultValueDescription: !1 }, { name: "moduleSuffixes", type: "list", element: { name: "suffix", type: "string" }, listPreserveFalsyValues: !0, affectsModuleResolution: !0, category: _.Modules, description: _.List_of_file_name_suffixes_to_search_when_resolving_a_module }, { name: "allowImportingTsExtensions", type: "boolean", affectsSemanticDiagnostics: !0, category: _.Modules, description: _.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set, defaultValueDescription: !1 }, { name: "resolvePackageJsonExports", type: "boolean", affectsModuleResolution: !0, category: _.Modules, description: _.Use_the_package_json_exports_field_when_resolving_package_imports, defaultValueDescription: _.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false }, { name: "resolvePackageJsonImports", type: "boolean", affectsModuleResolution: !0, category: _.Modules, description: _.Use_the_package_json_imports_field_when_resolving_imports, defaultValueDescription: _.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false }, { name: "customConditions", type: "list", element: { name: "condition", type: "string" }, affectsModuleResolution: !0, category: _.Modules, description: _.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports }, { name: "sourceRoot", type: "string", affectsEmit: !0, affectsBuildInfo: !0, paramType: _.LOCATION, category: _.Emit, description: _.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code }, { name: "mapRoot", type: "string", affectsEmit: !0, affectsBuildInfo: !0, paramType: _.LOCATION, category: _.Emit, description: _.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations }, { name: "inlineSources", type: "boolean", affectsEmit: !0, affectsBuildInfo: !0, category: _.Emit, description: _.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript, defaultValueDescription: !1 }, { name: "experimentalDecorators", type: "boolean", affectsEmit: !0, affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Language_and_Environment, description: _.Enable_experimental_support_for_legacy_experimental_decorators, defaultValueDescription: !1 }, { name: "emitDecoratorMetadata", type: "boolean", affectsSemanticDiagnostics: !0, affectsEmit: !0, affectsBuildInfo: !0, category: _.Language_and_Environment, description: _.Emit_design_type_metadata_for_decorated_declarations_in_source_files, defaultValueDescription: !1 }, { name: "jsxFactory", type: "string", category: _.Language_and_Environment, description: _.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: _.Language_and_Environment, description: _.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, category: _.Language_and_Environment, description: _.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: _.Modules, description: _.Enable_importing_json_files, defaultValueDescription: !1 }, { name: "allowArbitraryExtensions", type: "boolean", affectsProgramStructure: !0, category: _.Modules, description: _.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: _.Backwards_Compatibility, paramType: _.FILE, transpileOptionValue: void 0, description: _.Deprecated_setting_Use_outFile_instead }, { name: "reactNamespace", type: "string", affectsEmit: !0, affectsBuildInfo: !0, category: _.Language_and_Environment, description: _.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit, defaultValueDescription: "`React`" }, { name: "skipDefaultLibCheck", type: "boolean", affectsBuildInfo: !0, category: _.Completeness, description: _.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript, defaultValueDescription: !1 }, { name: "charset", type: "string", category: _.Backwards_Compatibility, description: _.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: _.Emit, description: _.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: _.NEWLINE, category: _.Emit, description: _.Set_the_newline_character_for_emitting_files, defaultValueDescription: "lf" }, { name: "noErrorTruncation", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Output_Formatting, description: _.Disable_truncating_types_in_error_messages, defaultValueDescription: !1 }, { name: "noLib", type: "boolean", category: _.Language_and_Environment, affectsProgramStructure: !0, description: _.Disable_including_any_library_files_including_the_default_lib_d_ts, transpileOptionValue: !0, defaultValueDescription: !1 }, { name: "noResolve", type: "boolean", affectsModuleResolution: !0, category: _.Modules, description: _.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: _.Emit, description: _.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments, defaultValueDescription: !1 }, { name: "disableSizeLimit", type: "boolean", affectsProgramStructure: !0, category: _.Editor_Support, description: _.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: _.Projects, description: _.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects, defaultValueDescription: !1 }, { name: "disableSolutionSearching", type: "boolean", isTSConfigOnly: !0, category: _.Projects, description: _.Opt_a_project_out_of_multi_project_reference_checking_when_editing, defaultValueDescription: !1 }, { name: "disableReferencedProjectLoad", type: "boolean", isTSConfigOnly: !0, category: _.Projects, description: _.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript, defaultValueDescription: !1 }, { name: "noImplicitUseStrict", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Backwards_Compatibility, description: _.Disable_adding_use_strict_directives_in_emitted_JavaScript_files, defaultValueDescription: !1 }, { name: "noEmitHelpers", type: "boolean", affectsEmit: !0, affectsBuildInfo: !0, category: _.Emit, description: _.Disable_generating_custom_helper_functions_like_extends_in_compiled_output, defaultValueDescription: !1 }, { name: "noEmitOnError", type: "boolean", affectsEmit: !0, affectsBuildInfo: !0, category: _.Emit, transpileOptionValue: void 0, description: _.Disable_emitting_files_if_any_type_checking_errors_are_reported, defaultValueDescription: !1 }, { name: "preserveConstEnums", type: "boolean", affectsEmit: !0, affectsBuildInfo: !0, category: _.Emit, description: _.Disable_erasing_const_enum_declarations_in_generated_code, defaultValueDescription: !1 }, { name: "declarationDir", type: "string", affectsEmit: !0, affectsBuildInfo: !0, affectsDeclarationPath: !0, isFilePath: !0, paramType: _.DIRECTORY, category: _.Emit, transpileOptionValue: void 0, description: _.Specify_the_output_directory_for_generated_declaration_files }, { name: "skipLibCheck", type: "boolean", affectsBuildInfo: !0, category: _.Completeness, description: _.Skip_type_checking_all_d_ts_files, defaultValueDescription: !1 }, { name: "allowUnusedLabels", type: "boolean", affectsBindDiagnostics: !0, affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Type_Checking, description: _.Disable_error_reporting_for_unused_labels, defaultValueDescription: void 0 }, { name: "allowUnreachableCode", type: "boolean", affectsBindDiagnostics: !0, affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Type_Checking, description: _.Disable_error_reporting_for_unreachable_code, defaultValueDescription: void 0 }, { name: "suppressExcessPropertyErrors", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Backwards_Compatibility, description: _.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals, defaultValueDescription: !1 }, { name: "suppressImplicitAnyIndexErrors", type: "boolean", affectsSemanticDiagnostics: !0, affectsBuildInfo: !0, category: _.Backwards_Compatibility, description: _.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures, defaultValueDescription: !1 }, { name: "forceConsistentCasingInFileNames", type: "boolean", affectsModuleResolution: !0, category: _.Interop_Constraints, description: _.Ensure_that_casing_is_correct_in_imports, defaultValueDescription: !0 }, { name: "maxNodeModuleJsDepth", type: "number", affectsModuleResolution: !0, category: _.JavaScript_Support, description: _.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: _.Backwards_Compatibility, description: _.Disable_strict_checking_of_generic_signatures_in_function_types, defaultValueDescription: !1 }, { name: "useDefineForClassFields", type: "boolean", affectsSemanticDiagnostics: !0, affectsEmit: !0, affectsBuildInfo: !0, category: _.Language_and_Environment, description: _.Emit_ECMAScript_standard_compliant_class_fields, defaultValueDescription: _.true_for_ES2022_and_above_including_ESNext }, { name: "preserveValueImports", type: "boolean", affectsEmit: !0, affectsBuildInfo: !0, category: _.Emit, description: _.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed, defaultValueDescription: !1 }, { name: "keyofStringsOnly", type: "boolean", category: _.Backwards_Compatibility, description: _.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: _.Specify_a_list_of_language_service_plugins_to_include, category: _.Editor_Support }, { name: "moduleDetection", type: new Map(Object.entries({ auto: 2, legacy: 1, force: 3 })), affectsModuleResolution: !0, description: _.Control_what_method_is_used_to_detect_module_format_JS_files, category: _.Language_and_Environment, defaultValueDescription: _.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 } ], fg = [ ...QO, ...Y7 ], eK = fg.filter((e) => !!e.affectsSemanticDiagnostics), tK = fg.filter((e) => !!e.affectsEmit), nK = fg.filter((e) => !!e.affectsDeclarationPath), $7 = fg.filter((e) => !!e.affectsModuleResolution), Q7 = fg.filter((e) => !!e.affectsSourceFile || !!e.affectsModuleResolution || !!e.affectsBindDiagnostics), rK = fg.filter((e) => !!e.affectsProgramStructure), iK = fg.filter((e) => Ns(e, "transpileOptionValue")), aK = [ { name: "verbose", shortName: "v", category: _.Command_line_Options, description: _.Enable_verbose_logging, type: "boolean", defaultValueDescription: !1 }, { name: "dry", shortName: "d", category: _.Command_line_Options, description: _.Show_what_would_be_built_or_deleted_if_specified_with_clean, type: "boolean", defaultValueDescription: !1 }, { name: "force", shortName: "f", category: _.Command_line_Options, description: _.Build_all_projects_including_those_that_appear_to_be_up_to_date, type: "boolean", defaultValueDescription: !1 }, { name: "clean", category: _.Command_line_Options, description: _.Delete_the_outputs_of_all_projects, type: "boolean", defaultValueDescription: !1 } ], Z7 = [ ...QO, ...aK ], e5 = [ { 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 } ], dpe = { diagnostic: _.Compiler_option_0_may_only_be_used_with_build, getOptionsNameMap: G_e }, t5 = { module: 1, target: 3, strict: !0, esModuleInterop: !0, forceConsistentCasingInFileNames: !0, skipLibCheck: !0 }, e8 = { alternateMode: dpe, getOptionsNameMap: AC, optionDeclarations: fg, unknownOptionDiagnostic: _.Unknown_compiler_option_0, unknownDidYouMeanDiagnostic: _.Unknown_compiler_option_0_Did_you_mean_1, optionTypeMismatchDiagnostic: _.Compiler_option_0_expects_an_argument }, _pe = { diagnostic: _.Compiler_option_0_may_not_be_used_with_build, getOptionsNameMap: AC }, ppe = { alternateMode: _pe, getOptionsNameMap: G_e, optionDeclarations: Z7, unknownOptionDiagnostic: _.Unknown_build_option_0, unknownDidYouMeanDiagnostic: _.Unknown_build_option_0_Did_you_mean_1, optionTypeMismatchDiagnostic: _.Build_option_0_requires_a_value_of_type_1 }, oK = { optionDeclarations: e5, unknownOptionDiagnostic: _.Unknown_type_acquisition_option_0, unknownDidYouMeanDiagnostic: _.Unknown_type_acquisition_option_0_Did_you_mean_1 }, t8 = { getOptionsNameMap: V_e, optionDeclarations: $O, unknownOptionDiagnostic: _.Unknown_watch_option_0, unknownDidYouMeanDiagnostic: _.Unknown_watch_option_0_Did_you_mean_1, optionTypeMismatchDiagnostic: _.Watch_option_0_requires_a_value_of_type_1 }, n8 = { name: "extends", type: "listOrElement", element: { name: "extends", type: "string" }, category: _.File_Management }, n5 = "**/*", vpe = /(^|\/)\*\*\/?$/, bpe = /^[^*?]*(?=\/[^/]*[*?])/; } }); function pa(e) { e.trace(Vz.apply(void 0, arguments)); } function Bv(e, t) { return !!e.traceResolution && t.trace !== void 0; } function LC(e, t) { let r; if (t && e) { const i = e.contents.packageJsonContent; typeof i.name == "string" && typeof i.version == "string" && (r = { name: i.name, subModuleName: t.path.slice(e.packageDirectory.length + Os.length), version: i.version }); } return t && { path: t.path, extension: t.ext, packageId: r, resolvedUsingTsExtension: t.resolvedUsingTsExtension }; } function r5(e) { return LC(void 0, e); } function Epe(e) { if (e) return D.assert(e.packageId === void 0), { path: e.path, ext: e.extension, resolvedUsingTsExtension: e.resolvedUsingTsExtension }; } function Tpe(e) { const 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 Spe(e) { if (e) return D.assert(k3(e.extension)), { fileName: e.path, packageId: e.packageId }; } function xpe(e, t, r, i, o, s, c, f) { if (!c.resultFromCache && !c.compilerOptions.preserveSymlinks && t && r && !t.originalPath && !Oc(e)) { const { resolvedFileName: d, originalPath: y } = Lpe(t.path, c.host, c.traceEnabled); y && (t = { ...t, path: d, originalPath: y }); } return Ape(t, r, i, o, s, c.resultFromCache, f); } function Ape(e, t, r, i, o, s, c) { return s ? (s.failedLookupLocations = IC(s.failedLookupLocations, r), s.affectingLocations = IC(s.affectingLocations, i), s.resolutionDiagnostics = IC(s.resolutionDiagnostics, o), s) : { 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: Ok(r), affectingLocations: Ok(i), resolutionDiagnostics: Ok(o), node10Result: c }; } function Ok(e) { return e.length ? e : void 0; } function IC(e, t) { return t != null && t.length ? e != null && e.length ? (e.push(...t), e) : t : e; } function Cpe(e, t, r, i) { if (!Ns(e, t)) { i.traceEnabled && pa(i.host, _.package_json_does_not_have_a_0_field, t); return; } const o = e[t]; if (typeof o !== r || o === null) { i.traceEnabled && pa(i.host, _.Expected_type_of_0_field_in_package_json_to_be_1_got_2, t, r, o === null ? "null" : typeof o); return; } return o; } function i5(e, t, r, i) { const o = Cpe(e, t, "string", i); if (o === void 0) return; if (!o) { i.traceEnabled && pa(i.host, _.package_json_had_a_falsy_0_field, t); return; } const s = Wo(Oi(r, o)); return i.traceEnabled && pa(i.host, _.package_json_has_0_field_1_that_references_2, t, o, s), s; } function tPe(e, t, r) { return i5(e, "typings", t, r) || i5(e, "types", t, r); } function nPe(e, t, r) { return i5(e, "tsconfig", t, r); } function rPe(e, t, r) { return i5(e, "main", t, r); } function iPe(e, t) { const r = Cpe(e, "typesVersions", "object", t); if (r !== void 0) return t.traceEnabled && pa(t.host, _.package_json_has_a_typesVersions_field_with_version_specific_path_mappings), r; } function aPe(e, t) { const r = iPe(e, t); if (r === void 0) return; if (t.traceEnabled) for (const c in r) Ns(r, c) && !cA.tryParse(c) && pa(t.host, _.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range, c); const i = a5(r); if (!i) { t.traceEnabled && pa(t.host, _.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0, ve); return; } const { version: o, paths: s } = i; if (typeof s != "object") { t.traceEnabled && pa(t.host, _.Expected_type_of_0_field_in_package_json_to_be_1_got_2, `typesVersions['${o}']`, "object", typeof s); return; } return i; } function a5(e) { TK || (TK = new k_(Ue)); for (const t in e) { if (!Ns(e, t)) continue; const r = cA.tryParse(t); if (r !== void 0 && r.test(TK)) return { version: t, paths: e[t] }; } } function r8(e, t) { if (e.typeRoots) return e.typeRoots; let r; if (e.configFilePath ? r = fi(e.configFilePath) : t.getCurrentDirectory && (r = t.getCurrentDirectory()), r !== void 0) return oPe(r, t); } function oPe(e, t) { if (!t.directoryExists) return [Oi(e, SK)]; let r; return $h(Wo(e), (i) => { const o = Oi(i, SK); t.directoryExists(o) && (r || (r = [])).push(o); }), r; } function sPe(e, t, r) { const i = typeof r.useCaseSensitiveFileNames == "function" ? r.useCaseSensitiveFileNames() : r.useCaseSensitiveFileNames; return JE(e, t, !i) === 0; } function Lpe(e, t, r) { const i = EPe(e, t, r), o = sPe(e, i, t); return { resolvedFileName: o ? e : i, originalPath: o ? void 0 : e }; } function lK(e, t, r, i, o, s, c) { D.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."); const f = Bv(r, i); o && (r = o.commandLine.options); const d = t ? fi(t) : void 0; let y = d ? s == null ? void 0 : s.getFromDirectoryCache(e, c, d, o) : void 0; if (!y && d && !Oc(e) && (y = s == null ? void 0 : s.getFromNonRelativeNameCache(e, c, d, o)), y) return f && (pa(i, _.Resolving_type_reference_directive_0_containing_file_1, e, t), o && pa(i, _.Using_compiler_options_of_project_reference_redirect_0, o.sourceFile.fileName), pa(i, _.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1, e, d), te(y)), y; const m = r8(r, i); f && (t === void 0 ? m === void 0 ? pa(i, _.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set, e) : pa(i, _.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1, e, m) : m === void 0 ? pa(i, _.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set, e, t) : pa(i, _.Resolving_type_reference_directive_0_containing_file_1_root_directory_2, e, t, m), o && pa(i, _.Using_compiler_options_of_project_reference_redirect_0, o.sourceFile.fileName)); const b = [], A = []; let C = cK(r); c === 99 && (gl(r) === 3 || gl(r) === 99) && (C |= 32); const I = C & 8 ? kC(r, !!(C & 32)) : [], O = [], k = { compilerOptions: r, host: i, traceEnabled: f, failedLookupLocations: b, affectingLocations: A, packageJsonInfoCache: s, features: C, conditions: I, requestContainingDirectory: d, reportDiagnostic: (P) => void O.push(P), isConfigLookup: !1, candidateIsFromPackageJsonField: !1 }; let B = X(), U = !0; B || (B = Y(), U = !1); let j; if (B) { const { fileName: P, packageId: ue } = B; let ne = P, ge; r.preserveSymlinks || ({ resolvedFileName: ne, originalPath: ge } = Lpe(P, i, f)), j = { primary: U, resolvedFileName: ne, originalPath: ge, packageId: ue, isExternalLibraryImport: Nx(P) }; } return y = { resolvedTypeReferenceDirective: j, failedLookupLocations: Ok(b), affectingLocations: Ok(A), resolutionDiagnostics: Ok(O) }, d && (s == null || s.getOrCreateCacheForDirectory(d, o).set(e, c, y), Oc(e) || s == null || s.getOrCreateCacheForNonRelativeName(e, c, o).set(d, y)), f && te(y), y; function te(P) { var ue; (ue = P.resolvedTypeReferenceDirective) != null && ue.resolvedFileName ? P.resolvedTypeReferenceDirective.packageId ? pa(i, _.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3, e, P.resolvedTypeReferenceDirective.resolvedFileName, tT(P.resolvedTypeReferenceDirective.packageId), P.resolvedTypeReferenceDirective.primary) : pa(i, _.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2, e, P.resolvedTypeReferenceDirective.resolvedFileName, P.resolvedTypeReferenceDirective.primary) : pa(i, _.Type_reference_directive_0_was_not_resolved, e); } function X() { if (m && m.length) return f && pa(i, _.Resolving_with_primary_search_path_0, m.join(", ")), En(m, (P) => { const ue = Oi(P, e), ne = fi(ue), ge = zp(ne, i); return !ge && f && pa(i, _.Directory_0_does_not_exist_skipping_all_lookups_in_it, ne), Spe(Vpe(4, ue, !ge, k)); }); f && pa(i, _.Root_directory_cannot_be_determined_skipping_primary_search_paths); } function Y() { const P = t && fi(t); if (P !== void 0) { f && pa(i, _.Looking_up_in_node_modules_folder_initial_location_0, P); let ue; if (Oc(e)) { const { path: ne } = Mpe(P, e); ue = c5(4, ne, !1, k, !0); } else { const ne = Wpe(4, e, P, k, void 0, void 0); ue = ne && ne.value; } return Spe(ue); } else f && pa(i, _.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder); } } function cK(e) { let t = 0; switch (gl(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 kC(e, t) { const r = t || gl(e) === 100 ? ["import"] : ["require"]; return e.noDtsResolution || r.push("types"), gl(e) !== 100 && r.push("node"), ha(r, e.customConditions); } function lPe(e, t, r, i, o) { const s = u5(o == null ? void 0 : o.getPackageJsonInfoCache(), i, r); return $h(t, (c) => { if (cu(c) !== "node_modules") { const f = Oi(c, "node_modules"), d = Oi(f, e); return Ox(d, !1, s); } }); } function o5(e, t) { if (e.types) return e.types; const r = []; if (t.directoryExists && t.getDirectories) { const i = r8(e, t); if (i) { for (const o of i) if (t.directoryExists(o)) for (const s of t.getDirectories(o)) { const c = Wo(s), f = Oi(o, c, "package.json"); if (!(t.fileExists(f) && zI(f, t).typings === null)) { const y = cu(c); y.charCodeAt(0) !== 46 && r.push(y); } } } } return r; } function uK(e) { var t; if (e === null || typeof e != "object") return "" + e; if (Ga(e)) return `[${(t = e.map((i) => uK(i))) == null ? void 0 : t.join(",")}]`; let r = "{"; for (const i in e) Ns(e, i) && (r += `${i}: ${uK(e[i])}`); return r + "}"; } function dK(e, t) { return t.map((r) => uK(S3(e, r))).join("|") + (e.pathsBasePath ? `|${e.pathsBasePath}` : void 0); } function fK(e) { const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(); let o = /* @__PURE__ */ new Map(); return e && t.set(e, o), { getMapOfCacheRedirects: s, getOrCreateMapOfCacheRedirects: c, update: f, clear: y }; function s(b) { return b ? d(b.commandLine.options, !1) : o; } function c(b) { return b ? d(b.commandLine.options, !0) : o; } function f(b) { e !== b && (e ? o = d(b, !0) : t.set(b, o), e = b); } function d(b, A) { let C = t.get(b); if (C) return C; const I = m(b); if (C = i.get(I), !C) { if (e) { const O = m(e); O === I ? C = o : i.has(O) || i.set(O, o); } A && (C ?? (C = /* @__PURE__ */ new Map())), C && i.set(I, C); } return C && t.set(b, C), C; } function y() { const b = e && r.get(e); o.clear(), t.clear(), r.clear(), i.clear(), e && (b && r.set(e, b), t.set(e, o)); } function m(b) { let A = r.get(b); return A || r.set(b, A = dK(b, $7)), A; } } function cPe(e, t) { let r; return { getPackageJsonInfo: i, setPackageJsonInfo: o, clear: s, entries: c, getInternalMap: f }; function i(d) { return r == null ? void 0 : r.get(Hs(d, e, t)); } function o(d, y) { (r || (r = /* @__PURE__ */ new Map())).set(Hs(d, e, t), y); } function s() { r = void 0; } function c() { const d = r == null ? void 0 : r.entries(); return d ? ko(d) : []; } function f() { return r; } } function Ipe(e, t, r, i) { const o = e.getOrCreateMapOfCacheRedirects(t); let s = o.get(r); return s || (s = i(), o.set(r, s)), s; } function uPe(e, t, r) { const i = fK(r); return { getFromDirectoryCache: f, getOrCreateCacheForDirectory: c, clear: o, update: s }; function o() { i.clear(); } function s(d) { i.update(d); } function c(d, y) { const m = Hs(d, e, t); return Ipe(i, y, m, () => kT()); } function f(d, y, m, b) { var A, C; const I = Hs(m, e, t); return (C = (A = i.getMapOfCacheRedirects(b)) == null ? void 0 : A.get(I)) == null ? void 0 : C.get(d, y); } } function Pk(e, t) { return t === void 0 ? e : `${t}|${e}`; } function kT() { const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), r = { get(o, s) { return e.get(i(o, s)); }, set(o, s, c) { return e.set(i(o, s), c), r; }, delete(o, s) { return e.delete(i(o, s)), r; }, has(o, s) { return e.has(i(o, s)); }, forEach(o) { return e.forEach((s, c) => { const [f, d] = t.get(c); return o(s, f, d); }); }, size() { return e.size; } }; return r; function i(o, s) { const c = Pk(o, s); return t.set(c, [o, s]), c; } } function _K(e, t, r, i) { D.assert(t.length === r.length); const o = kT(); for (let s = 0; s < t.length; ++s) { const c = t[s]; o.set(i.getName(c), i.getMode(c, e), r[s]); } return o; } function dPe(e) { return e.resolvedModule && (e.resolvedModule.originalPath || e.resolvedModule.resolvedFileName); } function fPe(e) { return e.resolvedTypeReferenceDirective && (e.resolvedTypeReferenceDirective.originalPath || e.resolvedTypeReferenceDirective.resolvedFileName); } function _Pe(e, t, r, i) { const o = fK(r); return { getFromNonRelativeNameCache: f, getOrCreateCacheForNonRelativeName: d, clear: s, update: c }; function s() { o.clear(); } function c(m) { o.update(m); } function f(m, b, A, C) { var I, O; return D.assert(!Oc(m)), (O = (I = o.getMapOfCacheRedirects(C)) == null ? void 0 : I.get(Pk(m, b))) == null ? void 0 : O.get(A); } function d(m, b, A) { return D.assert(!Oc(m)), Ipe(o, A, Pk(m, b), y); } function y() { const m = /* @__PURE__ */ new Map(); return { get: b, set: A }; function b(I) { return m.get(Hs(I, e, t)); } function A(I, O) { const k = Hs(I, e, t); if (m.has(k)) return; m.set(k, O); const B = i(O), U = B && C(k, B); let j = k; for (; j !== U; ) { const te = fi(j); if (te === j || m.has(te)) break; m.set(te, O), j = te; } } function C(I, O) { const k = Hs(fi(O), e, t); let B = 0; const U = Math.min(I.length, k.length); for (; B < U && I.charCodeAt(B) === k.charCodeAt(B); ) B++; if (B === I.length && (k.length === B || k[B] === Os)) return I; const j = Vp(I); if (B < j) return; const te = I.lastIndexOf(Os, B - 1); if (te !== -1) return I.substr(0, Math.max(te, j)); } } } function kpe(e, t, r, i, o) { const s = uPe(e, t, r), c = _Pe(e, t, r, o); return i ?? (i = cPe(e, t)), { ...i, ...s, ...c, clear: f, update: y, getPackageJsonInfoCache: () => i, clearAllExceptPackageJsonInfoCache: d }; function f() { d(), i.clear(); } function d() { s.clear(), c.clear(); } function y(m) { s.update(m), c.update(m); } } function s5(e, t, r) { const i = kpe(e, t, r, void 0, dPe); return i.getOrCreateCacheForModuleName = (o, s, c) => i.getOrCreateCacheForNonRelativeName(o, s, c), i; } function l5(e, t, r, i) { return kpe(e, t, r, i, fPe); } function pPe(e, t, r, i) { const o = fi(t); return r.getFromDirectoryCache(e, i, o, void 0); } function Mk(e, t, r, i, o, s, c) { const f = Bv(r, i); s && (r = s.commandLine.options), f && (pa(i, _.Resolving_module_0_from_1, e, t), s && pa(i, _.Using_compiler_options_of_project_reference_redirect_0, s.sourceFile.fileName)); const d = fi(t); let y = o == null ? void 0 : o.getFromDirectoryCache(e, c, d, s); if (y) f && pa(i, _.Resolution_for_module_0_was_found_in_cache_from_location_1, e, d); else { let m = r.moduleResolution; if (m === void 0) { switch (Zc(r)) { case 1: m = 2; break; case 100: m = 3; break; case 199: m = 99; break; default: m = 1; break; } f && pa(i, _.Module_resolution_kind_is_not_specified_using_0, dR[m]); } else f && pa(i, _.Explicitly_specified_module_resolution_kind_Colon_0, dR[m]); switch (Up.logStartResolveModule(e), m) { case 3: y = yPe(e, t, r, i, o, s, c); break; case 99: y = vPe(e, t, r, i, o, s, c); break; case 2: y = Ope(e, t, r, i, o, s); break; case 1: y = Xpe(e, t, r, i, o, s); break; case 100: y = Npe(e, t, r, i, o, s); break; default: return D.fail(`Unexpected moduleResolution: ${m}`); } y && y.resolvedModule && Up.logInfoEvent(`Module "${e}" resolved to "${y.resolvedModule.resolvedFileName}"`), Up.logStopResolveModule(y && y.resolvedModule ? "" + y.resolvedModule.resolvedFileName : "null"), o == null || o.getOrCreateCacheForDirectory(d, s).set(e, c, y), Oc(e) || o == null || o.getOrCreateCacheForNonRelativeName(e, c, s).set(d, y); } return f && (y.resolvedModule ? y.resolvedModule.packageId ? pa(i, _.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2, e, y.resolvedModule.resolvedFileName, tT(y.resolvedModule.packageId)) : pa(i, _.Module_name_0_was_successfully_resolved_to_1, e, y.resolvedModule.resolvedFileName) : pa(i, _.Module_name_0_was_not_resolved, e)), y; } function wpe(e, t, r, i, o) { const s = mPe(e, t, i, o); return s ? s.value : Oc(t) ? hPe(e, t, r, i, o) : gPe(e, t, i, o); } function mPe(e, t, r, i) { var o; const { baseUrl: s, paths: c, configFile: f } = i.compilerOptions; if (c && !gf(t)) { i.traceEnabled && (s && pa(i.host, _.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, s, t), pa(i.host, _.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0, t)); const d = yz(i.compilerOptions, i.host), y = f != null && f.configFileSpecs ? (o = f.configFileSpecs).pathPatterns || (o.pathPatterns = I3(c)) : void 0; return EK(e, t, d, c, y, r, !1, i); } } function hPe(e, t, r, i, o) { if (!o.compilerOptions.rootDirs) return; o.traceEnabled && pa(o.host, _.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0, t); const s = Wo(Oi(r, t)); let c, f; for (const d of o.compilerOptions.rootDirs) { let y = Wo(d); tc(y, Os) || (y += Os); const m = Ea(s, y) && (f === void 0 || f.length < y.length); o.traceEnabled && pa(o.host, _.Checking_if_0_is_the_longest_matching_prefix_for_1_2, y, s, m), m && (f = y, c = d); } if (f) { o.traceEnabled && pa(o.host, _.Longest_matching_prefix_for_0_is_1, s, f); const d = s.substr(f.length); o.traceEnabled && pa(o.host, _.Loading_0_from_the_root_dir_1_candidate_location_2, d, f, s); const y = i(e, s, !zp(r, o.host), o); if (y) return y; o.traceEnabled && pa(o.host, _.Trying_other_entries_in_rootDirs); for (const m of o.compilerOptions.rootDirs) { if (m === c) continue; const b = Oi(Wo(m), d); o.traceEnabled && pa(o.host, _.Loading_0_from_the_root_dir_1_candidate_location_2, d, m, b); const A = fi(b), C = i(e, b, !zp(A, o.host), o); if (C) return C; } o.traceEnabled && pa(o.host, _.Module_resolution_using_rootDirs_has_failed); } } function gPe(e, t, r, i) { const { baseUrl: o } = i.compilerOptions; if (!o) return; i.traceEnabled && pa(i.host, _.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, o, t); const s = Wo(Oi(o, t)); return i.traceEnabled && pa(i.host, _.Resolving_module_name_0_relative_to_base_url_1_2, t, o, s), r(e, s, !zp(fi(s), i.host), i); } function Dpe(e, t, r) { const { resolvedModule: i, failedLookupLocations: o } = bPe(e, t, r); if (!i) throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o == null ? void 0 : o.join(", ")}`); return i.resolvedFileName; } function yPe(e, t, r, i, o, s, c) { return Rpe(30, e, t, r, i, o, s, c); } function vPe(e, t, r, i, o, s, c) { return Rpe(30, e, t, r, i, o, s, c); } function Rpe(e, t, r, i, o, s, c, f) { const d = fi(r), y = f === 99 ? 32 : 0; let m = i.noDtsResolution ? 3 : 7; return gT(i) && (m |= 8), Fk(e | y, t, d, i, o, s, m, !1, c); } function bPe(e, t, r) { return Fk(0, e, t, { moduleResolution: 2, allowJs: !0 }, r, void 0, 2, !1, void 0); } function Npe(e, t, r, i, o, s) { const c = fi(t); let f = r.noDtsResolution ? 3 : 7; return gT(r) && (f |= 8), Fk(cK(r), e, c, r, i, o, f, !1, s); } function Ope(e, t, r, i, o, s, c) { let f; return c ? f = 8 : r.noDtsResolution ? (f = 3, gT(r) && (f |= 8)) : f = gT(r) ? 15 : 7, Fk(0, e, fi(t), r, i, o, f, !!c, s); } function Ppe(e, t, r) { return Fk(8, e, fi(t), { moduleResolution: 99 }, r, void 0, 8, !0, void 0); } function Fk(e, t, r, i, o, s, c, f, d) { var y, m, b, A; const C = Bv(i, o), I = [], O = [], k = kC(i, !!(e & 32)), B = [], U = { compilerOptions: i, host: o, traceEnabled: C, failedLookupLocations: I, affectingLocations: O, packageJsonInfoCache: s, features: e, conditions: k, requestContainingDirectory: r, reportDiagnostic: (Y) => void B.push(Y), isConfigLookup: f, candidateIsFromPackageJsonField: !1 }; C && sx(gl(i)) && pa(o, _.Resolving_in_0_mode_with_conditions_1, e & 32 ? "ESM" : "CJS", k.map((Y) => `'${Y}'`).join(", ")); let j; if (gl(i) === 2) { const Y = c & 5, P = c & -6; j = Y && X(Y, U) || P && X(P, U) || void 0; } else j = X(c, U); let te; if ((y = j == null ? void 0 : j.value) != null && y.isExternalLibraryImport && !f && c & 5 && e & 8 && !Oc(t) && !gK(5, j.value.resolved.extension) && k.indexOf("import") > -1) { N1(U, _.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update); const Y = { ...U, features: U.features & -9, failedLookupLocations: [], affectingLocations: [], reportDiagnostic: io }, P = X(c & 5, Y); (m = P == null ? void 0 : P.value) != null && m.isExternalLibraryImport && (te = P.value.resolved.path); } return xpe(t, (b = j == null ? void 0 : j.value) == null ? void 0 : b.resolved, (A = j == null ? void 0 : j.value) == null ? void 0 : A.isExternalLibraryImport, I, O, B, U, te); function X(Y, P) { const ne = wpe(Y, t, r, (ge, ie, H, le) => c5(ge, ie, H, le, !0), P); if (ne) return Yf({ resolved: ne, isExternalLibraryImport: Nx(ne.path) }); if (Oc(t)) { const { path: ge, parts: ie } = Mpe(r, t), H = c5(Y, ge, !1, P, !0); return H && Yf({ resolved: H, isExternalLibraryImport: Ii(ie, "node_modules") }); } else { let ge; return e & 2 && Ea(t, "#") && (ge = LPe(Y, t, r, P, s, d)), !ge && e & 4 && (ge = CPe(Y, t, r, P, s, d)), ge || (C && pa(o, _.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, t, Tpe(Y)), ge = Wpe(Y, t, r, P, s, d)), ge && { value: ge.value && { resolved: ge.value, isExternalLibraryImport: !0 } }; } } } function Mpe(e, t) { const r = Oi(e, t), i = rd(r), o = Zs(i); return { path: o === "." || o === ".." ? Iu(Wo(r)) : Wo(r), parts: i }; } function EPe(e, t, r) { if (!t.realpath) return e; const i = Wo(t.realpath(e)); return r && pa(t, _.Resolving_real_path_for_0_result_1, e, i), D.assert(t.fileExists(i), `${e} linked to nonexistent file ${i}`), i; } function c5(e, t, r, i, o) { if (i.traceEnabled && pa(i.host, _.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, t, Tpe(e)), !pv(t)) { if (!r) { const c = fi(t); zp(c, i.host) || (i.traceEnabled && pa(i.host, _.Directory_0_does_not_exist_skipping_all_lookups_in_it, c), r = !0); } const s = Bk(e, t, r, i); if (s) { const c = o ? pK(s.path) : void 0, f = c ? Ox(c, !1, i) : void 0; return LC(f, s); } } if (r || zp(t, i.host) || (i.traceEnabled && pa(i.host, _.Directory_0_does_not_exist_skipping_all_lookups_in_it, t), r = !0), !(i.features & 32)) return Vpe(e, t, r, i, o); } function Nx(e) { return lu(e, Ty); } function pK(e) { const t = Wo(e), r = t.lastIndexOf(Ty); if (r === -1) return; const i = r + Ty.length; let o = Fpe(t, i); return t.charCodeAt(i) === 64 && (o = Fpe(t, o)), t.slice(0, o); } function Fpe(e, t) { const r = e.indexOf(Os, t + 1); return r === -1 ? t : r; } function mK(e, t, r, i) { return r5(Bk(e, t, r, i)); } function Bk(e, t, r, i) { const o = Bpe(e, t, r, i); if (o) return o; if (!(i.features & 32)) { const s = Gpe(t, e, "", r, i); if (s) return s; } } function Bpe(e, t, r, i) { if (cu(t).indexOf(".") === -1) return; let s = Od(t); s === t && (s = t.substring(0, t.lastIndexOf("."))); const c = t.substring(s.length); return i.traceEnabled && pa(i.host, _.File_name_0_has_a_1_extension_stripping_it, t, c), Gpe(s, e, c, r, i); } function hK(e, t, r, i) { return e & 1 && vc(t, G3) || e & 4 && vc(t, B3) ? i8(t, r, i) !== void 0 ? { path: t, ext: p3(t), resolvedUsingTsExtension: void 0 } : void 0 : i.isConfigLookup && e === 8 && oc(t, ".json") ? i8(t, r, i) !== void 0 ? { path: t, ext: ".json", resolvedUsingTsExtension: void 0 } : void 0 : Bpe(e, t, r, i); } function Gpe(e, t, r, i, o) { if (!i) { const c = fi(e); c && (i = !zp(c, o.host)); } switch (r) { case ".mjs": case ".mts": case ".d.mts": return t & 1 && s(".mts", r === ".mts" || r === ".d.mts") || t & 4 && s(".d.mts", r === ".mts" || r === ".d.mts") || t & 2 && s(".mjs") || void 0; case ".cjs": case ".cts": case ".d.cts": return t & 1 && s(".cts", r === ".cts" || r === ".d.cts") || t & 4 && s(".d.cts", r === ".cts" || r === ".d.cts") || t & 2 && s(".cjs") || void 0; case ".json": return t & 4 && s(".d.json.ts") || t & 8 && s(".json") || void 0; case ".tsx": case ".jsx": return t & 1 && (s(".tsx", r === ".tsx") || s(".ts", r === ".tsx")) || t & 4 && s(".d.ts", r === ".tsx") || t & 2 && (s(".jsx") || s(".js")) || void 0; case ".ts": case ".d.ts": case ".js": case "": return t & 1 && (s(".ts", r === ".ts" || r === ".d.ts") || s(".tsx", r === ".ts" || r === ".d.ts")) || t & 4 && s(".d.ts", r === ".ts" || r === ".d.ts") || t & 2 && (s(".js") || s(".jsx")) || o.isConfigLookup && s(".json") || void 0; default: return t & 4 && !sd(e + r) && s(`.d${r}.ts`) || void 0; } function s(c, f) { const d = i8(e + c, i, o); return d === void 0 ? void 0 : { path: d, ext: c, resolvedUsingTsExtension: !o.candidateIsFromPackageJsonField && f }; } } function i8(e, t, r) { var i, o; if (!((i = r.compilerOptions.moduleSuffixes) != null && i.length)) return Upe(e, t, r); const s = (o = yh(e)) != null ? o : "", c = s ? KN(e, s) : e; return Ye(r.compilerOptions.moduleSuffixes, (f) => Upe(c + f + s, t, r)); } function Upe(e, t, r) { if (!t) { if (r.host.fileExists(e)) return r.traceEnabled && pa(r.host, _.File_0_exists_use_it_as_a_name_resolution_result, e), e; r.traceEnabled && pa(r.host, _.File_0_does_not_exist, e); } r.failedLookupLocations.push(e); } function Vpe(e, t, r, i, o = !0) { const s = o ? Ox(t, r, i) : void 0, c = s && s.contents.packageJsonContent, f = s && a8(s, i); return LC(s, f5(e, t, r, i, c, f)); } function TPe(e, t, r, i, o) { if (!o && e.contents.resolvedEntrypoints !== void 0) return e.contents.resolvedEntrypoints; let s; const c = 5 | (o ? 2 : 0), f = cK(t), d = u5(i == null ? void 0 : i.getPackageJsonInfoCache(), r, t); d.conditions = kC(t), d.requestContainingDirectory = e.packageDirectory; const y = f5(c, e.packageDirectory, !1, d, e.contents.packageJsonContent, a8(e, d)); if (s = Fn(s, y == null ? void 0 : y.path), f & 8 && e.contents.packageJsonContent.exports) { const m = oA([kC(t, !0), kC(t, !1)], Bp); for (const b of m) { const A = { ...d, failedLookupLocations: [], conditions: b }, C = SPe(e, e.contents.packageJsonContent.exports, A, c); if (C) for (const I of C) s = ny(s, I.path); } } return e.contents.resolvedEntrypoints = s || !1; } function SPe(e, t, r, i) { let o; if (Ga(t)) for (const c of t) s(c); else if (typeof t == "object" && t !== null && _5(t)) for (const c in t) s(t[c]); else s(t); return o; function s(c) { var f, d; if (typeof c == "string" && Ea(c, "./") && c.indexOf("*") === -1) { const y = rd(c).slice(2); if (y.indexOf("..") >= 0 || y.indexOf(".") >= 0 || y.indexOf("node_modules") >= 0) return !1; const m = Oi(e.packageDirectory, c), b = Na(m, (d = (f = r.host).getCurrentDirectory) == null ? void 0 : d.call(f)), A = hK(i, b, !1, r); if (A) return o = ny(o, A, (C, I) => C.path === I.path), !0; } else if (Array.isArray(c)) { for (const y of c) if (s(y)) return !0; } else if (typeof c == "object" && c !== null) return Ye(Xh(c), (y) => { if (y === "default" || Ii(r.conditions, y) || o8(r.conditions, y)) return s(c[y]), !0; }); } } function u5(e, t, r) { return { host: t, compilerOptions: r, traceEnabled: Bv(r, t), failedLookupLocations: RP, affectingLocations: RP, packageJsonInfoCache: e, features: 0, conditions: nt, requestContainingDirectory: void 0, reportDiagnostic: io, isConfigLookup: !1, candidateIsFromPackageJsonField: !1 }; } function d5(e, t) { const r = rd(e); for (r.pop(); r.length > 0; ) { const i = Ox(a1(r), !1, t); if (i) return i; r.pop(); } } function a8(e, t) { return e.contents.versionPaths === void 0 && (e.contents.versionPaths = aPe(e.contents.packageJsonContent, t) || !1), e.contents.versionPaths || void 0; } function Ox(e, t, r) { var i, o, s; const { host: c, traceEnabled: f } = r, d = Oi(e, "package.json"); if (t) { r.failedLookupLocations.push(d); return; } const y = (i = r.packageJsonInfoCache) == null ? void 0 : i.getPackageJsonInfo(d); if (y !== void 0) { if (typeof y != "boolean") return f && pa(c, _.File_0_exists_according_to_earlier_cached_lookups, d), r.affectingLocations.push(d), y.packageDirectory === e ? y : { packageDirectory: e, contents: y.contents }; y && f && pa(c, _.File_0_does_not_exist_according_to_earlier_cached_lookups, d), r.failedLookupLocations.push(d); return; } const m = zp(e, c); if (m && c.fileExists(d)) { const b = zI(d, c); f && pa(c, _.Found_package_json_at_0, d); const A = { packageDirectory: e, contents: { packageJsonContent: b, versionPaths: void 0, resolvedEntrypoints: void 0 } }; return (o = r.packageJsonInfoCache) == null || o.setPackageJsonInfo(d, A), r.affectingLocations.push(d), A; } else m && f && pa(c, _.File_0_does_not_exist, d), (s = r.packageJsonInfoCache) == null || s.setPackageJsonInfo(d, m), r.failedLookupLocations.push(d); } function f5(e, t, r, i, o, s) { let c; o && (i.isConfigLookup ? c = nPe(o, t, i) : c = e & 4 && tPe(o, t, i) || e & 7 && rPe(o, t, i) || void 0); const f = (A, C, I, O) => { const k = i8(C, I, O); if (k) { const X = xPe(A, k); if (X) return r5(X); O.traceEnabled && pa(O.host, _.File_0_has_an_unsupported_extension_so_skipping_it, k); } const B = A === 4 ? 5 : A, U = O.features, j = O.candidateIsFromPackageJsonField; O.candidateIsFromPackageJsonField = !0, (o == null ? void 0 : o.type) !== "module" && (O.features &= -33); const te = c5(B, C, I, O, !1); return O.features = U, O.candidateIsFromPackageJsonField = j, te; }, d = c ? !zp(fi(c), i.host) : void 0, y = r || !zp(t, i.host), m = Oi(t, i.isConfigLookup ? "tsconfig" : "index"); if (s && (!c || hv(t, c))) { const A = Am(t, c || m, !1); i.traceEnabled && pa(i.host, _.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, s.version, Ue, A); const C = EK(e, A, t, s.paths, void 0, f, d || y, i); if (C) return Epe(C.value); } const b = c && Epe(f(e, c, d, i)); if (b) return b; if (!(i.features & 32)) return Bk(e, m, y, i); } function xPe(e, t, r) { const i = yh(t); return i !== void 0 && gK(e, i) ? { path: t, ext: i, resolvedUsingTsExtension: r } : void 0; } function gK(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 yK(e) { let t = e.indexOf(Os); return e[0] === "@" && (t = e.indexOf(Os, t + 1)), t === -1 ? { packageName: e, rest: "" } : { packageName: e.slice(0, t), rest: e.slice(t + 1) }; } function _5(e) { return Vn(Xh(e), (t) => Ea(t, ".")); } function APe(e) { return !kt(Xh(e), (t) => Ea(t, ".")); } function CPe(e, t, r, i, o, s) { var c, f; const d = Na(Oi(r, "dummy"), (f = (c = i.host).getCurrentDirectory) == null ? void 0 : f.call(c)), y = d5(d, i); if (!y || !y.contents.packageJsonContent.exports || typeof y.contents.packageJsonContent.name != "string") return; const m = rd(t), b = rd(y.contents.packageJsonContent.name); if (!Vn(b, (k, B) => m[B] === k)) return; const A = m.slice(b.length), C = Ne(A) ? `.${Os}${A.join(Os)}` : ".", I = e & 5, O = e & -6; return vK(y, I, C, i, o, s) || vK(y, O, C, i, o, s); } function vK(e, t, r, i, o, s) { if (e.contents.packageJsonContent.exports) { if (r === ".") { let c; if (typeof e.contents.packageJsonContent.exports == "string" || Array.isArray(e.contents.packageJsonContent.exports) || typeof e.contents.packageJsonContent.exports == "object" && APe(e.contents.packageJsonContent.exports) ? c = e.contents.packageJsonContent.exports : Ns(e.contents.packageJsonContent.exports, ".") && (c = e.contents.packageJsonContent.exports["."]), c) return Hpe(t, i, o, s, r, e, !1)(c, "", !1, "."); } else if (_5(e.contents.packageJsonContent.exports)) { if (typeof e.contents.packageJsonContent.exports != "object") return i.traceEnabled && pa(i.host, _.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1, r, e.packageDirectory), Yf(void 0); const c = jpe(t, i, o, s, r, e.contents.packageJsonContent.exports, e, !1); if (c) return c; } return i.traceEnabled && pa(i.host, _.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1, r, e.packageDirectory), Yf(void 0); } } function LPe(e, t, r, i, o, s) { var c, f; if (t === "#" || Ea(t, "#/")) return i.traceEnabled && pa(i.host, _.Invalid_import_specifier_0_has_no_possible_resolutions, t), Yf(void 0); const d = Na(Oi(r, "dummy"), (f = (c = i.host).getCurrentDirectory) == null ? void 0 : f.call(c)), y = d5(d, i); if (!y) return i.traceEnabled && pa(i.host, _.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve, d), Yf(void 0); if (!y.contents.packageJsonContent.imports) return i.traceEnabled && pa(i.host, _.package_json_scope_0_has_no_imports_defined, y.packageDirectory), Yf(void 0); const m = jpe(e, i, o, s, t, y.contents.packageJsonContent.imports, y, !0); return m || (i.traceEnabled && pa(i.host, _.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1, t, y.packageDirectory), Yf(void 0)); } function bK(e, t) { const r = e.indexOf("*"), i = t.indexOf("*"), o = r === -1 ? e.length : r + 1, s = i === -1 ? t.length : i + 1; return o > s ? -1 : s > o || r === -1 ? 1 : i === -1 || e.length > t.length ? -1 : t.length > e.length ? 1 : 0; } function jpe(e, t, r, i, o, s, c, f) { const d = Hpe(e, t, r, i, o, c, f); if (!tc(o, Os) && o.indexOf("*") === -1 && Ns(s, o)) { const b = s[o]; return d(b, "", !1, o); } const y = KL(yn(Xh(s), (b) => b.indexOf("*") !== -1 || tc(b, "/")), bK); for (const b of y) if (t.features & 16 && m(b, o)) { const A = s[b], C = b.indexOf("*"), I = o.substring(b.substring(0, C).length, o.length - (b.length - 1 - C)); return d(A, I, !0, b); } else if (tc(b, "*") && Ea(o, b.substring(0, b.length - 1))) { const A = s[b], C = o.substring(b.length - 1); return d(A, C, !0, b); } else if (Ea(o, b)) { const A = s[b], C = o.substring(b.length); return d(A, C, !1, b); } function m(b, A) { if (tc(b, "*")) return !1; const C = b.indexOf("*"); return C === -1 ? !1 : Ea(A, b.substring(0, C)) && tc(A, b.substring(C + 1)); } } function Hpe(e, t, r, i, o, s, c) { return f; function f(d, y, m, b) { if (typeof d == "string") { if (!m && y.length > 0 && !tc(d, "/")) return t.traceEnabled && pa(t.host, _.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, s.packageDirectory, o), Yf(void 0); if (!Ea(d, "./")) { if (c && !Ea(d, "../") && !Ea(d, "/") && !xm(d)) { const Y = m ? d.replace(/\*/g, y) : d + y; N1(t, _.Using_0_subpath_1_with_target_2, "imports", b, Y), N1(t, _.Resolving_module_0_from_1, Y, s.packageDirectory + "/"); const P = Fk(t.features, Y, s.packageDirectory + "/", t.compilerOptions, t.host, r, e, !1, i); return Yf(P.resolvedModule ? { path: P.resolvedModule.resolvedFileName, extension: P.resolvedModule.extension, packageId: P.resolvedModule.packageId, originalPath: P.resolvedModule.originalPath, resolvedUsingTsExtension: P.resolvedModule.resolvedUsingTsExtension } : void 0); } return t.traceEnabled && pa(t.host, _.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, s.packageDirectory, o), Yf(void 0); } const B = (gf(d) ? rd(d).slice(1) : rd(d)).slice(1); if (B.indexOf("..") >= 0 || B.indexOf(".") >= 0 || B.indexOf("node_modules") >= 0) return t.traceEnabled && pa(t.host, _.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, s.packageDirectory, o), Yf(void 0); const U = Oi(s.packageDirectory, d), j = rd(y); if (j.indexOf("..") >= 0 || j.indexOf(".") >= 0 || j.indexOf("node_modules") >= 0) return t.traceEnabled && pa(t.host, _.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, s.packageDirectory, o), Yf(void 0); t.traceEnabled && pa(t.host, _.Using_0_subpath_1_with_target_2, c ? "imports" : "exports", b, m ? d.replace(/\*/g, y) : d + y); const te = A(m ? U.replace(/\*/g, y) : U + y), X = O(te, y, Oi(s.packageDirectory, "package.json"), c); return X || Yf(LC(s, hK(e, te, !1, t))); } else if (typeof d == "object" && d !== null) if (Array.isArray(d)) { if (!Ne(d)) return t.traceEnabled && pa(t.host, _.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, s.packageDirectory, o), Yf(void 0); for (const k of d) { const B = f(k, y, m, b); if (B) return B; } } else { N1(t, _.Entering_conditional_exports); for (const k of Xh(d)) if (k === "default" || t.conditions.indexOf(k) >= 0 || o8(t.conditions, k)) { N1(t, _.Matched_0_condition_1, c ? "imports" : "exports", k); const B = d[k], U = f(B, y, m, b); if (U) return N1(t, _.Resolved_under_condition_0, k), N1(t, _.Exiting_conditional_exports), U; N1(t, _.Failed_to_resolve_under_condition_0, k); } else N1(t, _.Saw_non_matching_condition_0, k); N1(t, _.Exiting_conditional_exports); return; } else if (d === null) return t.traceEnabled && pa(t.host, _.package_json_scope_0_explicitly_maps_specifier_1_to_null, s.packageDirectory, o), Yf(void 0); return t.traceEnabled && pa(t.host, _.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, s.packageDirectory, o), Yf(void 0); function A(k) { var B, U; return k === void 0 ? k : Na(k, (U = (B = t.host).getCurrentDirectory) == null ? void 0 : U.call(B)); } function C(k, B) { return Iu(Oi(k, B)); } function I() { return t.host.useCaseSensitiveFileNames ? typeof t.host.useCaseSensitiveFileNames == "boolean" ? t.host.useCaseSensitiveFileNames : t.host.useCaseSensitiveFileNames() : !0; } function O(k, B, U, j) { var te, X, Y, P; if (!t.isConfigLookup && (t.compilerOptions.declarationDir || t.compilerOptions.outDir) && k.indexOf("/node_modules/") === -1 && (!t.compilerOptions.configFile || hv(s.packageDirectory, A(t.compilerOptions.configFile.fileName), !I()))) { const ne = H0({ useCaseSensitiveFileNames: I }), ge = []; if (t.compilerOptions.rootDir || t.compilerOptions.composite && t.compilerOptions.configFilePath) { const ie = A(y8(t.compilerOptions, () => [], ((X = (te = t.host).getCurrentDirectory) == null ? void 0 : X.call(te)) || "", ne)); ge.push(ie); } else if (t.requestContainingDirectory) { const ie = A(Oi(t.requestContainingDirectory, "index.ts")), H = A(y8(t.compilerOptions, () => [ie, A(U)], ((P = (Y = t.host).getCurrentDirectory) == null ? void 0 : P.call(Y)) || "", ne)); ge.push(H); let le = Iu(H); for (; le && le.length > 1; ) { const pe = rd(le); pe.pop(); const ye = a1(pe); ge.unshift(ye), le = Iu(ye); } } ge.length > 1 && t.reportDiagnostic(Ps(j ? _.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate : _.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate, B === "" ? "." : B, U)); for (const ie of ge) { const H = ue(ie); for (const le of H) if (hv(le, k, !I())) { const pe = k.slice(le.length + 1), ye = Oi(ie, pe), Te = [".mjs", ".cjs", ".js", ".json", ".d.mts", ".d.cts", ".d.ts"]; for (const ee of Te) if (oc(ye, ee)) { const $e = Tue(ye); for (const Ge of $e) { if (!gK(e, Ge)) continue; const Fe = kH(ye, Ge, ee, !I()); if (t.host.fileExists(Fe)) return Yf(LC(s, hK(e, Fe, !1, t))); } } } } } return; function ue(ne) { var ge, ie; const H = t.compilerOptions.configFile ? ((ie = (ge = t.host).getCurrentDirectory) == null ? void 0 : ie.call(ge)) || "" : ne, le = []; return t.compilerOptions.declarationDir && le.push(A(C(H, t.compilerOptions.declarationDir))), t.compilerOptions.outDir && t.compilerOptions.outDir !== t.compilerOptions.declarationDir && le.push(A(C(H, t.compilerOptions.outDir))), le; } } } } function o8(e, t) { if (e.indexOf("types") === -1 || !Ea(t, "types@")) return !1; const r = cA.tryParse(t.substring(6)); return r ? r.test(Ue) : !1; } function Wpe(e, t, r, i, o, s) { return zpe(e, t, r, i, !1, o, s); } function IPe(e, t, r) { return zpe(4, e, t, r, !0, void 0, void 0); } function zpe(e, t, r, i, o, s, c) { const f = i.features === 0 ? void 0 : i.features & 32 ? 99 : 1, d = e & 5, y = e & -6; if (d) { const b = m(d); if (b) return b; } if (y && !o) return m(y); function m(b) { return $h(qc(r), (A) => { if (cu(A) !== "node_modules") { const C = Kpe(s, t, f, A, c, i); return C || Yf(qpe(b, t, A, i, o, s, c)); } }); } } function qpe(e, t, r, i, o, s, c) { const f = Oi(r, "node_modules"), d = zp(f, i.host); if (!d && i.traceEnabled && pa(i.host, _.Directory_0_does_not_exist_skipping_all_lookups_in_it, f), !o) { const y = Jpe(e, t, f, d, i, s, c); if (y) return y; } if (e & 4) { const y = Oi(f, "@types"); let m = d; return d && !zp(y, i.host) && (i.traceEnabled && pa(i.host, _.Directory_0_does_not_exist_skipping_all_lookups_in_it, y), m = !1), Jpe(4, kPe(t, i), y, m, i, s, c); } } function Jpe(e, t, r, i, o, s, c) { var f, d, y; const m = Wo(Oi(r, t)), { packageName: b, rest: A } = yK(t), C = Oi(r, b); let I, O = Ox(m, !i, o); if (A !== "" && O && (!(o.features & 8) || !Ns((d = (f = I = Ox(C, !i, o)) == null ? void 0 : f.contents.packageJsonContent) != null ? d : nt, "exports"))) { const U = Bk(e, m, !i, o); if (U) return r5(U); const j = f5(e, m, !i, o, O.contents.packageJsonContent, a8(O, o)); return LC(O, j); } const k = (U, j, te, X) => { let Y = Bk(U, j, te, X) || f5(U, j, te, X, O && O.contents.packageJsonContent, O && a8(O, X)); return !Y && O && (O.contents.packageJsonContent.exports === void 0 || O.contents.packageJsonContent.exports === null) && X.features & 32 && (Y = Bk(U, Oi(j, "index.js"), te, X)), LC(O, Y); }; if (A !== "" && (O = I ?? Ox(C, !i, o)), O && O.contents.packageJsonContent.exports && o.features & 8) return (y = vK(O, e, Oi(".", A), o, s, c)) == null ? void 0 : y.value; const B = A !== "" && O ? a8(O, o) : void 0; if (B) { o.traceEnabled && pa(o.host, _.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, B.version, Ue, A); const U = i && zp(C, o.host), j = EK(e, A, C, B.paths, void 0, k, !U, o); if (j) return j.value; } return k(e, m, !i, o); } function EK(e, t, r, i, o, s, c, f) { o || (o = I3(i)); const d = Zz(o, t); if (d) { const y = Va(d) ? void 0 : vse(d, t), m = Va(d) ? d : yse(d); return f.traceEnabled && pa(f.host, _.Module_name_0_matched_pattern_1, t, m), { value: Ye(i[m], (A) => { const C = y ? A.replace("*", y) : A, I = Wo(Oi(r, C)); f.traceEnabled && pa(f.host, _.Trying_substitution_0_candidate_module_location_Colon_1, A, C); const O = yh(A); if (O !== void 0) { const k = i8(I, c, f); if (k !== void 0) return r5({ path: k, ext: O, resolvedUsingTsExtension: void 0 }); } return s(e, I, c || !zp(fi(I), f.host), f); }) }; } } function kPe(e, t) { const r = Gk(e); return t.traceEnabled && r !== e && pa(t.host, _.Scoped_package_detected_looking_in_0, r), r; } function p5(e) { return `@types/${Gk(e)}`; } function Gk(e) { if (Ea(e, "@")) { const t = e.replace(Os, h5); if (t !== e) return t.slice(1); } return e; } function s8(e) { const t = $L(e, "@types/"); return t !== e ? m5(t) : e; } function m5(e) { return lu(e, h5) ? "@" + e.replace(h5, Os) : e; } function Kpe(e, t, r, i, o, s) { const c = e && e.getFromNonRelativeNameCache(t, r, i, o); if (c) return s.traceEnabled && pa(s.host, _.Resolution_for_module_0_was_found_in_cache_from_location_1, t, i), s.resultFromCache = c, { value: c.resolvedModule && { path: c.resolvedModule.resolvedFileName, originalPath: c.resolvedModule.originalPath || !0, extension: c.resolvedModule.extension, packageId: c.resolvedModule.packageId, resolvedUsingTsExtension: c.resolvedModule.resolvedUsingTsExtension } }; } function Xpe(e, t, r, i, o, s) { const c = Bv(r, i), f = [], d = [], y = fi(t), m = [], b = { compilerOptions: r, host: i, traceEnabled: c, failedLookupLocations: f, affectingLocations: d, packageJsonInfoCache: o, features: 0, conditions: [], requestContainingDirectory: y, reportDiagnostic: (I) => void m.push(I), isConfigLookup: !1, candidateIsFromPackageJsonField: !1 }, A = C(5) || C(2 | (r.resolveJsonModule ? 8 : 0)); return xpe(e, A && A.value, (A == null ? void 0 : A.value) && Nx(A.value.path), f, d, m, b); function C(I) { const O = wpe(I, e, y, mK, b); if (O) return { value: O }; if (Oc(e)) { const k = Wo(Oi(y, e)); return Yf(mK(I, k, !1, b)); } else { const k = $h(y, (B) => { const U = Kpe(o, e, void 0, B, s, b); if (U) return U; const j = Wo(Oi(B, e)); return Yf(mK(I, j, !1, b)); }); if (k) return k; if (I & 5) return IPe(e, y, b); } } } function Uk(e, t) { return !!e.allowImportingTsExtensions || t && sd(t); } function Ype(e, t, r, i, o, s) { const c = Bv(r, i); c && pa(i, _.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2, t, e, o); const f = [], d = [], y = [], m = { compilerOptions: r, host: i, traceEnabled: c, failedLookupLocations: f, affectingLocations: d, packageJsonInfoCache: s, features: 0, conditions: [], requestContainingDirectory: void 0, reportDiagnostic: (A) => void y.push(A), isConfigLookup: !1, candidateIsFromPackageJsonField: !1 }, b = qpe(4, e, o, m, !1, void 0, void 0); return Ape(b, !0, f, d, y, m.resultFromCache); } function Yf(e) { return e !== void 0 ? { value: e } : void 0; } function N1(e, t, ...r) { e.traceEnabled && pa(e.host, t, ...r); } var TK, SK, xK, Ty, h5, wPe = L({ "src/compiler/moduleNameResolver.ts"() { Ra(), SK = Oi("node_modules", "@types"), xK = /* @__PURE__ */ ((e) => (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))(xK || {}), Ty = "/node_modules/", h5 = "__"; } }); function _g(e, t) { return e.body && !e.body.parent && (Bo(e.body, e), Dv(e.body, !1)), e.body ? AK(e.body, t) : 1; } function AK(e, t = /* @__PURE__ */ new Map()) { const r = ds(e); if (t.has(r)) return t.get(r) || 0; t.set(r, void 0); const i = DPe(e, t); return t.set(r, i), i; } function DPe(e, t) { switch (e.kind) { case 261: case 262: return 0; case 263: if (m1(e)) return 2; break; case 269: case 268: if (!Jr(e, 1)) return 0; break; case 275: const r = e; if (!r.moduleSpecifier && r.exportClause && r.exportClause.kind === 276) { let i = 0; for (const o of r.exportClause.elements) { const s = RPe(o, t); if (s > i && (i = s), i === 1) return i; } return i; } break; case 265: { let i = 0; return Oa(e, (o) => { const s = AK(o, t); switch (s) { case 0: return; case 2: i = 2; return; case 1: return i = 1, !0; default: D.assertNever(s); } }), i; } case 264: return _g(e, t); case 79: if (e.flags & 2048) return 0; } return 1; } function RPe(e, t) { const r = e.propertyName || e.name; let i = e.parent; for (; i; ) { if (oo(i) || Yp(i) || ji(i)) { const o = i.statements; let s; for (const c of o) if (RR(c, r)) { c.parent || (Bo(c, i), Dv(c, !1)); const f = AK(c, t); if ((s === void 0 || f > s) && (s = f), s === 1) return s; } if (s !== void 0) return s; } i = i.parent; } return 1; } function wT(e) { return D.attachFlowNodeDebugInfo(e), e; } function $pe(e, t) { rl("beforeBind"), Up.logStartBindFile("" + e.fileName), eme(e, t), Up.logStopBindFile(), rl("afterBind"), Vf("Bind", "beforeBind", "afterBind"); } function NPe() { var e, t, r, i, o, s, c, f, d, y, m, b, A, C, I, O, k, B, U, j, te, X, Y = !1, P = 0, ue, ne, ge = { flags: 1 }, ie = { flags: 1 }, H = Wt(); return pe; function le(G, Ze, zt, Yn, ka) { return id(Zn(G) || e, G, Ze, zt, Yn, ka); } function pe(G, Ze) { var zt, Yn; e = G, t = Ze, r = $o(t), X = ye(e, Ze), ne = /* @__PURE__ */ new Set(), P = 0, ue = Fc.getSymbolConstructor(), D.attachFlowNodeDebugInfo(ge), D.attachFlowNodeDebugInfo(ie), e.locals || ((zt = hi) == null || zt.push(hi.Phase.Bind, "bindSourceFile", { path: e.path }, !0), St(e), (Yn = hi) == null || Yn.pop(), e.symbolCount = P, e.classifiableNames = ne, Fl()), e = void 0, t = void 0, r = void 0, i = void 0, o = void 0, s = void 0, c = void 0, f = void 0, d = void 0, y = !1, m = void 0, b = void 0, A = void 0, C = void 0, I = void 0, O = void 0, k = void 0, U = void 0, j = !1, Y = !1, te = 0; } function ye(G, Ze) { return f_(Ze, "alwaysStrict") && !G.isDeclarationFile ? !0 : !!G.externalModuleIndicator; } function Te(G, Ze) { return P++, new ue(G, Ze); } function ee(G, Ze, zt) { G.flags |= zt, Ze.symbol = G, G.declarations = ny(G.declarations, Ze), zt & 1955 && !G.exports && (G.exports = ao()), zt & 6240 && !G.members && (G.members = ao()), G.constEnumOnlyModule && G.flags & 304 && (G.constEnumOnlyModule = !1), zt & 111551 && dN(G, Ze); } function $e(G) { if (G.kind === 274) return G.isExportEquals ? "export=" : "default"; const Ze = La(G); if (Ze) { if (ku(G)) { const zt = P_(Ze); return Hp(G) ? "__global" : `"${zt}"`; } if (Ze.kind === 164) { const zt = Ze.expression; if (Hf(zt)) return al(zt.text); if (o3(zt)) return mo(zt.operator) + zt.operand.text; D.fail("Only computed properties with literal names have declaration names"); } if (ki(Ze)) { const zt = Ec(G); if (!zt) return; const Yn = zt.symbol; return xN(Yn, Ze.escapedText); } return O_(Ze) ? PI(Ze) : void 0; } switch (G.kind) { case 173: return "__constructor"; case 181: case 176: case 326: return "__call"; case 182: case 177: return "__new"; case 178: return "__index"; case 275: return "__export"; case 308: return "export="; case 223: if (xl(G) === 2) return "export="; D.fail("Unknown binary declaration kind"); break; case 320: return MA(G) ? "__new" : "__call"; case 166: return D.assert(G.parent.kind === 320, "Impossible parameter parent kind", () => `parent is: ${D.formatSyntaxKind(G.parent.kind)}, expected JSDocFunctionType`), "arg" + G.parent.parameters.indexOf(G); } } function Ge(G) { return du(G) ? Is(G.name) : Zi(D.checkDefined($e(G))); } function Fe(G, Ze, zt, Yn, ka, Ca, Ce) { D.assert(Ce || !Lv(zt)); const Be = Jr(zt, 1024) || od(zt) && zt.name.escapedText === "default", Lt = Ce ? "__computed" : Be && Ze ? "default" : $e(zt); let Ot; if (Lt === void 0) Ot = Te(0, "__missing"); else if (Ot = G.get(Lt), Yn & 2885600 && ne.add(Lt), !Ot) G.set(Lt, Ot = Te(0, Lt)), Ca && (Ot.isReplaceableByMethod = !0); else { if (Ca && !Ot.isReplaceableByMethod) return Ot; if (Ot.flags & ka) { if (Ot.isReplaceableByMethod) G.set(Lt, Ot = Te(0, Lt)); else if (!(Yn & 3 && Ot.flags & 67108864)) { du(zt) && Bo(zt.name, zt); let pn = Ot.flags & 2 ? _.Cannot_redeclare_block_scoped_variable_0 : _.Duplicate_identifier_0, vn = !0; (Ot.flags & 384 || Yn & 384) && (pn = _.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations, vn = !1); let Tn = !1; Ne(Ot.declarations) && (Be || Ot.declarations && Ot.declarations.length && zt.kind === 274 && !zt.isExportEquals) && (pn = _.A_module_cannot_have_multiple_default_exports, vn = !1, Tn = !0); const Wn = []; Xp(zt) && Sl(zt.type) && Jr(zt, 1) && Ot.flags & 2887656 && Wn.push(le(zt, _.Did_you_mean_0, `export type { ${Zi(zt.name.escapedText)} }`)); const Hr = La(zt) || zt; Ye(Ot.declarations, (tr, fn) => { const ur = La(tr) || tr, Ta = le(ur, pn, vn ? Ge(tr) : void 0); e.bindDiagnostics.push(Tn ? qo(Ta, le(Hr, fn === 0 ? _.Another_export_default_is_here : _.and_here)) : Ta), Tn && Wn.push(le(ur, _.The_first_export_default_is_here)); }); const Hi = le(Hr, pn, vn ? Ge(zt) : void 0); e.bindDiagnostics.push(qo(Hi, ...Wn)), Ot = Te(0, Lt); } } } return ee(Ot, zt, Yn), Ot.parent ? D.assert(Ot.parent === Ze, "Existing symbol parent should match new one") : Ot.parent = Ze, Ot; } function We(G, Ze, zt) { const Yn = !!(cy(G) & 1) || Re(G); if (Ze & 2097152) return G.kind === 278 || G.kind === 268 && Yn ? Fe(o.symbol.exports, o.symbol, G, Ze, zt) : (D.assertNode(o, Im), Fe(o.locals, void 0, G, Ze, zt)); if (c_(G) && D.assert(dr(G)), !ku(G) && (Yn || o.flags & 64)) { if (!Im(o) || !o.locals || Jr(G, 1024) && !$e(G)) return Fe(o.symbol.exports, o.symbol, G, Ze, zt); const ka = Ze & 111551 ? 1048576 : 0, Ca = Fe(o.locals, void 0, G, ka, zt); return Ca.exportSymbol = Fe(o.symbol.exports, o.symbol, G, Ze, zt), G.localSymbol = Ca, Ca; } else return D.assertNode(o, Im), Fe(o.locals, void 0, G, Ze, zt); } function Re(G) { if (G.parent && Hl(G) && (G = G.parent), !c_(G)) return !1; if (!LO(G) && G.fullName) return !0; const Ze = La(G); return Ze ? !!(MN(Ze.parent) && Zr(Ze.parent) || _u(Ze.parent) && cy(Ze.parent) & 1) : !1; } function Pe(G, Ze) { const zt = o, Yn = s, ka = c; if (Ze & 1 ? (G.kind !== 216 && (s = o), o = c = G, Ze & 32 && (o.locals = ao(), vo(o))) : Ze & 2 && (c = G, Ze & 32 && (c.locals = void 0)), Ze & 4) { const Ca = m, Ce = b, Be = A, Lt = C, Ot = k, pn = U, vn = j, Tn = Ze & 16 && !Jr(G, 512) && !G.asteriskToken && !!oT(G) || G.kind === 172; Tn || (m = wT({ flags: 2 }), Ze & 144 && (m.node = G)), C = Tn || G.kind === 173 || dr(G) && (G.kind === 259 || G.kind === 215) ? On() : void 0, k = void 0, b = void 0, A = void 0, U = void 0, j = !1, ot(G), G.flags &= -2817, !(m.flags & 1) && Ze & 8 && s_(G.body) && (G.flags |= 256, j && (G.flags |= 512), G.endFlowNode = m), G.kind === 308 && (G.flags |= te, G.endFlowNode = m), C && (fr(C, m), m = xt(C), (G.kind === 173 || G.kind === 172 || dr(G) && (G.kind === 259 || G.kind === 215)) && (G.returnFlowNode = m)), Tn || (m = Ca), b = Ce, A = Be, C = Lt, k = Ot, U = pn, j = vn; } else Ze & 64 ? (y = !1, ot(G), D.assertNotNode(G, Ve), G.flags = y ? G.flags | 128 : G.flags & -129) : ot(G); o = zt, s = Yn, c = ka; } function Ke(G) { He(G, (Ze) => Ze.kind === 259 ? St(Ze) : void 0), He(G, (Ze) => Ze.kind !== 259 ? St(Ze) : void 0); } function He(G, Ze = St) { G !== void 0 && Ye(G, Ze); } function Me(G) { Oa(G, St, He); } function ot(G) { const Ze = Y; if (Y = !1, Tp(G)) { Me(G), _n(G), Y = Ze; return; } switch (G.kind >= 240 && G.kind <= 256 && !t.allowUnreachableCode && (G.flowNode = m), G.kind) { case 244: en(G); break; case 243: Pn(G); break; case 245: xr(G); break; case 246: case 247: Ur(G); break; case 242: Ie(G); break; case 250: case 254: gt(G); break; case 249: case 248: _t(G); break; case 255: _e(G); break; case 252: re(G); break; case 266: me(G); break; case 292: V(G); break; case 241: je(G); break; case 253: Je(G); break; case 221: br(G); break; case 222: ce(G); break; case 223: if (my(G)) { Y = Ze, pt(G); return; } H(G); break; case 217: rt(G); break; case 224: K(G); break; case 257: Z(G); break; case 208: case 209: Bi(G); break; case 210: fo(G); break; case 232: Si(G); break; case 349: case 341: case 343: ht(G); break; case 308: { Ke(G.statements), St(G.endOfFileToken); break; } case 238: case 265: Ke(G.statements); break; case 205: we(G); break; case 166: q(G); break; case 207: case 206: case 299: case 227: Y = Ze; default: Me(G); break; } _n(G), Y = Ze; } function At(G) { switch (G.kind) { case 79: case 80: case 108: case 208: case 209: return Vt(G); case 210: return et(G); case 214: case 232: return At(G.expression); case 223: return nn(G); case 221: return G.operator === 53 && At(G.operand); case 218: return At(G.expression); } return !1; } function bt(G) { return HI(G) || (Pr(G) || Tx(G) || Pd(G)) && bt(G.expression) || vr(G) && G.operatorToken.kind === 27 && bt(G.right) || sl(G) && (Hf(G.argumentExpression) || Vl(G.argumentExpression)) && bt(G.expression) || Ku(G) && bt(G.left); } function Vt(G) { return bt(G) || fu(G) && Vt(G.expression); } function et(G) { if (G.arguments) { for (const Ze of G.arguments) if (Vt(Ze)) return !0; } return !!(G.expression.kind === 208 && Vt(G.expression.expression)); } function it(G, Ze) { return fC(G) && Xt(G.expression) && Ts(Ze); } function nn(G) { switch (G.operatorToken.kind) { case 63: case 75: case 76: case 77: return Vt(G.left); case 34: case 35: case 36: case 37: return Xt(G.left) || Xt(G.right) || it(G.right, G.left) || it(G.left, G.right); case 102: return Xt(G.left); case 101: return At(G.right); case 27: return At(G.right); } return !1; } function Xt(G) { switch (G.kind) { case 214: return Xt(G.expression); case 223: switch (G.operatorToken.kind) { case 63: return Xt(G.left); case 27: return Xt(G.right); } } return Vt(G); } function On() { return wT({ flags: 4, antecedents: void 0 }); } function Hn() { return wT({ flags: 8, antecedents: void 0 }); } function In(G, Ze, zt) { return wT({ flags: 1024, target: G, antecedents: Ze, antecedent: zt }); } function Yt(G) { G.flags |= G.flags & 2048 ? 4096 : 2048; } function fr(G, Ze) { !(Ze.flags & 1) && !Ii(G.antecedents, Ze) && ((G.antecedents || (G.antecedents = [])).push(Ze), Yt(Ze)); } function xi(G, Ze, zt) { return Ze.flags & 1 ? Ze : zt ? (zt.kind === 110 && G & 64 || zt.kind === 95 && G & 32) && !pM(zt) && !YH(zt.parent) ? ge : At(zt) ? (Yt(Ze), wT({ flags: G, antecedent: Ze, node: zt })) : Ze : G & 32 ? Ze : ge; } function Ji(G, Ze, zt, Yn) { return Yt(G), wT({ flags: 128, antecedent: G, switchStatement: Ze, clauseStart: zt, clauseEnd: Yn }); } function Ki(G, Ze, zt) { Yt(Ze); const Yn = wT({ flags: G, antecedent: Ze, node: zt }); return k && fr(k, Yn), Yn; } function Rr(G, Ze) { return Yt(G), wT({ flags: 512, antecedent: G, node: Ze }); } function xt(G) { const Ze = G.antecedents; return Ze ? Ze.length === 1 ? Ze[0] : G : ge; } function gn(G) { const Ze = G.parent; switch (Ze.kind) { case 242: case 244: case 243: return Ze.expression === G; case 245: case 224: return Ze.condition === G; } return !1; } function Ht(G) { for (; ; ) if (G.kind === 214) G = G.expression; else if (G.kind === 221 && G.operator === 53) G = G.operand; else return ON(G); } function ln(G) { return Lz(Us(G)); } function rr(G) { for (; Pd(G.parent) || Nv(G.parent) && G.parent.operator === 53; ) G = G.parent; return !gn(G) && !Ht(G.parent) && !(fu(G.parent) && G.parent.expression === G); } function lr(G, Ze, zt, Yn) { const ka = I, Ca = O; I = zt, O = Yn, G(Ze), I = ka, O = Ca; } function Di(G, Ze, zt) { lr(St, G, Ze, zt), (!G || !ln(G) && !Ht(G) && !(fu(G) && pI(G))) && (fr(Ze, xi(32, m, G)), fr(zt, xi(64, m, G))); } function _i(G, Ze, zt) { const Yn = b, ka = A; b = Ze, A = zt, St(G), b = Yn, A = ka; } function Rn(G, Ze) { let zt = U; for (; zt && G.parent.kind === 253; ) zt.continueTarget = Ze, zt = zt.next, G = G.parent; return Ze; } function en(G) { const Ze = Rn(G, Hn()), zt = On(), Yn = On(); fr(Ze, m), m = Ze, Di(G.expression, zt, Yn), m = xt(zt), _i(G.statement, Yn, Ze), fr(Ze, m), m = xt(Yn); } function Pn(G) { const Ze = Hn(), zt = Rn(G, On()), Yn = On(); fr(Ze, m), m = Ze, _i(G.statement, Yn, zt), fr(zt, m), m = xt(zt), Di(G.expression, Ze, Yn), m = xt(Yn); } function xr(G) { const Ze = Rn(G, Hn()), zt = On(), Yn = On(); St(G.initializer), fr(Ze, m), m = Ze, Di(G.condition, zt, Yn), m = xt(zt), _i(G.statement, Yn, Ze), St(G.incrementor), fr(Ze, m), m = xt(Yn); } function Ur(G) { const Ze = Rn(G, Hn()), zt = On(); St(G.expression), fr(Ze, m), m = Ze, G.kind === 247 && St(G.awaitModifier), fr(zt, m), St(G.initializer), G.initializer.kind !== 258 && on(G.initializer), _i(G.statement, zt, Ze), fr(Ze, m), m = xt(zt); } function Ie(G) { const Ze = On(), zt = On(), Yn = On(); Di(G.expression, Ze, zt), m = xt(Ze), St(G.thenStatement), fr(Yn, m), m = xt(zt), St(G.elseStatement), fr(Yn, m), m = xt(Yn); } function gt(G) { St(G.expression), G.kind === 250 && (j = !0, C && fr(C, m)), m = ge; } function Nt(G) { for (let Ze = U; Ze; Ze = Ze.next) if (Ze.name === G) return Ze; } function xe(G, Ze, zt) { const Yn = G.kind === 249 ? Ze : zt; Yn && (fr(Yn, m), m = ge); } function _t(G) { if (St(G.label), G.label) { const Ze = Nt(G.label.escapedText); Ze && (Ze.referenced = !0, xe(G, Ze.breakTarget, Ze.continueTarget)); } else xe(G, b, A); } function _e(G) { const Ze = C, zt = k, Yn = On(), ka = On(); let Ca = On(); if (G.finallyBlock && (C = ka), fr(Ca, m), k = Ca, St(G.tryBlock), fr(Yn, m), G.catchClause && (m = xt(Ca), Ca = On(), fr(Ca, m), k = Ca, St(G.catchClause), fr(Yn, m)), C = Ze, k = zt, G.finallyBlock) { const Ce = On(); Ce.antecedents = ha(ha(Yn.antecedents, Ca.antecedents), ka.antecedents), m = Ce, St(G.finallyBlock), m.flags & 1 ? m = ge : (C && ka.antecedents && fr(C, In(Ce, ka.antecedents, m)), k && Ca.antecedents && fr(k, In(Ce, Ca.antecedents, m)), m = Yn.antecedents ? In(Ce, Yn.antecedents, m) : ge); } else m = xt(Yn); } function re(G) { const Ze = On(); St(G.expression); const zt = b, Yn = B; b = Ze, B = m, St(G.caseBlock), fr(Ze, m); const ka = Ye(G.caseBlock.clauses, (Ca) => Ca.kind === 293); G.possiblyExhaustive = !ka && !Ze.antecedents, ka || fr(Ze, Ji(B, G, 0, 0)), b = zt, B = Yn, m = xt(Ze); } function me(G) { const Ze = G.clauses, zt = At(G.parent.expression); let Yn = ge; for (let ka = 0; ka < Ze.length; ka++) { const Ca = ka; for (; !Ze[ka].statements.length && ka + 1 < Ze.length; ) St(Ze[ka]), ka++; const Ce = On(); fr(Ce, zt ? Ji(B, G.parent, Ca, ka + 1) : B), fr(Ce, Yn), m = xt(Ce); const Be = Ze[ka]; St(Be), Yn = m, !(m.flags & 1) && ka !== Ze.length - 1 && t.noFallthroughCasesInSwitch && (Be.fallthroughFlowNode = m); } } function V(G) { const Ze = m; m = B, St(G.expression), m = Ze, He(G.statements); } function je(G) { St(G.expression), Qe(G.expression); } function Qe(G) { if (G.kind === 210) { const Ze = G; Ze.expression.kind !== 106 && HI(Ze.expression) && (m = Rr(m, Ze)); } } function Je(G) { const Ze = On(); U = { next: U, name: G.label.escapedText, breakTarget: Ze, continueTarget: void 0, referenced: !1 }, St(G.label), St(G.statement), !U.referenced && !t.allowUnusedLabels && jt(fde(t), G.label, _.Unused_label), U = U.next, fr(Ze, m), m = xt(Ze); } function Ut(G) { G.kind === 223 && G.operatorToken.kind === 63 ? on(G.left) : on(G); } function on(G) { if (bt(G)) m = Ki(16, m, G); else if (G.kind === 206) for (const Ze of G.elements) Ze.kind === 227 ? on(Ze.expression) : Ut(Ze); else if (G.kind === 207) for (const Ze of G.properties) Ze.kind === 299 ? Ut(Ze.initializer) : Ze.kind === 300 ? on(Ze.name) : Ze.kind === 301 && on(Ze.expression); } function Sn(G, Ze, zt) { const Yn = On(); G.operatorToken.kind === 55 || G.operatorToken.kind === 76 ? Di(G.left, Yn, zt) : Di(G.left, Ze, Yn), m = xt(Yn), St(G.operatorToken), jI(G.operatorToken.kind) ? (lr(St, G.right, Ze, zt), on(G.left), fr(Ze, xi(32, m, G)), fr(zt, xi(64, m, G))) : Di(G.right, Ze, zt); } function br(G) { if (G.operator === 53) { const Ze = I; I = O, O = Ze, Me(G), O = I, I = Ze; } else Me(G), (G.operator === 45 || G.operator === 46) && on(G.operand); } function ce(G) { Me(G), (G.operator === 45 || G.operator === 46) && on(G.operand); } function pt(G) { Y ? (Y = !1, St(G.operatorToken), St(G.right), Y = !0, St(G.left)) : (Y = !0, St(G.left), Y = !1, St(G.operatorToken), St(G.right)), on(G.left); } function Wt() { return F7(G, Ze, zt, Yn, ka, void 0); function G(Ce, Be) { if (Be) { Be.stackIndex++, Bo(Ce, i); const Ot = X; va(Ce); const pn = i; i = Ce, Be.skip = !1, Be.inStrictModeStack[Be.stackIndex] = Ot, Be.parentStack[Be.stackIndex] = pn; } else Be = { stackIndex: 0, skip: !1, inStrictModeStack: [void 0], parentStack: [void 0] }; const Lt = Ce.operatorToken.kind; if (NN(Lt) || jI(Lt)) { if (rr(Ce)) { const Ot = On(); Sn(Ce, Ot, Ot), m = xt(Ot); } else Sn(Ce, I, O); Be.skip = !0; } return Be; } function Ze(Ce, Be, Lt) { if (!Be.skip) { const Ot = Ca(Ce); return Lt.operatorToken.kind === 27 && Qe(Ce), Ot; } } function zt(Ce, Be, Lt) { Be.skip || St(Ce); } function Yn(Ce, Be, Lt) { if (!Be.skip) { const Ot = Ca(Ce); return Lt.operatorToken.kind === 27 && Qe(Ce), Ot; } } function ka(Ce, Be) { if (!Be.skip) { const pn = Ce.operatorToken.kind; if (py(pn) && !mh(Ce) && (on(Ce.left), pn === 63 && Ce.left.kind === 209)) { const vn = Ce.left; Xt(vn.expression) && (m = Ki(256, m, Ce)); } } const Lt = Be.inStrictModeStack[Be.stackIndex], Ot = Be.parentStack[Be.stackIndex]; Lt !== void 0 && (X = Lt), Ot !== void 0 && (i = Ot), Be.skip = !1, Be.stackIndex--; } function Ca(Ce) { if (Ce && vr(Ce) && !my(Ce)) return Ce; St(Ce); } } function rt(G) { Me(G), G.expression.kind === 208 && on(G.expression); } function K(G) { const Ze = On(), zt = On(), Yn = On(); Di(G.condition, Ze, zt), m = xt(Ze), St(G.questionToken), St(G.whenTrue), fr(Yn, m), m = xt(zt), St(G.colonToken), St(G.whenFalse), fr(Yn, m), m = xt(Yn); } function Oe(G) { const Ze = Ic(G) ? void 0 : G.name; if (Ja(Ze)) for (const zt of Ze.elements) Oe(zt); else m = Ki(16, m, G); } function Z(G) { Me(G), (G.initializer || bA(G.parent.parent)) && Oe(G); } function we(G) { St(G.dotDotDotToken), St(G.propertyName), Rt(G.initializer), St(G.name); } function q(G) { He(G.modifiers), St(G.dotDotDotToken), St(G.questionToken), St(G.type), Rt(G.initializer), St(G.name); } function Rt(G) { if (!G) return; const Ze = m; if (St(G), Ze === ge || Ze === m) return; const zt = On(); fr(zt, Ze), fr(zt, m), m = xt(zt); } function ht(G) { St(G.tagName), G.kind !== 343 && G.fullName && (Bo(G.fullName, G), Dv(G.fullName, !1)), typeof G.comment != "string" && He(G.comment); } function dt(G) { Me(G); const Ze = V0(G); Ze && Ze.kind !== 171 && ee(Ze.symbol, Ze, 32); } function dn(G, Ze, zt) { lr(St, G, Ze, zt), (!fu(G) || pI(G)) && (fr(Ze, xi(32, m, G)), fr(zt, xi(64, m, G))); } function $n(G) { switch (G.kind) { case 208: St(G.questionDotToken), St(G.name); break; case 209: St(G.questionDotToken), St(G.argumentExpression); break; case 210: St(G.questionDotToken), He(G.typeArguments), He(G.arguments); break; } } function ii(G, Ze, zt) { const Yn = _I(G) ? On() : void 0; dn(G.expression, Yn || Ze, zt), Yn && (m = xt(Yn)), lr($n, G, Ze, zt), pI(G) && (fr(Ze, xi(32, m, G)), fr(zt, xi(64, m, G))); } function Ti(G) { if (rr(G)) { const Ze = On(); ii(G, Ze, Ze), m = xt(Ze); } else ii(G, I, O); } function Si(G) { fu(G) ? Ti(G) : Me(G); } function Bi(G) { fu(G) ? Ti(G) : Me(G); } function fo(G) { if (fu(G)) Ti(G); else { const Ze = Us(G.expression); Ze.kind === 215 || Ze.kind === 216 ? (He(G.typeArguments), He(G.arguments), St(G.expression)) : (Me(G), G.expression.kind === 106 && (m = Rr(m, G))); } if (G.expression.kind === 208) { const Ze = G.expression; Ve(Ze.name) && Xt(Ze.expression) && sz(Ze.name) && (m = Ki(256, m, G)); } } function vo(G) { f && (f.nextContainer = G), f = G; } function no(G, Ze, zt) { switch (o.kind) { case 264: return We(G, Ze, zt); case 308: return Gi(G, Ze, zt); case 228: case 260: return sa(G, Ze, zt); case 263: return Fe(o.symbol.exports, o.symbol, G, Ze, zt); case 184: case 325: case 207: case 261: case 289: return Fe(o.symbol.members, o.symbol, G, Ze, zt); case 181: case 182: case 176: case 177: case 326: case 178: case 171: case 170: case 173: case 174: case 175: case 259: case 215: case 216: case 320: case 172: case 262: case 197: return o.locals && D.assertNode(o, Im), Fe(o.locals, void 0, G, Ze, zt); } } function sa(G, Ze, zt) { return za(G) ? Fe(o.symbol.exports, o.symbol, G, Ze, zt) : Fe(o.symbol.members, o.symbol, G, Ze, zt); } function Gi(G, Ze, zt) { return Yl(e) ? We(G, Ze, zt) : Fe(e.locals, void 0, G, Ze, zt); } function qr(G) { const Ze = ji(G) ? G : ri(G.body, Yp); return !!Ze && Ze.statements.some((zt) => Kc(zt) || Pl(zt)); } function is(G) { G.flags & 16777216 && !qr(G) ? G.flags |= 64 : G.flags &= -65; } function ui(G) { if (is(G), ku(G)) if (Jr(G, 1) && It(G, _.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible), kW(G)) la(G); else { let Ze; if (G.name.kind === 10) { const { text: Yn } = G.name; Ze = YA(Yn), Ze === void 0 && It(G.name, _.Pattern_0_can_have_at_most_one_Asterisk_character, Yn); } const zt = no(G, 512, 110735); e.patternAmbientModules = Fn(e.patternAmbientModules, Ze && !Va(Ze) ? { pattern: Ze, symbol: zt } : void 0); } else { const Ze = la(G); if (Ze !== 0) { const { symbol: zt } = G; zt.constEnumOnlyModule = !(zt.flags & 304) && Ze === 2 && zt.constEnumOnlyModule !== !1; } } } function la(G) { const Ze = _g(G), zt = Ze !== 0; return no(G, zt ? 512 : 1024, zt ? 110735 : 0), Ze; } function wn(G) { const Ze = Te(131072, $e(G)); ee(Ze, G, 131072); const zt = Te(2048, "__type"); ee(zt, G, 2048), zt.members = ao(), zt.members.set(Ze.escapedName, Ze); } function da(G) { return Ml(G, 4096, "__object"); } function $l(G) { return Ml(G, 4096, "__jsxAttributes"); } function tl(G, Ze, zt) { return no(G, Ze, zt); } function Ml(G, Ze, zt) { const Yn = Te(Ze, zt); return Ze & 106508 && (Yn.parent = o.symbol), ee(Yn, G, Ze), Yn; } function zl(G, Ze, zt) { switch (c.kind) { case 264: We(G, Ze, zt); break; case 308: if (ef(o)) { We(G, Ze, zt); break; } default: D.assertNode(c, Im), c.locals || (c.locals = ao(), vo(c)), Fe(c.locals, void 0, G, Ze, zt); } } function Fl() { if (!d) return; const G = o, Ze = f, zt = c, Yn = i, ka = m; for (const Ca of d) { const Ce = Ca.parent.parent; o = nr(Ce.parent, (Lt) => !!(Zpe(Lt) & 1)) || e, c = Dm(Ce) || e, m = wT({ flags: 2 }), i = Ca, St(Ca.typeExpression); const Be = La(Ca); if ((LO(Ca) || !Ca.fullName) && Be && MN(Be.parent)) { const Lt = Zr(Be.parent); if (Lt) { jn(e.symbol, Be.parent, Lt, !!nr(Be, (pn) => Pr(pn) && pn.name.escapedText === "prototype"), !1); const Ot = o; switch (cN(Be.parent)) { case 1: case 2: ef(e) ? o = e : o = void 0; break; case 4: o = Be.parent.expression; break; case 3: o = Be.parent.expression.name; break; case 5: o = O1(e, Be.parent.expression) ? e : Pr(Be.parent.expression) ? Be.parent.expression.name : Be.parent.expression; break; case 0: return D.fail("Shouldn't have detected typedef or enum on non-assignment declaration"); } o && We(Ca, 524288, 788968), o = Ot; } } else LO(Ca) || !Ca.fullName || Ca.fullName.kind === 79 ? (i = Ca.parent, zl(Ca, 524288, 788968)) : St(Ca.fullName); } o = G, f = Ze, c = zt, i = Yn, m = ka; } function So(G) { if (!e.parseDiagnostics.length && !(G.flags & 16777216) && !(G.flags & 8388608) && !fue(G)) { const Ze = M0(G); if (Ze === void 0) return; X && Ze >= 117 && Ze <= 125 ? e.bindDiagnostics.push(le(G, Aa(G), Is(G))) : Ze === 133 ? Yl(e) && WM(G) ? e.bindDiagnostics.push(le(G, _.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module, Is(G))) : G.flags & 32768 && e.bindDiagnostics.push(le(G, _.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, Is(G))) : Ze === 125 && G.flags & 8192 && e.bindDiagnostics.push(le(G, _.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, Is(G))); } } function Aa(G) { return Ec(G) ? _.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode : e.externalModuleIndicator ? _.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode : _.Identifier_expected_0_is_a_reserved_word_in_strict_mode; } function Jo(G) { G.escapedText === "#constructor" && (e.parseDiagnostics.length || e.bindDiagnostics.push(le(G, _.constructor_is_a_reserved_word, Is(G)))); } function Bl(G) { X && gd(G.left) && py(G.operatorToken.kind) && jc(G, G.left); } function Xc(G) { X && G.variableDeclaration && jc(G, G.variableDeclaration.name); } function Ud(G) { if (X && G.expression.kind === 79) { const Ze = p1(e, G.expression); e.bindDiagnostics.push(Lc(e, Ze.start, Ze.length, _.delete_cannot_be_called_on_an_identifier_in_strict_mode)); } } function rc(G) { return Ve(G) && (G.escapedText === "eval" || G.escapedText === "arguments"); } function jc(G, Ze) { if (Ze && Ze.kind === 79) { const zt = Ze; if (rc(zt)) { const Yn = p1(e, Ze); e.bindDiagnostics.push(Lc(e, Yn.start, Yn.length, ks(G), Or(zt))); } } } function ks(G) { return Ec(G) ? _.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 ? _.Invalid_use_of_0_Modules_are_automatically_in_strict_mode : _.Invalid_use_of_0_in_strict_mode; } function pl(G) { X && jc(G, G.name); } function Qs(G) { return Ec(G) ? _.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode : e.externalModuleIndicator ? _.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode : _.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5; } function qs(G) { if (r < 2 && c.kind !== 308 && c.kind !== 264 && !gA(c)) { const Ze = p1(e, G); e.bindDiagnostics.push(Lc(e, Ze.start, Ze.length, Qs(G))); } } function Zt(G) { r < 1 && X && G.numericLiteralFlags & 32 && e.bindDiagnostics.push(le(G, _.Octal_literals_are_not_allowed_in_strict_mode)); } function Gl(G) { X && jc(G, G.operand); } function yu(G) { X && (G.operator === 45 || G.operator === 46) && jc(G, G.operand); } function Bu(G) { X && It(G, _.with_statements_are_not_allowed_in_strict_mode); } function de(G) { X && $o(t) >= 2 && (cce(G.statement) || sc(G.statement)) && It(G.label, _.A_label_is_not_allowed_here); } function It(G, Ze, zt, Yn, ka) { const Ca = _y(e, G.pos); e.bindDiagnostics.push(Lc(e, Ca.start, Ca.length, Ze, zt, Yn, ka)); } function jt(G, Ze, zt) { Q(G, Ze, Ze, zt); } function Q(G, Ze, zt, Yn) { at(G, { pos: nT(Ze, e), end: zt.end }, Yn); } function at(G, Ze, zt) { const Yn = Lc(e, Ze.pos, Ze.end - Ze.pos, zt); G ? e.bindDiagnostics.push(Yn) : e.bindSuggestionDiagnostics = Fn(e.bindSuggestionDiagnostics, { ...Yn, category: 2 }); } function St(G) { if (!G) return; Bo(G, i), hi && (G.tracingPath = e.path); const Ze = X; if (va(G), G.kind > 162) { const zt = i; i = G; const Yn = Zpe(G); Yn === 0 ? ot(G) : Pe(G, Yn), i = zt; } else { const zt = i; G.kind === 1 && (i = G), _n(G), i = zt; } X = Ze; } function _n(G) { if (yf(G)) if (dr(G)) for (const Ze of G.jsDoc) St(Ze); else for (const Ze of G.jsDoc) Bo(Ze, G), Dv(Ze, !1); } function kr(G) { if (!X) for (const Ze of G) { if (!dp(Ze)) return; if (Nr(Ze)) { X = !0; return; } } } function Nr(G) { const Ze = f1(e, G.expression); return Ze === '"use strict"' || Ze === "'use strict'"; } function va(G) { switch (G.kind) { case 79: if (G.flags & 2048) { let Ce = G.parent; for (; Ce && !c_(Ce); ) Ce = Ce.parent; zl(Ce, 524288, 788968); break; } case 108: return m && (yt(G) || i.kind === 300) && (G.flowNode = m), So(G); case 163: m && XM(G) && (G.flowNode = m); break; case 233: case 106: G.flowNode = m; break; case 80: return Jo(G); case 208: case 209: const Ze = G; m && bt(Ze) && (Ze.flowNode = m), tue(Ze) && zi(Ze), dr(Ze) && e.commonJsModuleIndicator && ph(Ze) && !l8(c, "module") && Fe(e.locals, void 0, Ze.expression, 134217729, 111550); break; case 223: switch (xl(G)) { case 1: Vd(G); break; case 2: Ul(G); break; case 3: lt(G.left, G); break; case 6: xo(G); break; case 4: Se(G); break; case 5: const Ce = G.left.expression; if (dr(G) && Ve(Ce)) { const Be = l8(c, Ce.escapedText); if (zM(Be == null ? void 0 : Be.valueDeclaration)) { Se(G); break; } } Pt(G); break; case 0: break; default: D.fail("Unknown binary expression special property assignment kind"); } return Bl(G); case 295: return Xc(G); case 217: return Ud(G); case 8: return Zt(G); case 222: return Gl(G); case 221: return yu(G); case 251: return Bu(G); case 253: return de(G); case 194: y = !0; return; case 179: break; case 165: return cf(G); case 166: return vu(G); case 257: return jd(G); case 205: return G.flowNode = m, jd(G); case 169: case 168: return as(G); case 299: case 300: return Ko(G, 4, 0); case 302: return Ko(G, 8, 900095); case 176: case 177: case 178: return no(G, 131072, 0); case 171: case 170: return Ko(G, 8192 | (G.questionToken ? 16777216 : 0), N_(G) ? 0 : 103359); case 259: return lf(G); case 173: return no(G, 16384, 0); case 174: return Ko(G, 32768, 46015); case 175: return Ko(G, 65536, 78783); case 181: case 320: case 326: case 182: return wn(G); case 184: case 325: case 197: return _o(G); case 335: return dt(G); case 207: return da(G); case 215: case 216: return g_(G); case 210: switch (xl(G)) { case 7: return Mt(G); case 8: return ul(G); case 9: return ae(G); case 0: break; default: return D.fail("Unknown call expression assignment declaration kind"); } dr(G) && cd(G); break; case 228: case 260: return X = !0, sf(G); case 261: return zl(G, 64, 788872); case 262: return zl(G, 524288, 788968); case 263: return Ql(G); case 264: return ui(G); case 289: return $l(G); case 288: return tl(G, 4, 0); case 268: case 271: case 273: case 278: return no(G, 2097152, 2097152); case 267: return lc(G); case 270: return vs(G); case 275: return ld(G); case 274: return cl(G); case 308: return kr(G.statements), Uo(); case 238: if (!gA(G.parent)) return; case 265: return kr(G.statements); case 344: if (G.parent.kind === 326) return vu(G); if (G.parent.kind !== 325) break; case 351: const ka = G, Ca = ka.isBracketed || ka.typeExpression && ka.typeExpression.type.kind === 319 ? 16777220 : 4; return no(ka, Ca, 0); case 349: case 341: case 343: return (d || (d = [])).push(G); case 342: return St(G.typeExpression); } } function as(G) { const Ze = Qd(G), zt = Ze ? 98304 : 4, Yn = Ze ? 13247 : 0; return Ko(G, zt | (G.questionToken ? 16777216 : 0), Yn); } function _o(G) { return Ml(G, 2048, "__type"); } function Uo() { if (is(e), Yl(e)) Ka(); else if (l_(e)) { Ka(); const G = e.symbol; Fe(e.symbol.exports, e.symbol, e, 4, 67108863), e.symbol = G; } } function Ka() { Ml(e, 512, `"${Od(e.fileName)}"`); } function cl(G) { if (!o.symbol || !o.symbol.exports) Ml(G, 111551, $e(G)); else { const Ze = GA(G) ? 2097152 : 4, zt = Fe(o.symbol.exports, o.symbol, G, Ze, 67108863); G.isExportEquals && dN(zt, G); } } function lc(G) { kt(G.modifiers) && e.bindDiagnostics.push(le(G, _.Modifiers_cannot_appear_here)); const Ze = ji(G.parent) ? Yl(G.parent) ? G.parent.isDeclarationFile ? void 0 : _.Global_module_exports_may_only_appear_in_declaration_files : _.Global_module_exports_may_only_appear_in_module_files : _.Global_module_exports_may_only_appear_at_top_level; Ze ? e.bindDiagnostics.push(le(G, Ze)) : (e.symbol.globalExports = e.symbol.globalExports || ao(), Fe(e.symbol.globalExports, e.symbol, G, 2097152, 2097152)); } function ld(G) { !o.symbol || !o.symbol.exports ? Ml(G, 8388608, $e(G)) : G.exportClause ? Sh(G.exportClause) && (Bo(G.exportClause, G), Fe(o.symbol.exports, o.symbol, G.exportClause, 2097152, 2097152)) : Fe(o.symbol.exports, o.symbol, G, 8388608, 0); } function vs(G) { G.name && no(G, 2097152, 2097152); } function ls(G) { return e.externalModuleIndicator && e.externalModuleIndicator !== !0 ? !1 : (e.commonJsModuleIndicator || (e.commonJsModuleIndicator = G, e.externalModuleIndicator || Ka()), !0); } function ul(G) { if (!ls(G)) return; const Ze = Js(G.arguments[0], void 0, (zt, Yn) => (Yn && ee(Yn, zt, 67110400), Yn)); Ze && Fe(Ze.exports, Ze, G, 1048580, 0); } function Vd(G) { if (!ls(G)) return; const Ze = Js(G.left.expression, void 0, (zt, Yn) => (Yn && ee(Yn, zt, 67110400), Yn)); if (Ze) { const Yn = TN(G.right) && (sT(G.left.expression) || ph(G.left.expression)) ? 2097152 : 1048580; Bo(G.left, G), Fe(Ze.exports, Ze, G.left, Yn, 0); } } function Ul(G) { if (!ls(G)) return; const Ze = oN(G.right); if (wz(Ze) || o === e && O1(e, Ze)) return; if (As(Ze) && Vn(Ze.properties, Xf)) { Ye(Ze.properties, Lf); return; } const zt = GA(G) ? 2097152 : 1049092, Yn = Fe(e.symbol.exports, e.symbol, G, zt | 67108864, 0); dN(Yn, G); } function Lf(G) { Fe(e.symbol.exports, e.symbol, G, 69206016, 0); } function Se(G) { if (D.assert(dr(G)), vr(G) && Pr(G.left) && ki(G.left.name) || Pr(G) && ki(G.name)) return; const zt = yd(G, !1, !1); switch (zt.kind) { case 259: case 215: let Yn = zt.symbol; if (vr(zt.parent) && zt.parent.operatorToken.kind === 63) { const Ce = zt.parent.left; lT(Ce) && W0(Ce.expression) && (Yn = bs(Ce.expression.expression, s)); } Yn && Yn.valueDeclaration && (Yn.members = Yn.members || ao(), Lv(G) ? Dt(G, Yn, Yn.members) : Fe(Yn.members, Yn, G, 67108868, 0), ee(Yn, Yn.valueDeclaration, 32)); break; case 173: case 169: case 171: case 174: case 175: case 172: const ka = zt.parent, Ca = za(zt) ? ka.symbol.exports : ka.symbol.members; Lv(G) ? Dt(G, ka.symbol, Ca) : Fe(Ca, ka.symbol, G, 67108868, 0, !0); break; case 308: if (Lv(G)) break; zt.commonJsModuleIndicator ? Fe(zt.symbol.exports, zt.symbol, G, 1048580, 0) : no(G, 1, 111550); break; default: D.failBadSyntaxKind(zt); } } function Dt(G, Ze, zt) { Fe(zt, Ze, G, 4, 0, !0, !0), Nn(G, Ze); } function Nn(G, Ze) { Ze && (Ze.assignmentDeclarationMembers || (Ze.assignmentDeclarationMembers = /* @__PURE__ */ new Map())).set(ds(G), G); } function zi(G) { G.expression.kind === 108 ? Se(G) : lT(G) && G.parent.parent.kind === 308 && (W0(G.expression) ? lt(G, G.parent) : sn(G)); } function xo(G) { Bo(G.left, G), Bo(G.right, G), Ri(G.left.expression, G.left, !1, !0); } function ae(G) { const Ze = bs(G.arguments[0].expression); Ze && Ze.valueDeclaration && ee(Ze, Ze.valueDeclaration, 32), wr(G, Ze, !0); } function lt(G, Ze) { const zt = G.expression, Yn = zt.expression; Bo(Yn, zt), Bo(zt, G), Bo(G, Ze), Ri(Yn, G, !0, !0); } function Mt(G) { let Ze = bs(G.arguments[0]); const zt = G.parent.parent.kind === 308; Ze = jn(Ze, G.arguments[0], zt, !1, !1), wr(G, Ze, !1); } function Pt(G) { var Ze; const zt = bs(G.left.expression, o) || bs(G.left.expression, c); if (!dr(G) && !nue(zt)) return; const Yn = YI(G.left); if (!(Ve(Yn) && ((Ze = l8(o, Yn.escapedText)) == null ? void 0 : Ze.flags) & 2097152)) if (Bo(G.left, G), Bo(G.right, G), Ve(G.left.expression) && o === e && O1(e, G.left.expression)) Vd(G); else if (Lv(G)) { Ml(G, 67108868, "__computed"); const ka = jn(zt, G.left.expression, Zr(G.left), !1, !1); Nn(G, ka); } else sn(ro(G.left, XS)); } function sn(G) { D.assert(!Ve(G)), Bo(G.expression, G), Ri(G.expression, G, !1, !1); } function jn(G, Ze, zt, Yn, ka) { return (G == null ? void 0 : G.flags) & 2097152 || (zt && !Yn && (G = Js(Ze, G, (Be, Lt, Ot) => { if (Lt) return ee(Lt, Be, 67110400), Lt; { const pn = Ot ? Ot.exports : e.jsGlobalAugmentations || (e.jsGlobalAugmentations = ao()); return Fe(pn, Ot, Be, 67110400, 110735); } })), ka && G && G.valueDeclaration && ee(G, G.valueDeclaration, 32)), G; } function wr(G, Ze, zt) { if (!Ze || !Ua(Ze)) return; const Yn = zt ? Ze.members || (Ze.members = ao()) : Ze.exports || (Ze.exports = ao()); let ka = 0, Ca = 0; Ys(JS(G)) ? (ka = 8192, Ca = 103359) : eo(G) && KS(G) && (kt(G.arguments[2].properties, (Ce) => { const Be = La(Ce); return !!Be && Ve(Be) && Or(Be) === "set"; }) && (ka |= 65540, Ca |= 78783), kt(G.arguments[2].properties, (Ce) => { const Be = La(Ce); return !!Be && Ve(Be) && Or(Be) === "get"; }) && (ka |= 32772, Ca |= 46015)), ka === 0 && (ka = 4, Ca = 0), Fe(Yn, Ze, G, ka | 67108864, Ca & -67108865); } function Zr(G) { return vr(G.parent) ? Vo(G.parent).parent.kind === 308 : G.parent.parent.kind === 308; } function Ri(G, Ze, zt, Yn) { let ka = bs(G, o) || bs(G, c); const Ca = Zr(Ze); ka = jn(ka, Ze.expression, Ca, zt, Yn), wr(Ze, ka, zt); } function Ua(G) { if (G.flags & 1072) return !0; const Ze = G.valueDeclaration; if (Ze && eo(Ze)) return !!JS(Ze); let zt = Ze ? Wi(Ze) ? Ze.initializer : vr(Ze) ? Ze.right : Pr(Ze) && vr(Ze.parent) ? Ze.parent.right : void 0 : void 0; if (zt = zt && oN(zt), zt) { const Yn = W0(Wi(Ze) ? Ze.name : vr(Ze) ? Ze.left : Ze); return !!U0(vr(zt) && (zt.operatorToken.kind === 56 || zt.operatorToken.kind === 60) ? zt.right : zt, Yn); } return !1; } function Vo(G) { for (; vr(G.parent); ) G = G.parent; return G.parent; } function bs(G, Ze = o) { if (Ve(G)) return l8(Ze, G.escapedText); { const zt = bs(G.expression); return zt && zt.exports && zt.exports.get(og(G)); } } function Js(G, Ze, zt) { if (O1(e, G)) return e.symbol; if (Ve(G)) return zt(G, bs(G), Ze); { const Yn = Js(G.expression, Ze, zt), ka = lN(G); return ki(ka) && D.fail("unexpected PrivateIdentifier"), zt(ka, Yn && Yn.exports && Yn.exports.get(og(G)), Yn); } } function cd(G) { !e.commonJsModuleIndicator && vd(G, !1) && ls(G); } function sf(G) { if (G.kind === 260) zl(G, 32, 899503); else { const ka = G.name ? G.name.escapedText : "__class"; Ml(G, 32, ka), G.name && ne.add(G.name.escapedText); } const { symbol: Ze } = G, zt = Te(4194308, "prototype"), Yn = Ze.exports.get(zt.escapedName); Yn && (G.name && Bo(G.name, G), e.bindDiagnostics.push(le(Yn.declarations[0], _.Duplicate_identifier_0, Nl(zt)))), Ze.exports.set(zt.escapedName, zt), zt.parent = Ze; } function Ql(G) { return m1(G) ? zl(G, 128, 899967) : zl(G, 256, 899327); } function jd(G) { if (X && jc(G, G.name), !Ja(G.name)) { const Ze = G.kind === 257 ? G : G.parent.parent; dr(G) && gl(t) !== 100 && g1(Ze) && !s1(G) && !(cy(G) & 1) ? no(G, 2097152, 2097152) : CW(G) ? zl(G, 2, 111551) : dT(G) ? no(G, 1, 111551) : no(G, 1, 111550); } } function vu(G) { if (!(G.kind === 344 && o.kind !== 326) && (X && !(G.flags & 16777216) && jc(G, G.name), Ja(G.name) ? Ml(G, 1, "__" + G.parent.parameters.indexOf(G)) : no(G, 1, 111551), Yd(G, G.parent))) { const Ze = G.parent.parent; Fe(Ze.symbol.members, Ze.symbol, G, 4 | (G.questionToken ? 16777216 : 0), 0); } } function lf(G) { !e.isDeclarationFile && !(G.flags & 16777216) && jA(G) && (te |= 2048), pl(G), X ? (qs(G), zl(G, 16, 110991)) : no(G, 16, 110991); } function g_(G) { !e.isDeclarationFile && !(G.flags & 16777216) && jA(G) && (te |= 2048), m && (G.flowNode = m), pl(G); const Ze = G.name ? G.name.escapedText : "__function"; return Ml(G, 16, Ze); } function Ko(G, Ze, zt) { return !e.isDeclarationFile && !(G.flags & 16777216) && jA(G) && (te |= 2048), m && VM(G) && (G.flowNode = m), Lv(G) ? Ml(G, Ze, "__computed") : no(G, Ze, zt); } function y_(G) { const Ze = nr(G, (zt) => zt.parent && cC(zt.parent) && zt.parent.extendsType === zt); return Ze && Ze.parent; } function cf(G) { var Ze, zt; if (mp(G.parent)) { const Yn = r3(G.parent); Yn ? (D.assertNode(Yn, Im), (Ze = Yn.locals) != null || (Yn.locals = ao()), Fe(Yn.locals, void 0, G, 262144, 526824)) : no(G, 262144, 526824); } else if (G.parent.kind === 192) { const Yn = y_(G.parent); Yn ? (D.assertNode(Yn, Im), (zt = Yn.locals) != null || (Yn.locals = ao()), Fe(Yn.locals, void 0, G, 262144, 526824)) : Ml(G, 262144, $e(G)); } else no(G, 262144, 526824); } function J_(G) { const Ze = _g(G); return Ze === 1 || Ze === 2 && S1(t); } function Tp(G) { if (!(m.flags & 1)) return !1; if (m === ge && (jR(G) && G.kind !== 239 || G.kind === 260 || G.kind === 264 && J_(G)) && (m = ie, !t.allowUnreachableCode)) { const zt = dde(t) && !(G.flags & 16777216) && (!sc(G) || !!(up(G.declarationList) & 3) || G.declarationList.declarations.some((Yn) => !!Yn.initializer)); OPe(G, (Yn, ka) => Q(zt, Yn, ka, _.Unreachable_code_detected)); } return !0; } } function OPe(e, t) { if (Ia(e) && Qpe(e) && oo(e.parent)) { const { statements: r } = e.parent, i = eq(r, e); ej(i, Qpe, (o, s) => t(i[o], i[s - 1])); } else t(e, e); } function Qpe(e) { return !pc(e) && !PPe(e) && !Y0(e) && !(sc(e) && !(up(e) & 3) && e.declarationList.declarations.some((t) => !t.initializer)); } function PPe(e) { switch (e.kind) { case 261: case 262: return !0; case 264: return _g(e) !== 1; case 263: return Jr(e, 2048); default: return !1; } } function O1(e, t) { let r = 0; const i = lj(); for (i.enqueue(t); !i.isEmpty() && r < 100; ) { if (r++, t = i.dequeue(), sT(t) || ph(t)) return !0; if (Ve(t)) { const o = l8(e, t.escapedText); if (o && o.valueDeclaration && Wi(o.valueDeclaration) && o.valueDeclaration.initializer) { const s = o.valueDeclaration.initializer; i.enqueue(s), Ku(s, !0) && (i.enqueue(s.left), i.enqueue(s.right)); } } } return !1; } function Zpe(e) { switch (e.kind) { case 228: case 260: case 263: case 207: case 184: case 325: case 289: return 1; case 261: return 65; case 264: case 262: case 197: case 178: return 33; case 308: return 37; case 174: case 175: case 171: if (VM(e)) return 173; case 173: case 259: case 170: case 176: case 326: case 320: case 181: case 177: case 182: case 172: return 45; case 215: case 216: return 61; case 265: return 4; case 169: return e.initializer ? 4 : 0; case 295: case 245: case 246: case 247: case 266: return 34; case 238: return qa(e.parent) || Cl(e.parent) ? 0 : 34; } return 0; } function l8(e, t) { var r, i, o, s, c; const f = (i = (r = ri(e, Im)) == null ? void 0 : r.locals) == null ? void 0 : i.get(t); if (f) return (o = f.exportSymbol) != null ? o : f; if (ji(e) && e.jsGlobalAugmentations && e.jsGlobalAugmentations.has(t)) return e.jsGlobalAugmentations.get(t); if (Lm(e)) return (c = (s = e.symbol) == null ? void 0 : s.exports) == null ? void 0 : c.get(t); } var CK, eme, MPe = L({ "src/compiler/binder.ts"() { Ra(), i1(), CK = /* @__PURE__ */ ((e) => (e[e.NonInstantiated = 0] = "NonInstantiated", e[e.Instantiated = 1] = "Instantiated", e[e.ConstEnumOnly = 2] = "ConstEnumOnly", e))(CK || {}), eme = NPe(); } }); function tme(e, t, r, i, o, s, c, f, d, y) { return m; function m(b = () => !0) { const A = [], C = []; return { walkType: (ne) => { try { return I(ne), { visitedTypes: wS(A), visitedSymbols: wS(C) }; } finally { ms(A), ms(C); } }, walkSymbol: (ne) => { try { return ue(ne), { visitedTypes: wS(A), visitedSymbols: wS(C) }; } finally { ms(A), ms(C); } } }; function I(ne) { if (!(!ne || A[ne.id] || (A[ne.id] = ne, ue(ne.symbol)))) { if (ne.flags & 524288) { const ie = ne, H = ie.objectFlags; H & 4 && O(ne), H & 32 && te(ne), H & 3 && Y(ne), H & 24 && P(ie); } ne.flags & 262144 && k(ne), ne.flags & 3145728 && B(ne), ne.flags & 4194304 && U(ne), ne.flags & 8388608 && j(ne); } } function O(ne) { I(ne.target), Ye(y(ne), I); } function k(ne) { I(f(ne)); } function B(ne) { Ye(ne.types, I); } function U(ne) { I(ne.type); } function j(ne) { I(ne.objectType), I(ne.indexType), I(ne.constraint); } function te(ne) { I(ne.typeParameter), I(ne.constraintType), I(ne.templateType), I(ne.modifiersType); } function X(ne) { const ge = t(ne); ge && I(ge.type), Ye(ne.typeParameters, I); for (const ie of ne.parameters) ue(ie); I(e(ne)), I(r(ne)); } function Y(ne) { P(ne), Ye(ne.typeParameters, I), Ye(i(ne), I), I(ne.thisType); } function P(ne) { const ge = o(ne); for (const ie of ge.indexInfos) I(ie.keyType), I(ie.type); for (const ie of ge.callSignatures) X(ie); for (const ie of ge.constructSignatures) X(ie); for (const ie of ge.properties) ue(ie); } function ue(ne) { if (!ne) return !1; const ge = go(ne); if (C[ge]) return !1; if (C[ge] = ne, !b(ne)) return !0; const ie = s(ne); return I(ie), ne.exports && ne.exports.forEach(ue), Ye(ne.declarations, (H) => { if (H.type && H.type.kind === 183) { const le = H.type, pe = c(d(le.exprName)); ue(pe); } }), !1; } } } var FPe = L({ "src/compiler/symbolWalker.ts"() { Ra(); } }); function g5({ importModuleSpecifierPreference: e, importModuleSpecifierEnding: t }, r, i, o) { const s = c(); return { relativePreference: o !== void 0 ? Oc(o) ? 0 : 1 : e === "relative" ? 0 : e === "non-relative" ? 1 : e === "project-relative" ? 3 : 2, getAllowedEndingsInPreferredOrder: (f) => { if ((f ?? i.impliedNodeFormat) === 99) return Uk(r, i.fileName) ? [3, 2] : [2]; if (gl(r) === 1) return [1, 2]; switch (s) { case 2: return [2, 0, 1]; case 3: return [3, 0, 2, 1]; case 1: return [1, 0, 2]; case 0: return [0, 1, 2]; default: D.assertNever(s); } } }; function c() { if (o !== void 0) { if (lx(o)) return 2; if (tc(o, "/index")) return 1; } return Qz(t, i.impliedNodeFormat, r, i); } } function BPe(e, t, r, i, o, s, c = {}) { const f = nme(e, t, r, i, o, g5({}, e, t, s), {}, c); if (f !== s) return f; } function y5(e, t, r, i, o, s = {}) { return nme(e, t, r, i, o, g5({}, e, t), {}, s); } function GPe(e, t, r, i, o, s = {}) { const c = LK(t.path, i), f = ume(t.path, r, i, o, s); return En(f, (d) => IK(d, c, t, i, e, o, !0, s.overrideImportMode)); } function nme(e, t, r, i, o, s, c, f = {}) { const d = LK(r, o), y = ume(r, i, o, c, f); return En(y, (m) => IK(m, d, t, o, e, c, void 0, f.overrideImportMode)) || ome(i, d, e, o, f.overrideImportMode || t.impliedNodeFormat, s); } function UPe(e, t, r, i, o = {}) { return rme(e, t, r, i, o)[0]; } function rme(e, t, r, i, o = {}) { var s; const c = CM(e); if (!c) return nt; const f = (s = r.getModuleSpecifierCache) == null ? void 0 : s.call(r), d = f == null ? void 0 : f.get(t.path, c.path, i, o); return [d == null ? void 0 : d.moduleSpecifiers, c, d == null ? void 0 : d.modulePaths, f]; } function ime(e, t, r, i, o, s, c = {}) { return ame(e, t, r, i, o, s, c).moduleSpecifiers; } function ame(e, t, r, i, o, s, c = {}) { let f = !1; const d = jPe(e, t); if (d) return { moduleSpecifiers: [d], computedWithoutCache: f }; let [y, m, b, A] = rme(e, i, o, s, c); if (y) return { moduleSpecifiers: y, computedWithoutCache: f }; if (!m) return { moduleSpecifiers: nt, computedWithoutCache: f }; f = !0, b || (b = dme(i.path, m.originalFileName, o)); const C = VPe(b, r, i, o, s, c); return A == null || A.set(i.path, m.path, s, c, b, C), { moduleSpecifiers: C, computedWithoutCache: f }; } function VPe(e, t, r, i, o, s = {}) { const c = LK(r.path, i), f = g5(o, t, r), d = Ye(e, (I) => Ye(i.getFileIncludeReasons().get(Hs(I.path, i.getCurrentDirectory(), c.getCanonicalFileName)), (O) => { if (O.kind !== 3 || O.file !== r.path || r.impliedNodeFormat && r.impliedNodeFormat !== xX(r, O.index)) return; const k = X5(r, O.index).text; return f.relativePreference !== 1 || !gf(k) ? k : void 0; })); if (d) return [d]; const y = kt(e, (I) => I.isInNodeModules); let m, b, A, C; for (const I of e) { const O = I.isInNodeModules ? IK(I, c, r, i, t, o, void 0, s.overrideImportMode) : void 0; if (m = Fn(m, O), O && I.isRedirect) return m; if (!O) { const k = ome(I.path, c, t, i, s.overrideImportMode || r.impliedNodeFormat, f, I.isRedirect); if (!k) continue; I.isRedirect ? A = Fn(A, k) : LH(k) ? b = Fn(b, k) : (!y || I.isInNodeModules) && (C = Fn(C, k)); } } return b != null && b.length ? b : A != null && A.length ? A : m != null && m.length ? m : D.checkDefined(C); } function LK(e, t) { const r = $c(t.useCaseSensitiveFileNames ? t.useCaseSensitiveFileNames() : !0), i = fi(e); return { getCanonicalFileName: r, importingSourceFileName: e, sourceDirectory: i }; } function ome(e, t, r, i, o, { getAllowedEndingsInPreferredOrder: s, relativePreference: c }, f) { const { baseUrl: d, paths: y, rootDirs: m } = r; if (f && !y) return; const { sourceDirectory: b, getCanonicalFileName: A } = t, C = s(o), I = m && HPe(m, e, b, A, C, r) || Vk(o1(Am(b, e, A)), C, r); if (!d && !y || c === 0) return f ? void 0 : I; const O = Na(yz(r, i) || d, i.getCurrentDirectory()), k = mme(e, O, A); if (!k) return f ? void 0 : I; const B = y && fme(k, y, C, i, r); if (f) return B; const U = B === void 0 && d !== void 0 ? Vk(k, C, r) : B; if (!U) return I; if (c === 1 && !gf(U)) return U; if (c === 3 && !gf(U)) { const j = r.configFilePath ? Hs(fi(r.configFilePath), i.getCurrentDirectory(), t.getCanonicalFileName) : t.getCanonicalFileName(i.getCurrentDirectory()), te = Hs(e, j, A), X = Ea(b, j), Y = Ea(te, j); if (X && !Y || !X && Y) return U; const P = lme(i, fi(te)); return lme(i, b) !== P ? U : I; } return hme(U) || c8(I) < c8(U) ? I : U; } function c8(e) { let t = 0; for (let r = Ea(e, "./") ? 2 : 0; r < e.length; r++) e.charCodeAt(r) === 47 && t++; return t; } function sme(e, t) { return e1(t.isRedirect, e.isRedirect) || JN(e.path, t.path); } function lme(e, t) { return e.getNearestAncestorDirectoryWithPackageJson ? e.getNearestAncestorDirectoryWithPackageJson(t) : !!$h(t, (r) => e.fileExists(Oi(r, "package.json")) ? !0 : void 0); } function cme(e, t, r, i, o) { var s; const c = H0(r), f = r.getCurrentDirectory(), d = r.isSourceOfProjectReferenceRedirect(t) ? r.getProjectReferenceRedirect(t) : void 0, y = Hs(t, f, c), m = r.redirectTargetsMap.get(y) || nt, A = [...d ? [d] : nt, t, ...m].map((B) => Na(B, f)); let C = !Vn(A, ok); if (!i) { const B = Ye(A, (U) => !(C && ok(U)) && o(U, d === U)); if (B) return B; } const I = (s = r.getSymlinkCache) == null ? void 0 : s.call(r).getSymlinkedDirectoriesByRealpath(), O = Na(t, f); return I && $h(fi(O), (B) => { const U = I.get(Iu(Hs(B, f, c))); if (U) return DH(e, B, c) ? !1 : Ye(A, (j) => { if (!DH(j, B, c)) return; const te = Am(B, j, c); for (const X of U) { const Y = mv(X, te), P = o(Y, j === d); if (C = !0, P) return P; } }); }) || (i ? Ye(A, (B) => C && ok(B) ? void 0 : o(B, B === d)) : void 0); } function ume(e, t, r, i, o = {}) { var s; const c = Hs(t, r.getCurrentDirectory(), H0(r)), f = (s = r.getModuleSpecifierCache) == null ? void 0 : s.call(r); if (f) { const y = f.get(e, c, i, o); if (y != null && y.modulePaths) return y.modulePaths; } const d = dme(e, t, r); return f && f.setModulePaths(e, c, i, o, d), d; } function dme(e, t, r) { const i = H0(r), o = /* @__PURE__ */ new Map(); cme(e, t, r, !0, (c, f) => { const d = Nx(c); o.set(c, { path: i(c), isRedirect: f, isInNodeModules: d }); }); const s = []; for (let c = fi(e); o.size !== 0; ) { const f = Iu(c); let d; o.forEach(({ path: m, isRedirect: b, isInNodeModules: A }, C) => { Ea(m, f) && ((d || (d = [])).push({ path: C, isRedirect: b, isInNodeModules: A }), o.delete(C)); }), d && (d.length > 1 && d.sort(sme), s.push(...d)); const y = fi(c); if (y === c) break; c = y; } if (o.size) { const c = ko(o.values()); c.length > 1 && c.sort(sme), s.push(...c); } return s; } function jPe(e, t) { var r; const i = (r = e.declarations) == null ? void 0 : r.find((c) => IW(c) && (!_1(c) || !Oc(P_(c.name)))); if (i) return i.name.text; const s = _a(e.declarations, (c) => { var f, d, y, m; if (!Hl(c)) return; const b = O(c); if (!((f = b == null ? void 0 : b.parent) != null && f.parent && Yp(b.parent) && ku(b.parent.parent) && ji(b.parent.parent.parent))) return; const A = (m = (y = (d = b.parent.parent.symbol.exports) == null ? void 0 : d.get("export=")) == null ? void 0 : y.valueDeclaration) == null ? void 0 : m.expression; if (!A) return; const C = t.getSymbolAtLocation(A); if (!C) return; if (((C == null ? void 0 : C.flags) & 2097152 ? t.getAliasedSymbol(C) : C) === c.symbol) return b.parent.parent; function O(k) { for (; k.flags & 4; ) k = k.parent; return k; } })[0]; if (s) return s.name.text; } function fme(e, t, r, i, o) { for (const c in t) for (const f of t[c]) { const d = Wo(f), y = d.indexOf("*"), m = r.map((b) => ({ ending: b, value: Vk(e, [b], o) })); if (yh(d) && m.push({ ending: void 0, value: e }), y !== -1) { const b = d.substring(0, y), A = d.substring(y + 1); for (const { ending: C, value: I } of m) if (I.length >= b.length + A.length && Ea(I, b) && tc(I, A) && s({ ending: C, value: I })) { const O = I.substring(b.length, I.length - A.length); return c.replace("*", O); } } else if (kt(m, (b) => b.ending !== 0 && d === b.value) || kt(m, (b) => b.ending === 0 && d === b.value && s(b))) return c; } function s({ ending: c, value: f }) { return c !== 0 || f === Vk(e, [c], o, i); } } function v5(e, t, r, i, o, s, c = 0) { if (typeof o == "string") { const f = Na(Oi(r, o), void 0), d = qN(t) ? Od(t) + b5(t, e) : void 0; switch (c) { case 0: if (JE(t, f) === 0 || d && JE(d, f) === 0) return { moduleFileToTry: i }; break; case 1: if (hv(f, t)) { const A = Am(f, t, !1); return { moduleFileToTry: Na(Oi(Oi(i, o), A), void 0) }; } break; case 2: const y = f.indexOf("*"), m = f.slice(0, y), b = f.slice(y + 1); if (Ea(t, m) && tc(t, b)) { const A = t.slice(m.length, t.length - b.length); return { moduleFileToTry: i.replace("*", A) }; } if (d && Ea(d, m) && tc(d, b)) { const A = d.slice(m.length, d.length - b.length); return { moduleFileToTry: i.replace("*", A) }; } break; } } else { if (Array.isArray(o)) return Ye(o, (f) => v5(e, t, r, i, f, s)); if (typeof o == "object" && o !== null) { if (_5(o)) return Ye(Xh(o), (f) => { const d = Na(Oi(i, f), void 0), y = tc(f, "/") ? 1 : lu(f, "*") ? 2 : 0; return v5(e, t, r, d, o[f], s, y); }); for (const f of Xh(o)) if (f === "default" || s.indexOf(f) >= 0 || o8(s, f)) { const d = o[f], y = v5(e, t, r, i, d, s); if (y) return y; } } } } function HPe(e, t, r, i, o, s) { const c = _me(t, e, i); if (c === void 0) return; const f = _me(r, e, i), d = Mo(f, (m) => rn(c, (b) => o1(Am(m, b, i)))), y = cj(d, JN); if (y) return Vk(y, o, s); } function IK({ path: e, isRedirect: t }, { getCanonicalFileName: r, sourceDirectory: i }, o, s, c, f, d, y) { if (!s.fileExists || !s.readFile) return; const m = sq(e); if (!m) return; const A = g5(f, c, o).getAllowedEndingsInPreferredOrder(); let C = e, I = !1; if (!d) { let te = m.packageRootIndex, X; for (; ; ) { const { moduleFileToTry: Y, packageRootPath: P, blockedByExports: ue, verbatimFromExports: ne } = j(te); if (gl(c) !== 1) { if (ue) return; if (ne) return Y; } if (P) { C = P, I = !0; break; } if (X || (X = Y), te = e.indexOf(Os, te + 1), te === -1) { C = Vk(X, A, c, s); break; } } } if (t && !I) return; const O = s.getGlobalTypingsCacheLocation && s.getGlobalTypingsCacheLocation(), k = r(C.substring(0, m.topLevelNodeModulesIndex)); if (!(Ea(i, k) || O && Ea(r(O), k))) return; const B = C.substring(m.topLevelPackageNameIndex + 1), U = s8(B); return gl(c) === 1 && U === B ? void 0 : U; function j(te) { var X, Y; const P = e.substring(0, te), ue = Oi(P, "package.json"); let ne = e, ge = !1; const ie = (Y = (X = s.getPackageJsonInfoCache) == null ? void 0 : X.call(s)) == null ? void 0 : Y.getPackageJsonInfo(ue); if (typeof ie == "object" || ie === void 0 && s.fileExists(ue)) { const H = (ie == null ? void 0 : ie.contents.packageJsonContent) || JSON.parse(s.readFile(ue)), le = y || o.impliedNodeFormat; if (Hz(c)) { const Te = P.substring(m.topLevelPackageNameIndex + 1), ee = s8(Te), $e = kC(c, le === 99), Ge = H.exports ? v5(c, e, P, ee, H.exports, $e) : void 0; if (Ge) return { ...qN(Ge.moduleFileToTry) ? { moduleFileToTry: Od(Ge.moduleFileToTry) + b5(Ge.moduleFileToTry, c) } : Ge, verbatimFromExports: !0 }; if (H.exports) return { moduleFileToTry: e, blockedByExports: !0 }; } const pe = H.typesVersions ? a5(H.typesVersions) : void 0; if (pe) { const Te = e.slice(P.length + 1), ee = fme(Te, pe.paths, A, s, c); ee === void 0 ? ge = !0 : ne = Oi(P, ee); } const ye = H.typings || H.types || H.main || "index.js"; if (Va(ye) && !(ge && Zz(I3(pe.paths), ye))) { const Te = Hs(ye, P, r); if (Od(Te) === Od(r(ne))) return { packageRootPath: P, moduleFileToTry: ne }; } } else { const H = r(ne.substring(m.packageRootIndex + 1)); if (H === "index.d.ts" || H === "index.js" || H === "index.ts" || H === "index.tsx") return { moduleFileToTry: ne, packageRootPath: P }; } return { moduleFileToTry: ne }; } } function WPe(e, t) { if (!e.fileExists) return; const r = nd(tk({ allowJs: !0 }, [{ extension: "node", isMixedContent: !1 }, { extension: "json", isMixedContent: !1, scriptKind: 6 }])); for (const i of r) { const o = t + i; if (e.fileExists(o)) return o; } } function _me(e, t, r) { return _a(t, (i) => { const o = mme(e, i, r); return o !== void 0 && hme(o) ? void 0 : o; }); } function Vk(e, t, r, i) { if (vc(e, [".json", ".mjs", ".cjs"])) return e; const o = Od(e); if (e === o) return e; if (vc(e, [".d.mts", ".mts", ".d.cts", ".cts"])) return o + kK(e, r); if (!vc(e, [".d.ts"]) && vc(e, [".ts"]) && lu(e, ".d.")) return pme(e); switch (t[0]) { case 0: const s = lA(o, "/index"); return i && s !== o && WPe(i, s) ? o : s; case 1: return o; case 2: return o + kK(e, r); case 3: if (sd(e)) { const c = t.findIndex((d) => d === 0 || d === 1), f = t.indexOf(2); return c !== -1 && c < f ? o : o + kK(e, r); } return e; default: return D.assertNever(t[0]); } } function pme(e) { const t = cu(e); if (!tc(e, ".ts") || !lu(t, ".d.") || vc(t, [".d.ts"])) return; const r = KN(e, ".ts"), i = r.substring(r.lastIndexOf(".")); return r.substring(0, r.indexOf(".d.")) + i; } function kK(e, t) { var r; return (r = b5(e, t)) != null ? r : D.fail(`Extension ${YN(e)} is unsupported:: FileName:: ${e}`); } function b5(e, t) { const r = yh(e); switch (r) { case ".ts": case ".d.ts": return ".js"; case ".tsx": return t.jsx === 1 ? ".jsx" : ".js"; case ".js": case ".jsx": case ".json": return r; case ".d.mts": case ".mts": case ".mjs": return ".mjs"; case ".d.cts": case ".cts": case ".cjs": return ".cjs"; default: return; } } function mme(e, t, r) { const i = GS(t, e, t, r, !1); return xm(i) ? void 0 : i; } function hme(e) { return Ea(e, ".."); } var gme = L({ "src/compiler/moduleSpecifiers.ts"() { Ra(); } }), P1 = {}; fe(P1, { countPathComponents: () => c8, forEachFileNameOfModule: () => cme, getModuleSpecifier: () => y5, getModuleSpecifiers: () => ime, getModuleSpecifiersWithCacheInfo: () => ame, getNodeModulesPackageName: () => GPe, tryGetJSExtensionForFile: () => b5, tryGetModuleSpecifiersFromCache: () => UPe, tryGetRealFileNameForNonJsDeclarationFileName: () => pme, updateModuleSpecifier: () => BPe }); var wK = L({ "src/compiler/_namespaces/ts.moduleSpecifiers.ts"() { gme(); } }); function zPe() { this.flags = 0; } function ds(e) { return e.id || (e.id = OK, OK++), e.id; } function go(e) { return e.id || (e.id = NK, NK++), e.id; } function DK(e, t) { const r = _g(e); return r === 1 || t && r === 2; } function yme(e) { var t = hd(() => { var n = /* @__PURE__ */ new Map(); return e.getSourceFiles().forEach((a) => { a.resolvedModules && a.resolvedModules.forEach(({ resolvedModule: l }) => { l != null && l.packageId && n.set(l.packageId.name, l.extension === ".d.ts" || !!n.get(l.packageId.name)); }); }), n; }), r = [], i = (n) => { r.push(n); }, o, s = /* @__PURE__ */ new Set(), c, f, d = Fc.getSymbolConstructor(), y = Fc.getTypeConstructor(), m = Fc.getSignatureConstructor(), b = 0, A = 0, C = 0, I = 0, O = 0, k = 0, B, U, j = !1, te = ao(), X = [1], Y = e.getCompilerOptions(), P = $o(Y), ue = Zc(Y), ne = !!Y.experimentalDecorators, ge = WN(Y), ie = hT(Y), H = f_(Y, "strictNullChecks"), le = f_(Y, "strictFunctionTypes"), pe = f_(Y, "strictBindCallApply"), ye = f_(Y, "strictPropertyInitialization"), Te = f_(Y, "noImplicitAny"), ee = f_(Y, "noImplicitThis"), $e = f_(Y, "useUnknownInCatchVariables"), Ge = !!Y.keyofStringsOnly, Fe = Y.suppressExcessPropertyErrors ? 0 : 8192, We = Y.exactOptionalPropertyTypes, Re = hrt(), Pe = Jot(), Ke = co(), He = ao(), Me = Qo(4, "undefined"); Me.declarations = []; var ot = Qo(1536, "globalThis", 8); ot.exports = He, ot.declarations = [], He.set(ot.escapedName, ot); var At = Qo(4, "arguments"), bt = Qo(4, "require"), Vt = Y.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules", et; const it = { getNodeCount: () => Cu(e.getSourceFiles(), (n, a) => n + a.nodeCount, 0), getIdentifierCount: () => Cu(e.getSourceFiles(), (n, a) => n + a.identifierCount, 0), getSymbolCount: () => Cu(e.getSourceFiles(), (n, a) => n + a.symbolCount, A), getTypeCount: () => b, getInstantiationCount: () => C, getRelationCacheSizes: () => ({ assignable: xd.size, identity: Cd.size, subtype: qm.size, strictSubtype: Y_.size }), isUndefinedSymbol: (n) => n === Me, isArgumentsSymbol: (n) => n === At, isUnknownSymbol: (n) => n === en, getMergedSymbol: ns, getDiagnostics: Rwe, getGlobalDiagnostics: dot, getRecursionIdentity: vL, getUnmatchedProperties: Iie, getTypeOfSymbolAtLocation: (n, a) => { const l = ya(a); return l ? uet(n, l) : xe; }, getTypeOfSymbol: ar, getSymbolsOfParameterPropertyDeclaration: (n, a) => { const l = ya(n, Ma); return l === void 0 ? D.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.") : (D.assert(Yd(l, l.parent)), tE(l, al(a))); }, getDeclaredTypeOfSymbol: Bs, getPropertiesOfType: fs, getPropertyOfType: (n, a) => so(n, al(a)), getPrivateIdentifierPropertyOfType: (n, a, l) => { const u = ya(l); if (!u) return; const p = al(a), g = rV(p, u); return g ? uae(n, g) : void 0; }, getTypeOfPropertyOfType: (n, a) => cc(n, al(a)), getIndexInfoOfType: (n, a) => nh(n, a === 0 ? ce : pt), getIndexInfosOfType: Eu, getIndexInfosOfIndexSymbol: Are, getSignaturesOfType: Ha, getIndexTypeOfType: (n, a) => Vg(n, a === 0 ? ce : pt), getIndexType: (n) => fm(n), getBaseTypes: No, getBaseTypeOfLiteralType: sv, getWidenedType: Kd, getTypeFromTypeNode: (n) => { const a = ya(n, Pi); return a ? ci(a) : xe; }, getParameterType: sp, getParameterIdentifierNameAtPosition: Rnt, getPromisedTypeOfPromise: wD, getAwaitedType: (n) => UE(n), getReturnTypeOfSignature: hs, isNullableType: nV, getNullableType: NU, getNonNullableType: Jg, getNonOptionalType: vie, getTypeArguments: _s, typeToTypeNode: Ke.typeToTypeNode, indexInfoToIndexSignatureDeclaration: Ke.indexInfoToIndexSignatureDeclaration, signatureToSignatureDeclaration: Ke.signatureToSignatureDeclaration, symbolToEntityName: Ke.symbolToEntityName, symbolToExpression: Ke.symbolToExpression, symbolToNode: Ke.symbolToNode, symbolToTypeParameterDeclarations: Ke.symbolToTypeParameterDeclarations, symbolToParameterDeclaration: Ke.symbolToParameterDeclaration, typeParameterToDeclaration: Ke.typeParameterToDeclaration, getSymbolsInScope: (n, a) => { const l = ya(n); return l ? fot(l, a) : []; }, getSymbolAtLocation: (n) => { const a = ya(n); return a ? A_(a, !0) : void 0; }, getIndexInfosAtLocation: (n) => { const a = ya(n); return a ? vot(a) : void 0; }, getShorthandAssignmentValueSymbol: (n) => { const a = ya(n); return a ? bot(a) : void 0; }, getExportSpecifierLocalTargetSymbol: (n) => { const a = ya(n, od); return a ? Eot(a) : void 0; }, getExportSymbolOfSymbol(n) { return ns(n.exportSymbol || n); }, getTypeAtLocation: (n) => { const a = ya(n); return a ? SS(a) : xe; }, getTypeOfAssignmentPattern: (n) => { const a = ya(n, yI); return a && DV(a) || xe; }, getPropertySymbolOfDestructuringAssignment: (n) => { const a = ya(n, Ve); return a ? Tot(a) : void 0; }, signatureToString: (n, a, l, u) => se(n, ya(a), l, u), typeToString: (n, a, l) => Le(n, ya(a), l), symbolToString: (n, a, l, u) => S(n, ya(a), l, u), typePredicateToString: (n, a, l) => Yc(n, ya(a), l), writeSignature: (n, a, l, u, p) => se(n, ya(a), l, u, p), writeType: (n, a, l, u) => Le(n, ya(a), l, u), writeSymbol: (n, a, l, u, p) => S(n, ya(a), l, u, p), writeTypePredicate: (n, a, l, u) => Yc(n, ya(a), l, u), getAugmentedPropertiesOfType: coe, getRootSymbols: Gwe, getSymbolOfExpando: dV, getContextualType: (n, a) => { const l = ya(n, yt); if (l) return a & 4 ? Xt(l, () => Zu(l, a)) : Zu(l, a); }, getContextualTypeForObjectLiteralElement: (n) => { const a = ya(n, dy); return a ? $ie(a, void 0) : void 0; }, getContextualTypeForArgumentAtIndex: (n, a) => { const l = ya(n, WS); return l && Yie(l, a); }, getContextualTypeForJsxAttribute: (n) => { const a = ya(n, TM); return a && nIe(a, void 0); }, isContextSensitive: S_, getTypeOfPropertyOfContextualType: FE, getFullyQualifiedName: Rh, getResolvedSignature: (n, a, l) => On(n, a, l, 0), getResolvedSignatureForStringLiteralCompletions: (n, a, l) => Xt(a, () => On(n, l, void 0, 32)), getResolvedSignatureForSignatureHelp: (n, a, l) => nn(n, () => On(n, a, l, 16)), getExpandedParameters: dAe, hasEffectiveRestParameter: hm, containsArgumentsReference: Ere, getConstantValue: (n) => { const a = ya(n, Wwe); return a ? uoe(a) : void 0; }, isValidPropertyAccess: (n, a) => { const l = ya(n, ece); return !!l && Wtt(l, al(a)); }, isValidPropertyAccessForCompletions: (n, a, l) => { const u = ya(n, Pr); return !!u && RIe(u, a, l); }, getSignatureFromDeclaration: (n) => { const a = ya(n, qa); return a ? wp(a) : void 0; }, isImplementationOfOverload: (n) => { const a = ya(n, qa); return a ? jwe(a) : void 0; }, getImmediateAliasedSymbol: tae, getAliasedSymbol: Zl, getEmitResolver: nL, getExportsOfModule: Gy, getExportsAndPropertiesOfModule: dS, forEachExportAndPropertyOfModule: s0, getSymbolWalker: tme(RYe, Zf, hs, No, ip, ar, x_, bu, Ef, _s), getAmbientModules: Fst, getJsxIntrinsicTagNamesAt: Stt, isOptionalParameter: (n) => { const a = ya(n, Ma); return a ? $w(a) : !1; }, tryGetMemberInModuleExports: (n, a) => Rg(al(n), a), tryGetMemberInModuleExportsAndProperties: (n, a) => wf(al(n), a), tryFindAmbientModule: (n) => bre(n, !0), tryFindAmbientModuleWithoutAugmentations: (n) => bre(n, !1), getApparentType: Vu, getUnionType: Xr, isTypeAssignableTo: Eo, createAnonymousType: Ds, createSignature: th, createSymbol: Qo, createIndexInfo: dm, getAnyType: () => Ie, getStringType: () => ce, getNumberType: () => pt, createPromiseType: Y4, createArrayType: Tu, getElementTypeOfArrayType: pie, getBooleanType: () => we, getFalseType: (n) => n ? rt : K, getTrueType: (n) => n ? Oe : Z, getVoidType: () => Rt, getUndefinedType: () => je, getNullType: () => Sn, getESSymbolType: () => q, getNeverType: () => ht, getOptionalType: () => on, getPromiseType: () => p4(!1), getPromiseLikeType: () => KAe(!1), getAsyncIterableType: () => { const n = uU(!1); if (n !== So) return n; }, isSymbolAccessible: Hy, isArrayType: Ff, isTupleType: Oo, isArrayLikeType: A0, isEmptyAnonymousObjectType: zh, isTypeInvalidDueToUnionDiscriminant: pYe, getExactOptionalProperties: GQe, getAllPossiblePropertiesOfTypes: mYe, getSuggestedSymbolForNonexistentProperty: _ae, getSuggestionForNonexistentProperty: pae, getSuggestedSymbolForNonexistentJSXAttribute: wIe, getSuggestedSymbolForNonexistentSymbol: (n, a, l) => mae(n, al(a), l), getSuggestionForNonexistentSymbol: (n, a, l) => Utt(n, al(a), l), getSuggestedSymbolForNonexistentModule: aV, getSuggestionForNonexistentExport: Vtt, getSuggestedSymbolForNonexistentClassMember: kIe, getBaseConstraintOfType: Uu, getDefaultFromTypeParameter: (n) => n && n.flags & 262144 ? AE(n) : void 0, resolveName(n, a, l, u) { return dl(a, al(n), l, void 0, void 0, !1, u); }, getJsxNamespace: (n) => Zi(fb(n)), getJsxFragmentFactory: (n) => { const a = foe(n); return a && Zi(Ef(a).escapedText); }, getAccessibleSymbolChain: u0, getTypePredicateOfSignature: Zf, resolveExternalModuleName: (n) => { const a = ya(n, yt); return a && au(a, a, !0); }, resolveExternalModuleSymbol: dd, tryGetThisTypeAt: (n, a, l) => { const u = ya(n); return u && zie(u, a, l); }, getTypeArgumentConstraint: (n) => { const a = ya(n, Pi); return a && Xrt(a); }, getSuggestionDiagnostics: (n, a) => { const l = ya(n, ji) || D.fail("Could not determine parsed source file."); if (nk(l, Y, e)) return nt; let u; try { return o = a, soe(l), D.assert(!!(Wr(l).flags & 1)), u = yi(u, Q1.getDiagnostics(l.fileName)), qke(Dwe(l), (p, g, x) => { !qR(p) && !wwe(g, !!(p.flags & 16777216)) && (u || (u = [])).push({ ...x, category: 2 }); }), u || nt; } finally { o = void 0; } }, runWithCancellationToken: (n, a) => { try { return o = n, a(it); } finally { o = void 0; } }, getLocalTypeParametersOfClassOrInterfaceOrTypeAlias: Yy, isDeclarationVisible: E_, isPropertyAccessible: gae, getTypeOnlyAliasDeclaration: Ld, getMemberOverrideModifierStatus: Cat, isTypeParameterPossiblyReferenced: b4, typeHasCallOrConstructSignatures: RV }; function nn(n, a) { const l = nr(n, WS), u = l && Wr(l).resolvedSignature; l && (Wr(l).resolvedSignature = void 0); const p = a(); return l && (Wr(l).resolvedSignature = u), p; } function Xt(n, a) { const l = nr(n, WS); if (l) { let p = n; do Wr(p).skipDirectInference = !0, p = p.parent; while (p && p !== l); } j = !0; const u = nn(n, a); if (j = !1, l) { let p = n; do Wr(p).skipDirectInference = void 0, p = p.parent; while (p && p !== l); } return u; } function On(n, a, l, u) { const p = ya(n, WS); et = l; const g = p ? wL(p, a, u) : void 0; return et = void 0, g; } var Hn = /* @__PURE__ */ new Map(), In = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ new Map(), fr = /* @__PURE__ */ new Map(), xi = /* @__PURE__ */ new Map(), Ji = /* @__PURE__ */ new Map(), Ki = /* @__PURE__ */ new Map(), Rr = /* @__PURE__ */ new Map(), xt = /* @__PURE__ */ new Map(), gn = /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */ new Map(), ln = /* @__PURE__ */ new Map(), rr = /* @__PURE__ */ new Map(), lr = /* @__PURE__ */ new Map(), Di = [], _i = /* @__PURE__ */ new Map(), Rn = /* @__PURE__ */ new Set(), en = Qo(4, "unknown"), Pn = Qo(0, "__resolving__"), xr = /* @__PURE__ */ new Map(), Ur = /* @__PURE__ */ new Map(), Ie = Jl(1, "any"), gt = Jl(1, "any", 262144), Nt = Jl(1, "any"), xe = Jl(1, "error"), _t = Jl(1, "unresolved"), _e = Jl(1, "any", 65536), re = Jl(1, "intrinsic"), me = Jl(2, "unknown"), V = Jl(2, "unknown"), je = Jl(32768, "undefined"), Qe = H ? je : Jl(32768, "undefined", 65536), Je = Jl(32768, "undefined"), Ut = We ? Je : je, on = Jl(32768, "undefined"), Sn = Jl(65536, "null"), br = H ? Sn : Jl(65536, "null", 65536), ce = Jl(4, "string"), pt = Jl(8, "number"), Wt = Jl(64, "bigint"), rt = Jl(512, "false"), K = Jl(512, "false"), Oe = Jl(512, "true"), Z = Jl(512, "true"); Oe.regularType = Z, Oe.freshType = Oe, Z.regularType = Z, Z.freshType = Oe, rt.regularType = K, rt.freshType = rt, K.regularType = K, K.freshType = rt; var we = Xr([K, Z]), q = Jl(4096, "symbol"), Rt = Jl(16384, "void"), ht = Jl(131072, "never"), dt = Jl(131072, "never", 262144), dn = Jl(131072, "never"), $n = Jl(131072, "never"), ii = Jl(67108864, "object"), Ti = Xr([ce, pt]), Si = Xr([ce, pt, q]), Bi = Ge ? ce : Si, fo = Xr([pt, Wt]), vo = Xr([ce, pt, we, Wt, Sn, je]), no = LE(["", ""], [pt]), sa = v4((n) => n.flags & 262144 ? fQe(n) : n, () => "(restrictive mapper)"), Gi = v4((n) => n.flags & 262144 ? Nt : n, () => "(permissive mapper)"), qr = Jl(131072, "never"), is = v4((n) => n.flags & 262144 ? qr : n, () => "(unique literal mapper)"), ui, la = v4((n) => (ui && (n === Ud || n === rc || n === jc) && ui(!0), n), () => "(unmeasurable reporter)"), wn = v4((n) => (ui && (n === Ud || n === rc || n === jc) && ui(!1), n), () => "(unreliable reporter)"), da = Ds(void 0, te, nt, nt, nt), $l = Ds(void 0, te, nt, nt, nt); $l.objectFlags |= 2048; var tl = Qo(2048, "__type"); tl.members = ao(); var Ml = Ds(tl, te, nt, nt, nt), zl = Ds(void 0, te, nt, nt, nt), Fl = H ? Xr([je, Sn, zl]) : me, So = Ds(void 0, te, nt, nt, nt); So.instantiations = /* @__PURE__ */ new Map(); var Aa = Ds(void 0, te, nt, nt, nt); Aa.objectFlags |= 262144; var Jo = Ds(void 0, te, nt, nt, nt), Bl = Ds(void 0, te, nt, nt, nt), Xc = Ds(void 0, te, nt, nt, nt), Ud = Id(), rc = Id(); rc.constraint = Ud; var jc = Id(), ks = Id(), pl = Id(); pl.constraint = ks; var Qs = f4(1, "<>", 0, Ie), qs = th(void 0, void 0, void 0, nt, Ie, void 0, 0, 0), Zt = th(void 0, void 0, void 0, nt, xe, void 0, 0, 0), Gl = th(void 0, void 0, void 0, nt, Ie, void 0, 0, 0), yu = th(void 0, void 0, void 0, nt, dt, void 0, 0, 0), Bu = dm(pt, ce, !0), de = /* @__PURE__ */ new Map(), It = { get yieldType() { return D.fail("Not supported"); }, get returnType() { return D.fail("Not supported"); }, get nextType() { return D.fail("Not supported"); } }, jt = Yg(Ie, Ie, Ie), Q = Yg(Ie, Ie, me), at = Yg(ht, Ie, je), St = { iterableCacheKey: "iterationTypesOfAsyncIterable", iteratorCacheKey: "iterationTypesOfAsyncIterator", iteratorSymbolName: "asyncIterator", getGlobalIteratorType: JYe, getGlobalIterableType: uU, getGlobalIterableIteratorType: KYe, getGlobalGeneratorType: XYe, resolveIterationType: UE, mustHaveANextMethodDiagnostic: _.An_async_iterator_must_have_a_next_method, mustBeAMethodDiagnostic: _.The_0_property_of_an_async_iterator_must_be_a_method, mustHaveAValueDiagnostic: _.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property }, _n = { iterableCacheKey: "iterationTypesOfIterable", iteratorCacheKey: "iterationTypesOfIterator", iteratorSymbolName: "iterator", getGlobalIteratorType: YYe, getGlobalIterableType: Nre, getGlobalIterableIteratorType: $Ye, getGlobalGeneratorType: QYe, resolveIterationType: (n, a) => n, mustHaveANextMethodDiagnostic: _.An_iterator_must_have_a_next_method, mustBeAMethodDiagnostic: _.The_0_property_of_an_iterator_must_be_a_method, mustHaveAValueDiagnostic: _.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property }, kr, Nr = /* @__PURE__ */ new Map(), va = !1, as, _o, Uo, Ka, cl, lc, ld, vs, ls, ul, Vd, Ul, Lf, Se, Dt, Nn, zi, xo, ae, lt, Mt, Pt, sn, jn, wr, Zr, Ri, Ua, Vo, bs, Js, cd, sf, Ql, jd, vu, lf, g_, Ko, y_, cf, J_, Tp, G, Ze, zt, Yn, ka, Ca, Ce, Be, Lt, Ot, pn, vn = /* @__PURE__ */ new Map(), Tn = 0, Wn = 0, Hr = 0, Hi = !1, tr = 0, fn, ur, Ta, Ks = [], ic = [], zm = [], yg = 0, K_ = [], ob = [], Jv = 0, i2 = Mf(""), QT = Rp(0), a2 = hU({ negative: !1, base10Value: "0" }), vg = [], X_ = [], Kv = [], kh = 0, Sp = 10, Xv = [], q1 = [], sb = [], bg = [], ZT = [], J1 = [], K1 = [], X1 = [], Yv = [], o2 = [], Y1 = [], $1 = [], $v = [], lb = [], Qv = [], eS = [], Eg = [], Xo = HA(), Q1 = HA(), tL = Qm(), Dy, Tg, qm = /* @__PURE__ */ new Map(), Y_ = /* @__PURE__ */ new Map(), xd = /* @__PURE__ */ new Map(), Ad = /* @__PURE__ */ new Map(), Cd = /* @__PURE__ */ new Map(), cb = /* @__PURE__ */ new Map(), ub = ao(); ub.set(Me.escapedName, Me); var s2 = [ [".mts", ".mjs"], [".ts", ".js"], [".cts", ".cjs"], [".mjs", ".mjs"], [".js", ".js"], [".cjs", ".cjs"], [".tsx", Y.jsx === 1 ? ".jsx" : ".js"], [".jsx", ".jsx"], [".json", ".json"] ]; return Kot(), it; function db(n) { return n ? lr.get(n) : void 0; } function Sg(n, a) { return n && lr.set(n, a), a; } function fb(n) { if (n) { const a = Zn(n); if (a) if (Lx(n)) { if (a.localJsxFragmentNamespace) return a.localJsxFragmentNamespace; const l = a.pragmas.get("jsxfrag"); if (l) { const p = Ga(l) ? l[0] : l; if (a.localJsxFragmentFactory = Rx(p.arguments.factory, P), st(a.localJsxFragmentFactory, _b, $d), a.localJsxFragmentFactory) return a.localJsxFragmentNamespace = Ef(a.localJsxFragmentFactory).escapedText; } const u = foe(n); if (u) return a.localJsxFragmentFactory = u, a.localJsxFragmentNamespace = Ef(u).escapedText; } else { const l = tS(a); if (l) return a.localJsxNamespace = l; } } return Dy || (Dy = "React", Y.jsxFactory ? (Tg = Rx(Y.jsxFactory, P), st(Tg, _b), Tg && (Dy = Ef(Tg).escapedText)) : Y.reactNamespace && (Dy = al(Y.reactNamespace))), Tg || (Tg = N.createQualifiedName(N.createIdentifier(Zi(Dy)), "createElement")), Dy; } function tS(n) { if (n.localJsxNamespace) return n.localJsxNamespace; const a = n.pragmas.get("jsx"); if (a) { const l = Ga(a) ? a[0] : a; if (n.localJsxFactory = Rx(l.arguments.factory, P), st(n.localJsxFactory, _b, $d), n.localJsxFactory) return n.localJsxNamespace = Ef(n.localJsxFactory).escapedText; } } function _b(n) { return Mm(n, -1, -1), Bn(n, _b, pg); } function nL(n, a) { return Rwe(n, a), Pe; } function l2(n, a, l, u, p, g) { const x = n ? Dr(n, a, l, u, p, g) : Ps(a, l, u, p, g), R = Xo.lookup(x); return R || (Xo.add(x), x); } function Zv(n, a, l, u, p, g, x) { const R = qe(a, l, u, p, g, x); return R.skippedOn = n, R; } function Z1(n, a, l, u, p, g) { return n ? Dr(n, a, l, u, p, g) : Ps(a, l, u, p, g); } function qe(n, a, l, u, p, g) { const x = Z1(n, a, l, u, p, g); return Xo.add(x), x; } function Ry(n, a) { n ? Xo.add(a) : Q1.add({ ...a, category: 2 }); } function tm(n, a, l, u, p, g, x) { if (a.pos < 0 || a.end < 0) { if (!n) return; const R = Zn(a); Ry(n, "message" in l ? Lc(R, 0, 0, l, u, p, g, x) : FW(R, l)); return; } Ry(n, "message" in l ? Dr(a, l, u, p, g, x) : rg(Zn(a), a, l)); } function e0(n, a, l, u, p, g, x) { const R = qe(n, l, u, p, g, x); if (a) { const M = Dr(n, _.Did_you_forget_to_use_await); qo(R, M); } return R; } function pb(n, a) { const l = Array.isArray(n) ? Ye(n, zH) : zH(n); return l && qo(a, Dr(l, _.The_declaration_was_marked_as_deprecated_here)), Q1.add(a), a; } function t0(n) { if (Ne(n.declarations) > 1) { const a = fd(n); if (a && a.flags & 64) return kt(n.declarations, (l) => !!(up(l) & 268435456)); } return !!(tV(n) & 268435456); } function xg(n, a, l) { const u = Dr(n, _._0_is_deprecated, l); return pb(a, u); } function nS(n, a, l, u) { const p = l ? Dr(n, _.The_signature_0_of_1_is_deprecated, u, l) : Dr(n, _._0_is_deprecated, u); return pb(a, p); } function Qo(n, a, l) { A++; const u = new d(n | 33554432, a); return u.links = new FK(), u.links.checkFlags = l || 0, u; } function $_(n, a) { const l = Qo(1, n); return l.links.type = a, l; } function eE(n, a) { const l = Qo(4, n); return l.links.type = a, l; } function mc(n) { let a = 0; return n & 2 && (a |= 111551), n & 1 && (a |= 111550), n & 4 && (a |= 0), n & 8 && (a |= 900095), n & 16 && (a |= 110991), n & 32 && (a |= 899503), n & 64 && (a |= 788872), n & 256 && (a |= 899327), n & 128 && (a |= 899967), n & 512 && (a |= 110735), n & 8192 && (a |= 103359), n & 32768 && (a |= 46015), n & 65536 && (a |= 78783), n & 262144 && (a |= 526824), n & 524288 && (a |= 788968), n & 2097152 && (a |= 2097152), a; } function wh(n, a) { a.mergeId || (a.mergeId = PK, PK++), Xv[a.mergeId] = n; } function mb(n) { const a = Qo(n.flags, n.escapedName); return a.declarations = n.declarations ? n.declarations.slice() : [], a.parent = n.parent, n.valueDeclaration && (a.valueDeclaration = n.valueDeclaration), n.constEnumOnlyModule && (a.constEnumOnlyModule = !0), n.members && (a.members = new Map(n.members)), n.exports && (a.exports = new Map(n.exports)), wh(a, n), a; } function Q_(n, a, l = !1) { if (!(n.flags & mc(a.flags)) || (a.flags | n.flags) & 67108864) { if (a === n) return n; if (!(n.flags & 33554432)) { const p = ql(n); if (p === en) return a; n = mb(p); } a.flags & 512 && n.flags & 512 && n.constEnumOnlyModule && !a.constEnumOnlyModule && (n.constEnumOnlyModule = !1), n.flags |= a.flags, a.valueDeclaration && dN(n, a.valueDeclaration), yi(n.declarations, a.declarations), a.members && (n.members || (n.members = ao()), Dc(n.members, a.members, l)), a.exports && (n.exports || (n.exports = ao()), Dc(n.exports, a.exports, l)), l || wh(n, a); } else if (n.flags & 1024) n !== ot && qe(a.declarations && La(a.declarations[0]), _.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity, S(n)); else { const p = !!(n.flags & 384 || a.flags & 384), g = !!(n.flags & 2 || a.flags & 2), x = p ? _.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations : g ? _.Cannot_redeclare_block_scoped_variable_0 : _.Duplicate_identifier_0, R = a.declarations && Zn(a.declarations[0]), M = n.declarations && Zn(n.declarations[0]), J = LM(R, Y.checkJs), $ = LM(M, Y.checkJs), he = S(a); if (R && M && kr && !p && R !== M) { const De = JE(R.path, M.path) === -1 ? R : M, ke = De === R ? M : R, ft = XD(kr, `${De.path}|${ke.path}`, () => ({ firstFile: De, secondFile: ke, conflictingSymbols: /* @__PURE__ */ new Map() })), Bt = XD(ft.conflictingSymbols, he, () => ({ isBlockScoped: g, firstFileLocations: [], secondFileLocations: [] })); J || u(Bt.firstFileLocations, a), $ || u(Bt.secondFileLocations, n); } else J || hb(a, x, he, n), $ || hb(n, x, he, a); } return n; function u(p, g) { if (g.declarations) for (const x of g.declarations) a_(p, x); } } function hb(n, a, l, u) { Ye(n.declarations, (p) => { ru(p, a, l, u.declarations); }); } function ru(n, a, l, u) { const p = (U0(n, !1) ? YW(n) : La(n)) || n, g = l2(p, a, l); for (const x of u || nt) { const R = (U0(x, !1) ? YW(x) : La(x)) || x; if (R === p) continue; g.relatedInformation = g.relatedInformation || []; const M = Dr(R, _._0_was_also_declared_here, l), J = Dr(R, _.and_here); Ne(g.relatedInformation) >= 5 || kt(g.relatedInformation, ($) => QI($, J) === 0 || QI($, M) === 0) || qo(g, Ne(g.relatedInformation) ? J : M); } } function Ag(n, a) { if (!(n != null && n.size)) return a; if (!(a != null && a.size)) return n; const l = ao(); return Dc(l, n), Dc(l, a), l; } function Dc(n, a, l = !1) { a.forEach((u, p) => { const g = n.get(p); n.set(p, g ? Q_(g, u, l) : ns(u)); }); } function rS(n) { var a, l, u; const p = n.parent; if (((a = p.symbol.declarations) == null ? void 0 : a[0]) !== p) { D.assert(p.symbol.declarations.length > 1); return; } if (Hp(p)) Dc(He, p.symbol.exports); else { const g = n.parent.parent.flags & 16777216 ? void 0 : _.Invalid_module_name_in_augmentation_module_0_cannot_be_found; let x = Oh(n, n, g, !0); if (!x) return; if (x = dd(x), x.flags & 1920) if (kt(_o, (R) => x === R.symbol)) { const R = Q_(p.symbol, x, !0); Uo || (Uo = /* @__PURE__ */ new Map()), Uo.set(n.text, R); } else { if ((l = x.exports) != null && l.get("__export") && ((u = p.symbol.exports) != null && u.size)) { const R = tre(x, "resolvedExports"); for (const [M, J] of ko(p.symbol.exports.entries())) R.has(M) && !x.exports.has(M) && Q_(R.get(M), J); } Q_(x, p.symbol); } else qe(n, _.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, n.text); } } function rL(n, a, l) { a.forEach((p, g) => { const x = n.get(g); x ? Ye(x.declarations, u(Zi(g), l)) : n.set(g, p); }); function u(p, g) { return (x) => Xo.add(Dr(x, g, p)); } } function Ui(n) { var a; if (n.flags & 33554432) return n.links; const l = go(n); return (a = q1[l]) != null ? a : q1[l] = new FK(); } function Wr(n) { const a = ds(n); return sb[a] || (sb[a] = new zPe()); } function Jm(n) { return n.kind === 308 && !ef(n); } function Hd(n, a, l) { if (l) { const u = ns(n.get(a)); if (u && (D.assert((Al(u) & 1) === 0, "Should never get an instantiated symbol here."), u.flags & l || u.flags & 2097152 && iu(u) & l)) return u; } } function tE(n, a) { const l = n.parent, u = n.parent.parent, p = Hd(l.locals, a, 111551), g = Hd($y(u.symbol), a, 111551); return p && g ? [p, g] : D.fail("There should exist two symbols, one as property declaration and one as parameter declaration"); } function Cg(n, a) { const l = Zn(n), u = Zn(a), p = Dm(n); if (l !== u) { if (ue && (l.externalModuleIndicator || u.externalModuleIndicator) || !Ws(Y) || SL(a) || n.flags & 16777216 || x(a, n)) return !0; const M = e.getSourceFiles(); return M.indexOf(l) <= M.indexOf(u); } if (n.pos <= a.pos && !(Za(n) && ZR(a.parent) && !n.initializer && !n.exclamationToken)) { if (n.kind === 205) { const M = j0(a, 205); return M ? nr(M, us) !== nr(n, us) || n.pos < M.pos : Cg(j0(n, 257), a); } else { if (n.kind === 257) return !g(n, a); if (kc(n)) return !nr(a, (M) => Ss(M) && M.parent.parent === n); if (Za(n)) return !R(n, a, !1); if (Yd(n, n.parent)) return !($o(Y) === 99 && ge && Ec(n) === Ec(a) && x(a, n)); } return !0; } if (a.parent.kind === 278 || a.parent.kind === 274 && a.parent.isExportEquals || a.kind === 274 && a.isExportEquals || a.flags & 8388608 || SL(a) || yLe(a)) return !0; if (x(a, n)) return $o(Y) === 99 && ge && Ec(n) && (Za(n) || Yd(n, n.parent)) ? !R(n, a, !0) : !0; return !1; function g(M, J) { switch (M.parent.parent.kind) { case 240: case 245: case 247: if (nm(J, M, p)) return !0; break; } const $ = M.parent.parent; return bA($) && nm(J, $.expression, p); } function x(M, J) { return !!nr(M, ($) => { if ($ === p) return "quit"; if (qa($)) return !0; if (Cl($)) return J.pos < M.pos; const he = ri($.parent, Za); if (he && he.initializer === $) { if (za($.parent)) { if (J.kind === 171) return !0; if (Za(J) && Ec(M) === Ec(J)) { const ke = J.name; if (Ve(ke) || ki(ke)) { const ft = ar(Lr(J)), Bt = yn(J.parent.members, Cl); if (Rat(ke, ft, Bt, J.parent.pos, $.pos)) return !0; } } } else if (!(J.kind === 169 && !za(J)) || Ec(M) !== Ec(J)) return !0; } return !1; }); } function R(M, J, $) { return J.end > M.end ? !1 : nr(J, (De) => { if (De === M) return "quit"; switch (De.kind) { case 216: return !0; case 169: return $ && (Za(M) && De.parent === M.parent || Yd(M, M.parent) && De.parent === M.parent.parent) ? "quit" : !0; case 238: switch (De.parent.kind) { case 174: case 171: case 175: return !0; default: return !1; } default: return !1; } }) === void 0; } } function Dh(n, a, l) { const u = $o(Y), p = a; if (Ma(l) && p.body && n.valueDeclaration && n.valueDeclaration.pos >= p.body.pos && n.valueDeclaration.end <= p.body.end && u >= 2) { const R = Wr(p); return R.declarationRequiresScopeChange === void 0 && (R.declarationRequiresScopeChange = Ye(p.parameters, g) || !1), !R.declarationRequiresScopeChange; } return !1; function g(R) { return x(R.name) || !!R.initializer && x(R.initializer); } function x(R) { switch (R.kind) { case 216: case 215: case 259: case 173: return !1; case 171: case 174: case 175: case 299: return x(R.name); case 169: return _c(R) ? u < 99 || !ge : x(R.name); default: return YH(R) || fu(R) ? u < 7 : us(R) && R.dotDotDotToken && Bm(R.parent) ? u < 4 : Pi(R) ? !1 : Oa(R, x) || !1; } } } function Km(n) { return ZE(n) && tg(n.type) || kk(n) && tg(n.typeExpression); } function dl(n, a, l, u, p, g, x = !1, R = !0) { return gb(n, a, l, u, p, g, x, R, Hd); } function gb(n, a, l, u, p, g, x, R, M) { var J, $, he; const De = n; let ke, ft, Bt, Mn, An, Xn = !1; const mn = n; let xn, gr = !1; e: for (; n; ) { if (a === "const" && Km(n)) return; if (Im(n) && n.locals && !Jm(n) && (ke = M(n.locals, a, l))) { let Gn = !0; if (qa(n) && ft && ft !== n.body ? (l & ke.flags & 788968 && ft.kind !== 323 && (Gn = ke.flags & 262144 ? ft === n.type || ft.kind === 166 || ft.kind === 344 || ft.kind === 345 || ft.kind === 165 : !1), l & ke.flags & 3 && (Dh(ke, n, ft) ? Gn = !1 : ke.flags & 1 && (Gn = ft.kind === 166 || ft === n.type && !!nr(ke.valueDeclaration, Ma)))) : n.kind === 191 && (Gn = ft === n.trueType), Gn) break e; ke = void 0; } switch (Xn = Xn || yb(n, ft), n.kind) { case 308: if (!ef(n)) break; gr = !0; case 264: const Gn = ((J = Lr(n)) == null ? void 0 : J.exports) || te; if (n.kind === 308 || Hl(n) && n.flags & 16777216 && !Hp(n)) { if (ke = Gn.get("default")) { const ei = qA(ke); if (ei && ke.flags & l && ei.escapedName === a) break e; ke = void 0; } const Yr = Gn.get(a); if (Yr && Yr.flags === 2097152 && (Tl(Yr, 278) || Tl(Yr, 277))) break; } if (a !== "default" && (ke = M(Gn, a, l & 2623475))) if (ji(n) && n.commonJsModuleIndicator && !(($ = ke.declarations) != null && $.some(c_))) ke = void 0; else break e; break; case 263: if (ke = M(((he = Lr(n)) == null ? void 0 : he.exports) || te, a, l & 8)) { u && F_(Y) && !(n.flags & 16777216) && Zn(n) !== Zn(ke.valueDeclaration) && qe(mn, _.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead, Zi(a), Vt, `${Zi(Wd(n).escapedName)}.${Zi(a)}`); break e; } break; case 169: if (!za(n)) { const Yr = c0(n.parent); Yr && Yr.locals && M(Yr.locals, a, l & 111551) && (D.assertNode(n, Za), Mn = n); } break; case 260: case 228: case 261: if (ke = M(Lr(n).members || te, a, l & 788968)) { if (!c2(ke, n)) { ke = void 0; break; } if (ft && za(ft)) { u && qe(mn, _.Static_members_cannot_reference_class_type_parameters); return; } break e; } if (Nu(n) && l & 32) { const Yr = n.name; if (Yr && a === Yr.escapedText) { ke = n.symbol; break e; } } break; case 230: if (ft === n.expression && n.parent.token === 94) { const Yr = n.parent.parent; if (li(Yr) && (ke = M(Lr(Yr).members, a, l & 788968))) { u && qe(mn, _.Base_class_expressions_cannot_reference_class_type_parameters); return; } } break; case 164: if (xn = n.parent.parent, (li(xn) || xn.kind === 261) && (ke = M(Lr(xn).members, a, l & 788968))) { u && qe(mn, _.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); return; } break; case 216: if ($o(Y) >= 2) break; case 171: case 173: case 174: case 175: case 259: if (l & 3 && a === "arguments") { ke = At; break e; } break; case 215: if (l & 3 && a === "arguments") { ke = At; break e; } if (l & 16) { const Yr = n.name; if (Yr && a === Yr.escapedText) { ke = n.symbol; break e; } } break; case 167: n.parent && n.parent.kind === 166 && (n = n.parent), n.parent && (Pc(n.parent) || n.parent.kind === 260) && (n = n.parent); break; case 349: case 341: case 343: const Jn = RI(n); Jn && (n = Jn.parent); break; case 166: ft && (ft === n.initializer || ft === n.name && Ja(ft)) && (An || (An = n)); break; case 205: ft && (ft === n.initializer || ft === n.name && Ja(ft)) && dT(n) && !An && (An = n); break; case 192: if (l & 262144) { const Yr = n.typeParameter.name; if (Yr && a === Yr.escapedText) { ke = n.typeParameter.symbol; break e; } } break; } aS(n) && (Bt = n), ft = n, n = mp(n) ? r3(n) || n.parent : (Qp(n) || k7(n)) && V0(n) || n.parent; } if (g && ke && (!Bt || ke !== Bt.symbol) && (ke.isReferenced |= l), !ke) { if (ft && (D.assertNode(ft, ji), ft.commonJsModuleIndicator && a === "exports" && l & ft.symbol.flags)) return ft.symbol; x || (ke = M(He, a, l)); } if (!ke && De && dr(De) && De.parent && vd(De.parent, !1)) return bt; function an() { return Mn && !(ge && $o(Y) >= 9) ? (qe(mn, mn && Mn.type && sM(Mn.type, mn.pos) ? _.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor : _.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, Is(Mn.name), $f(p)), !0) : !1; } if (ke) { if (u && an()) return; } else { u && i(() => { if (!mn || !u2(mn, a, p) && !an() && !n0(mn) && !sS(mn, a, l) && !lS(mn, a) && !f2(mn, a, l) && !If(mn, a, l) && !d2(mn, a, l)) { let Gn, Jn; if (p && (Jn = Btt(p), Jn && qe(mn, u, $f(p), Jn)), !Jn && R && kh < Sp && (Gn = mae(De, a, l), (Gn == null ? void 0 : Gn.valueDeclaration) && ku(Gn.valueDeclaration) && Hp(Gn.valueDeclaration) && (Gn = void 0), Gn)) { const ei = S(Gn), fa = fae(De, Gn, !1), Ya = l === 1920 || p && typeof p != "string" && $s(p) ? _.Cannot_find_namespace_0_Did_you_mean_1 : fa ? _.Could_not_find_name_0_Did_you_mean_1 : _.Cannot_find_name_0_Did_you_mean_1, gc = Z1(mn, Ya, $f(p), ei); Ry(!fa, gc), Gn.valueDeclaration && qo(gc, Dr(Gn.valueDeclaration, _._0_is_declared_here, ei)); } !Gn && !Jn && p && qe(mn, u, $f(p)), kh++; } }); return; } return u && i(() => { if (mn && (l & 2 || (l & 32 || l & 384) && (l & 111551) === 111551)) { const Gn = Lp(ke); (Gn.flags & 2 || Gn.flags & 32 || Gn.flags & 384) && bb(Gn, mn); } if (ke && gr && (l & 111551) === 111551 && !(De.flags & 8388608)) { const Gn = ns(ke); Ne(Gn.declarations) && Vn(Gn.declarations, (Jn) => AO(Jn) || ji(Jn) && !!Jn.symbol.globalExports) && tm(!Y.allowUmdGlobalAccess, mn, _._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead, Zi(a)); } if (ke && An && !Xn && (l & 111551) === 111551) { const Gn = ns(nU(ke)), Jn = Rm(An); Gn === Lr(An) ? qe(mn, _.Parameter_0_cannot_reference_itself, Is(An.name)) : Gn.valueDeclaration && Gn.valueDeclaration.pos > An.pos && Jn.parent.locals && M(Jn.parent.locals, Gn.escapedName, l) === Gn && qe(mn, _.Parameter_0_cannot_reference_identifier_1_declared_after_it, Is(An.name), Is(mn)); } if (ke && mn && l & 111551 && ke.flags & 2097152 && !(ke.flags & 111551) && !cx(mn)) { const Gn = Ld(ke, 111551); if (Gn) { const Jn = Gn.kind === 278 || Gn.kind === 275 || Gn.kind === 277 ? _._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : _._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type, Yr = Zi(a); iS(qe(mn, Jn, Yr), Gn, Yr); } } }), ke; } function iS(n, a, l) { return a ? qo(n, Dr(a, a.kind === 278 || a.kind === 275 || a.kind === 277 ? _._0_was_exported_here : _._0_was_imported_here, l)) : n; } function yb(n, a) { return n.kind !== 216 && n.kind !== 215 ? yk(n) || (Ys(n) || n.kind === 169 && !za(n)) && (!a || a !== n.name) : a && a === n.name ? !1 : n.asteriskToken || Jr(n, 512) ? !0 : !oT(n); } function aS(n) { switch (n.kind) { case 259: case 260: case 261: case 263: case 262: case 264: return !0; default: return !1; } } function $f(n) { return Va(n) ? Zi(n) : Is(n); } function c2(n, a) { if (n.declarations) { for (const l of n.declarations) if (l.kind === 165 && (mp(l.parent) ? QS(l.parent) : l.parent) === a) return !(mp(l.parent) && un(l.parent.parent.tags, c_)); } return !1; } function u2(n, a, l) { if (!Ve(n) || n.escapedText !== a || Nwe(n) || SL(n)) return !1; const u = yd(n, !1, !1); let p = u; for (; p; ) { if (li(p.parent)) { const g = Lr(p.parent); if (!g) break; const x = ar(g); if (so(x, a)) return qe(n, _.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, $f(l), S(g)), !0; if (p === u && !za(p)) { const R = Bs(g).thisType; if (so(R, a)) return qe(n, _.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, $f(l)), !0; } } p = p.parent; } return !1; } function n0(n) { const a = oS(n); return a && wl(a, 64, !0) ? (qe(n, _.Cannot_extend_an_interface_0_Did_you_mean_implements, bc(a)), !0) : !1; } function oS(n) { switch (n.kind) { case 79: case 208: return n.parent ? oS(n.parent) : void 0; case 230: if (Vl(n.expression)) return n.expression; default: return; } } function sS(n, a, l) { const u = 1920 | (dr(n) ? 111551 : 0); if (l === u) { const p = ql(dl(n, a, 788968 & ~u, void 0, void 0, !1)), g = n.parent; if (p) { if (Ed(g)) { D.assert(g.left === n, "Should only be resolving left side of qualified name as a namespace"); const x = g.right.escapedText; if (so(Bs(p), x)) return qe(g, _.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(a), Zi(x)), !0; } return qe(n, _._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, Zi(a)), !0; } } return !1; } function d2(n, a, l) { if (l & 788584) { const u = ql(dl(n, a, 111127, void 0, void 0, !1)); if (u && !(u.flags & 1920)) return qe(n, _._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, Zi(a)), !0; } return !1; } function vb(n) { return n === "any" || n === "string" || n === "number" || n === "boolean" || n === "never" || n === "unknown"; } function lS(n, a) { return vb(a) && n.parent.kind === 278 ? (qe(n, _.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, a), !0) : !1; } function If(n, a, l) { if (l & 111551) { if (vb(a)) return Lg(n) ? qe(n, _.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, Zi(a)) : qe(n, _._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, Zi(a)), !0; const u = ql(dl(n, a, 788544, void 0, void 0, !1)), p = u && iu(u); if (u && p !== void 0 && !(p & 111551)) { const g = Zi(a); return Z_(a) ? qe(n, _._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, g) : xp(n, u) ? qe(n, _._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, g, g === "K" ? "P" : "K") : qe(n, _._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, g), !0; } } return !1; } function Lg(n) { const a = n.parent.parent, l = a.parent; if (a && l) { const u = Md(a) && a.token === 94, p = Yu(l); return u && p; } return !1; } function xp(n, a) { const l = nr(n.parent, (u) => Ss(u) || Tf(u) ? !1 : rf(u) || "quit"); if (l && l.members.length === 1) { const u = Bs(a); return !!(u.flags & 1048576) && Z4(u, 384, !0); } return !1; } function Z_(n) { switch (n) { case "Promise": case "Symbol": case "Map": case "WeakMap": case "Set": case "WeakSet": return !0; } return !1; } function f2(n, a, l) { if (l & 111127) { if (ql(dl(n, a, 1024, void 0, void 0, !1))) return qe(n, _.Cannot_use_namespace_0_as_a_value, Zi(a)), !0; } else if (l & 788544 && ql(dl(n, a, 1536, void 0, void 0, !1))) return qe(n, _.Cannot_use_namespace_0_as_a_type, Zi(a)), !0; return !1; } function bb(n, a) { var l; if (D.assert(!!(n.flags & 2 || n.flags & 32 || n.flags & 384)), n.flags & 67108881 && n.flags & 32) return; const u = (l = n.declarations) == null ? void 0 : l.find((p) => CW(p) || li(p) || p.kind === 263); if (u === void 0) return D.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration"); if (!(u.flags & 16777216) && !Cg(u, a)) { let p; const g = Is(La(u)); n.flags & 2 ? p = qe(a, _.Block_scoped_variable_0_used_before_its_declaration, g) : n.flags & 32 ? p = qe(a, _.Class_0_used_before_its_declaration, g) : n.flags & 256 ? p = qe(a, _.Enum_0_used_before_its_declaration, g) : (D.assert(!!(n.flags & 128)), S1(Y) && (p = qe(a, _.Enum_0_used_before_its_declaration, g))), p && qo(p, Dr(u, _._0_is_declared_here, g)); } } function nm(n, a, l) { return !!a && !!nr(n, (u) => u === a || (u === l || qa(u) && (!oT(u) || jA(u)) ? "quit" : !1)); } function cS(n) { switch (n.kind) { case 268: return n; case 270: return n.parent; case 271: return n.parent.parent; case 273: return n.parent.parent.parent; default: return; } } function ud(n) { return n.declarations && Yi(n.declarations, Ig); } function Ig(n) { return n.kind === 268 || n.kind === 267 || n.kind === 270 && !!n.name || n.kind === 271 || n.kind === 277 || n.kind === 273 || n.kind === 278 || n.kind === 274 && GA(n) || vr(n) && xl(n) === 2 && GA(n) || ol(n) && vr(n.parent) && n.parent.left === n && n.parent.operatorToken.kind === 63 && rm(n.parent.right) || n.kind === 300 || n.kind === 299 && rm(n.initializer) || n.kind === 257 && g1(n) || n.kind === 205 && g1(n.parent.parent); } function rm(n) { return TN(n) || Ms(n) && Op(n); } function im(n, a) { const l = Py(n); if (l) { const p = YI(l.expression).arguments[0]; return Ve(l.name) ? ql(so(CAe(p), l.name.escapedText)) : void 0; } if (Wi(n) || n.moduleReference.kind === 280) { const p = au(n, qW(n) || wI(n)), g = dd(p); return b_(n, p, g, !1), g; } const u = Cp(n.moduleReference, a); return kg(n, u), u; } function kg(n, a) { if (b_(n, void 0, a, !1) && !n.isTypeOnly) { const l = Ld(Lr(n)), u = l.kind === 278 || l.kind === 275, p = u ? _.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, g = u ? _._0_was_exported_here : _._0_was_imported_here, x = l.kind === 275 ? "*" : Zi(l.name.escapedText); qo(qe(n.moduleReference, p), Dr(l, g, x)); } } function nE(n, a, l, u) { const p = n.exports.get("export="), g = p ? so(ar(p), a, !0) : n.exports.get(a), x = ql(g, u); return b_(l, g, x, !1), x; } function uS(n) { return Pl(n) && !n.isExportEquals || Jr(n, 1024) || od(n); } function Ny(n) { return Ts(n) ? hp(Zn(n), n) : void 0; } function rE(n, a) { return n === 99 && a === 1; } function ws(n) { return Ny(n) === 99 && tc(n.text, ".json"); } function Oy(n, a, l, u) { const p = n && Ny(u); if (n && p !== void 0) { const g = rE(p, n.impliedNodeFormat); if (p === 99 || g) return g; } if (!ie) return !1; if (!n || n.isDeclarationFile) { const g = nE(a, "default", void 0, !0); return !(g && kt(g.declarations, uS) || nE(a, al("__esModule"), void 0, l)); } return Ju(n) ? typeof n.externalModuleIndicator != "object" && !nE(a, al("__esModule"), void 0, l) : lE(a); } function _2(n, a) { const l = au(n, n.parent.moduleSpecifier); if (l) return Eb(l, n, a); } function Eb(n, a, l) { var u; let p; AI(n) ? p = n : p = nE(n, "default", a, l); const g = (u = n.declarations) == null ? void 0 : u.find(ji), x = Tb(a); if (!x) return p; const R = ws(x), M = Oy(g, n, l, x); if (!p && !M && !R) if (lE(n) && !(hT(Y) || B_(Y))) { const J = ue >= 5 ? "allowSyntheticDefaultImports" : "esModuleInterop", he = n.exports.get("export=").valueDeclaration, De = qe(a.name, _.Module_0_can_only_be_default_imported_using_the_1_flag, S(n), J); he && qo(De, Dr(he, _.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag, J)); } else Gm(a) ? p2(n, a) : r0(n, n, a, VS(a) && a.propertyName || a.name); else if (M || R) { const J = dd(n, l) || ql(n, l); return b_(a, n, J, !1), J; } return b_(a, p, void 0, !1), p; } function Tb(n) { switch (n.kind) { case 270: return n.parent.moduleSpecifier; case 268: return Um(n.moduleReference) ? n.moduleReference.expression : void 0; case 271: return n.parent.parent.moduleSpecifier; case 273: return n.parent.parent.parent.moduleSpecifier; case 278: return n.parent.parent.moduleSpecifier; default: return D.assertNever(n); } } function p2(n, a) { var l, u, p; if ((l = n.exports) != null && l.has(a.symbol.escapedName)) qe(a.name, _.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead, S(n), S(a.symbol)); else { const g = qe(a.name, _.Module_0_has_no_default_export, S(n)), x = (u = n.exports) == null ? void 0 : u.get("__export"); if (x) { const R = (p = x.declarations) == null ? void 0 : p.find((M) => { var J, $; return !!(Kc(M) && M.moduleSpecifier && (($ = (J = au(M, M.moduleSpecifier)) == null ? void 0 : J.exports) != null && $.has("default"))); }); R && qo(g, Dr(R, _.export_Asterisk_does_not_re_export_a_default)); } } } function iL(n, a) { const l = n.parent.parent.moduleSpecifier, u = au(n, l), p = Cb(u, l, a, !1); return b_(n, u, p, !1), p; } function m2(n, a) { const l = n.parent.moduleSpecifier, u = l && au(n, l), p = l && Cb(u, l, a, !1); return b_(n, u, p, !1), p; } function _r(n, a) { if (n === en && a === en) return en; if (n.flags & 790504) return n; const l = Qo(n.flags | a.flags, n.escapedName); return D.assert(n.declarations || a.declarations), l.declarations = oA(ha(n.declarations, a.declarations), N0), l.parent = n.parent || a.parent, n.valueDeclaration && (l.valueDeclaration = n.valueDeclaration), a.members && (l.members = new Map(a.members)), n.exports && (l.exports = new Map(n.exports)), l; } function kl(n, a, l, u) { var p; if (n.flags & 1536) { const g = uf(n).get(a.escapedText), x = ql(g, u), R = (p = Ui(n).typeOnlyExportStarMap) == null ? void 0 : p.get(a.escapedText); return b_(l, g, x, !1, R, a.escapedText), x; } } function ca(n, a) { if (n.flags & 3) { const l = n.valueDeclaration.type; if (l) return ql(so(ci(l), a)); } } function kf(n, a, l = !1) { var u; const p = qW(n) || n.moduleSpecifier, g = au(n, p), x = !Pr(a) && a.propertyName || a.name; if (!Ve(x)) return; const R = x.escapedText === "default" && !!(Y.allowSyntheticDefaultImports || B_(Y)), M = Cb(g, p, !1, R); if (M && x.escapedText) { if (AI(g)) return g; let J; g && g.exports && g.exports.get("export=") ? J = so(ar(M), x.escapedText, !0) : J = ca(M, x.escapedText), J = ql(J, l); let $ = kl(M, x, a, l); if ($ === void 0 && x.escapedText === "default") { const De = (u = g.declarations) == null ? void 0 : u.find(ji); (ws(p) || Oy(De, g, l, p)) && ($ = dd(g, l) || ql(g, l)); } const he = $ && J && $ !== J ? _r(J, $) : $ || J; return he || r0(g, M, n, x), he; } } function r0(n, a, l, u) { var p; const g = Rh(n, l), x = Is(u), R = aV(u, a); if (R !== void 0) { const M = S(R), J = qe(u, _._0_has_no_exported_member_named_1_Did_you_mean_2, g, x, M); R.valueDeclaration && qo(J, Dr(R.valueDeclaration, _._0_is_declared_here, M)); } else (p = n.exports) != null && p.has("default") ? qe(u, _.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, g, x) : Xm(l, u, x, n, g); } function Xm(n, a, l, u, p) { var g, x; const R = (x = (g = ri(u.valueDeclaration, Im)) == null ? void 0 : g.locals) == null ? void 0 : x.get(a.escapedText), M = u.exports; if (R) { const J = M == null ? void 0 : M.get("export="); if (J) am(J, R) ? ir(n, a, l, p) : qe(a, _.Module_0_has_no_exported_member_1, p, l); else { const $ = M ? un(vre(M), (De) => !!am(De, R)) : void 0, he = $ ? qe(a, _.Module_0_declares_1_locally_but_it_is_exported_as_2, p, l, S($)) : qe(a, _.Module_0_declares_1_locally_but_it_is_not_exported, p, l); R.declarations && qo(he, ...rn(R.declarations, (De, ke) => Dr(De, ke === 0 ? _._0_is_declared_here : _.and_here, l))); } } else qe(a, _.Module_0_has_no_exported_member_1, p, l); } function ir(n, a, l, u) { if (ue >= 5) { const p = B_(Y) ? _._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; qe(a, p, l); } else if (dr(n)) { const p = B_(Y) ? _._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; qe(a, p, l); } else { const p = B_(Y) ? _._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; qe(a, p, l, l, u); } } function h2(n, a) { if (Td(n) && Or(n.propertyName || n.name) === "default") { const x = Tb(n), R = x && au(n, x); if (R) return Eb(R, n, a); } const l = us(n) ? Rm(n) : n.parent.parent.parent, u = Py(l), p = kf(l, u || n, a), g = n.propertyName || n.name; return u && p && Ve(g) ? ql(so(ar(p), g.escapedText), a) : (b_(n, void 0, p, !1), p); } function Py(n) { if (Wi(n) && n.initializer && Pr(n.initializer)) return n.initializer; } function xc(n, a) { if (Lm(n.parent)) { const l = dd(n.parent.symbol, a); return b_(n, void 0, l, !1), l; } } function v_(n, a, l) { if (Or(n.propertyName || n.name) === "default") { const p = Tb(n), g = p && au(n, p); if (g) return Eb(g, n, !!l); } const u = n.parent.parent.moduleSpecifier ? kf(n.parent.parent, n, l) : wl(n.propertyName || n.name, a, !1, l); return b_(n, void 0, u, !1), u; } function Ap(n, a) { const l = Pl(n) ? n.expression : n.right, u = My(l, a); return b_(n, void 0, u, !1), u; } function My(n, a) { if (Nu(n)) return Kl(n).symbol; if (!$d(n) && !Vl(n)) return; const l = wl(n, 901119, !0, a); return l || (Kl(n), Wr(n).resolvedSymbol); } function iE(n, a) { if (vr(n.parent) && n.parent.left === n && n.parent.operatorToken.kind === 63) return My(n.parent.right, a); } function ep(n, a = !1) { switch (n.kind) { case 268: case 257: return im(n, a); case 270: return _2(n, a); case 271: return iL(n, a); case 277: return m2(n, a); case 273: case 205: return h2(n, a); case 278: return v_(n, 901119, a); case 274: case 223: return Ap(n, a); case 267: return xc(n, a); case 300: return wl(n.name, 901119, !0, a); case 299: return My(n.initializer, a); case 209: case 208: return iE(n, a); default: return D.fail(); } } function Fy(n, a = 901119) { return n ? (n.flags & (2097152 | a)) === 2097152 || !!(n.flags & 2097152 && n.flags & 67108864) : !1; } function ql(n, a) { return !a && Fy(n) ? Zl(n) : n; } function Zl(n) { D.assert((n.flags & 2097152) !== 0, "Should only get Alias here."); const a = Ui(n); if (a.aliasTarget) a.aliasTarget === Pn && (a.aliasTarget = en); else { a.aliasTarget = Pn; const l = ud(n); if (!l) return D.fail(); const u = ep(l); a.aliasTarget === Pn ? a.aliasTarget = u || en : qe(l, _.Circular_definition_of_import_alias_0, S(n)); } return a.aliasTarget; } function wg(n) { if (Ui(n).aliasTarget !== Pn) return Zl(n); } function iu(n) { let a = n.flags, l; for (; n.flags & 2097152; ) { const u = Zl(n); if (u === en) return 67108863; if (u === n || l != null && l.has(u)) break; u.flags & 2097152 && (l ? l.add(u) : l = /* @__PURE__ */ new Set([n, u])), a |= u.flags, n = u; } return a; } function b_(n, a, l, u, p, g) { if (!n || Pr(n)) return !1; const x = Lr(n); if (u1(n)) { const M = Ui(x); return M.typeOnlyDeclaration = n, !0; } if (p) { const M = Ui(x); return M.typeOnlyDeclaration = p, x.escapedName !== g && (M.typeOnlyExportStarName = g), !0; } const R = Ui(x); return Ym(R, a, u) || Ym(R, l, u); } function Ym(n, a, l) { var u, p, g; if (a && (n.typeOnlyDeclaration === void 0 || l && n.typeOnlyDeclaration === !1)) { const x = (p = (u = a.exports) == null ? void 0 : u.get("export=")) != null ? p : a, R = x.declarations && un(x.declarations, u1); n.typeOnlyDeclaration = (g = R ?? Ui(x).typeOnlyDeclaration) != null ? g : !1; } return !!n.typeOnlyDeclaration; } function Ld(n, a) { if (!(n.flags & 2097152)) return; const l = Ui(n); if (a === void 0) return l.typeOnlyDeclaration || void 0; if (l.typeOnlyDeclaration) { const u = l.typeOnlyDeclaration.kind === 275 ? ql(Mh(l.typeOnlyDeclaration.symbol.parent).get(l.typeOnlyExportStarName || n.escapedName)) : Zl(l.typeOnlyDeclaration.symbol); return iu(u) & a ? l.typeOnlyDeclaration : void 0; } } function aE(n) { if (Y.verbatimModuleSyntax) return; const a = Lr(n), l = Zl(a); l && (l === en || iu(l) & 111551 && !PD(l) && !Ld(a, 111551)) && Sb(a); } function Sb(n) { D.assert(!Y.verbatimModuleSyntax); const a = Ui(n); if (!a.referenced) { a.referenced = !0; const l = ud(n); if (!l) return D.fail(); RA(l) && iu(ql(n)) & 111551 && Kl(l.moduleReference); } } function xb(n) { const a = Ui(n); a.constEnumReferenced || (a.constEnumReferenced = !0); } function Cp(n, a) { return n.kind === 79 && WI(n) && (n = n.parent), n.kind === 79 || n.parent.kind === 163 ? wl(n, 1920, !1, a) : (D.assert(n.parent.kind === 268), wl(n, 901119, !1, a)); } function Rh(n, a) { return n.parent ? Rh(n.parent, a) + "." + S(n) : S(n, a, void 0, 36); } function oE(n) { for (; Ed(n.parent); ) n = n.parent; return n; } function By(n) { let a = Ef(n), l = dl(a, a.escapedText, 111551, void 0, a, !0); if (l) { for (; Ed(a.parent); ) { const u = ar(l); if (l = so(u, a.parent.right.escapedText), !l) return; a = a.parent; } return l; } } function wl(n, a, l, u, p) { if (Sl(n)) return; const g = 1920 | (dr(n) ? a & 111551 : 0); let x; if (n.kind === 79) { const R = a === g || $s(n) ? _.Cannot_find_namespace_0 : gLe(Ef(n)), M = dr(n) && !$s(n) ? Dg(n, a) : void 0; if (x = ns(dl(p || n, n.escapedText, a, l || M ? void 0 : R, n, !0, !1)), !x) return ns(M); } else if (n.kind === 163 || n.kind === 208) { const R = n.kind === 163 ? n.left : n.expression, M = n.kind === 163 ? n.right : n.name; let J = wl(R, g, l, !1, p); if (!J || Sl(M)) return; if (J === en) return J; if (J.valueDeclaration && dr(J.valueDeclaration) && gl(Y) !== 100 && Wi(J.valueDeclaration) && J.valueDeclaration.initializer && eke(J.valueDeclaration.initializer)) { const $ = J.valueDeclaration.initializer.arguments[0], he = au($, $); if (he) { const De = dd(he); De && (J = De); } } if (x = ns(Hd(uf(J), M.escapedText, a)), !x) { if (!l) { const $ = Rh(J), he = Is(M), De = aV(M, J); if (De) { qe(M, _._0_has_no_exported_member_named_1_Did_you_mean_2, $, he, S(De)); return; } const ke = Ed(n) && oE(n); if (Ka && a & 788968 && ke && !fC(ke.parent) && By(ke)) { qe(ke, _._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, vf(ke)); return; } if (a & 1920 && Ed(n.parent)) { const Bt = ns(Hd(uf(J), M.escapedText, 788968)); if (Bt) { qe(n.parent.right, _.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, S(Bt), Zi(n.parent.right.escapedText)); return; } } qe(M, _.Namespace_0_has_no_exported_member_1, $, he); } return; } } else throw D.assertNever(n, "Unknown entity name kind."); return D.assert((Al(x) & 1) === 0, "Should never get an instantiated symbol here."), !$s(n) && $d(n) && (x.flags & 2097152 || n.parent.kind === 274) && b_(iz(n), x, void 0, !0), x.flags & a || u ? x : Zl(x); } function Dg(n, a) { if (lU(n.parent)) { const l = Nh(n.parent); if (l) return dl(l, n.escapedText, a, void 0, n, !0); } } function Nh(n) { if (nr(n, (p) => EA(p) || p.flags & 8388608 ? c_(p) : "quit")) return; const l = QS(n); if (l && eu(l) && uN(l.expression)) { const p = Lr(l.expression.left); if (p) return i0(p); } if (l && Ms(l) && uN(l.parent) && eu(l.parent.parent)) { const p = Lr(l.parent.left); if (p) return i0(p); } if (l && (N_(l) || Uc(l)) && vr(l.parent.parent) && xl(l.parent.parent) === 6) { const p = Lr(l.parent.parent.left); if (p) return i0(p); } const u = BA(n); if (u && qa(u)) { const p = Lr(u); return p && p.valueDeclaration; } } function i0(n) { const a = n.parent.valueDeclaration; return a ? (DI(a) ? JS(a) : eT(a) ? aN(a) : void 0) || a : void 0; } function a0(n) { const a = n.valueDeclaration; if (!a || !dr(a) || n.flags & 524288 || U0(a, !1)) return; const l = Wi(a) ? aN(a) : JS(a); if (l) { const u = Wd(l); if (u) return Aae(u, n); } } function au(n, a, l) { const p = gl(Y) === 1 ? _.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : _.Cannot_find_module_0_or_its_corresponding_type_declarations; return Oh(n, a, l ? void 0 : p); } function Oh(n, a, l, u = !1) { return Ts(a) ? hc(n, a.text, l, a, u) : void 0; } function hc(n, a, l, u, p = !1) { var g, x, R, M, J, $, he, De, ke; if (Ea(a, "@types/")) { const Gn = _.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1, Jn = $L(a, "@types/"); qe(u, Gn, Jn, a); } const ft = bre(a, !0); if (ft) return ft; const Bt = Zn(n), Mn = Ts(n) ? n : ((g = nr(n, tf)) == null ? void 0 : g.arguments[0]) || ((x = nr(n, Gc)) == null ? void 0 : x.moduleSpecifier) || ((R = nr(n, G0)) == null ? void 0 : R.moduleReference.expression) || ((M = nr(n, Kc)) == null ? void 0 : M.moduleSpecifier) || ((J = Hl(n) ? n : n.parent && Hl(n.parent) && n.parent.name === n ? n.parent : void 0) == null ? void 0 : J.name) || (($ = B0(n) ? n : void 0) == null ? void 0 : $.argument.literal), An = Mn && Ts(Mn) ? hp(Bt, Mn) : Bt.impliedNodeFormat, Xn = gl(Y), mn = SA(Bt, a, An), xn = mn && RX(Y, mn, Bt), gr = mn && (!xn || xn === _.Module_0_was_resolved_to_1_but_jsx_is_not_set) && e.getSourceFile(mn.resolvedFileName); if (gr) { if (xn && qe(u, xn, a, mn.resolvedFileName), mn.resolvedUsingTsExtension && sd(a)) { const Gn = ((he = nr(n, Gc)) == null ? void 0 : he.importClause) || nr(n, Sm(tu, Kc)); (Gn && !Gn.isTypeOnly || nr(n, tf)) && qe(u, _.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead, an(D.checkDefined(p3(a)))); } else if (mn.resolvedUsingTsExtension && !Uk(Y, Bt.fileName)) { const Gn = D.checkDefined(p3(a)); qe(u, _.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, Gn); } if (gr.symbol) { if (mn.isExternalLibraryImport && !XN(mn.extension) && sE(!1, u, Bt, An, mn, a), Xn === 3 || Xn === 99) { const Gn = Bt.impliedNodeFormat === 1 && !nr(n, tf) || !!nr(n, tu), Jn = nr(n, (ei) => dg(ei) || Kc(ei) || Gc(ei)), Yr = Jn && dg(Jn) ? (De = Jn.assertions) == null ? void 0 : De.assertClause : Jn == null ? void 0 : Jn.assertClause; if (Gn && gr.impliedNodeFormat === 99 && !Px(Yr)) if (nr(n, tu)) qe(u, _.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, a); else { let ei; const fa = yh(Bt.fileName); if (fa === ".ts" || fa === ".js" || fa === ".tsx" || fa === ".jsx") { const Ya = Bt.packageJsonScope, gc = fa === ".ts" ? ".mts" : fa === ".js" ? ".mjs" : void 0; Ya && !Ya.contents.packageJsonContent.type ? gc ? ei = Da(void 0, _.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1, gc, Oi(Ya.packageDirectory, "package.json")) : ei = Da(void 0, _.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0, Oi(Ya.packageDirectory, "package.json")) : gc ? ei = Da(void 0, _.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, gc) : ei = Da(void 0, _.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module); } Xo.add(rg(Zn(u), u, Da(ei, _.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, a))); } } return ns(gr.symbol); } l && qe(u, _.File_0_is_not_a_module, gr.fileName); return; } if (_o) { const Gn = dj(_o, (Jn) => Jn.pattern, a); if (Gn) { const Jn = Uo && Uo.get(a); return ns(Jn || Gn.symbol); } } if (mn && !XN(mn.extension) && xn === void 0 || xn === _.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) { if (p) { const Gn = _.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented; qe(u, Gn, a, mn.resolvedFileName); } else sE(Te && !!l, u, Bt, An, mn, a); return; } if (l) { if (mn) { const Gn = e.getProjectReferenceRedirect(mn.resolvedFileName); if (Gn) { qe(u, _.Output_file_0_has_not_been_built_from_source_file_1, Gn, mn.resolvedFileName); return; } } if (xn) qe(u, xn, a, mn.resolvedFileName); else { const Gn = gf(a) && !dA(a), Jn = Xn === 3 || Xn === 99; if (!gT(Y) && oc(a, ".json") && Xn !== 1 && b3(Y)) qe(u, _.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, a); else if (An === 99 && Jn && Gn) { const Yr = Na(a, fi(Bt.path)), ei = (ke = s2.find(([fa, Ya]) => e.fileExists(Yr + fa))) == null ? void 0 : ke[1]; ei ? qe(u, _.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0, a + ei) : qe(u, _.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 qe(u, l, a); } } return; function an(Gn) { const Jn = KN(a, Gn); if (jz(ue) || An === 99) { const Yr = sd(a) && Uk(Y); return Jn + (Gn === ".mts" || Gn === ".d.mts" ? Yr ? ".mts" : ".mjs" : Gn === ".cts" || Gn === ".d.mts" ? Yr ? ".cts" : ".cjs" : Yr ? ".ts" : ".js"); } return Jn; } } function sE(n, a, l, u, { packageId: p, resolvedFileName: g }, x) { var R, M; let J; if (!Oc(x) && p) { const $ = (M = (R = l.resolvedModules) == null ? void 0 : R.get(x, u)) == null ? void 0 : M.node10Result; J = $ ? Da(void 0, _.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, $, $.indexOf(Ty + "@types/") > -1 ? `@types/${Gk(p.name)}` : p.name) : Ph(p.name) ? Da(void 0, _.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, p.name, Gk(p.name)) : Ab(p.name) ? Da(void 0, _.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1, p.name, x) : Da(void 0, _.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0, x, Gk(p.name)); } tm(n, a, Da(J, _.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type, x, g)); } function Ph(n) { return t().has(p5(n)); } function Ab(n) { return !!t().get(n); } function dd(n, a) { if (n != null && n.exports) { const l = ql(n.exports.get("export="), a), u = $m(ns(l), ns(n)); return ns(u) || n; } } function $m(n, a) { if (!n || n === en || n === a || a.exports.size === 1 || n.flags & 2097152) return n; const l = Ui(n); if (l.cjsExportMerged) return l.cjsExportMerged; const u = n.flags & 33554432 ? n : mb(n); return u.flags = u.flags | 512, u.exports === void 0 && (u.exports = ao()), a.exports.forEach((p, g) => { g !== "export=" && u.exports.set(g, u.exports.has(g) ? Q_(u.exports.get(g), p) : p); }), Ui(u).cjsExportMerged = u, l.cjsExportMerged = u; } function Cb(n, a, l, u) { var p; const g = dd(n, l); if (!l && g) { if (!u && !(g.flags & 1539) && !Tl(g, 308)) { const R = ue >= 5 ? "allowSyntheticDefaultImports" : "esModuleInterop"; return qe(a, _.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, R), g; } const x = a.parent; if (Gc(x) && PA(x) || tf(x)) { const R = tf(x) ? x.arguments[0] : x.moduleSpecifier, M = ar(g), J = QIe(M, g, n, R); if (J) return o0(g, J, x); const $ = (p = n == null ? void 0 : n.declarations) == null ? void 0 : p.find(ji), he = $ && rE(Ny(R), $.impliedNodeFormat); if (B_(Y) || he) { let De = u4(M, 0); if ((!De || !De.length) && (De = u4(M, 1)), De && De.length || so(M, "default", !0) || he) { const ke = ZIe(M, g, n, R); return o0(g, ke, x); } } } } return g; } function o0(n, a, l) { const u = Qo(n.flags, n.escapedName); u.declarations = n.declarations ? n.declarations.slice() : [], u.parent = n.parent, u.links.target = n, u.links.originatingImport = l, n.valueDeclaration && (u.valueDeclaration = n.valueDeclaration), n.constEnumOnlyModule && (u.constEnumOnlyModule = !0), n.members && (u.members = new Map(n.members)), n.exports && (u.exports = new Map(n.exports)); const p = ip(a); return u.links.type = Ds(u, p.members, nt, nt, p.indexInfos), u; } function lE(n) { return n.exports.get("export=") !== void 0; } function Gy(n) { return vre(Mh(n)); } function dS(n) { const a = Gy(n), l = dd(n); if (l !== n) { const u = ar(l); cE(u) && yi(a, fs(u)); } return a; } function s0(n, a) { Mh(n).forEach((p, g) => { dE(g) || a(p, g); }); const u = dd(n); if (u !== n) { const p = ar(u); cE(p) && _Ye(p, (g, x) => { a(g, x); }); } } function Rg(n, a) { const l = Mh(a); if (l) return l.get(n); } function wf(n, a) { const l = Rg(n, a); if (l) return l; const u = dd(a); if (u === a) return; const p = ar(u); return cE(p) ? so(p, n) : void 0; } function cE(n) { return !(n.flags & 134348796 || Qr(n) & 1 || Ff(n) || Oo(n)); } function uf(n) { return n.flags & 6256 ? tre(n, "resolvedExports") : n.flags & 1536 ? Mh(n) : n.exports || te; } function Mh(n) { const a = Ui(n); if (!a.resolvedExports) { const { exports: l, typeOnlyExportStarMap: u } = g2(n); a.resolvedExports = l, a.typeOnlyExportStarMap = u; } return a.resolvedExports; } function l0(n, a, l, u) { a && a.forEach((p, g) => { if (g === "default") return; const x = n.get(g); if (!x) n.set(g, p), l && u && l.set(g, { specifierText: bc(u.moduleSpecifier) }); else if (l && u && x && ql(x) !== ql(p)) { const R = l.get(g); R.exportsWithDuplicate ? R.exportsWithDuplicate.push(u) : R.exportsWithDuplicate = [u]; } }); } function g2(n) { const a = []; let l; const u = /* @__PURE__ */ new Set(); n = dd(n); const p = g(n) || te; return l && u.forEach((x) => l.delete(x)), { exports: p, typeOnlyExportStarMap: l }; function g(x, R, M) { if (!M && (x != null && x.exports) && x.exports.forEach((he, De) => u.add(De)), !(x && x.exports && a_(a, x))) return; const J = new Map(x.exports), $ = x.exports.get("__export"); if ($) { const he = ao(), De = /* @__PURE__ */ new Map(); if ($.declarations) for (const ke of $.declarations) { const ft = au(ke, ke.moduleSpecifier), Bt = g(ft, ke, M || ke.isTypeOnly); l0(he, Bt, De, ke); } De.forEach(({ exportsWithDuplicate: ke }, ft) => { if (!(ft === "export=" || !(ke && ke.length) || J.has(ft))) for (const Bt of ke) Xo.add(Dr(Bt, _.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity, De.get(ft).specifierText, Zi(ft))); }), l0(J, he); } return R != null && R.isTypeOnly && (l ?? (l = /* @__PURE__ */ new Map()), J.forEach((he, De) => l.set(De, R))), J; } } function ns(n) { let a; return n && n.mergeId && (a = Xv[n.mergeId]) ? a : n; } function Lr(n) { return ns(n.symbol && nU(n.symbol)); } function Wd(n) { return Lm(n) ? Lr(n) : void 0; } function fd(n) { return ns(n.parent && nU(n.parent)); } function fS(n, a) { const l = Zn(a), u = ds(l), p = Ui(n); let g; if (p.extendedContainersByFile && (g = p.extendedContainersByFile.get(u))) return g; if (l && l.imports) { for (const R of l.imports) { if ($s(R)) continue; const M = au(a, R, !0); !M || !Vy(M, n) || (g = Fn(g, M)); } if (Ne(g)) return (p.extendedContainersByFile || (p.extendedContainersByFile = /* @__PURE__ */ new Map())).set(u, g), g; } if (p.extendedContainers) return p.extendedContainers; const x = e.getSourceFiles(); for (const R of x) { if (!Yl(R)) continue; const M = Lr(R); Vy(M, n) && (g = Fn(g, M)); } return p.extendedContainers = g || nt; } function uE(n, a, l) { const u = fd(n); if (u && !(n.flags & 262144)) { const x = _a(u.declarations, g), R = a && fS(n, a), M = Uy(u, l); if (a && u.flags & Pg(l) && u0(u, a, 1920, !1)) return Fn(ha(ha([u], x), R), M); const J = !(u.flags & Pg(l)) && u.flags & 788968 && Bs(u).flags & 524288 && l === 111551 ? _E(a, (he) => Zd(he, (De) => { if (De.flags & Pg(l) && ar(De) === Bs(u)) return De; })) : void 0; let $ = J ? [J, ...x, u] : [...x, u]; return $ = Fn($, M), $ = yi($, R), $; } const p = _a(n.declarations, (x) => { if (!ku(x) && x.parent) { if (Mg(x.parent)) return Lr(x.parent); if (Yp(x.parent) && x.parent.parent && dd(Lr(x.parent.parent)) === n) return Lr(x.parent.parent); } if (Nu(x) && vr(x.parent) && x.parent.operatorToken.kind === 63 && ol(x.parent.left) && Vl(x.parent.left.expression)) return ph(x.parent.left) || sT(x.parent.left.expression) ? Lr(Zn(x)) : (Kl(x.parent.left.expression), Wr(x.parent.left.expression).resolvedSymbol); }); if (!Ne(p)) return; return _a(p, (x) => Vy(x, n) ? x : void 0); function g(x) { return u && y2(x, u); } } function Uy(n, a) { const l = !!Ne(n.declarations) && ss(n.declarations); if (a & 111551 && l && l.parent && Wi(l.parent) && (As(l) && l === l.parent.initializer || rf(l) && l === l.parent.type)) return Lr(l.parent); } function y2(n, a) { const l = Bh(n), u = l && l.exports && l.exports.get("export="); return u && am(u, a) ? l : void 0; } function Vy(n, a) { if (n === fd(a)) return a; const l = n.exports && n.exports.get("export="); if (l && am(l, a)) return n; const u = uf(n), p = u.get(a.escapedName); return p && am(p, a) ? p : Zd(u, (g) => { if (am(g, a)) return g; }); } function am(n, a) { if (ns(ql(ns(n))) === ns(ql(ns(a)))) return n; } function Lp(n) { return ns(n && (n.flags & 1048576) !== 0 && n.exportSymbol || n); } function Ng(n, a) { return !!(n.flags & 111551 || n.flags & 2097152 && iu(n) & 111551 && (a || !Ld(n))); } function c0(n) { const a = n.members; for (const l of a) if (l.kind === 173 && s_(l.body)) return l; } function Fh(n) { var a; const l = new y(it, n); return b++, l.id = b, (a = hi) == null || a.recordType(l), l; } function om(n, a) { const l = Fh(n); return l.symbol = a, l; } function _S(n) { return new y(it, n); } function Jl(n, a, l = 0) { const u = Fh(n); return u.intrinsicName = a, u.objectFlags = l, u; } function df(n, a) { const l = om(524288, a); return l.objectFlags = n, l.members = void 0, l.properties = void 0, l.callSignatures = void 0, l.constructSignatures = void 0, l.indexInfos = void 0, l; } function Qm() { return Xr(ko(S5.keys(), Mf)); } function Id(n) { return om(262144, n); } function dE(n) { return n.charCodeAt(0) === 95 && n.charCodeAt(1) === 95 && n.charCodeAt(2) !== 95 && n.charCodeAt(2) !== 64 && n.charCodeAt(2) !== 35; } function jy(n) { let a; return n.forEach((l, u) => { Og(l, u) && (a || (a = [])).push(l); }), a || nt; } function Og(n, a) { return !dE(a) && Ng(n); } function v2(n) { const a = jy(n), l = xre(n); return l ? ha(a, [l]) : a; } function Df(n, a, l, u, p) { const g = n; return g.members = a, g.properties = nt, g.callSignatures = l, g.constructSignatures = u, g.indexInfos = p, a !== te && (g.properties = jy(a)), g; } function Ds(n, a, l, u, p) { return Df(df(16, n), a, l, u, p); } function fE(n) { if (n.constructSignatures.length === 0) return n; if (n.objectTypeWithoutAbstractConstructSignatures) return n.objectTypeWithoutAbstractConstructSignatures; const a = yn(n.constructSignatures, (u) => !(u.flags & 4)); if (n.constructSignatures === a) return n; const l = Ds(n.symbol, n.members, n.callSignatures, kt(a) ? a : nt, n.indexInfos); return n.objectTypeWithoutAbstractConstructSignatures = l, l.objectTypeWithoutAbstractConstructSignatures = l, l; } function _E(n, a) { let l; for (let u = n; u; u = u.parent) { if (Im(u) && u.locals && !Jm(u) && (l = a(u.locals, void 0, !0, u))) return l; switch (u.kind) { case 308: if (!ef(u)) break; case 264: const p = Lr(u); if (l = a((p == null ? void 0 : p.exports) || te, void 0, !0, u)) return l; break; case 260: case 228: case 261: let g; if ((Lr(u).members || te).forEach((x, R) => { x.flags & 788968 && (g || (g = ao())).set(R, x); }), g && (l = a(g, void 0, !1, u))) return l; break; } } return a(He, void 0, !0); } function Pg(n) { return n === 111551 ? 111551 : 1920; } function u0(n, a, l, u, p = /* @__PURE__ */ new Map()) { if (!(n && !pE(n))) return; const g = Ui(n), x = g.accessibleChainCache || (g.accessibleChainCache = /* @__PURE__ */ new Map()), R = _E(a, (An, Xn, mn, xn) => xn), M = `${u ? 0 : 1}|${R && ds(R)}|${l}`; if (x.has(M)) return x.get(M); const J = go(n); let $ = p.get(J); $ || p.set(J, $ = []); const he = _E(a, De); return x.set(M, he), he; function De(An, Xn, mn) { if (!a_($, An)) return; const xn = Bt(An, Xn, mn); return $.pop(), xn; } function ke(An, Xn) { return !pS(An, a, Xn) || !!u0(An.parent, a, Pg(Xn), u, p); } function ft(An, Xn, mn) { return (n === (Xn || An) || ns(n) === ns(Xn || An)) && !kt(An.declarations, Mg) && (mn || ke(ns(An), l)); } function Bt(An, Xn, mn) { return ft(An.get(n.escapedName), void 0, Xn) ? [n] : Zd(An, (gr) => { if (gr.flags & 2097152 && gr.escapedName !== "export=" && gr.escapedName !== "default" && !(g3(gr) && a && Yl(Zn(a))) && (!u || kt(gr.declarations, G0)) && (!mn || !kt(gr.declarations, $ce)) && (Xn || !Tl(gr, 278))) { const an = Zl(gr), Gn = Mn(gr, an, Xn); if (Gn) return Gn; } if (gr.escapedName === n.escapedName && gr.exportSymbol && ft(ns(gr.exportSymbol), void 0, Xn)) return [n]; }) || (An === He ? Mn(ot, ot, Xn) : void 0); } function Mn(An, Xn, mn) { if (ft(An, Xn, mn)) return [An]; const xn = uf(Xn), gr = xn && De(xn, !0); if (gr && ke(An, Pg(l))) return [An].concat(gr); } } function pS(n, a, l) { let u = !1; return _E(a, (p) => { let g = ns(p.get(n.escapedName)); if (!g) return !1; if (g === n) return !0; const x = g.flags & 2097152 && !Tl(g, 278); return g = x ? Zl(g) : g, (x ? iu(g) : g.flags) & l ? (u = !0, !0) : !1; }), u; } function pE(n) { if (n.declarations && n.declarations.length) { for (const a of n.declarations) switch (a.kind) { case 169: case 171: case 174: case 175: continue; default: return !1; } return !0; } return !1; } function mE(n, a) { return zd(n, a, 788968, !1, !0).accessibility === 0; } function hE(n, a) { return zd(n, a, 111551, !1, !0).accessibility === 0; } function gE(n, a, l) { return zd(n, a, l, !1, !1).accessibility === 0; } function yE(n, a, l, u, p, g) { if (!Ne(n)) return; let x, R = !1; for (const M of n) { const J = u0(M, a, u, !1); if (J) { x = M; const De = b2(J[0], p); if (De) return De; } if (g && kt(M.declarations, Mg)) { if (p) { R = !0; continue; } return { accessibility: 0 }; } const $ = uE(M, a, u), he = yE($, a, l, l === M ? Pg(u) : u, p, g); if (he) return he; } if (R) return { accessibility: 0 }; if (x) return { accessibility: 1, errorSymbolName: S(l, a, u), errorModuleName: x !== l ? S(x, a, 1920) : void 0 }; } function Hy(n, a, l, u) { return zd(n, a, l, u, !0); } function zd(n, a, l, u, p) { if (n && a) { const g = yE([n], a, n, l, u, p); if (g) return g; const x = Ye(n.declarations, Bh); if (x) { const R = Bh(a); if (x !== R) return { accessibility: 2, errorSymbolName: S(n, a, l), errorModuleName: S(x), errorNode: dr(a) ? a : void 0 }; } return { accessibility: 1, errorSymbolName: S(n, a, l) }; } return { accessibility: 0 }; } function Bh(n) { const a = nr(n, aL); return a && Lr(a); } function aL(n) { return ku(n) || n.kind === 308 && ef(n); } function Mg(n) { return DM(n) || n.kind === 308 && ef(n); } function b2(n, a) { let l; if (!Vn(yn(n.declarations, (g) => g.kind !== 79), u)) return; return { accessibility: 0, aliasesToMakeVisible: l }; function u(g) { var x, R; if (!E_(g)) { const M = cS(g); if (M && !Jr(M, 1) && E_(M.parent)) return p(g, M); if (Wi(g) && sc(g.parent.parent) && !Jr(g.parent.parent, 1) && E_(g.parent.parent.parent)) return p(g, g.parent.parent); if (RM(g) && !Jr(g, 1) && E_(g.parent)) return p(g, g); if (us(g)) { if (n.flags & 2097152 && dr(g) && ((x = g.parent) != null && x.parent) && Wi(g.parent.parent) && ((R = g.parent.parent.parent) != null && R.parent) && sc(g.parent.parent.parent.parent) && !Jr(g.parent.parent.parent.parent, 1) && g.parent.parent.parent.parent.parent && E_(g.parent.parent.parent.parent.parent)) return p(g, g.parent.parent.parent.parent); if (n.flags & 2) { const J = nr(g, sc); return Jr(J, 1) ? !0 : E_(J.parent) ? p(g, J) : !1; } } return !1; } return !0; } function p(g, x) { return a && (Wr(g).isVisible = !0, l = ny(l, x)), !0; } } function E2(n, a) { let l; n.parent.kind === 183 || n.parent.kind === 230 && !_h(n.parent) || n.parent.kind === 164 ? l = 1160127 : n.kind === 163 || n.kind === 208 || n.parent.kind === 268 ? l = 1920 : l = 788968; const u = Ef(n), p = dl(a, u.escapedText, l, void 0, void 0, !1); return p && p.flags & 262144 && l & 788968 ? { accessibility: 0 } : !p && _T(u) && Hy(Lr(yd(u, !1, !1)), u, l, !1).accessibility === 0 ? { accessibility: 0 } : p && b2(p, !0) || { accessibility: 1, errorSymbolName: bc(u), errorNode: u }; } function S(n, a, l, u = 4, p) { let g = 70221824; u & 2 && (g |= 128), u & 1 && (g |= 512), u & 8 && (g |= 16384), u & 32 && (g |= 134217728), u & 16 && (g |= 1073741824); const x = u & 4 ? Ke.symbolToNode : Ke.symbolToEntityName; return p ? R(p).getText() : TI(R); function R(M) { const J = x(n, l, a, g), $ = (a == null ? void 0 : a.kind) === 308 ? pX() : U1(), he = a && Zn(a); return $.writeNode(4, J, he, M), M; } } function se(n, a, l = 0, u, p) { return p ? g(p).getText() : TI(g); function g(x) { let R; l & 262144 ? R = u === 1 ? 182 : 181 : R = u === 1 ? 177 : 176; const M = Ke.signatureToSignatureDeclaration(n, R, a, oi(l) | 70221824 | 512), J = b8(), $ = a && Zn(a); return J.writeNode(4, M, $, pz(x)), x; } } function Le(n, a, l = 1064960, u = DN("")) { const p = Y.noErrorTruncation || l & 1, g = Ke.typeToTypeNode(n, a, oi(l) | 70221824 | (p ? 1 : 0)); if (g === void 0) return D.fail("should always get typenode"); const x = n !== _t ? U1() : _X(), R = a && Zn(a); x.writeNode(4, g, R, u); const M = u.getText(), J = p ? P3 * 2 : tO * 2; return J && M && M.length >= J ? M.substr(0, J - 3) + "..." : M; } function tn(n, a) { let l = vi(n.symbol) ? Le(n, n.symbol.valueDeclaration) : Le(n), u = vi(a.symbol) ? Le(a, a.symbol.valueDeclaration) : Le(a); return l === u && (l = Ar(n), u = Ar(a)), [l, u]; } function Ar(n) { return Le(n, void 0, 64); } function vi(n) { return n && !!n.valueDeclaration && yt(n.valueDeclaration) && !S_(n.valueDeclaration); } function oi(n = 0) { return n & 848330091; } function Fi(n) { return !!n.symbol && !!(n.symbol.flags & 32) && (n === Gu(n.symbol) || !!(n.flags & 524288) && !!(Qr(n) & 16777216)); } function co() { return { typeToTypeNode: (ct, Ee, er, Qn) => a(Ee, er, Qn, (Er) => u(ct, Er)), indexInfoToIndexSignatureDeclaration: (ct, Ee, er, Qn) => a(Ee, er, Qn, (Er) => $(ct, Er, void 0)), signatureToSignatureDeclaration: (ct, Ee, er, Qn, Er) => a(er, Qn, Er, (Ir) => he(ct, Ee, Ir)), symbolToEntityName: (ct, Ee, er, Qn, Er) => a(er, Qn, Er, (Ir) => fa(ct, Ir, Ee, !1)), symbolToExpression: (ct, Ee, er, Qn, Er) => a(er, Qn, Er, (Ir) => Ya(ct, Ir, Ee)), symbolToTypeParameterDeclarations: (ct, Ee, er, Qn) => a(Ee, er, Qn, (Er) => mn(ct, Er)), symbolToParameterDeclaration: (ct, Ee, er, Qn) => a(Ee, er, Qn, (Er) => Bt(ct, Er)), typeParameterToDeclaration: (ct, Ee, er, Qn) => a(Ee, er, Qn, (Er) => ft(ct, Er)), symbolTableToDeclarationStatements: (ct, Ee, er, Qn, Er) => a(Ee, er, Qn, (Ir) => ju(ct, Ir, Er)), symbolToNode: (ct, Ee, er, Qn, Er) => a(er, Qn, Er, (Ir) => n(ct, Ir, Ee)) }; function n(ct, Ee, er) { if (Ee.flags & 1073741824) { if (ct.valueDeclaration) { const Er = La(ct.valueDeclaration); if (Er && Ss(Er)) return Er; } const Qn = Ui(ct).nameType; if (Qn && Qn.flags & 9216) return Ee.enclosingDeclaration = Qn.symbol.valueDeclaration, N.createComputedPropertyName(Ya(Qn.symbol, Ee, er)); } return Ya(ct, Ee, er); } function a(ct, Ee, er, Qn) { D.assert(ct === void 0 || (ct.flags & 8) === 0); const Er = er != null && er.trackSymbol ? er.moduleResolverHost : Ee & 134217728 ? JPe(e) : void 0, Ir = { enclosingDeclaration: ct, flags: Ee || 0, tracker: void 0, encounteredError: !1, reportedDiagnostic: !1, visitedTypes: void 0, symbolDepth: void 0, inferTypeParameters: void 0, approximateLength: 0 }; Ir.tracker = new f8(Ir, er, Er); const wa = Qn(Ir); return Ir.truncating && Ir.flags & 1 && Ir.tracker.reportTruncationError(), Ir.encounteredError ? void 0 : wa; } function l(ct) { return ct.truncating ? ct.truncating : ct.truncating = ct.approximateLength > (ct.flags & 1 ? P3 : tO); } function u(ct, Ee) { const er = Ee.flags, Qn = p(ct, Ee); return Ee.flags = er, Qn; } function p(ct, Ee) { var er, Qn; o && o.throwIfCancellationRequested && o.throwIfCancellationRequested(); const Er = Ee.flags & 8388608; if (Ee.flags &= -8388609, !ct) { if (!(Ee.flags & 262144)) { Ee.encounteredError = !0; return; } return Ee.approximateLength += 3, N.createKeywordTypeNode(131); } if (Ee.flags & 536870912 || (ct = ap(ct)), ct.flags & 1) return ct.aliasSymbol ? N.createTypeReferenceNode(Gn(ct.aliasSymbol), M(ct.aliasTypeArguments, Ee)) : ct === _t ? uO(N.createKeywordTypeNode(131), 3, "unresolved") : (Ee.approximateLength += 3, N.createKeywordTypeNode(ct === re ? 139 : 131)); if (ct.flags & 2) return N.createKeywordTypeNode(157); if (ct.flags & 4) return Ee.approximateLength += 6, N.createKeywordTypeNode(152); if (ct.flags & 8) return Ee.approximateLength += 6, N.createKeywordTypeNode(148); if (ct.flags & 64) return Ee.approximateLength += 6, N.createKeywordTypeNode(160); if (ct.flags & 16 && !ct.aliasSymbol) return Ee.approximateLength += 7, N.createKeywordTypeNode(134); if (ct.flags & 1056) { if (ct.symbol.flags & 8) { const hn = fd(ct.symbol), cr = Jn(hn, Ee, 788968); if (Bs(hn) === ct) return cr; const $r = Nl(ct.symbol); return w_($r, 0) ? qn(cr, N.createTypeReferenceNode($r, void 0)) : dg(cr) ? (cr.isTypeOf = !0, N.createIndexedAccessTypeNode(cr, N.createLiteralTypeNode(N.createStringLiteral($r)))) : V_(cr) ? N.createIndexedAccessTypeNode(N.createTypeQueryNode(cr.typeName), N.createLiteralTypeNode(N.createStringLiteral($r))) : D.fail("Unhandled type node kind returned from `symbolToTypeNode`."); } return Jn(ct.symbol, Ee, 788968); } if (ct.flags & 128) return Ee.approximateLength += ct.value.length + 2, N.createLiteralTypeNode(or(N.createStringLiteral(ct.value, !!(Ee.flags & 268435456)), 33554432)); if (ct.flags & 256) { const hn = ct.value; return Ee.approximateLength += ("" + hn).length, N.createLiteralTypeNode(hn < 0 ? N.createPrefixUnaryExpression(40, N.createNumericLiteral(-hn)) : N.createNumericLiteral(hn)); } if (ct.flags & 2048) return Ee.approximateLength += A1(ct.value).length + 1, N.createLiteralTypeNode(N.createBigIntLiteral(ct.value)); if (ct.flags & 512) return Ee.approximateLength += ct.intrinsicName.length, N.createLiteralTypeNode(ct.intrinsicName === "true" ? N.createTrue() : N.createFalse()); if (ct.flags & 8192) { if (!(Ee.flags & 1048576)) { if (hE(ct.symbol, Ee.enclosingDeclaration)) return Ee.approximateLength += 6, Jn(ct.symbol, Ee, 111551); Ee.tracker.reportInaccessibleUniqueSymbolError && Ee.tracker.reportInaccessibleUniqueSymbolError(); } return Ee.approximateLength += 13, N.createTypeOperatorNode(156, N.createKeywordTypeNode(153)); } if (ct.flags & 16384) return Ee.approximateLength += 4, N.createKeywordTypeNode(114); if (ct.flags & 32768) return Ee.approximateLength += 9, N.createKeywordTypeNode(155); if (ct.flags & 65536) return Ee.approximateLength += 4, N.createLiteralTypeNode(N.createNull()); if (ct.flags & 131072) return Ee.approximateLength += 5, N.createKeywordTypeNode(144); if (ct.flags & 4096) return Ee.approximateLength += 6, N.createKeywordTypeNode(153); if (ct.flags & 67108864) return Ee.approximateLength += 6, N.createKeywordTypeNode(149); if (lk(ct)) return Ee.flags & 4194304 && (!Ee.encounteredError && !(Ee.flags & 32768) && (Ee.encounteredError = !0), (Qn = (er = Ee.tracker).reportInaccessibleThisError) == null || Qn.call(er)), Ee.approximateLength += 4, N.createThisTypeNode(); if (!Er && ct.aliasSymbol && (Ee.flags & 16384 || mE(ct.aliasSymbol, Ee.enclosingDeclaration))) { const hn = M(ct.aliasTypeArguments, Ee); return dE(ct.aliasSymbol.escapedName) && !(ct.aliasSymbol.flags & 32) ? N.createTypeReferenceNode(N.createIdentifier(""), hn) : Ne(hn) === 1 && ct.aliasSymbol === vs.symbol ? N.createArrayTypeNode(hn[0]) : Jn(ct.aliasSymbol, Ee, 788968, hn); } const Ir = Qr(ct); if (Ir & 4) return D.assert(!!(ct.flags & 524288)), ct.node ? $t(ct, kn) : kn(ct); if (ct.flags & 262144 || Ir & 3) { if (ct.flags & 262144 && Ii(Ee.inferTypeParameters, ct)) { Ee.approximateLength += Nl(ct.symbol).length + 6; let cr; const $r = bu(ct); if ($r) { const yr = DAe(ct, !0); yr && Hh($r, yr) || (Ee.approximateLength += 9, cr = $r && u($r, Ee)); } return N.createInferTypeNode(ke(ct, Ee, cr)); } if (Ee.flags & 4 && ct.flags & 262144 && !mE(ct.symbol, Ee.enclosingDeclaration)) { const cr = ei(ct, Ee); return Ee.approximateLength += Or(cr).length, N.createTypeReferenceNode(N.createIdentifier(Or(cr)), void 0); } if (ct.symbol) return Jn(ct.symbol, Ee, 788968); const hn = (ct === ks || ct === pl) && U && U.symbol ? (ct === pl ? "sub-" : "super-") + Nl(U.symbol) : "?"; return N.createTypeReferenceNode(N.createIdentifier(hn), void 0); } if (ct.flags & 1048576 && ct.origin && (ct = ct.origin), ct.flags & 3145728) { const hn = ct.flags & 1048576 ? qd(ct.types) : ct.types; if (Ne(hn) === 1) return u(hn[0], Ee); const cr = M(hn, Ee, !0); if (cr && cr.length > 0) return ct.flags & 1048576 ? N.createUnionTypeNode(cr) : N.createIntersectionTypeNode(cr); !Ee.encounteredError && !(Ee.flags & 262144) && (Ee.encounteredError = !0); return; } if (Ir & 48) return D.assert(!!(ct.flags & 524288)), Ft(ct); if (ct.flags & 4194304) { const hn = ct.type; Ee.approximateLength += 6; const cr = u(hn, Ee); return N.createTypeOperatorNode(141, cr); } if (ct.flags & 134217728) { const hn = ct.texts, cr = ct.types, $r = N.createTemplateHead(hn[0]), yr = N.createNodeArray(rn(cr, (ba, os) => N.createTemplateLiteralTypeSpan(u(ba, Ee), (os < cr.length - 1 ? N.createTemplateMiddle : N.createTemplateTail)(hn[os + 1])))); return Ee.approximateLength += 2, N.createTemplateLiteralType($r, yr); } if (ct.flags & 268435456) { const hn = u(ct.type, Ee); return Jn(ct.symbol, Ee, 788968, [hn]); } if (ct.flags & 8388608) { const hn = u(ct.objectType, Ee), cr = u(ct.indexType, Ee); return Ee.approximateLength += 2, N.createIndexedAccessTypeNode(hn, cr); } if (ct.flags & 16777216) return $t(ct, (hn) => wa(hn)); if (ct.flags & 33554432) return u(ct.baseType, Ee); return D.fail("Should be unreachable."); function wa(hn) { const cr = u(hn.checkType, Ee); if (Ee.approximateLength += 15, Ee.flags & 4 && hn.root.isDistributive && !(hn.checkType.flags & 262144)) { const Fs = Id(Qo(262144, "T")), Gs = ei(Fs, Ee), md = N.createTypeReferenceNode(Gs); Ee.approximateLength += 37; const tt = yS(hn.root.checkType, Fs, hn.mapper), Tt = Ee.inferTypeParameters; Ee.inferTypeParameters = hn.root.inferTypeParameters; const Qt = u(qi(hn.root.extendsType, tt), Ee); Ee.inferTypeParameters = Tt; const zn = Li(qi(ci(hn.root.node.trueType), tt)), pr = Li(qi(ci(hn.root.node.falseType), tt)); return N.createConditionalTypeNode(cr, N.createInferTypeNode(N.createTypeParameterDeclaration(void 0, N.cloneNode(md.typeName))), N.createConditionalTypeNode(N.createTypeReferenceNode(N.cloneNode(Gs)), u(hn.checkType, Ee), N.createConditionalTypeNode(md, Qt, zn, pr), N.createKeywordTypeNode(144)), N.createKeywordTypeNode(144)); } const $r = Ee.inferTypeParameters; Ee.inferTypeParameters = hn.root.inferTypeParameters; const yr = u(hn.extendsType, Ee); Ee.inferTypeParameters = $r; const ba = Li(E0(hn)), os = Li(T0(hn)); return N.createConditionalTypeNode(cr, yr, ba, os); } function Li(hn) { var cr, $r, yr; return hn.flags & 1048576 ? (cr = Ee.visitedTypes) != null && cr.has(Su(hn)) ? (Ee.flags & 131072 || (Ee.encounteredError = !0, (yr = ($r = Ee.tracker) == null ? void 0 : $r.reportCyclicStructureError) == null || yr.call($r)), g(Ee)) : $t(hn, (ba) => u(ba, Ee)) : u(hn, Ee); } function Cr(hn) { return Xw(hn) && !(fL(hn).flags & 262144); } function vt(hn) { D.assert(!!(hn.flags & 524288)); const cr = hn.declaration.readonlyToken ? N.createToken(hn.declaration.readonlyToken.kind) : void 0, $r = hn.declaration.questionToken ? N.createToken(hn.declaration.questionToken.kind) : void 0; let yr, ba; if (Xw(hn)) { if (Cr(hn) && Ee.flags & 4) { const Tt = Id(Qo(262144, "T")), Qt = ei(Tt, Ee); ba = N.createTypeReferenceNode(Qt); } yr = N.createTypeOperatorNode(141, ba || u(fL(hn), Ee)); } else yr = u(kp(hn), Ee); const os = ke(rp(hn), Ee, yr), Fs = hn.declaration.nameType ? u(Qy(hn), Ee) : void 0, Gs = u(wE(jh(hn), !!(cm(hn) & 4)), Ee), md = N.createMappedTypeNode(cr, os, Fs, $r, Gs, void 0); Ee.approximateLength += 10; const tt = or(md, 1); if (Cr(hn) && Ee.flags & 4) { const Tt = qi(bu(ci(hn.declaration.typeParameter.constraint.type)) || me, hn.mapper); return N.createConditionalTypeNode(u(fL(hn), Ee), N.createInferTypeNode(N.createTypeParameterDeclaration(void 0, N.cloneNode(ba.typeName), Tt.flags & 2 ? void 0 : u(Tt, Ee))), tt, N.createKeywordTypeNode(144)); } return tt; } function Ft(hn) { var cr, $r; const yr = hn.id, ba = hn.symbol; if (ba) { const Fs = Fi(hn) ? 788968 : 111551; if (Op(ba.valueDeclaration)) return Jn(ba, Ee, Fs); if (ba.flags & 32 && !Xa(ba) && !(ba.valueDeclaration && li(ba.valueDeclaration) && Ee.flags & 2048 && (!kc(ba.valueDeclaration) || Hy(ba, Ee.enclosingDeclaration, Fs, !1).accessibility !== 0)) || ba.flags & 896 || os()) return Jn(ba, Ee, Fs); if ((cr = Ee.visitedTypes) != null && cr.has(yr)) { const Gs = Wy(hn); return Gs ? Jn(Gs, Ee, 788968) : g(Ee); } else return $t(hn, Kt); } else { if (!!(Qr(hn) & 8388608)) { const Gs = hn; if (yk(Gs.node)) { const md = To(Ee, Gs.node); if (md) return md; } return ($r = Ee.visitedTypes) != null && $r.has(yr) ? g(Ee) : $t(hn, Kt); } return Kt(hn); } function os() { var Fs; const Gs = !!(ba.flags & 8192) && kt(ba.declarations, (tt) => za(tt)), md = !!(ba.flags & 16) && (ba.parent || Ye(ba.declarations, (tt) => tt.parent.kind === 308 || tt.parent.kind === 265)); if (Gs || md) return (!!(Ee.flags & 4096) || ((Fs = Ee.visitedTypes) == null ? void 0 : Fs.has(yr))) && (!(Ee.flags & 8) || hE(ba, Ee.enclosingDeclaration)); } } function $t(hn, cr) { var $r, yr; const ba = hn.id, os = Qr(hn) & 16 && hn.symbol && hn.symbol.flags & 32, Fs = Qr(hn) & 4 && hn.node ? "N" + ds(hn.node) : hn.flags & 16777216 ? "N" + ds(hn.root.node) : hn.symbol ? (os ? "+" : "") + go(hn.symbol) : void 0; Ee.visitedTypes || (Ee.visitedTypes = /* @__PURE__ */ new Set()), Fs && !Ee.symbolDepth && (Ee.symbolDepth = /* @__PURE__ */ new Map()); const Gs = Ee.enclosingDeclaration && Wr(Ee.enclosingDeclaration), md = `${Su(hn)}|${Ee.flags}`; Gs && (Gs.serializedTypes || (Gs.serializedTypes = /* @__PURE__ */ new Map())); const tt = ($r = Gs == null ? void 0 : Gs.serializedTypes) == null ? void 0 : $r.get(md); if (tt) return tt.truncating && (Ee.truncating = !0), Ee.approximateLength += tt.addedLength, Ln(tt.node); let Tt; if (Fs) { if (Tt = Ee.symbolDepth.get(Fs) || 0, Tt > 10) return g(Ee); Ee.symbolDepth.set(Fs, Tt + 1); } Ee.visitedTypes.add(ba); const Qt = Ee.approximateLength, zn = cr(hn), pr = Ee.approximateLength - Qt; return !Ee.reportedDiagnostic && !Ee.encounteredError && ((yr = Gs == null ? void 0 : Gs.serializedTypes) == null || yr.set(md, { node: zn, truncating: Ee.truncating, addedLength: pr })), Ee.visitedTypes.delete(ba), Fs && Ee.symbolDepth.set(Fs, Tt), zn; function Ln(Gr) { return !$s(Gr) && ya(Gr) === Gr ? Gr : mt(N.cloneNode(Bn(Gr, Ln, pg, Tr)), Gr); } function Tr(Gr, Mi, Sa, Wa, $a) { return Gr && Gr.length === 0 ? mt(N.createNodeArray(void 0, Gr.hasTrailingComma), Gr) : Kn(Gr, Mi, Sa, Wa, $a); } } function Kt(hn) { if (Pf(hn) || hn.containsError) return vt(hn); const cr = ip(hn); if (!cr.properties.length && !cr.indexInfos.length) { if (!cr.callSignatures.length && !cr.constructSignatures.length) return Ee.approximateLength += 2, or(N.createTypeLiteralNode(void 0), 1); if (cr.callSignatures.length === 1 && !cr.constructSignatures.length) { const Fs = cr.callSignatures[0]; return he(Fs, 181, Ee); } if (cr.constructSignatures.length === 1 && !cr.callSignatures.length) { const Fs = cr.constructSignatures[0]; return he(Fs, 182, Ee); } } const $r = yn(cr.constructSignatures, (Fs) => !!(Fs.flags & 4)); if (kt($r)) { const Fs = rn($r, CE); return cr.callSignatures.length + (cr.constructSignatures.length - $r.length) + cr.indexInfos.length + (Ee.flags & 2048 ? xa(cr.properties, (md) => !(md.flags & 4194304)) : Ne(cr.properties)) && Fs.push(fE(cr)), u(Lo(Fs), Ee); } const yr = Ee.flags; Ee.flags |= 4194304; const ba = mi(cr); Ee.flags = yr; const os = N.createTypeLiteralNode(ba); return Ee.approximateLength += 2, or(os, Ee.flags & 1024 ? 0 : 1), os; } function kn(hn) { let cr = _s(hn); if (hn.target === vs || hn.target === ls) { if (Ee.flags & 2) { const ba = u(cr[0], Ee); return N.createTypeReferenceNode(hn.target === vs ? "Array" : "ReadonlyArray", [ba]); } const $r = u(cr[0], Ee), yr = N.createArrayTypeNode($r); return hn.target === vs ? yr : N.createTypeOperatorNode(146, yr); } else if (hn.target.objectFlags & 8) { if (cr = Xl(cr, ($r, yr) => wE($r, !!(hn.target.elementFlags[yr] & 2))), cr.length > 0) { const $r = v0(hn), yr = M(cr.slice(0, $r), Ee); if (yr) { if (hn.target.labeledElementDeclarations) for (let os = 0; os < yr.length; os++) { const Fs = hn.target.elementFlags[os]; yr[os] = N.createNamedTupleMember(Fs & 12 ? N.createToken(25) : void 0, N.createIdentifier(Zi(_V(hn.target.labeledElementDeclarations[os]))), Fs & 2 ? N.createToken(57) : void 0, Fs & 4 ? N.createArrayTypeNode(yr[os]) : yr[os]); } else for (let os = 0; os < Math.min($r, yr.length); os++) { const Fs = hn.target.elementFlags[os]; yr[os] = Fs & 12 ? N.createRestTypeNode(Fs & 4 ? N.createArrayTypeNode(yr[os]) : yr[os]) : Fs & 2 ? N.createOptionalTypeNode(yr[os]) : yr[os]; } const ba = or(N.createTupleTypeNode(yr), 1); return hn.target.readonly ? N.createTypeOperatorNode(146, ba) : ba; } } if (Ee.encounteredError || Ee.flags & 524288) { const $r = or(N.createTupleTypeNode([]), 1); return hn.target.readonly ? N.createTypeOperatorNode(146, $r) : $r; } Ee.encounteredError = !0; return; } else { if (Ee.flags & 2048 && hn.symbol.valueDeclaration && li(hn.symbol.valueDeclaration) && !hE(hn.symbol, Ee.enclosingDeclaration)) return Ft(hn); { const $r = hn.target.outerTypeParameters; let yr = 0, ba; if ($r) { const md = $r.length; for (; yr < md; ) { const tt = yr, Tt = RAe($r[yr]); do yr++; while (yr < md && RAe($r[yr]) === Tt); if (!rj($r, cr, tt, yr)) { const Qt = M(cr.slice(tt, yr), Ee), zn = Ee.flags; Ee.flags |= 16; const pr = Jn(Tt, Ee, 788968, Qt); Ee.flags = zn, ba = ba ? qn(ba, pr) : pr; } } } let os; if (cr.length > 0) { const md = (hn.target.typeParameters || nt).length; os = M(cr.slice(yr, md), Ee); } const Fs = Ee.flags; Ee.flags |= 16; const Gs = Jn(hn.symbol, Ee, 788968, os); return Ee.flags = Fs, ba ? qn(ba, Gs) : Gs; } } } function qn(hn, cr) { if (dg(hn)) { let $r = hn.typeArguments, yr = hn.qualifier; yr && (Ve(yr) ? $r !== vT(yr) && (yr = yy(N.cloneNode(yr), $r)) : $r !== vT(yr.right) && (yr = N.updateQualifiedName(yr, yr.left, yy(N.cloneNode(yr.right), $r)))), $r = cr.typeArguments; const ba = aa(cr); for (const os of ba) yr = yr ? N.createQualifiedName(yr, os) : os; return N.updateImportTypeNode(hn, hn.argument, hn.assertions, yr, $r, hn.isTypeOf); } else { let $r = hn.typeArguments, yr = hn.typeName; Ve(yr) ? $r !== vT(yr) && (yr = yy(N.cloneNode(yr), $r)) : $r !== vT(yr.right) && (yr = N.updateQualifiedName(yr, yr.left, yy(N.cloneNode(yr.right), $r))), $r = cr.typeArguments; const ba = aa(cr); for (const os of ba) yr = N.createQualifiedName(yr, os); return N.updateTypeReferenceNode(hn, yr, $r); } } function aa(hn) { let cr = hn.typeName; const $r = []; for (; !Ve(cr); ) $r.unshift(cr.right), cr = cr.left; return $r.unshift(cr), $r; } function mi(hn) { if (l(Ee)) return [N.createPropertySignature(void 0, "...", void 0, void 0)]; const cr = []; for (const ba of hn.callSignatures) cr.push(he(ba, 176, Ee)); for (const ba of hn.constructSignatures) ba.flags & 4 || cr.push(he(ba, 177, Ee)); for (const ba of hn.indexInfos) cr.push($(ba, Ee, hn.objectFlags & 1024 ? g(Ee) : void 0)); const $r = hn.properties; if (!$r) return cr; let yr = 0; for (const ba of $r) { if (yr++, Ee.flags & 2048) { if (ba.flags & 4194304) continue; qf(ba) & 24 && Ee.tracker.reportPrivateInBaseOfClassExpression && Ee.tracker.reportPrivateInBaseOfClassExpression(Zi(ba.escapedName)); } if (l(Ee) && yr + 2 < $r.length - 1) { cr.push(N.createPropertySignature(void 0, `... ${$r.length - yr} more ...`, void 0, void 0)), R($r[$r.length - 1], Ee, cr); break; } R(ba, Ee, cr); } return cr.length ? cr : void 0; } } function g(ct) { return ct.approximateLength += 3, ct.flags & 1 ? N.createKeywordTypeNode(131) : N.createTypeReferenceNode(N.createIdentifier("..."), void 0); } function x(ct, Ee) { var er; return !!(Al(ct) & 8192) && (Ii(Ee.reverseMappedStack, ct) || ((er = Ee.reverseMappedStack) == null ? void 0 : er[0]) && !(Qr(Ho(Ee.reverseMappedStack).links.propertyType) & 16)); } function R(ct, Ee, er) { var Qn; const Er = !!(Al(ct) & 8192), Ir = x(ct, Ee) ? Ie : h0(ct), wa = Ee.enclosingDeclaration; if (Ee.enclosingDeclaration = void 0, Ee.tracker.canTrackSymbol && Jw(ct.escapedName)) if (ct.declarations) { const Ft = ss(ct.declarations); if (a4(Ft)) if (vr(Ft)) { const $t = La(Ft); $t && sl($t) && MN($t.argumentExpression) && Mn($t.argumentExpression, wa, Ee); } else Mn(Ft.name.expression, wa, Ee); } else Ee.tracker.reportNonSerializableProperty(S(ct)); Ee.enclosingDeclaration = ct.valueDeclaration || ((Qn = ct.declarations) == null ? void 0 : Qn[0]) || wa; const Li = mf(ct, Ee); Ee.enclosingDeclaration = wa, Ee.approximateLength += Nl(ct).length + 1; const Cr = ct.flags & 16777216 ? N.createToken(57) : void 0; if (ct.flags & 8208 && !Zy(Ir).length && !lp(ct)) { const Ft = Ha(uc(Ir, ($t) => !($t.flags & 32768)), 0); for (const $t of Ft) { const Kt = he($t, 170, Ee, { name: Li, questionToken: Cr }); er.push(vt(Kt)); } } else { let Ft; x(ct, Ee) ? Ft = g(Ee) : (Er && (Ee.reverseMappedStack || (Ee.reverseMappedStack = []), Ee.reverseMappedStack.push(ct)), Ft = Ir ? ea(Ee, Ir, ct, wa) : N.createKeywordTypeNode(131), Er && Ee.reverseMappedStack.pop()); const $t = lp(ct) ? [N.createToken(146)] : void 0; $t && (Ee.approximateLength += 9); const Kt = N.createPropertySignature($t, Li, Cr, Ft); er.push(vt(Kt)); } function vt(Ft) { var $t; if (kt(ct.declarations, (Kt) => Kt.kind === 351)) { const Kt = ($t = ct.declarations) == null ? void 0 : $t.find((qn) => qn.kind === 351), kn = OR(Kt.comment); kn && L1(Ft, [{ kind: 3, text: `* * ` + kn.replace(/\n/g, ` * `) + ` `, pos: -1, end: -1, hasTrailingNewLine: !0 }]); } else ct.valueDeclaration && Bc(Ft, ct.valueDeclaration); return Ft; } } function M(ct, Ee, er) { if (kt(ct)) { if (l(Ee)) if (er) { if (ct.length > 2) return [ u(ct[0], Ee), N.createTypeReferenceNode(`... ${ct.length - 2} more ...`, void 0), u(ct[ct.length - 1], Ee) ]; } else return [N.createTypeReferenceNode("...", void 0)]; const Er = !(Ee.flags & 64) ? lse() : void 0, Ir = []; let wa = 0; for (const Li of ct) { if (wa++, l(Ee) && wa + 2 < ct.length - 1) { Ir.push(N.createTypeReferenceNode(`... ${ct.length - wa} more ...`, void 0)); const vt = u(ct[ct.length - 1], Ee); vt && Ir.push(vt); break; } Ee.approximateLength += 2; const Cr = u(Li, Ee); Cr && (Ir.push(Cr), Er && Ade(Cr) && Er.add(Cr.typeName.escapedText, [Li, Ir.length - 1])); } if (Er) { const Li = Ee.flags; Ee.flags |= 64, Er.forEach((Cr) => { if (!Cde(Cr, ([vt], [Ft]) => J(vt, Ft))) for (const [vt, Ft] of Cr) Ir[Ft] = u(vt, Ee); }), Ee.flags = Li; } return Ir; } } function J(ct, Ee) { return ct === Ee || !!ct.symbol && ct.symbol === Ee.symbol || !!ct.aliasSymbol && ct.aliasSymbol === Ee.aliasSymbol; } function $(ct, Ee, er) { const Qn = Mce(ct) || "x", Er = u(ct.keyType, Ee), Ir = N.createParameterDeclaration(void 0, void 0, Qn, void 0, Er, void 0); return er || (er = u(ct.type || Ie, Ee)), !ct.type && !(Ee.flags & 2097152) && (Ee.encounteredError = !0), Ee.approximateLength += Qn.length + 4, N.createIndexSignature(ct.isReadonly ? [N.createToken(146)] : void 0, [Ir], er); } function he(ct, Ee, er, Qn) { var Er, Ir, wa, Li, Cr; const vt = er.flags & 256; vt && (er.flags &= -257), er.approximateLength += 3; let Ft, $t; er.flags & 32 && ct.target && ct.mapper && ct.target.typeParameters ? $t = ct.target.typeParameters.map((yr) => u(qi(yr, ct.mapper), er)) : Ft = ct.typeParameters && ct.typeParameters.map((yr) => ft(yr, er)); const Kt = dAe(ct, !0)[0]; let kn; if (er.enclosingDeclaration && ct.declaration && ct.declaration !== er.enclosingDeclaration && !dr(ct.declaration) && kt(Kt)) { const yr = Wr(er.enclosingDeclaration).fakeScopeForSignatureDeclaration ? er.enclosingDeclaration : void 0; D.assertOptionalNode(yr, oo); const ba = (Er = yr == null ? void 0 : yr.locals) != null ? Er : ao(); let os; for (const Fs of Kt) ba.has(Fs.escapedName) || (os = Fn(os, Fs.escapedName), ba.set(Fs.escapedName, Fs)); if (os) { let Fs = function() { Ye(os, (Gs) => ba.delete(Gs)); }; if (yr) kn = Fs; else { const Gs = jm.createBlock(nt); Wr(Gs).fakeScopeForSignatureDeclaration = !0, Gs.locals = ba; const md = er.enclosingDeclaration; Bo(Gs, md), er.enclosingDeclaration = Gs, kn = () => { er.enclosingDeclaration = md, Fs(); }; } } } const qn = (kt(Kt, (yr) => yr !== Kt[Kt.length - 1] && !!(Al(yr) & 32768)) ? ct.parameters : Kt).map((yr) => Bt(yr, er, Ee === 173, Qn == null ? void 0 : Qn.privateSymbolVisitor, Qn == null ? void 0 : Qn.bundledImports)), aa = er.flags & 33554432 ? void 0 : De(ct, er); aa && qn.unshift(aa); let mi; const hn = Zf(ct); if (hn) { const yr = hn.kind === 2 || hn.kind === 3 ? N.createToken(129) : void 0, ba = hn.kind === 1 || hn.kind === 3 ? or(N.createIdentifier(hn.parameterName), 33554432) : N.createThisTypeNode(), os = hn.type && u(hn.type, er); mi = N.createTypePredicateNode(yr, ba, os); } else { const yr = hs(ct); yr && !(vt && Es(yr)) ? mi = Rs(er, yr, ct, Qn == null ? void 0 : Qn.privateSymbolVisitor, Qn == null ? void 0 : Qn.bundledImports) : vt || (mi = N.createKeywordTypeNode(131)); } let cr = Qn == null ? void 0 : Qn.modifiers; if (Ee === 182 && ct.flags & 4) { const yr = Om(cr); cr = N.createModifiersFromModifierFlags(yr | 256); } const $r = Ee === 176 ? N.createCallSignature(Ft, qn, mi) : Ee === 177 ? N.createConstructSignature(Ft, qn, mi) : Ee === 170 ? N.createMethodSignature(cr, (Ir = Qn == null ? void 0 : Qn.name) != null ? Ir : N.createIdentifier(""), Qn == null ? void 0 : Qn.questionToken, Ft, qn, mi) : Ee === 171 ? N.createMethodDeclaration(cr, void 0, (wa = Qn == null ? void 0 : Qn.name) != null ? wa : N.createIdentifier(""), void 0, Ft, qn, mi, void 0) : Ee === 173 ? N.createConstructorDeclaration(cr, qn, void 0) : Ee === 174 ? N.createGetAccessorDeclaration(cr, (Li = Qn == null ? void 0 : Qn.name) != null ? Li : N.createIdentifier(""), qn, mi, void 0) : Ee === 175 ? N.createSetAccessorDeclaration(cr, (Cr = Qn == null ? void 0 : Qn.name) != null ? Cr : N.createIdentifier(""), qn, void 0) : Ee === 178 ? N.createIndexSignature(cr, qn, mi) : Ee === 320 ? N.createJSDocFunctionType(qn, mi) : Ee === 181 ? N.createFunctionTypeNode(Ft, qn, mi ?? N.createTypeReferenceNode(N.createIdentifier(""))) : Ee === 182 ? N.createConstructorTypeNode(cr, Ft, qn, mi ?? N.createTypeReferenceNode(N.createIdentifier(""))) : Ee === 259 ? N.createFunctionDeclaration(cr, void 0, Qn != null && Qn.name ? ro(Qn.name, Ve) : N.createIdentifier(""), Ft, qn, mi, void 0) : Ee === 215 ? N.createFunctionExpression(cr, void 0, Qn != null && Qn.name ? ro(Qn.name, Ve) : N.createIdentifier(""), Ft, qn, mi, N.createBlock([])) : Ee === 216 ? N.createArrowFunction(cr, Ft, qn, mi, void 0, N.createBlock([])) : D.assertNever(Ee); return $t && ($r.typeArguments = N.createNodeArray($t)), kn == null || kn(), $r; } function De(ct, Ee) { if (ct.thisParameter) return Bt(ct.thisParameter, Ee); if (ct.declaration && dr(ct.declaration)) { const er = dM(ct.declaration); if (er && er.typeExpression) return N.createParameterDeclaration(void 0, void 0, "this", void 0, u(ci(er.typeExpression), Ee)); } } function ke(ct, Ee, er) { const Qn = Ee.flags; Ee.flags &= -513; const Er = N.createModifiersFromModifierFlags(die(ct)), Ir = ei(ct, Ee), wa = AE(ct), Li = wa && u(wa, Ee); return Ee.flags = Qn, N.createTypeParameterDeclaration(Er, Ir, er, Li); } function ft(ct, Ee, er = bu(ct)) { const Qn = er && u(er, Ee); return ke(ct, Ee, Qn); } function Bt(ct, Ee, er, Qn, Er) { let Ir = Tl(ct, 166); !Ir && !km(ct) && (Ir = Tl(ct, 344)); let wa = ar(ct); Ir && Hwe(Ir) && (wa = qg(wa)); const Li = ea(Ee, wa, ct, Ee.enclosingDeclaration, Qn, Er), Cr = !(Ee.flags & 8192) && er && Ir && H_(Ir) ? rn(XE(Ir), N.cloneNode) : void 0, Ft = Ir && fh(Ir) || Al(ct) & 32768 ? N.createToken(25) : void 0, $t = Ir && Ir.name ? Ir.name.kind === 79 ? or(N.cloneNode(Ir.name), 33554432) : Ir.name.kind === 163 ? or(N.cloneNode(Ir.name.right), 33554432) : aa(Ir.name) : Nl(ct), kn = Ir && $w(Ir) || Al(ct) & 16384 ? N.createToken(57) : void 0, qn = N.createParameterDeclaration(Cr, Ft, $t, kn, Li, void 0); return Ee.approximateLength += Nl(ct).length + 3, qn; function aa(mi) { return hn(mi); function hn(cr) { Ee.tracker.canTrackSymbol && Ss(cr) && ere(cr) && Mn(cr.expression, Ee.enclosingDeclaration, Ee); let $r = Bn(cr, hn, pg, void 0, hn); return us($r) && ($r = N.updateBindingElement($r, $r.dotDotDotToken, $r.propertyName, $r.name, void 0)), $s($r) || ($r = N.cloneNode($r)), or($r, 33554433); } } } function Mn(ct, Ee, er) { if (!er.tracker.canTrackSymbol) return; const Qn = Ef(ct), Er = dl(Qn, Qn.escapedText, 1160127, void 0, void 0, !0); Er && er.tracker.trackSymbol(Er, Ee, 111551); } function An(ct, Ee, er, Qn) { return Ee.tracker.trackSymbol(ct, Ee.enclosingDeclaration, er), Xn(ct, Ee, er, Qn); } function Xn(ct, Ee, er, Qn) { let Er; return !(ct.flags & 262144) && (Ee.enclosingDeclaration || Ee.flags & 64) && !(Ee.flags & 134217728) ? (Er = D.checkDefined(wa(ct, er, !0)), D.assert(Er && Er.length > 0)) : Er = [ct], Er; function wa(Li, Cr, vt) { let Ft = u0(Li, Ee.enclosingDeclaration, Cr, !!(Ee.flags & 128)), $t; if (!Ft || pS(Ft[0], Ee.enclosingDeclaration, Ft.length === 1 ? Cr : Pg(Cr))) { const kn = uE(Ft ? Ft[0] : Li, Ee.enclosingDeclaration, Cr); if (Ne(kn)) { $t = kn.map((mi) => kt(mi.declarations, Mg) ? an(mi, Ee) : void 0); const qn = kn.map((mi, hn) => hn); qn.sort(Kt); const aa = qn.map((mi) => kn[mi]); for (const mi of aa) { const hn = wa(mi, Pg(Cr), !1); if (hn) { if (mi.exports && mi.exports.get("export=") && am(mi.exports.get("export="), Li)) { Ft = hn; break; } Ft = hn.concat(Ft || [Vy(mi, Li) || Li]); break; } } } } if (Ft) return Ft; if (vt || !(Li.flags & 6144)) return !vt && !Qn && Ye(Li.declarations, Mg) ? void 0 : [Li]; function Kt(kn, qn) { const aa = $t[kn], mi = $t[qn]; if (aa && mi) { const hn = gf(mi); return gf(aa) === hn ? c8(aa) - c8(mi) : hn ? -1 : 1; } return 0; } } } function mn(ct, Ee) { let er; return J2(ct).flags & 524384 && (er = N.createNodeArray(rn(Yy(ct), (Er) => ft(Er, Ee)))), er; } function xn(ct, Ee, er) { var Qn; D.assert(ct && 0 <= Ee && Ee < ct.length); const Er = ct[Ee], Ir = go(Er); if ((Qn = er.typeParameterSymbolList) != null && Qn.has(Ir)) return; (er.typeParameterSymbolList || (er.typeParameterSymbolList = /* @__PURE__ */ new Set())).add(Ir); let wa; if (er.flags & 512 && Ee < ct.length - 1) { const Li = Er, Cr = ct[Ee + 1]; if (Al(Cr) & 1) { const vt = mS(Li.flags & 2097152 ? Zl(Li) : Li); wa = M(rn(vt, (Ft) => S0(Ft, Cr.links.mapper)), er); } else wa = mn(Er, er); } return wa; } function gr(ct) { return bx(ct.objectType) ? gr(ct.objectType) : ct; } function an(ct, Ee, er) { var Qn; let Er = Tl(ct, 308); if (!Er) { const Ft = En(ct.declarations, ($t) => y2($t, ct)); Ft && (Er = Tl(Ft, 308)); } if (Er && Er.moduleName !== void 0) return Er.moduleName; if (!Er) { if (Ee.tracker.trackReferencedAmbientModule) { const Ft = yn(ct.declarations, ku); if (Ne(Ft)) for (const $t of Ft) Ee.tracker.trackReferencedAmbientModule($t, ct); } if (E5.test(ct.escapedName)) return ct.escapedName.substring(1, ct.escapedName.length - 1); } if (!Ee.enclosingDeclaration || !Ee.tracker.moduleResolverHost) return E5.test(ct.escapedName) ? ct.escapedName.substring(1, ct.escapedName.length - 1) : Zn(wW(ct)).fileName; const Ir = Zn(bl(Ee.enclosingDeclaration)), wa = er || (Ir == null ? void 0 : Ir.impliedNodeFormat), Li = Pk(Ir.path, wa), Cr = Ui(ct); let vt = Cr.specifierCache && Cr.specifierCache.get(Li); if (!vt) { const Ft = !!Ws(Y), { moduleResolverHost: $t } = Ee.tracker, Kt = Ft ? { ...Y, baseUrl: $t.getCommonSourceDirectory() } : Y; vt = ss(ime(ct, it, Kt, Ir, $t, { importModuleSpecifierPreference: Ft ? "non-relative" : "project-relative", importModuleSpecifierEnding: Ft ? "minimal" : wa === 99 ? "js" : void 0 }, { overrideImportMode: er })), (Qn = Cr.specifierCache) != null || (Cr.specifierCache = /* @__PURE__ */ new Map()), Cr.specifierCache.set(Li, vt); } return vt; } function Gn(ct) { const Ee = N.createIdentifier(Zi(ct.escapedName)); return ct.parent ? N.createQualifiedName(Gn(ct.parent), Ee) : Ee; } function Jn(ct, Ee, er, Qn) { var Er, Ir, wa, Li; const Cr = An(ct, Ee, er, !(Ee.flags & 16384)), vt = er === 111551; if (kt(Cr[0].declarations, Mg)) { const Kt = Cr.length > 1 ? $t(Cr, Cr.length - 1, 1) : void 0, kn = Qn || xn(Cr, 0, Ee), qn = Zn(bl(Ee.enclosingDeclaration)), aa = CM(Cr[0]); let mi, hn; if ((gl(Y) === 3 || gl(Y) === 99) && (aa == null ? void 0 : aa.impliedNodeFormat) === 99 && aa.impliedNodeFormat !== (qn == null ? void 0 : qn.impliedNodeFormat) && (mi = an(Cr[0], Ee, 99), hn = N.createImportTypeAssertionContainer(N.createAssertClause(N.createNodeArray([ N.createAssertEntry(N.createStringLiteral("resolution-mode"), N.createStringLiteral("import")) ]))), (Ir = (Er = Ee.tracker).reportImportTypeNodeResolutionModeOverride) == null || Ir.call(Er)), mi || (mi = an(Cr[0], Ee)), !(Ee.flags & 67108864) && gl(Y) !== 1 && mi.indexOf("/node_modules/") >= 0) { const $r = mi; if (gl(Y) === 3 || gl(Y) === 99) { const yr = (qn == null ? void 0 : qn.impliedNodeFormat) === 99 ? 1 : 99; mi = an(Cr[0], Ee, yr), mi.indexOf("/node_modules/") >= 0 ? mi = $r : (hn = N.createImportTypeAssertionContainer(N.createAssertClause(N.createNodeArray([ N.createAssertEntry(N.createStringLiteral("resolution-mode"), N.createStringLiteral(yr === 99 ? "import" : "require")) ]))), (Li = (wa = Ee.tracker).reportImportTypeNodeResolutionModeOverride) == null || Li.call(wa)); } hn || (Ee.encounteredError = !0, Ee.tracker.reportLikelyUnsafeImportRequiredError && Ee.tracker.reportLikelyUnsafeImportRequiredError($r)); } const cr = N.createLiteralTypeNode(N.createStringLiteral(mi)); if (Ee.tracker.trackExternalModuleSymbolOfImportTypeNode && Ee.tracker.trackExternalModuleSymbolOfImportTypeNode(Cr[0]), Ee.approximateLength += mi.length + 10, !Kt || $d(Kt)) { if (Kt) { const $r = Ve(Kt) ? Kt : Kt.right; yy($r, void 0); } return N.createImportTypeNode(cr, hn, Kt, kn, vt); } else { const $r = gr(Kt), yr = $r.objectType.typeName; return N.createIndexedAccessTypeNode(N.createImportTypeNode(cr, hn, yr, kn, vt), $r.indexType); } } const Ft = $t(Cr, Cr.length - 1, 0); if (bx(Ft)) return Ft; if (vt) return N.createTypeQueryNode(Ft); { const Kt = Ve(Ft) ? Ft : Ft.right, kn = vT(Kt); return yy(Kt, void 0), N.createTypeReferenceNode(Ft, kn); } function $t(Kt, kn, qn) { const aa = kn === Kt.length - 1 ? Qn : xn(Kt, kn, Ee), mi = Kt[kn], hn = Kt[kn - 1]; let cr; if (kn === 0) Ee.flags |= 16777216, cr = zy(mi, Ee), Ee.approximateLength += (cr ? cr.length : 0) + 1, Ee.flags ^= 16777216; else if (hn && uf(hn)) { const yr = uf(hn); Zd(yr, (ba, os) => { if (am(ba, mi) && !Jw(os) && os !== "export=") return cr = Zi(os), !0; }); } if (cr === void 0) { const yr = En(mi.declarations, La); if (yr && Ss(yr) && $d(yr.expression)) { const ba = $t(Kt, kn - 1, qn); return $d(ba) ? N.createIndexedAccessTypeNode(N.createParenthesizedType(N.createTypeQueryNode(ba)), N.createTypeQueryNode(yr.expression)) : ba; } cr = zy(mi, Ee); } if (Ee.approximateLength += cr.length + 1, !(Ee.flags & 16) && hn && $y(hn) && $y(hn).get(mi.escapedName) && am($y(hn).get(mi.escapedName), mi)) { const yr = $t(Kt, kn - 1, qn); return bx(yr) ? N.createIndexedAccessTypeNode(yr, N.createLiteralTypeNode(N.createStringLiteral(cr))) : N.createIndexedAccessTypeNode(N.createTypeReferenceNode(yr, aa), N.createLiteralTypeNode(N.createStringLiteral(cr))); } const $r = or(N.createIdentifier(cr), 33554432); if (aa && yy($r, N.createNodeArray(aa)), $r.symbol = mi, kn > qn) { const yr = $t(Kt, kn - 1, qn); return $d(yr) ? N.createQualifiedName(yr, $r) : D.fail("Impossible construct - an export of an indexed access cannot be reachable"); } return $r; } } function Yr(ct, Ee, er) { const Qn = dl(Ee.enclosingDeclaration, ct, 788968, void 0, ct, !1); return Qn ? !(Qn.flags & 262144 && Qn === er.symbol) : !1; } function ei(ct, Ee) { var er, Qn; if (Ee.flags & 4 && Ee.typeParameterNames) { const Ir = Ee.typeParameterNames.get(Su(ct)); if (Ir) return Ir; } let Er = fa(ct.symbol, Ee, 788968, !0); if (!(Er.kind & 79)) return N.createIdentifier("(Missing type parameter)"); if (Ee.flags & 4) { const Ir = Er.escapedText; let wa = ((er = Ee.typeParameterNamesByTextNextNameCount) == null ? void 0 : er.get(Ir)) || 0, Li = Ir; for (; (Qn = Ee.typeParameterNamesByText) != null && Qn.has(Li) || Yr(Li, Ee, ct); ) wa++, Li = `${Ir}_${wa}`; if (Li !== Ir) { const Cr = vT(Er); Er = N.createIdentifier(Li), yy(Er, Cr); } (Ee.typeParameterNamesByTextNextNameCount || (Ee.typeParameterNamesByTextNextNameCount = /* @__PURE__ */ new Map())).set(Ir, wa), (Ee.typeParameterNames || (Ee.typeParameterNames = /* @__PURE__ */ new Map())).set(Su(ct), Er), (Ee.typeParameterNamesByText || (Ee.typeParameterNamesByText = /* @__PURE__ */ new Set())).add(Ir); } return Er; } function fa(ct, Ee, er, Qn) { const Er = An(ct, Ee, er); return Qn && Er.length !== 1 && !Ee.encounteredError && !(Ee.flags & 65536) && (Ee.encounteredError = !0), Ir(Er, Er.length - 1); function Ir(wa, Li) { const Cr = xn(wa, Li, Ee), vt = wa[Li]; Li === 0 && (Ee.flags |= 16777216); const Ft = zy(vt, Ee); Li === 0 && (Ee.flags ^= 16777216); const $t = or(N.createIdentifier(Ft), 33554432); return Cr && yy($t, N.createNodeArray(Cr)), $t.symbol = vt, Li > 0 ? N.createQualifiedName(Ir(wa, Li - 1), $t) : $t; } } function Ya(ct, Ee, er) { const Qn = An(ct, Ee, er); return Er(Qn, Qn.length - 1); function Er(Ir, wa) { const Li = xn(Ir, wa, Ee), Cr = Ir[wa]; wa === 0 && (Ee.flags |= 16777216); let vt = zy(Cr, Ee); wa === 0 && (Ee.flags ^= 16777216); let Ft = vt.charCodeAt(0); if (rN(Ft) && kt(Cr.declarations, Mg)) return N.createStringLiteral(an(Cr, Ee)); if (wa === 0 || lq(vt, P)) { const $t = or(N.createIdentifier(vt), 33554432); return Li && yy($t, N.createNodeArray(Li)), $t.symbol = Cr, wa > 0 ? N.createPropertyAccessExpression(Er(Ir, wa - 1), $t) : $t; } else { Ft === 91 && (vt = vt.substring(1, vt.length - 1), Ft = vt.charCodeAt(0)); let $t; if (rN(Ft) && !(Cr.flags & 8) ? $t = N.createStringLiteral(M_(vt).replace(/\\./g, (Kt) => Kt.substring(1)), Ft === 39) : "" + +vt === vt && ($t = N.createNumericLiteral(+vt)), !$t) { const Kt = or(N.createIdentifier(vt), 33554432); Li && yy(Kt, N.createNodeArray(Li)), Kt.symbol = Cr, $t = Kt; } return N.createElementAccessExpression(Er(Ir, wa - 1), $t); } } } function gc(ct) { const Ee = La(ct); return !!Ee && Go(Ee); } function Bf(ct) { const Ee = La(ct); return !!(Ee && Go(Ee) && (Ee.singleQuote || !$s(Ee) && Ea(bc(Ee, !1), "'"))); } function mf(ct, Ee) { const er = !!Ne(ct.declarations) && Vn(ct.declarations, gc), Qn = !!Ne(ct.declarations) && Vn(ct.declarations, Bf), Er = ia(ct, Ee, Qn, er); if (Er) return Er; const Ir = Zi(ct.escapedName); return R3(Ir, $o(Y), Qn, er); } function ia(ct, Ee, er, Qn) { const Er = Ui(ct).nameType; if (Er) { if (Er.flags & 384) { const Ir = "" + Er.value; return !w_(Ir, $o(Y)) && (Qn || !vh(Ir)) ? N.createStringLiteral(Ir, !!er) : vh(Ir) && Ea(Ir, "-") ? N.createComputedPropertyName(N.createNumericLiteral(+Ir)) : R3(Ir, $o(Y)); } if (Er.flags & 8192) return N.createComputedPropertyName(Ya(Er.symbol, Ee, 111551)); } } function Un(ct) { const Ee = { ...ct }; return Ee.typeParameterNames && (Ee.typeParameterNames = new Map(Ee.typeParameterNames)), Ee.typeParameterNamesByText && (Ee.typeParameterNamesByText = new Set(Ee.typeParameterNamesByText)), Ee.typeParameterSymbolList && (Ee.typeParameterSymbolList = new Set(Ee.typeParameterSymbolList)), Ee.tracker = new f8(Ee, Ee.tracker.inner, Ee.tracker.moduleResolverHost), Ee; } function sr(ct, Ee) { return ct.declarations && un(ct.declarations, (er) => !!Jc(er) && (!Ee || !!nr(er, (Qn) => Qn === Ee))); } function Xi(ct, Ee) { return !(Qr(Ee) & 4) || !V_(ct) || Ne(ct.typeArguments) >= um(Ee.target.typeParameters); } function Fa(ct) { return Wr(ct).fakeScopeForSignatureDeclaration ? ct.parent : ct; } function ea(ct, Ee, er, Qn, Er, Ir) { if (!Zo(Ee) && Qn) { const Cr = sr(er, Fa(Qn)); if (Cr && !Ys(Cr) && !U_(Cr)) { const vt = Jc(Cr); if (Yo(vt, Cr, Ee) && Xi(vt, Ee)) { const Ft = To(ct, vt, Er, Ir); if (Ft) return Ft; } } } const wa = ct.flags; Ee.flags & 8192 && Ee.symbol === er && (!ct.enclosingDeclaration || kt(er.declarations, (Cr) => Zn(Cr) === Zn(ct.enclosingDeclaration))) && (ct.flags |= 1048576); const Li = u(Ee, ct); return ct.flags = wa, Li; } function Yo(ct, Ee, er) { const Qn = ci(ct); return Qn === er ? !0 : Ma(Ee) && Ee.questionToken ? n_(er, 524288) === Qn : !1; } function Rs(ct, Ee, er, Qn, Er) { if (!Zo(Ee) && ct.enclosingDeclaration) { const Ir = er.declaration && fp(er.declaration), wa = Fa(ct.enclosingDeclaration); if (nr(Ir, (Li) => Li === wa) && Ir) { const Li = ci(Ir); if ((Li.flags & 262144 && Li.isThisType ? qi(Li, er.mapper) : Li) === Ee && Xi(Ir, Ee)) { const vt = To(ct, Ir, Qn, Er); if (vt) return vt; } } } return u(Ee, ct); } function ml(ct, Ee, er) { let Qn = !1; const Er = Ef(ct); if (dr(ct) && (sT(Er) || ph(Er.parent) || Ed(Er.parent) && $W(Er.parent.left) && sT(Er.parent.right))) return Qn = !0, { introducesError: Qn, node: ct }; const Ir = wl(Er, 67108863, !0, !0); if (Ir && (Hy(Ir, Ee.enclosingDeclaration, 67108863, !1).accessibility !== 0 ? Qn = !0 : (Ee.tracker.trackSymbol(Ir, Ee.enclosingDeclaration, 67108863), er == null || er(Ir)), Ve(ct))) { const wa = Bs(Ir), Li = Ir.flags & 262144 && !mE(wa.symbol, Ee.enclosingDeclaration) ? ei(wa, Ee) : N.cloneNode(ct); return Li.symbol = Ir, { introducesError: Qn, node: or(Vr(Li, ct), 33554432) }; } return { introducesError: Qn, node: ct }; } function To(ct, Ee, er, Qn) { o && o.throwIfCancellationRequested && o.throwIfCancellationRequested(); let Er = !1; const Ir = Zn(Ee), wa = st(Ee, Li, Pi); if (Er) return; return wa === Ee ? mt(N.cloneNode(Ee), Ee) : wa; function Li(Cr) { if (Mfe(Cr) || Cr.kind === 322) return N.createKeywordTypeNode(131); if (Ffe(Cr)) return N.createKeywordTypeNode(157); if (hC(Cr)) return N.createUnionTypeNode([st(Cr.type, Li, Pi), N.createLiteralTypeNode(N.createNull())]); if (aJ(Cr)) return N.createUnionTypeNode([st(Cr.type, Li, Pi), N.createKeywordTypeNode(155)]); if (C7(Cr)) return st(Cr.type, Li); if (L7(Cr)) return N.createArrayTypeNode(st(Cr.type, Li, Pi)); if (Lk(Cr)) return N.createTypeLiteralNode(rn(Cr.jsDocPropertyTags, (Kt) => { const kn = Ve(Kt.name) ? Kt.name : Kt.name.right, qn = cc(ci(Cr), kn.escapedText), aa = qn && Kt.typeExpression && ci(Kt.typeExpression.type) !== qn ? u(qn, ct) : void 0; return N.createPropertySignature(void 0, kn, Kt.isBracketed || Kt.typeExpression && aJ(Kt.typeExpression.type) ? N.createToken(57) : void 0, aa || Kt.typeExpression && st(Kt.typeExpression.type, Li, Pi) || N.createKeywordTypeNode(131)); })); if (V_(Cr) && Ve(Cr.typeName) && Cr.typeName.escapedText === "") return Vr(N.createKeywordTypeNode(131), Cr); if ((vy(Cr) || V_(Cr)) && $M(Cr)) return N.createTypeLiteralNode([N.createIndexSignature(void 0, [N.createParameterDeclaration(void 0, void 0, "x", void 0, st(Cr.typeArguments[0], Li, Pi))], st(Cr.typeArguments[1], Li, Pi))]); if (gC(Cr)) if (MA(Cr)) { let Kt; return N.createConstructorTypeNode(void 0, Kn(Cr.typeParameters, Li, Ol), _a(Cr.parameters, (kn, qn) => kn.name && Ve(kn.name) && kn.name.escapedText === "new" ? (Kt = kn.type, void 0) : N.createParameterDeclaration(void 0, vt(kn), Ft(kn, qn), kn.questionToken, st(kn.type, Li, Pi), void 0)), st(Kt || Cr.type, Li, Pi) || N.createKeywordTypeNode(131)); } else return N.createFunctionTypeNode(Kn(Cr.typeParameters, Li, Ol), rn(Cr.parameters, (Kt, kn) => N.createParameterDeclaration(void 0, vt(Kt), Ft(Kt, kn), Kt.questionToken, st(Kt.type, Li, Pi), void 0)), st(Cr.type, Li, Pi) || N.createKeywordTypeNode(131)); if (V_(Cr) && nN(Cr) && (!Xi(Cr, ci(Cr)) || GAe(Cr) || en === O2(Cr, 788968, !0))) return Vr(u(ci(Cr), ct), Cr); if (B0(Cr)) { const Kt = Wr(Cr).resolvedSymbol; return nN(Cr) && Kt && (!Cr.isTypeOf && !(Kt.flags & 788968) || !(Ne(Cr.typeArguments) >= um(Yy(Kt)))) ? Vr(u(ci(Cr), ct), Cr) : N.updateImportTypeNode(Cr, N.updateLiteralTypeNode(Cr.argument, $t(Cr, Cr.argument.literal)), Cr.assertions, Cr.qualifier, Kn(Cr.typeArguments, Li, Pi), Cr.isTypeOf); } if ($d(Cr) || Vl(Cr)) { const { introducesError: Kt, node: kn } = ml(Cr, ct, er); if (Er = Er || Kt, kn !== Cr) return kn; } return Ir && lC(Cr) && il(Ir, Cr.pos).line === il(Ir, Cr.end).line && or(Cr, 1), Bn(Cr, Li, pg); function vt(Kt) { return Kt.dotDotDotToken || (Kt.type && L7(Kt.type) ? N.createToken(25) : void 0); } function Ft(Kt, kn) { return Kt.name && Ve(Kt.name) && Kt.name.escapedText === "this" ? "this" : vt(Kt) ? "args" : `arg${kn}`; } function $t(Kt, kn) { if (Qn) { if (ct.tracker && ct.tracker.moduleResolverHost) { const qn = _oe(Kt); if (qn) { const mi = { getCanonicalFileName: $c(!!e.useCaseSensitiveFileNames), getCurrentDirectory: () => ct.tracker.moduleResolverHost.getCurrentDirectory(), getCommonSourceDirectory: () => ct.tracker.moduleResolverHost.getCommonSourceDirectory() }, hn = u3(mi, qn); return N.createStringLiteral(hn); } } } else if (ct.tracker && ct.tracker.trackExternalModuleSymbolOfImportTypeNode) { const qn = Oh(kn, kn, void 0); qn && ct.tracker.trackExternalModuleSymbolOfImportTypeNode(qn); } return kn; } } } function ju(ct, Ee, er) { const Qn = cp(N.createPropertyDeclaration, 171, !0), Er = cp((wt, Sr, gi, ai) => N.createPropertySignature(wt, Sr, gi, ai), 170, !1), Ir = Ee.enclosingDeclaration; let wa = []; const Li = /* @__PURE__ */ new Set(), Cr = [], vt = Ee; Ee = { ...vt, usedSymbolNames: new Set(vt.usedSymbolNames), remappedSymbolNames: /* @__PURE__ */ new Map(), tracker: void 0 }; const Ft = { ...vt.tracker.inner, trackSymbol: (wt, Sr, gi) => { var ai; if (Hy(wt, Sr, gi, !1).accessibility === 0) { const rs = Xn(wt, Ee, gi); wt.flags & 4 || Gs(rs[0]); } else if ((ai = vt.tracker.inner) != null && ai.trackSymbol) return vt.tracker.inner.trackSymbol(wt, Sr, gi); return !1; } }; Ee.tracker = new f8(Ee, Ft, vt.tracker.moduleResolverHost), Zd(ct, (wt, Sr) => { const gi = Zi(Sr); Rd(wt, gi); }); let $t = !er; const Kt = ct.get("export="); return Kt && ct.size > 1 && Kt.flags & 2097152 && (ct = ao(), ct.set("export=", Kt)), ba(ct), cr(wa); function kn(wt) { return !!wt && wt.kind === 79; } function qn(wt) { return sc(wt) ? yn(rn(wt.declarationList.declarations, La), kn) : yn([La(wt)], kn); } function aa(wt) { const Sr = un(wt, Pl), gi = $i(wt, Hl); let ai = gi !== -1 ? wt[gi] : void 0; if (ai && Sr && Sr.isExportEquals && Ve(Sr.expression) && Ve(ai.name) && Or(ai.name) === Or(Sr.expression) && ai.body && Yp(ai.body)) { const si = yn(wt, (ta) => !!(wu(ta) & 1)), rs = ai.name; let Ba = ai.body; if (Ne(si) && (ai = N.updateModuleDeclaration(ai, ai.modifiers, ai.name, Ba = N.updateModuleBlock(Ba, N.createNodeArray([...ai.body.statements, N.createExportDeclaration(void 0, !1, N.createNamedExports(rn(Mo(si, (ta) => qn(ta)), (ta) => N.createExportSpecifier(!1, void 0, ta))), void 0)]))), wt = [...wt.slice(0, gi), ai, ...wt.slice(gi + 1)]), !un(wt, (ta) => ta !== ai && RR(ta, rs))) { wa = []; const ta = !kt(Ba.statements, (jo) => Jr(jo, 1) || Pl(jo) || Kc(jo)); Ye(Ba.statements, (jo) => { tt(jo, ta ? 1 : 0); }), wt = [...yn(wt, (jo) => jo !== ai && jo !== Sr), ...wa]; } } return wt; } function mi(wt) { const Sr = yn(wt, (ai) => Kc(ai) && !ai.moduleSpecifier && !!ai.exportClause && j_(ai.exportClause)); Ne(Sr) > 1 && (wt = [...yn(wt, (si) => !Kc(si) || !!si.moduleSpecifier || !si.exportClause), N.createExportDeclaration(void 0, !1, N.createNamedExports(Mo(Sr, (si) => ro(si.exportClause, j_).elements)), void 0)]); const gi = yn(wt, (ai) => Kc(ai) && !!ai.moduleSpecifier && !!ai.exportClause && j_(ai.exportClause)); if (Ne(gi) > 1) { const ai = XL(gi, (si) => Go(si.moduleSpecifier) ? ">" + si.moduleSpecifier.text : ">"); if (ai.length !== gi.length) for (const si of ai) si.length > 1 && (wt = [ ...yn(wt, (rs) => si.indexOf(rs) === -1), N.createExportDeclaration(void 0, !1, N.createNamedExports(Mo(si, (rs) => ro(rs.exportClause, j_).elements)), si[0].moduleSpecifier) ]); } return wt; } function hn(wt) { const Sr = $i(wt, (gi) => Kc(gi) && !gi.moduleSpecifier && !gi.assertClause && !!gi.exportClause && j_(gi.exportClause)); if (Sr >= 0) { const gi = wt[Sr], ai = _a(gi.exportClause.elements, (si) => { if (!si.propertyName) { const rs = YD(wt), Ba = yn(rs, (ta) => RR(wt[ta], si.name)); if (Ne(Ba) && Vn(Ba, (ta) => QN(wt[ta]))) { for (const ta of Ba) wt[ta] = $r(wt[ta]); return; } } return si; }); Ne(ai) ? wt[Sr] = N.updateExportDeclaration(gi, gi.modifiers, gi.isTypeOnly, N.updateNamedExports(gi.exportClause, ai), gi.moduleSpecifier, gi.assertClause) : t1(wt, Sr); } return wt; } function cr(wt) { return wt = aa(wt), wt = mi(wt), wt = hn(wt), Ir && (ji(Ir) && ef(Ir) || Hl(Ir)) && (!kt(wt, UR) || !sce(wt) && kt(wt, bM)) && wt.push(IO(N)), wt; } function $r(wt) { const Sr = (wu(wt) | 1) & -3; return N.updateModifiers(wt, Sr); } function yr(wt) { const Sr = wu(wt) & -2; return N.updateModifiers(wt, Sr); } function ba(wt, Sr, gi) { Sr || Cr.push(/* @__PURE__ */ new Map()), wt.forEach((ai) => { os(ai, !1, !!gi); }), Sr || (Cr[Cr.length - 1].forEach((ai) => { os(ai, !0, !!gi); }), Cr.pop()); } function os(wt, Sr, gi) { const ai = ns(wt); if (Li.has(go(ai))) return; if (Li.add(go(ai)), !Sr || Ne(wt.declarations) && kt(wt.declarations, (rs) => !!nr(rs, (Ba) => Ba === Ir))) { const rs = Ee; Ee = Un(Ee), Fs(wt, Sr, gi), Ee.reportedDiagnostic && (vt.reportedDiagnostic = Ee.reportedDiagnostic), Ee = rs; } } function Fs(wt, Sr, gi) { var ai, si, rs, Ba; const ta = Zi(wt.escapedName), jo = wt.escapedName === "default"; if (Sr && !(Ee.flags & 131072) && ZS(ta) && !jo) { Ee.encounteredError = !0; return; } let gs = jo && !!(wt.flags & -113 || wt.flags & 16 && Ne(fs(ar(wt)))) && !(wt.flags & 2097152), ec = !gs && !Sr && ZS(ta) && !jo; (gs || ec) && (Sr = !0); const Ac = (Sr ? 0 : 1) | (jo && !gs ? 1024 : 0), hf = wt.flags & 1536 && wt.flags & 7 && wt.escapedName !== "export=", su = hf && ou(ar(wt), wt); if ((wt.flags & 8208 || su) && Gr(ar(wt), wt, Rd(wt, ta), Ac), wt.flags & 524288 && Tt(wt, ta, Ac), wt.flags & 7 && wt.escapedName !== "export=" && !(wt.flags & 4194304) && !(wt.flags & 32) && !(wt.flags & 8192) && !su) if (gi) Ls(wt) && (ec = !1, gs = !1); else { const Vs = ar(wt), Dl = Rd(wt, ta); if (!(wt.flags & 16) && ou(Vs, wt)) Gr(Vs, wt, Dl, Ac); else { const $g = wt.flags & 2 ? AL(wt) ? 2 : 1 : (ai = wt.parent) != null && ai.valueDeclaration && ji((si = wt.parent) == null ? void 0 : si.valueDeclaration) ? 2 : void 0, sh = gs || !(wt.flags & 4) ? Dl : Y2(Dl, wt); let lh = wt.declarations && un(wt.declarations, (uv) => Wi(uv)); lh && Ou(lh.parent) && lh.parent.declarations.length === 1 && (lh = lh.parent.parent); const CS = (rs = wt.declarations) == null ? void 0 : rs.find(Pr); if (CS && vr(CS.parent) && Ve(CS.parent.right) && ((Ba = Vs.symbol) != null && Ba.valueDeclaration) && ji(Vs.symbol.valueDeclaration)) { const uv = Dl === CS.parent.right.escapedText ? void 0 : CS.parent.right; tt(N.createExportDeclaration(void 0, !1, N.createNamedExports([N.createExportSpecifier(!1, uv, Dl)])), 0), Ee.tracker.trackSymbol(Vs.symbol, Ee.enclosingDeclaration, 111551); } else { const uv = mt(N.createVariableStatement(void 0, N.createVariableDeclarationList([ N.createVariableDeclaration(sh, void 0, ea(Ee, Vs, wt, Ir, Gs, er)) ], $g)), lh); tt(uv, sh !== Dl ? Ac & -2 : Ac), sh !== Dl && !Sr && (tt(N.createExportDeclaration(void 0, !1, N.createNamedExports([N.createExportSpecifier(!1, sh, Dl)])), 0), ec = !1, gs = !1); } } } if (wt.flags & 384 && Tr(wt, ta, Ac), wt.flags & 32 && (wt.flags & 4 && wt.valueDeclaration && vr(wt.valueDeclaration.parent) && Nu(wt.valueDeclaration.parent.right) ? Po(wt, Rd(wt, ta), Ac) : di(wt, Rd(wt, ta), Ac)), (wt.flags & 1536 && (!hf || pr(wt)) || su) && Ln(wt, ta, Ac), wt.flags & 64 && !(wt.flags & 32) && Qt(wt, ta, Ac), wt.flags & 2097152 && Po(wt, Rd(wt, ta), Ac), wt.flags & 4 && wt.escapedName === "export=" && Ls(wt), wt.flags & 8388608 && wt.declarations) for (const Vs of wt.declarations) { const Dl = au(Vs, Vs.moduleSpecifier); Dl && tt(N.createExportDeclaration(void 0, Vs.isTypeOnly, void 0, N.createStringLiteral(an(Dl, Ee))), 0); } gs ? tt(N.createExportAssignment(void 0, !1, N.createIdentifier(Rd(wt, ta))), 0) : ec && tt(N.createExportDeclaration(void 0, !1, N.createNamedExports([N.createExportSpecifier(!1, Rd(wt, ta), ta)])), 0); } function Gs(wt) { if (kt(wt.declarations, dT)) return; D.assertIsDefined(Cr[Cr.length - 1]), Y2(Zi(wt.escapedName), wt); const Sr = !!(wt.flags & 2097152) && !kt(wt.declarations, (gi) => !!nr(gi, Kc) || Sh(gi) || tu(gi) && !Um(gi.moduleReference)); Cr[Sr ? 0 : Cr.length - 1].set(go(wt), wt); } function md(wt) { return ji(wt) && (ef(wt) || l_(wt)) || ku(wt) && !Hp(wt); } function tt(wt, Sr) { if (H_(wt)) { let gi = 0; const ai = Ee.enclosingDeclaration && (c_(Ee.enclosingDeclaration) ? Zn(Ee.enclosingDeclaration) : Ee.enclosingDeclaration); Sr & 1 && ai && (md(ai) || Hl(ai)) && QN(wt) && (gi |= 1), $t && !(gi & 1) && (!ai || !(ai.flags & 16777216)) && (Y0(wt) || sc(wt) || pc(wt) || kc(wt) || Hl(wt)) && (gi |= 2), Sr & 1024 && (kc(wt) || Yu(wt) || pc(wt)) && (gi |= 1024), gi && (wt = N.updateModifiers(wt, gi | wu(wt))); } wa.push(wt); } function Tt(wt, Sr, gi) { var ai; const si = Lb(wt), rs = Ui(wt).typeParameters, Ba = rn(rs, (hf) => ft(hf, Ee)), ta = (ai = wt.declarations) == null ? void 0 : ai.find(c_), jo = OR(ta ? ta.comment || ta.parent.comment : void 0), gs = Ee.flags; Ee.flags |= 8388608; const ec = Ee.enclosingDeclaration; Ee.enclosingDeclaration = ta; const Ac = ta && ta.typeExpression && AT(ta.typeExpression) && To(Ee, ta.typeExpression.type, Gs, er) || u(si, Ee); tt(L1(N.createTypeAliasDeclaration(void 0, Rd(wt, Sr), Ba, Ac), jo ? [{ kind: 3, text: `* * ` + jo.replace(/\n/g, ` * `) + ` `, pos: -1, end: -1, hasTrailingNewLine: !0 }] : []), gi), Ee.flags = gs, Ee.enclosingDeclaration = ec; } function Qt(wt, Sr, gi) { const ai = Gu(wt), si = Yy(wt), rs = rn(si, (su) => ft(su, Ee)), Ba = No(ai), ta = Ne(Ba) ? Lo(Ba) : void 0, jo = Mo(fs(ai), (su) => oh(su, ta)), gs = k0(0, ai, ta, 176), ec = k0(1, ai, ta, 177), Ac = AS(ai, ta), hf = Ne(Ba) ? [N.createHeritageClause(94, _a(Ba, (su) => gm(su, 111551)))] : void 0; tt(N.createInterfaceDeclaration(void 0, Rd(wt, Sr), rs, hf, [...Ac, ...ec, ...gs, ...jo]), gi); } function zn(wt) { return wt.exports ? yn(ko(wt.exports.values()), Wa) : []; } function pr(wt) { return Vn(zn(wt), (Sr) => !(iu(ql(Sr)) & 111551)); } function Ln(wt, Sr, gi) { const ai = zn(wt), si = tR(ai, (ta) => ta.parent && ta.parent === wt ? "real" : "merged"), rs = si.get("real") || nt, Ba = si.get("merged") || nt; if (Ne(rs)) { const ta = Rd(wt, Sr); Sa(rs, ta, gi, !!(wt.flags & 67108880)); } if (Ne(Ba)) { const ta = Zn(Ee.enclosingDeclaration), jo = Rd(wt, Sr), gs = N.createModuleBlock([N.createExportDeclaration(void 0, !1, N.createNamedExports(_a(yn(Ba, (ec) => ec.escapedName !== "export="), (ec) => { var Ac, hf; const su = Zi(ec.escapedName), Vs = Rd(ec, su), Dl = ec.declarations && ud(ec); if (ta && (Dl ? ta !== Zn(Dl) : !kt(ec.declarations, (lh) => Zn(lh) === ta))) { (hf = (Ac = Ee.tracker) == null ? void 0 : Ac.reportNonlocalAugmentation) == null || hf.call(Ac, ta, wt, ec); return; } const $g = Dl && ep(Dl, !0); Gs($g || ec); const sh = $g ? Rd($g, Zi($g.escapedName)) : Vs; return N.createExportSpecifier(!1, su === sh ? void 0 : sh, su); })))]); tt(N.createModuleDeclaration(void 0, N.createIdentifier(jo), gs, 16), 0); } } function Tr(wt, Sr, gi) { tt(N.createEnumDeclaration(N.createModifiersFromModifierFlags(Mae(wt) ? 2048 : 0), Rd(wt, Sr), rn(yn(fs(ar(wt)), (ai) => !!(ai.flags & 8)), (ai) => { const si = ai.declarations && ai.declarations[0] && D1(ai.declarations[0]) ? uoe(ai.declarations[0]) : void 0; return N.createEnumMember(Zi(ai.escapedName), si === void 0 ? void 0 : typeof si == "string" ? N.createStringLiteral(si) : N.createNumericLiteral(si)); })), gi); } function Gr(wt, Sr, gi, ai) { const si = Ha(wt, 0); for (const rs of si) { const Ba = he(rs, 259, Ee, { name: N.createIdentifier(gi), privateSymbolVisitor: Gs, bundledImports: er }); tt(mt(Ba, Mi(rs)), ai); } if (!(Sr.flags & 1536 && Sr.exports && Sr.exports.size)) { const rs = yn(fs(wt), Wa); Sa(rs, gi, ai, !0); } } function Mi(wt) { if (wt.declaration && wt.declaration.parent) { if (vr(wt.declaration.parent) && xl(wt.declaration.parent) === 5) return wt.declaration.parent; if (Wi(wt.declaration.parent) && wt.declaration.parent.parent) return wt.declaration.parent.parent; } return wt.declaration; } function Sa(wt, Sr, gi, ai) { if (Ne(wt)) { const rs = tR(wt, (Vs) => !Ne(Vs.declarations) || kt(Vs.declarations, (Dl) => Zn(Dl) === Zn(Ee.enclosingDeclaration)) ? "local" : "remote").get("local") || nt; let Ba = jm.createModuleDeclaration(void 0, N.createIdentifier(Sr), N.createModuleBlock([]), 16); Bo(Ba, Ir), Ba.locals = ao(wt), Ba.symbol = wt[0].parent; const ta = wa; wa = []; const jo = $t; $t = !1; const gs = { ...Ee, enclosingDeclaration: Ba }, ec = Ee; Ee = gs, ba(ao(rs), ai, !0), Ee = ec, $t = jo; const Ac = wa; wa = ta; const hf = rn(Ac, (Vs) => Pl(Vs) && !Vs.isExportEquals && Ve(Vs.expression) ? N.createExportDeclaration(void 0, !1, N.createNamedExports([N.createExportSpecifier(!1, Vs.expression, N.createIdentifier("default"))])) : Vs), su = Vn(hf, (Vs) => Jr(Vs, 1)) ? rn(hf, yr) : hf; Ba = N.updateModuleDeclaration(Ba, Ba.modifiers, Ba.name, N.createModuleBlock(su)), tt(Ba, gi); } } function Wa(wt) { return !!(wt.flags & 2887656) || !(wt.flags & 4194304 || wt.escapedName === "prototype" || wt.valueDeclaration && za(wt.valueDeclaration) && li(wt.valueDeclaration.parent)); } function $a(wt) { const Sr = _a(wt, (gi) => { const ai = Ee.enclosingDeclaration; Ee.enclosingDeclaration = gi; let si = gi.expression; if (Vl(si)) { if (Ve(si) && Or(si) === "") return rs(void 0); let Ba; if ({ introducesError: Ba, node: si } = ml(si, Ee, Gs), Ba) return rs(void 0); } return rs(N.createExpressionWithTypeArguments(si, rn(gi.typeArguments, (Ba) => To(Ee, Ba, Gs, er) || u(ci(Ba), Ee)))); function rs(Ba) { return Ee.enclosingDeclaration = ai, Ba; } }); if (Sr.length === wt.length) return Sr; } function di(wt, Sr, gi) { var ai, si; const rs = (ai = wt.declarations) == null ? void 0 : ai.find(li), Ba = Ee.enclosingDeclaration; Ee.enclosingDeclaration = rs || Ba; const ta = Yy(wt), jo = rn(ta, (Pp) => ft(Pp, Ee)), gs = Gu(wt), ec = No(gs), Ac = rs && UA(rs), hf = Ac && $a(Ac) || _a(Vi(gs), X2), su = ar(wt), Vs = !!((si = su.symbol) != null && si.valueDeclaration) && li(su.symbol.valueDeclaration), Dl = Vs ? ti(su) : Ie, $g = [ ...Ne(ec) ? [N.createHeritageClause(94, rn(ec, (Pp) => VL(Pp, Dl, Sr)))] : [], ...Ne(hf) ? [N.createHeritageClause(117, hf)] : [] ], sh = kat(gs, ec, fs(gs)), lh = yn(sh, (Pp) => { const jL = Pp.valueDeclaration; return !!jL && !(du(jL) && ki(jL.name)); }), uv = kt(sh, (Pp) => { const jL = Pp.valueDeclaration; return !!jL && du(jL) && ki(jL.name); }) ? [N.createPropertyDeclaration(void 0, N.createPrivateIdentifier("#private"), void 0, void 0, void 0)] : nt, boe = Mo(lh, (Pp) => Qn(Pp, !1, ec[0])), Eoe = Mo(yn(fs(su), (Pp) => !(Pp.flags & 4194304) && Pp.escapedName !== "prototype" && !Wa(Pp)), (Pp) => Qn(Pp, !0, Dl)), zst = !Vs && !!wt.valueDeclaration && dr(wt.valueDeclaration) && !kt(Ha(su, 1)) ? [N.createConstructorDeclaration(N.createModifiersFromModifierFlags(8), [], void 0)] : k0(1, su, Dl, 173), qst = AS(gs, ec[0]); Ee.enclosingDeclaration = Ba, tt(mt(N.createClassDeclaration(void 0, Sr, jo, $g, [...qst, ...Eoe, ...zst, ...boe, ...uv]), wt.declarations && yn(wt.declarations, (Pp) => kc(Pp) || Nu(Pp))[0]), gi); } function Qa(wt) { return En(wt, (Sr) => { if (Td(Sr) || od(Sr)) return Or(Sr.propertyName || Sr.name); if (vr(Sr) || Pl(Sr)) { const gi = Pl(Sr) ? Sr.expression : Sr.right; if (Pr(gi)) return Or(gi.name); } if (Ig(Sr)) { const gi = La(Sr); if (gi && Ve(gi)) return Or(gi); } }); } function Po(wt, Sr, gi) { var ai, si, rs, Ba, ta; const jo = ud(wt); if (!jo) return D.fail(); const gs = ns(ep(jo, !0)); if (!gs) return; let ec = AI(gs) && Qa(wt.declarations) || Zi(gs.escapedName); ec === "export=" && (B_(Y) || Y.allowSyntheticDefaultImports) && (ec = "default"); const Ac = Rd(gs, ec); switch (Gs(gs), jo.kind) { case 205: if (((si = (ai = jo.parent) == null ? void 0 : ai.parent) == null ? void 0 : si.kind) === 257) { const Vs = an(gs.parent || gs, Ee), { propertyName: Dl } = jo; tt(N.createImportDeclaration(void 0, N.createImportClause(!1, void 0, N.createNamedImports([N.createImportSpecifier(!1, Dl && Ve(Dl) ? N.createIdentifier(Or(Dl)) : void 0, N.createIdentifier(Sr))])), N.createStringLiteral(Vs), void 0), 0); break; } D.failBadSyntaxKind(((rs = jo.parent) == null ? void 0 : rs.parent) || jo, "Unhandled binding element grandparent kind in declaration serialization"); break; case 300: ((ta = (Ba = jo.parent) == null ? void 0 : Ba.parent) == null ? void 0 : ta.kind) === 223 && Io(Zi(wt.escapedName), Ac); break; case 257: if (Pr(jo.initializer)) { const Vs = jo.initializer, Dl = N.createUniqueName(Sr), $g = an(gs.parent || gs, Ee); tt(N.createImportEqualsDeclaration(void 0, !1, Dl, N.createExternalModuleReference(N.createStringLiteral($g))), 0), tt(N.createImportEqualsDeclaration(void 0, !1, N.createIdentifier(Sr), N.createQualifiedName(Dl, Vs.name)), gi); break; } case 268: if (gs.escapedName === "export=" && kt(gs.declarations, (Vs) => ji(Vs) && l_(Vs))) { Ls(wt); break; } const hf = !(gs.flags & 512) && !Wi(jo); tt(N.createImportEqualsDeclaration(void 0, !1, N.createIdentifier(Sr), hf ? fa(gs, Ee, 67108863, !1) : N.createExternalModuleReference(N.createStringLiteral(an(gs, Ee)))), hf ? gi : 0); break; case 267: tt(N.createNamespaceExportDeclaration(Or(jo.name)), 0); break; case 270: { const Vs = an(gs.parent || gs, Ee), Dl = er ? N.createStringLiteral(Vs) : jo.parent.moduleSpecifier; tt(N.createImportDeclaration(void 0, N.createImportClause(!1, N.createIdentifier(Sr), void 0), Dl, jo.parent.assertClause), 0); break; } case 271: { const Vs = an(gs.parent || gs, Ee), Dl = er ? N.createStringLiteral(Vs) : jo.parent.parent.moduleSpecifier; tt(N.createImportDeclaration(void 0, N.createImportClause(!1, void 0, N.createNamespaceImport(N.createIdentifier(Sr))), Dl, jo.parent.parent.assertClause), 0); break; } case 277: tt(N.createExportDeclaration(void 0, !1, N.createNamespaceExport(N.createIdentifier(Sr)), N.createStringLiteral(an(gs, Ee))), 0); break; case 273: { const Vs = an(gs.parent || gs, Ee), Dl = er ? N.createStringLiteral(Vs) : jo.parent.parent.parent.moduleSpecifier; tt(N.createImportDeclaration(void 0, N.createImportClause(!1, void 0, N.createNamedImports([ N.createImportSpecifier(!1, Sr !== ec ? N.createIdentifier(ec) : void 0, N.createIdentifier(Sr)) ])), Dl, jo.parent.parent.parent.assertClause), 0); break; } case 278: const su = jo.parent.parent.moduleSpecifier; Io(Zi(wt.escapedName), su ? ec : Ac, su && Ts(su) ? N.createStringLiteral(su.text) : void 0); break; case 274: Ls(wt); break; case 223: case 208: case 209: wt.escapedName === "default" || wt.escapedName === "export=" ? Ls(wt) : Io(Sr, Ac); break; default: return D.failBadSyntaxKind(jo, "Unhandled alias declaration kind in symbol serializer!"); } } function Io(wt, Sr, gi) { tt(N.createExportDeclaration(void 0, !1, N.createNamedExports([N.createExportSpecifier(!1, wt !== Sr ? Sr : void 0, wt)]), gi), 0); } function Ls(wt) { if (wt.flags & 4194304) return !1; const Sr = Zi(wt.escapedName), gi = Sr === "export=", si = gi || Sr === "default", rs = wt.declarations && ud(wt), Ba = rs && ep(rs, !0); if (Ba && Ne(Ba.declarations) && kt(Ba.declarations, (ta) => Zn(ta) === Zn(Ir))) { const ta = rs && (Pl(rs) || vr(rs) ? az(rs) : _ue(rs)), jo = ta && Vl(ta) ? Wat(ta) : void 0, gs = jo && wl(jo, 67108863, !0, !0, Ir); (gs || Ba) && Gs(gs || Ba); const ec = Ee.tracker.disableTrackSymbol; if (Ee.tracker.disableTrackSymbol = !0, si) wa.push(N.createExportAssignment(void 0, gi, Ya(Ba, Ee, 67108863))); else if (jo === ta && jo) Io(Sr, Or(jo)); else if (ta && Nu(ta)) Io(Sr, Rd(Ba, Nl(Ba))); else { const Ac = Y2(Sr, wt); tt(N.createImportEqualsDeclaration(void 0, !1, N.createIdentifier(Ac), fa(Ba, Ee, 67108863, !1)), 0), Io(Sr, Ac); } return Ee.tracker.disableTrackSymbol = ec, !0; } else { const ta = Y2(Sr, wt), jo = Kd(ar(ns(wt))); if (ou(jo, wt)) Gr(jo, wt, ta, si ? 0 : 1); else { const gs = N.createVariableStatement(void 0, N.createVariableDeclarationList([ N.createVariableDeclaration(ta, void 0, ea(Ee, jo, wt, Ir, Gs, er)) ], 2)); tt(gs, Ba && Ba.flags & 4 && Ba.escapedName === "export=" ? 2 : Sr === ta ? 1 : 0); } return si ? (wa.push(N.createExportAssignment(void 0, gi, N.createIdentifier(ta))), !0) : Sr !== ta ? (Io(Sr, ta), !0) : !1; } } function ou(wt, Sr) { const gi = Zn(Ee.enclosingDeclaration); return Qr(wt) & 48 && !Ne(Eu(wt)) && !Fi(wt) && !!(Ne(yn(fs(wt), Wa)) || Ne(Ha(wt, 0))) && !Ne(Ha(wt, 1)) && !sr(Sr, Ir) && !(wt.symbol && kt(wt.symbol.declarations, (ai) => Zn(ai) !== gi)) && !kt(fs(wt), (ai) => Jw(ai.escapedName)) && !kt(fs(wt), (ai) => kt(ai.declarations, (si) => Zn(si) !== gi)) && Vn(fs(wt), (ai) => w_(Nl(ai), P)); } function cp(wt, Sr, gi) { return function(si, rs, Ba) { var ta, jo, gs, ec, Ac; const hf = qf(si), su = !!(hf & 8); if (rs && si.flags & 2887656) return []; if (si.flags & 4194304 || Ba && so(Ba, si.escapedName) && lp(so(Ba, si.escapedName)) === lp(si) && (si.flags & 16777216) === (so(Ba, si.escapedName).flags & 16777216) && Hh(ar(si), cc(Ba, si.escapedName))) return []; const Vs = hf & -513 | (rs ? 32 : 0), Dl = mf(si, Ee), $g = (ta = si.declarations) == null ? void 0 : ta.find(Sm(Za, F0, Wi, Tf, vr, Pr)); if (si.flags & 98304 && gi) { const sh = []; if (si.flags & 65536 && sh.push(mt(N.createSetAccessorDeclaration(N.createModifiersFromModifierFlags(Vs), Dl, [N.createParameterDeclaration(void 0, void 0, "arg", void 0, su ? void 0 : ea(Ee, ar(si), si, Ir, Gs, er))], void 0), ((jo = si.declarations) == null ? void 0 : jo.find(fy)) || $g)), si.flags & 32768) { const lh = hf & 8; sh.push(mt(N.createGetAccessorDeclaration(N.createModifiersFromModifierFlags(Vs), Dl, [], lh ? void 0 : ea(Ee, ar(si), si, Ir, Gs, er), void 0), ((gs = si.declarations) == null ? void 0 : gs.find(Sv)) || $g)); } return sh; } else if (si.flags & 98311) return mt(wt(N.createModifiersFromModifierFlags((lp(si) ? 64 : 0) | Vs), Dl, si.flags & 16777216 ? N.createToken(57) : void 0, su ? void 0 : ea(Ee, cL(si), si, Ir, Gs, er), void 0), ((ec = si.declarations) == null ? void 0 : ec.find(Sm(Za, Wi))) || $g); if (si.flags & 8208) { const sh = ar(si), lh = Ha(sh, 0); if (Vs & 8) return mt(wt(N.createModifiersFromModifierFlags((lp(si) ? 64 : 0) | Vs), Dl, si.flags & 16777216 ? N.createToken(57) : void 0, void 0, void 0), ((Ac = si.declarations) == null ? void 0 : Ac.find(Ys)) || lh[0] && lh[0].declaration || si.declarations && si.declarations[0]); const CS = []; for (const uv of lh) { const boe = he(uv, Sr, Ee, { name: Dl, questionToken: si.flags & 16777216 ? N.createToken(57) : void 0, modifiers: Vs ? N.createModifiersFromModifierFlags(Vs) : void 0 }), Eoe = uv.declaration && uN(uv.declaration.parent) ? uv.declaration.parent : uv.declaration; CS.push(mt(boe, Eoe)); } return CS; } return D.fail(`Unhandled class member kind! ${si.__debugFlags || si.flags}`); }; } function oh(wt, Sr) { return Er(wt, !1, Sr); } function k0(wt, Sr, gi, ai) { const si = Ha(Sr, wt); if (wt === 1) { if (!gi && Vn(si, (ta) => Ne(ta.parameters) === 0)) return []; if (gi) { const ta = Ha(gi, 1); if (!Ne(ta) && Vn(si, (jo) => Ne(jo.parameters) === 0)) return []; if (ta.length === si.length) { let jo = !1; for (let gs = 0; gs < ta.length; gs++) if (!L4(si[gs], ta[gs], !1, !1, !0, oD)) { jo = !0; break; } if (!jo) return []; } } let Ba = 0; for (const ta of si) ta.declaration && (Ba |= rx(ta.declaration, 24)); if (Ba) return [mt(N.createConstructorDeclaration(N.createModifiersFromModifierFlags(Ba), [], void 0), si[0].declaration)]; } const rs = []; for (const Ba of si) { const ta = he(Ba, ai, Ee); rs.push(mt(ta, Ba.declaration)); } return rs; } function AS(wt, Sr) { const gi = []; for (const ai of Eu(wt)) { if (Sr) { const si = nh(Sr, ai.keyType); if (si && Hh(ai.type, si.type)) continue; } gi.push($(ai, Ee, void 0)); } return gi; } function VL(wt, Sr, gi) { const ai = gm(wt, 111551); if (ai) return ai; const si = Y2(`${gi}_base`), rs = N.createVariableStatement(void 0, N.createVariableDeclarationList([ N.createVariableDeclaration(si, void 0, u(Sr, Ee)) ], 2)); return tt(rs, 0), N.createExpressionWithTypeArguments(N.createIdentifier(si), void 0); } function gm(wt, Sr) { let gi, ai; if (wt.target && gE(wt.target.symbol, Ir, Sr) ? (gi = rn(_s(wt), (si) => u(si, Ee)), ai = Ya(wt.target.symbol, Ee, 788968)) : wt.symbol && gE(wt.symbol, Ir, Sr) && (ai = Ya(wt.symbol, Ee, 788968)), ai) return N.createExpressionWithTypeArguments(ai, gi); } function X2(wt) { const Sr = gm(wt, 788968); if (Sr) return Sr; if (wt.symbol) return N.createExpressionWithTypeArguments(Ya(wt.symbol, Ee, 788968), void 0); } function Y2(wt, Sr) { var gi, ai; const si = Sr ? go(Sr) : void 0; if (si && Ee.remappedSymbolNames.has(si)) return Ee.remappedSymbolNames.get(si); Sr && (wt = VE(Sr, wt)); let rs = 0; const Ba = wt; for (; (gi = Ee.usedSymbolNames) != null && gi.has(wt); ) rs++, wt = `${Ba}_${rs}`; return (ai = Ee.usedSymbolNames) == null || ai.add(wt), si && Ee.remappedSymbolNames.set(si, wt), wt; } function VE(wt, Sr) { if (Sr === "default" || Sr === "__class" || Sr === "__function") { const gi = Ee.flags; Ee.flags |= 16777216; const ai = zy(wt, Ee); Ee.flags = gi, Sr = ai.length > 0 && rN(ai.charCodeAt(0)) ? M_(ai) : ai; } return Sr === "default" ? Sr = "_default" : Sr === "export=" && (Sr = "_exports"), Sr = w_(Sr, P) && !ZS(Sr) ? Sr : "_" + Sr.replace(/[^a-zA-Z0-9]/g, "_"), Sr; } function Rd(wt, Sr) { const gi = go(wt); return Ee.remappedSymbolNames.has(gi) ? Ee.remappedSymbolNames.get(gi) : (Sr = VE(wt, Sr), Ee.remappedSymbolNames.set(gi, Sr), Sr); } } } function Yc(n, a, l = 16384, u) { return u ? p(u).getText() : TI(p); function p(g) { const x = N.createTypePredicateNode(n.kind === 2 || n.kind === 3 ? N.createToken(129) : void 0, n.kind === 1 || n.kind === 3 ? N.createIdentifier(n.parameterName) : N.createThisTypeNode(), n.type && Ke.typeToTypeNode(n.type, a, oi(l) | 70221824 | 512)), R = U1(), M = a && Zn(a); return R.writeNode(4, x, M, g), g; } } function qd(n) { const a = []; let l = 0; for (let u = 0; u < n.length; u++) { const p = n[u]; if (l |= p.flags, !(p.flags & 98304)) { if (p.flags & 1568) { const g = p.flags & 512 ? we : qw(p); if (g.flags & 1048576) { const x = g.types.length; if (u + x <= n.length && _d(n[u + x - 1]) === _d(g.types[x - 1])) { a.push(g), u += x - 1; continue; } } } a.push(p); } } return l & 65536 && a.push(Sn), l & 32768 && a.push(je), a || n; } function ff(n) { return n === 8 ? "private" : n === 16 ? "protected" : "public"; } function Wy(n) { if (n.symbol && n.symbol.flags & 2048 && n.symbol.declarations) { const a = vN(n.symbol.declarations[0].parent); if (Xp(a)) return Lr(a); } } function Jd(n) { return n && n.parent && n.parent.kind === 265 && _1(n.parent.parent); } function d0(n) { return n.kind === 308 || ku(n); } function f0(n, a) { const l = Ui(n).nameType; if (l) { if (l.flags & 384) { const u = "" + l.value; return !w_(u, $o(Y)) && !vh(u) ? `"${ex(u, 34)}"` : vh(u) && Ea(u, "-") ? `[${u}]` : u; } if (l.flags & 8192) return `[${zy(l.symbol, a)}]`; } } function zy(n, a) { if (a && n.escapedName === "default" && !(a.flags & 16384) && (!(a.flags & 16777216) || !n.declarations || a.enclosingDeclaration && nr(n.declarations[0], d0) !== nr(a.enclosingDeclaration, d0))) return "default"; if (n.declarations && n.declarations.length) { let u = En(n.declarations, (g) => La(g) ? g : void 0); const p = u && La(u); if (u && p) { if (eo(u) && KS(u)) return Nl(n); if (Ss(p) && !(Al(n) & 4096)) { const g = Ui(n).nameType; if (g && g.flags & 384) { const x = f0(n, a); if (x !== void 0) return x; } } return Is(p); } if (u || (u = n.declarations[0]), u.parent && u.parent.kind === 257) return Is(u.parent.name); switch (u.kind) { case 228: case 215: case 216: return a && !a.encounteredError && !(a.flags & 131072) && (a.encounteredError = !0), u.kind === 228 ? "(Anonymous class)" : "(Anonymous function)"; } } const l = f0(n, a); return l !== void 0 ? l : Nl(n); } function E_(n) { if (n) { const l = Wr(n); return l.isVisible === void 0 && (l.isVisible = !!a()), l.isVisible; } return !1; function a() { switch (n.kind) { case 341: case 349: case 343: return !!(n.parent && n.parent.parent && n.parent.parent.parent && ji(n.parent.parent.parent)); case 205: return E_(n.parent.parent); case 257: if (Ja(n.name) && !n.name.elements.length) return !1; case 264: case 260: case 261: case 262: case 259: case 263: case 268: if (_1(n)) return !0; const l = bE(n); return !(cy(n) & 1) && !(n.kind !== 268 && l.kind !== 308 && l.flags & 16777216) ? Jm(l) : E_(l); case 169: case 168: case 174: case 175: case 171: case 170: if (Nd(n, 24)) return !1; case 173: case 177: case 176: case 178: case 166: case 265: case 181: case 182: case 184: case 180: case 185: case 186: case 189: case 190: case 193: case 199: return E_(n.parent); case 270: case 271: case 273: return !1; case 165: case 308: case 267: return !0; case 274: return !1; default: return !1; } } } function vE(n, a) { let l; n.parent && n.parent.kind === 274 ? l = dl(n, n.escapedText, 2998271, void 0, n, !1) : n.parent.kind === 278 && (l = v_(n.parent, 2998271)); let u, p; return l && (p = /* @__PURE__ */ new Set(), p.add(go(l)), g(l.declarations)), u; function g(x) { Ye(x, (R) => { const M = cS(R) || R; if (a ? Wr(R).isVisible = !0 : (u = u || [], a_(u, M)), RA(R)) { const J = R.moduleReference, $ = Ef(J), he = dl(R, $.escapedText, 901119, void 0, void 0, !1); he && p && Yb(p, go(he)) && g(he.declarations); } }); } } function Rf(n, a) { const l = Zm(n, a); if (l >= 0) { const { length: u } = vg; for (let p = l; p < u; p++) X_[p] = !1; return !1; } return vg.push(n), X_.push(!0), Kv.push(a), !0; } function Zm(n, a) { for (let l = vg.length - 1; l >= 0; l--) { if (qy(vg[l], Kv[l])) return -1; if (vg[l] === n && Kv[l] === a) return l; } return -1; } function qy(n, a) { switch (a) { case 0: return !!Ui(n).type; case 5: return !!Wr(n).resolvedEnumType; case 2: return !!Ui(n).declaredType; case 1: return !!n.resolvedBaseConstructorType; case 3: return !!n.resolvedReturnType; case 4: return !!n.immediateBaseConstraint; case 6: return !!n.resolvedTypeArguments; case 7: return !!n.baseTypesResolved; case 8: return !!Ui(n).writeType; case 9: return Wr(n).parameterInitializerContainsUndefined !== void 0; } return D.assertNever(a); } function Qf() { return vg.pop(), Kv.pop(), X_.pop(); } function bE(n) { return nr(Rm(n), (a) => { switch (a.kind) { case 257: case 258: case 273: case 272: case 271: case 270: return !1; default: return !0; } }).parent; } function _0(n) { const a = Bs(fd(n)); return a.typeParameters ? jg(a, rn(a.typeParameters, (l) => Ie)) : a; } function cc(n, a) { const l = so(n, a); return l ? ar(l) : void 0; } function t4(n, a) { var l; return cc(n, a) || ((l = k2(n, a)) == null ? void 0 : l.type) || me; } function Es(n) { return n && (n.flags & 1) !== 0; } function Zo(n) { return n === xe || !!(n.flags & 1 && n.aliasSymbol); } function T2(n, a) { if (a !== 0) return es(n, !1, a); const l = Lr(n); return l && Ui(l).type || es(n, !1, a); } function S2(n, a, l) { if (n = uc(n, (M) => !(M.flags & 98304)), n.flags & 131072) return da; if (n.flags & 1048576) return Xs(n, (M) => S2(M, a, l)); let u = Xr(rn(a, Hg)); const p = [], g = []; for (const M of fs(n)) { const J = hL(M, 8576); !Eo(J, u) && !(qf(M) & 24) && mU(M) ? p.push(M) : g.push(J); } if (Nb(n) || b0(u)) { if (g.length && (u = Xr([u, ...g])), u.flags & 131072) return n; const M = n$e(); return M ? N2(M, [n, u]) : xe; } const x = ao(); for (const M of p) x.set(M.escapedName, Xre(M, !1)); const R = Ds(l, x, nt, nt, Eu(n)); return R.objectFlags |= 4194304, R; } function z(n) { return !!(n.flags & 465829888) && fl(Uu(n) || me, 32768); } function be(n) { const a = Jh(n, z) ? Xs(n, (l) => l.flags & 465829888 ? ev(l) : l) : n; return n_(a, 524288); } function Xe(n, a) { const l = Et(n); return l ? I0(l, a) : a; } function Et(n) { const a = Gt(n); if (a && hN(a) && a.flowNode) { const l = Cn(n); if (l) { const u = mt(jm.createStringLiteral(l), n), p = gd(a) ? a : jm.createParenthesizedExpression(a), g = mt(jm.createElementAccessExpression(p, u), n); return Bo(u, g), Bo(g, n), p !== a && Bo(p, g), g.flowNode = a.flowNode, g; } } } function Gt(n) { const a = n.parent.parent; switch (a.kind) { case 205: case 299: return Et(a); case 206: return Et(n.parent); case 257: return a.initializer; case 223: return a.right; } } function Cn(n) { const a = n.parent; return n.kind === 205 && a.kind === 203 ? Mr(n.propertyName || n.name) : n.kind === 299 || n.kind === 300 ? Mr(n.name) : "" + a.elements.indexOf(n); } function Mr(n) { const a = Hg(n); return a.flags & 384 ? "" + a.value : void 0; } function pi(n) { const a = n.dotDotDotToken ? 64 : 0, l = T2(n.parent.parent, a); return l && bi(n, l); } function bi(n, a) { if (Es(a)) return a; const l = n.parent; H && n.flags & 16777216 && dT(n) ? a = Jg(a) : H && l.parent.initializer && !(xu(wLe(l.parent.initializer)) & 65536) && (a = n_(a, 524288)); let u; if (l.kind === 203) if (n.dotDotDotToken) { if (a = ap(a), a.flags & 2 || !U4(a)) return qe(n, _.Rest_types_may_only_be_created_from_object_types), xe; const p = []; for (const g of l.elements) g.dotDotDotToken || p.push(g.propertyName || g.name); u = S2(a, p, n.symbol); } else { const p = n.propertyName || n.name, g = Hg(p), x = Dd(a, g, 32, p); u = Xe(n, x); } else { const p = cv(65 | (n.dotDotDotToken ? 0 : 128), a, je, l), g = l.elements.indexOf(n); if (n.dotDotDotToken) { const x = ev(a); u = rh(x, Oo) ? Xs(x, (R) => mL(R, g)) : Tu(p); } else if (A0(a)) { const x = Rp(g), R = 32 | (CL(n) ? 16 : 0), M = rv(a, x, R, n.name) || xe; u = Xe(n, M); } else u = p; } return n.initializer ? Jc(pA(n)) ? H && !(xu(CD(n, 0)) & 16777216) ? be(u) : u : Bae(n, Xr([be(u), CD(n, 0)], 2)) : u; } function Ai(n) { const a = vv(n); if (a) return ci(a); } function Pa(n) { const a = Us(n, !0); return a.kind === 104 || a.kind === 79 && x_(a) === Me; } function Cs(n) { const a = Us(n, !0); return a.kind === 206 && a.elements.length === 0; } function Ao(n, a = !1, l = !0) { return H && l ? qg(n, a) : n; } function es(n, a, l) { if (Wi(n) && n.parent.parent.kind === 246) { const x = fm(cae(ma(n.parent.parent.expression, l))); return x.flags & 4456448 ? pCe(x) : ce; } if (Wi(n) && n.parent.parent.kind === 247) { const x = n.parent.parent; return lP(x) || Ie; } if (Ja(n.parent)) return pi(n); const u = Za(n) && !Nm(n) || Tf(n) || Ufe(n), p = a && cq(n), g = wd(n); if (LW(n)) return g ? Es(g) || g === me ? g : xe : $e ? me : Ie; if (g) return Ao(g, u, p); if ((Te || dr(n)) && Wi(n) && !Ja(n.name) && !(cy(n) & 1) && !(n.flags & 16777216)) { if (!(up(n) & 2) && (!n.initializer || Pa(n.initializer))) return gt; if (n.initializer && Cs(n.initializer)) return Nn; } if (Ma(n)) { const x = n.parent; if (x.kind === 175 && L2(x)) { const J = Tl(Lr(n.parent), 174); if (J) { const $ = wp(J), he = goe(x); return he && n === he ? (D.assert(!he.type), ar($.thisParameter)) : hs($); } } const R = kYe(x, n); if (R) return R; const M = n.symbol.escapedName === "this" ? XLe(x) : YLe(n); if (M) return Ao(M, !1, p); } if (eT(n) && n.initializer) { if (dr(n) && !Ma(n)) { const R = oL(n, Lr(n), aN(n)); if (R) return R; } const x = Bae(n, CD(n, l)); return Ao(x, u, p); } if (Za(n) && (Te || dr(n))) if (_c(n)) { const x = yn(n.parent.members, Cl), R = x.length ? T_(n.symbol, x) : wu(n) & 2 ? kU(n.symbol) : void 0; return R && Ao(R, !0, p); } else { const x = c0(n.parent), R = x ? Jy(n.symbol, x) : wu(n) & 2 ? kU(n.symbol) : void 0; return R && Ao(R, !0, p); } if ($p(n)) return Oe; if (Ja(n.name)) return Co(n.name, !1, !0); } function kd(n) { if (n.valueDeclaration && vr(n.valueDeclaration)) { const a = Ui(n); return a.isConstructorDeclaredProperty === void 0 && (a.isConstructorDeclaredProperty = !1, a.isConstructorDeclaredProperty = !!sm(n) && Vn(n.declarations, (l) => vr(l) && XU(l) && (l.left.kind !== 209 || Hf(l.left.argumentExpression)) && !tp(void 0, l, n, l))), a.isConstructorDeclaredProperty; } return !1; } function Ip(n) { const a = n.valueDeclaration; return a && Za(a) && !Jc(a) && !a.initializer && (Te || dr(a)); } function sm(n) { if (n.declarations) for (const a of n.declarations) { const l = yd(a, !1, !1); if (l && (l.kind === 173 || Op(l))) return l; } } function Fg(n) { const a = Zn(n.declarations[0]), l = Zi(n.escapedName), u = n.declarations.every((g) => dr(g) && ol(g) && ph(g.expression)), p = u ? N.createPropertyAccessExpression(N.createPropertyAccessExpression(N.createIdentifier("module"), N.createIdentifier("exports")), l) : N.createPropertyAccessExpression(N.createIdentifier("exports"), l); return u && Bo(p.expression.expression, p.expression), Bo(p.expression, p), Bo(p, a), p.flowNode = a.endFlowNode, I0(p, gt, je); } function T_(n, a) { const l = Ea(n.escapedName, "__#") ? N.createPrivateIdentifier(n.escapedName.split("@")[1]) : Zi(n.escapedName); for (const u of a) { const p = N.createPropertyAccessExpression(N.createThis(), l); Bo(p.expression, p), Bo(p, u), p.flowNode = u.returnFlowNode; const g = x2(p, n); if (Te && (g === gt || g === Nn) && qe(n.valueDeclaration, _.Member_0_implicitly_has_an_1_type, S(n), Le(g)), !rh(g, nV)) return OD(g); } } function Jy(n, a) { const l = Ea(n.escapedName, "__#") ? N.createPrivateIdentifier(n.escapedName.split("@")[1]) : Zi(n.escapedName), u = N.createPropertyAccessExpression(N.createThis(), l); Bo(u.expression, u), Bo(u, a), u.flowNode = a.returnFlowNode; const p = x2(u, n); return Te && (p === gt || p === Nn) && qe(n.valueDeclaration, _.Member_0_implicitly_has_an_1_type, S(n), Le(p)), rh(p, nV) ? void 0 : OD(p); } function x2(n, a) { const l = (a == null ? void 0 : a.valueDeclaration) && (!Ip(a) || wu(a.valueDeclaration) & 2) && kU(a) || je; return I0(n, gt, l); } function EE(n, a) { const l = JS(n.valueDeclaration); if (l) { const R = dr(l) ? s1(l) : void 0; return R && R.typeExpression ? ci(R.typeExpression) : n.valueDeclaration && oL(n.valueDeclaration, n, l) || Bb(Kl(l)); } let u, p = !1, g = !1; if (kd(n) && (u = Jy(n, sm(n))), !u) { let R; if (n.declarations) { let M; for (const J of n.declarations) { const $ = vr(J) || eo(J) ? J : ol(J) ? vr(J.parent) ? J.parent : J : void 0; if (!$) continue; const he = ol($) ? cN($) : xl($); (he === 4 || vr($) && XU($, he)) && (Nf($) ? p = !0 : g = !0), eo($) || (M = tp(M, $, n, J)), M || (R || (R = [])).push(vr($) || eo($) ? p0(n, a, $, he) : ht); } u = M; } if (!u) { if (!Ne(R)) return xe; let M = p && n.declarations ? A2(R, n.declarations) : void 0; if (g) { const $ = kU(n); $ && ((M || (M = [])).push($), p = !0); } const J = kt(M, ($) => !!($.flags & -98305)) ? M : R; u = Xr(J); } } const x = Kd(Ao(u, !1, g && !p)); return n.valueDeclaration && uc(x, (R) => !!(R.flags & -98305)) === ht ? (C0(n.valueDeclaration, Ie), Ie) : x; } function oL(n, a, l) { var u, p; if (!dr(n) || !l || !As(l) || l.properties.length) return; const g = ao(); for (; vr(n) || Pr(n); ) { const M = Wd(n); (u = M == null ? void 0 : M.exports) != null && u.size && Dc(g, M.exports), n = vr(n) ? n.parent : n.parent.parent; } const x = Wd(n); (p = x == null ? void 0 : x.exports) != null && p.size && Dc(g, x.exports); const R = Ds(a, g, nt, nt, nt); return R.objectFlags |= 4096, R; } function tp(n, a, l, u) { var p; const g = Jc(a.parent); if (g) { const x = Kd(ci(g)); if (n) !Zo(n) && !Zo(x) && !Hh(n, x) && $ke(void 0, n, u, x); else return x; } if ((p = l.parent) != null && p.valueDeclaration) { const x = Jc(l.parent.valueDeclaration); if (x) { const R = so(ci(x), l.escapedName); if (R) return h0(R); } } return n; } function p0(n, a, l, u) { if (eo(l)) { if (a) return ar(a); const x = Kl(l.arguments[2]), R = cc(x, "value"); if (R) return R; const M = cc(x, "get"); if (M) { const $ = TS(M); if ($) return hs($); } const J = cc(x, "set"); if (J) { const $ = TS(J); if ($) return kae($); } return Ie; } if (sL(l.left, l.right)) return Ie; const p = u === 1 && (Pr(l.left) || sl(l.left)) && (ph(l.left.expression) || Ve(l.left.expression) && sT(l.left.expression)), g = a ? ar(a) : p ? _d(Kl(l.right)) : Bb(Kl(l.right)); if (g.flags & 524288 && u === 2 && n.escapedName === "export=") { const x = ip(g), R = ao(); WR(x.members, R); const M = R.size; a && !a.exports && (a.exports = ao()), (a || n).exports.forEach(($, he) => { var De; const ke = R.get(he); if (ke && ke !== $ && !($.flags & 2097152)) if ($.flags & 111551 && ke.flags & 111551) { if ($.valueDeclaration && ke.valueDeclaration && Zn($.valueDeclaration) !== Zn(ke.valueDeclaration)) { const Bt = Zi($.escapedName), Mn = ((De = ri(ke.valueDeclaration, du)) == null ? void 0 : De.name) || ke.valueDeclaration; qo(qe($.valueDeclaration, _.Duplicate_identifier_0, Bt), Dr(Mn, _._0_was_also_declared_here, Bt)), qo(qe(Mn, _.Duplicate_identifier_0, Bt), Dr($.valueDeclaration, _._0_was_also_declared_here, Bt)); } const ft = Qo($.flags | ke.flags, he); ft.links.type = Xr([ar($), ar(ke)]), ft.valueDeclaration = ke.valueDeclaration, ft.declarations = ha(ke.declarations, $.declarations), R.set(he, ft); } else R.set(he, Q_($, ke)); else R.set(he, $); }); const J = Ds(M !== R.size ? void 0 : x.symbol, R, x.callSignatures, x.constructSignatures, x.indexInfos); if (M === R.size && (g.aliasSymbol && (J.aliasSymbol = g.aliasSymbol, J.aliasTypeArguments = g.aliasTypeArguments), Qr(g) & 4)) { J.aliasSymbol = g.symbol; const $ = _s(g); J.aliasTypeArguments = Ne($) ? $ : void 0; } return J.objectFlags |= Qr(g) & 4096, J.symbol && J.symbol.flags & 32 && g === Gu(J.symbol) && (J.objectFlags |= 16777216), J; } return DU(g) ? (C0(l, Dt), Dt) : g; } function sL(n, a) { return Pr(n) && n.expression.kind === 108 && FO(a, (l) => Hc(n, l)); } function Nf(n) { const a = yd(n, !1, !1); return a.kind === 173 || a.kind === 259 || a.kind === 215 && !uN(a.parent); } function A2(n, a) { return D.assert(n.length === a.length), n.filter((l, u) => { const p = a[u], g = vr(p) ? p : vr(p.parent) ? p.parent : void 0; return g && Nf(g); }); } function Ky(n, a, l) { if (n.initializer) { const u = Ja(n.name) ? Co(n.name, !0, !1) : me; return Ao(Bae(n, CD(n, 0, u))); } return Ja(n.name) ? Co(n.name, a, l) : (l && !Hw(n) && C0(n, Ie), a ? _e : Ie); } function Vw(n, a, l) { const u = ao(); let p, g = 131200; Ye(n.elements, (R) => { const M = R.propertyName || R.name; if (R.dotDotDotToken) { p = dm(ce, Ie, !1); return; } const J = Hg(M); if (!Vh(J)) { g |= 512; return; } const $ = lm(J), he = 4 | (R.initializer ? 16777216 : 0), De = Qo(he, $); De.links.type = Ky(R, a, l), De.links.bindingElement = R, u.set(De.escapedName, De); }); const x = Ds(void 0, u, nt, nt, p ? [p] : nt); return x.objectFlags |= g, a && (x.pattern = n, x.objectFlags |= 131072), x; } function jw(n, a, l) { const u = n.elements, p = Zs(u), g = p && p.kind === 205 && p.dotDotDotToken ? p : void 0; if (u.length === 0 || u.length === 1 && g) return P >= 2 ? $Ae(Ie) : Dt; const x = rn(u, ($) => Ic($) ? Ie : Ky($, a, l)), R = ts(u, ($) => !($ === g || Ic($) || CL($)), u.length - 1) + 1, M = rn(u, ($, he) => $ === g ? 4 : he >= R ? 2 : 1); let J = Dp(x, M); return a && (J = NAe(J), J.pattern = n, J.objectFlags |= 131072), J; } function Co(n, a = !1, l = !1) { return n.kind === 203 ? Vw(n, a, l) : jw(n, a, l); } function vl(n, a) { return Xy(es(n, !0, 0), n, a); } function m0(n) { const a = Wd(n), l = zYe(!1); return l && a && a === l; } function Xy(n, a, l) { return n ? (n.flags & 4096 && m0(a.parent) && (n = Yre(a)), l && FU(a, n), n.flags & 8192 && (us(a) || !a.type) && n.symbol !== Lr(a) && (n = q), Kd(n)) : (n = Ma(a) && a.dotDotDotToken ? Dt : Ie, l && (Hw(a) || C0(a, n)), n); } function Hw(n) { const a = Rm(n), l = a.kind === 166 ? a.parent : a; return nP(l); } function wd(n) { const a = Jc(n); if (a) return ci(a); } function Ww(n) { let a = n.valueDeclaration; return a ? (us(a) && (a = pA(a)), Ma(a) ? SU(a.parent) : !1) : !1; } function v(n) { const a = Ui(n); if (!a.type) { const l = w(n); return !a.type && !Ww(n) && (a.type = l), l; } return a.type; } function w(n) { if (n.flags & 4194304) return _0(n); if (n === bt) return Ie; if (n.flags & 134217728 && n.valueDeclaration) { const u = Lr(Zn(n.valueDeclaration)), p = Qo(u.flags, "exports"); p.declarations = u.declarations ? u.declarations.slice() : [], p.parent = n, p.links.target = u, u.valueDeclaration && (p.valueDeclaration = u.valueDeclaration), u.members && (p.members = new Map(u.members)), u.exports && (p.exports = new Map(u.exports)); const g = ao(); return g.set("exports", p), Ds(n, g, nt, nt, nt); } D.assertIsDefined(n.valueDeclaration); const a = n.valueDeclaration; if (ji(a) && l_(a)) return a.statements.length ? Kd(Bb(ma(a.statements[0].expression))) : da; if (F0(a)) return Fr(n); if (!Rf(n, 0)) return n.flags & 512 && !(n.flags & 67108864) ? _f(n) : lL(n); let l; if (a.kind === 274) l = Xy(wd(a) || Kl(a.expression), a); else if (vr(a) || dr(a) && (eo(a) || (Pr(a) || e3(a)) && vr(a.parent))) l = EE(n); else if (Pr(a) || sl(a) || Ve(a) || Ts(a) || __(a) || kc(a) || pc(a) || nc(a) && !N_(a) || bh(a) || ji(a)) { if (n.flags & 9136) return _f(n); l = vr(a.parent) ? EE(n) : wd(a) || Ie; } else if (Uc(a)) l = wd(a) || Ske(a); else if ($p(a)) l = wd(a) || cIe(a); else if (Xf(a)) l = wd(a) || NL(a.name, 0); else if (N_(a)) l = wd(a) || xke(a, 0); else if (Ma(a) || Za(a) || Tf(a) || Wi(a) || us(a) || hM(a)) l = vl(a, !0); else if (Y0(a)) l = _f(n); else if (D1(a)) l = Gg(n); else return D.fail("Unhandled declaration kind! " + D.formatSyntaxKind(a.kind) + " for " + D.formatSymbol(n)); return Qf() ? l : n.flags & 512 && !(n.flags & 67108864) ? _f(n) : lL(n); } function F(n) { if (n) switch (n.kind) { case 174: return fp(n); case 175: return Cue(n); case 169: return D.assert(Nm(n)), Jc(n); } } function oe(n) { const a = F(n); return a && ci(a); } function ze(n) { const a = goe(n); return a && a.symbol; } function qt(n) { return wb(wp(n)); } function Fr(n) { const a = Ui(n); if (!a.type) { if (!Rf(n, 0)) return xe; const l = Tl(n, 174), u = Tl(n, 175), p = ri(Tl(n, 169), Qd); let g = l && dr(l) && Ai(l) || oe(l) || oe(u) || oe(p) || l && l.body && pV(l) || p && p.initializer && vl(p, !0); g || (u && !nP(u) ? tm(Te, u, _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation, S(n)) : l && !nP(l) ? tm(Te, l, _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, S(n)) : p && !nP(p) && tm(Te, p, _.Member_0_implicitly_has_an_1_type, S(n), "any"), g = Ie), Qf() || (F(l) ? qe(l, _._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, S(n)) : F(u) || F(p) ? qe(u, _._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, S(n)) : l && Te && qe(l, _._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, S(n)), g = Ie), a.type = g; } return a.type; } function Qi(n) { var a; const l = Ui(n); if (!l.writeType) { if (!Rf(n, 8)) return xe; const u = (a = Tl(n, 175)) != null ? a : ri(Tl(n, 169), Qd); let p = oe(u); Qf() || (F(u) && qe(u, _._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, S(n)), p = Ie), l.writeType = p || Fr(n); } return l.writeType; } function Xa(n) { const a = ti(Gu(n)); return a.flags & 8650752 ? a : a.flags & 2097152 ? un(a.types, (l) => !!(l.flags & 8650752)) : void 0; } function _f(n) { let a = Ui(n); const l = a; if (!a.type) { const u = n.valueDeclaration && dV(n.valueDeclaration, !1); if (u) { const p = Aae(n, u); p && (n = p, a = p.links); } l.type = a.type = Bg(n); } return a.type; } function Bg(n) { const a = n.valueDeclaration; if (n.flags & 1536 && AI(n)) return Ie; if (a && (a.kind === 223 || ol(a) && a.parent.kind === 223)) return EE(n); if (n.flags & 512 && a && ji(a) && a.commonJsModuleIndicator) { const u = dd(n); if (u !== n) { if (!Rf(n, 0)) return xe; const p = ns(n.exports.get("export=")), g = EE(p, p === u ? void 0 : u); return Qf() ? g : lL(n); } } const l = df(16, n); if (n.flags & 32) { const u = Xa(n); return u ? Lo([l, u]) : l; } else return H && n.flags & 16777216 ? qg(l) : l; } function Gg(n) { const a = Ui(n); return a.type || (a.type = nAe(n)); } function Ug(n) { const a = Ui(n); if (!a.type) { const l = Zl(n), u = n.declarations && ep(ud(n), !0), p = En(u == null ? void 0 : u.declarations, (g) => Pl(g) ? wd(g) : void 0); a.type = u != null && u.declarations && kV(u.declarations) && n.declarations.length ? Fg(u) : kV(n.declarations) ? gt : p || (iu(l) & 111551 ? ar(l) : xe); } return a.type; } function Yne(n) { const a = Ui(n); return a.type || (a.type = qi(ar(a.target), a.mapper)); } function $ne(n) { const a = Ui(n); return a.writeType || (a.writeType = qi(cL(a.target), a.mapper)); } function lL(n) { const a = n.valueDeclaration; return Jc(a) ? (qe(n.valueDeclaration, _._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, S(n)), xe) : (Te && (a.kind !== 166 || a.initializer) && qe(n.valueDeclaration, _._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer, S(n)), Ie); } function zw(n) { const a = Ui(n); return a.type || (D.assertIsDefined(a.deferralParent), D.assertIsDefined(a.deferralConstituents), a.type = a.deferralParent.flags & 1048576 ? Xr(a.deferralConstituents) : Lo(a.deferralConstituents)), a.type; } function Qne(n) { const a = Ui(n); return !a.writeType && a.deferralWriteConstituents && (D.assertIsDefined(a.deferralParent), D.assertIsDefined(a.deferralConstituents), a.writeType = a.deferralParent.flags & 1048576 ? Xr(a.deferralWriteConstituents) : Lo(a.deferralWriteConstituents)), a.writeType; } function cL(n) { const a = Al(n); return n.flags & 4 ? a & 2 ? a & 65536 ? Qne(n) || zw(n) : n.links.writeType || n.links.type : ar(n) : n.flags & 98304 ? a & 1 ? $ne(n) : Qi(n) : ar(n); } function ar(n) { const a = Al(n); return a & 65536 ? zw(n) : a & 1 ? Yne(n) : a & 262144 ? dYe(n) : a & 8192 ? SZe(n) : n.flags & 7 ? v(n) : n.flags & 9136 ? _f(n) : n.flags & 8 ? Gg(n) : n.flags & 98304 ? Fr(n) : n.flags & 2097152 ? Ug(n) : xe; } function h0(n) { return wE(ar(n), !!(n.flags & 16777216)); } function g0(n, a) { return n !== void 0 && a !== void 0 && (Qr(n) & 4) !== 0 && n.target === a; } function C2(n) { return Qr(n) & 4 ? n.target : n; } function TE(n, a) { return l(n); function l(u) { if (Qr(u) & 7) { const p = C2(u); return p === a || kt(No(p), l); } else if (u.flags & 2097152) return kt(u.types, l); return !1; } } function n4(n, a) { for (const l of a) n = ny(n, SE(Lr(l))); return n; } function uL(n, a) { for (; ; ) { if (n = n.parent, n && vr(n)) { const l = xl(n); if (l === 6 || l === 3) { const u = Lr(n.left); u && u.parent && !nr(u.parent.valueDeclaration, (p) => n === p) && (n = u.parent.valueDeclaration); } } if (!n) return; switch (n.kind) { case 260: case 228: case 261: case 176: case 177: case 170: case 181: case 182: case 320: case 259: case 171: case 215: case 216: case 262: case 348: case 349: case 343: case 341: case 197: case 191: { const u = uL(n, a); if (n.kind === 197) return Fn(u, SE(Lr(n.typeParameter))); if (n.kind === 191) return ha(u, xCe(n)); const p = n4(u, bv(n)), g = a && (n.kind === 260 || n.kind === 228 || n.kind === 261 || Op(n)) && Gu(Lr(n)).thisType; return g ? Fn(p, g) : p; } case 344: const l = yN(n); l && (n = l.valueDeclaration); break; case 323: { const u = uL(n, a); return n.tags ? n4(u, Mo(n.tags, (p) => mp(p) ? p.typeParameters : void 0)) : u; } } } } function tU(n) { var a; const l = n.flags & 32 || n.flags & 16 ? n.valueDeclaration : (a = n.declarations) == null ? void 0 : a.find((u) => { if (u.kind === 261) return !0; if (u.kind !== 257) return !1; const p = u.initializer; return !!p && (p.kind === 215 || p.kind === 216); }); return D.assert(!!l, "Class was missing valueDeclaration -OR- non-class had no interface declarations"), uL(l); } function Yy(n) { if (!n.declarations) return; let a; for (const l of n.declarations) (l.kind === 261 || l.kind === 260 || l.kind === 228 || Op(l) || mN(l)) && (a = n4(a, bv(l))); return a; } function mS(n) { return ha(tU(n), Yy(n)); } function r4(n) { const a = Ha(n, 1); if (a.length === 1) { const l = a[0]; if (!l.typeParameters && l.parameters.length === 1 && mu(l)) { const u = K4(l.parameters[0]); return Es(u) || pie(u) === Ie; } } return !1; } function y0(n) { if (Ha(n, 1).length > 0) return !0; if (n.flags & 8650752) { const a = Uu(n); return !!a && r4(a); } return !1; } function Dn(n) { const a = cg(n.symbol); return a && Wp(a); } function zr(n, a, l) { const u = Ne(a), p = dr(l); return yn(Ha(n, 1), (g) => (p || u >= um(g.typeParameters)) && u <= Ne(g.typeParameters)); } function Br(n, a, l) { const u = zr(n, a, l), p = rn(a, ci); return Xl(u, (g) => kt(g.typeParameters) ? Zw(g, p, dr(l)) : g); } function ti(n) { if (!n.resolvedBaseConstructorType) { const a = cg(n.symbol), l = a && Wp(a), u = Dn(n); if (!u) return n.resolvedBaseConstructorType = je; if (!Rf(n, 1)) return xe; const p = ma(u.expression); if (l && u !== l && (D.assert(!l.typeArguments), ma(l.expression)), p.flags & 2621440 && ip(p), !Qf()) return qe(n.symbol.valueDeclaration, _._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, S(n.symbol)), n.resolvedBaseConstructorType = xe; if (!(p.flags & 1) && p !== br && !y0(p)) { const g = qe(u.expression, _.Type_0_is_not_a_constructor_function_type, Le(p)); if (p.flags & 262144) { const x = pL(p); let R = me; if (x) { const M = Ha(x, 1); M[0] && (R = hs(M[0])); } p.symbol.declarations && qo(g, Dr(p.symbol.declarations[0], _.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1, S(p.symbol), Le(R))); } return n.resolvedBaseConstructorType = xe; } n.resolvedBaseConstructorType = p; } return n.resolvedBaseConstructorType; } function Vi(n) { let a = nt; if (n.symbol.declarations) for (const l of n.symbol.declarations) { const u = UA(l); if (u) for (const p of u) { const g = ci(p); Zo(g) || (a === nt ? a = [g] : a.push(g)); } } return a; } function bo(n, a) { qe(n, _.Type_0_recursively_references_itself_as_a_base_type, Le(a, void 0, 2)); } function No(n) { if (!n.baseTypesResolved) { if (Rf(n, 7) && (n.objectFlags & 8 ? n.resolvedBaseTypes = [pf(n)] : n.symbol.flags & 96 ? (n.symbol.flags & 32 && np(n), n.symbol.flags & 64 && Uh(n)) : D.fail("type must be class or interface"), !Qf() && n.symbol.declarations)) for (const a of n.symbol.declarations) (a.kind === 260 || a.kind === 261) && bo(a, n); n.baseTypesResolved = !0; } return n.resolvedBaseTypes; } function pf(n) { const a = Xl(n.typeParameters, (l, u) => n.elementFlags[u] & 8 ? Dd(l, pt) : l); return Tu(Xr(a || nt), n.readonly); } function np(n) { n.resolvedBaseTypes = O3; const a = Vu(ti(n)); if (!(a.flags & 2621441)) return n.resolvedBaseTypes = nt; const l = Dn(n); let u; const p = a.symbol ? Bs(a.symbol) : void 0; if (a.symbol && a.symbol.flags & 32 && Gh(p)) u = OAe(l, a.symbol); else if (a.flags & 1) u = a; else { const x = Br(a, l.typeArguments, l); if (!x.length) return qe(l.expression, _.No_base_constructor_has_the_specified_number_of_type_arguments), n.resolvedBaseTypes = nt; u = hs(x[0]); } if (Zo(u)) return n.resolvedBaseTypes = nt; const g = ap(u); if (!eh(g)) { const x = pre(void 0, u), R = Da(x, _.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members, Le(g)); return Xo.add(rg(Zn(l.expression), l.expression, R)), n.resolvedBaseTypes = nt; } return n === g || TE(g, n) ? (qe(n.symbol.valueDeclaration, _.Type_0_recursively_references_itself_as_a_base_type, Le(n, void 0, 2)), n.resolvedBaseTypes = nt) : (n.resolvedBaseTypes === O3 && (n.members = void 0), n.resolvedBaseTypes = [g]); } function Gh(n) { const a = n.outerTypeParameters; if (a) { const l = a.length - 1, u = _s(n); return a[l].symbol !== u[l].symbol; } return !0; } function eh(n) { if (n.flags & 262144) { const a = Uu(n); if (a) return eh(a); } return !!(n.flags & 67633153 && !Pf(n) || n.flags & 2097152 && Vn(n.types, eh)); } function Uh(n) { if (n.resolvedBaseTypes = n.resolvedBaseTypes || nt, n.symbol.declarations) { for (const a of n.symbol.declarations) if (a.kind === 261 && OI(a)) for (const l of OI(a)) { const u = ap(ci(l)); Zo(u) || (eh(u) ? n !== u && !TE(u, n) ? n.resolvedBaseTypes === nt ? n.resolvedBaseTypes = [u] : n.resolvedBaseTypes.push(u) : bo(a, n) : qe(l, _.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members)); } } } function dL(n) { if (!n.declarations) return !0; for (const a of n.declarations) if (a.kind === 261) { if (a.flags & 128) return !1; const l = OI(a); if (l) { for (const u of l) if (Vl(u.expression)) { const p = wl(u.expression, 788968, !0); if (!p || !(p.flags & 64) || Gu(p).thisType) return !1; } } } return !0; } function Gu(n) { let a = Ui(n); const l = a; if (!a.declaredType) { const u = n.flags & 32 ? 1 : 2, p = Aae(n, n.valueDeclaration && Ent(n.valueDeclaration)); p && (n = p, a = p.links); const g = l.declaredType = a.declaredType = df(u, n), x = tU(n), R = Yy(n); (x || R || u === 1 || !dL(n)) && (g.objectFlags |= 4, g.typeParameters = ha(x, R), g.outerTypeParameters = x, g.localTypeParameters = R, g.instantiations = /* @__PURE__ */ new Map(), g.instantiations.set(e_(g.typeParameters), g), g.target = g, g.resolvedTypeArguments = g.typeParameters, g.thisType = Id(n), g.thisType.isThisType = !0, g.thisType.constraint = g); } return a.declaredType; } function Lb(n) { var a; const l = Ui(n); if (!l.declaredType) { if (!Rf(n, 2)) return xe; const u = D.checkDefined((a = n.declarations) == null ? void 0 : a.find(mN), "Type alias symbol with no valid declaration found"), p = c_(u) ? u.typeExpression : u.type; let g = p ? ci(p) : xe; if (Qf()) { const x = Yy(n); x && (l.typeParameters = x, l.instantiations = /* @__PURE__ */ new Map(), l.instantiations.set(e_(x), g)); } else g = xe, u.kind === 343 ? qe(u.typeExpression.type, _.Type_alias_0_circularly_references_itself, S(n)) : qe(du(u) && u.name || u, _.Type_alias_0_circularly_references_itself, S(n)); l.declaredType = g; } return l.declaredType; } function qw(n) { return n.flags & 1056 && n.symbol.flags & 8 ? Bs(fd(n.symbol)) : n; } function eAe(n) { const a = Ui(n); if (!a.declaredType) { const l = []; if (n.declarations) { for (const p of n.declarations) if (p.kind === 263) { for (const g of p.members) if (L2(g)) { const x = Lr(g), R = PV(g), M = F2(R !== void 0 ? iQe(R, go(n), x) : tAe(x)); Ui(x).declaredType = M, l.push(_d(M)); } } } const u = l.length ? Xr(l, 1, n, void 0) : tAe(n); u.flags & 1048576 && (u.flags |= 1024, u.symbol = n), a.declaredType = u; } return a.declaredType; } function tAe(n) { const a = om(32, n), l = om(32, n); return a.regularType = a, a.freshType = l, l.regularType = a, l.freshType = l, a; } function nAe(n) { const a = Ui(n); if (!a.declaredType) { const l = eAe(fd(n)); a.declaredType || (a.declaredType = l); } return a.declaredType; } function SE(n) { const a = Ui(n); return a.declaredType || (a.declaredType = Id(n)); } function HXe(n) { const a = Ui(n); return a.declaredType || (a.declaredType = Bs(Zl(n))); } function Bs(n) { return rAe(n) || xe; } function rAe(n) { if (n.flags & 96) return Gu(n); if (n.flags & 524288) return Lb(n); if (n.flags & 262144) return SE(n); if (n.flags & 384) return eAe(n); if (n.flags & 8) return nAe(n); if (n.flags & 2097152) return HXe(n); } function i4(n) { switch (n.kind) { case 131: case 157: case 152: case 148: case 160: case 134: case 153: case 149: case 114: case 155: case 144: case 198: return !0; case 185: return i4(n.elementType); case 180: return !n.typeArguments || n.typeArguments.every(i4); } return !1; } function WXe(n) { const a = mA(n); return !a || i4(a); } function iAe(n) { const a = Jc(n); return a ? i4(a) : !xv(n); } function zXe(n) { const a = fp(n), l = bv(n); return (n.kind === 173 || !!a && i4(a)) && n.parameters.every(iAe) && l.every(WXe); } function qXe(n) { if (n.declarations && n.declarations.length === 1) { const a = n.declarations[0]; if (a) switch (a.kind) { case 169: case 168: return iAe(a); case 171: case 170: case 173: case 174: case 175: return zXe(a); } } return !1; } function aAe(n, a, l) { const u = ao(); for (const p of n) u.set(p.escapedName, l && qXe(p) ? p : Qre(p, a)); return u; } function oAe(n, a) { for (const l of a) !n.has(l.escapedName) && !sAe(l) && n.set(l.escapedName, l); } function sAe(n) { return !!n.valueDeclaration && zu(n.valueDeclaration) && za(n.valueDeclaration); } function Zne(n) { if (!n.declaredProperties) { const a = n.symbol, l = $y(a); n.declaredProperties = jy(l), n.declaredCallSignatures = nt, n.declaredConstructSignatures = nt, n.declaredIndexInfos = nt, n.declaredCallSignatures = kb(l.get("__call")), n.declaredConstructSignatures = kb(l.get("__new")), n.declaredIndexInfos = wAe(a); } return n; } function Vh(n) { return !!(n.flags & 8576); } function ere(n) { if (!Ss(n) && !sl(n)) return !1; const a = Ss(n) ? n.expression : n.argumentExpression; return Vl(a) && Vh(Ss(n) ? Kg(n) : Kl(a)); } function Jw(n) { return n.charCodeAt(0) === 95 && n.charCodeAt(1) === 95 && n.charCodeAt(2) === 64; } function a4(n) { const a = La(n); return !!a && ere(a); } function L2(n) { return !Lv(n) || a4(n); } function JXe(n) { return s3(n) && !ere(n); } function lm(n) { return n.flags & 8192 ? n.escapedName : n.flags & 384 ? al("" + n.value) : D.fail(); } function KXe(n, a, l) { D.assert(!!(Al(n) & 4096), "Expected a late-bound symbol."), n.flags |= l, Ui(a.symbol).lateSymbol = n, n.declarations ? a.symbol.isReplaceableByMethod || n.declarations.push(a) : n.declarations = [a], l & 111551 && (!n.valueDeclaration || n.valueDeclaration.kind !== a.kind) && (n.valueDeclaration = a); } function lAe(n, a, l, u) { D.assert(!!u.symbol, "The member is expected to have a symbol."); const p = Wr(u); if (!p.resolvedSymbol) { p.resolvedSymbol = u.symbol; const g = vr(u) ? u.left : u.name, x = sl(g) ? Kl(g.argumentExpression) : Kg(g); if (Vh(x)) { const R = lm(x), M = u.symbol.flags; let J = l.get(R); J || l.set(R, J = Qo(0, R, 4096)); const $ = a && a.get(R); if (J.flags & mc(M) || $) { const he = $ ? ha($.declarations, J.declarations) : J.declarations, De = !(x.flags & 8192) && Zi(R) || Is(g); Ye(he, (ke) => qe(La(ke) || ke, _.Property_0_was_also_declared_here, De)), qe(g || u, _.Duplicate_property_0, De), J = Qo(0, R, 4096); } return J.links.nameType = x, KXe(J, u, M), J.parent ? D.assert(J.parent === n, "Existing symbol parent should match new one") : J.parent = n, p.resolvedSymbol = J; } } return p.resolvedSymbol; } function tre(n, a) { const l = Ui(n); if (!l[a]) { const u = a === "resolvedExports", p = u ? n.flags & 1536 ? g2(n).exports : n.exports : n.members; l[a] = p || te; const g = ao(); for (const R of n.declarations || nt) { const M = Uce(R); if (M) for (const J of M) u === _c(J) && a4(J) && lAe(n, p, g, J); } const x = n.assignmentDeclarationMembers; if (x) { const R = ko(x.values()); for (const M of R) { const J = xl(M), $ = J === 3 || vr(M) && XU(M, J) || J === 9 || J === 6; u === !$ && a4(M) && lAe(n, p, g, M); } } l[a] = Ag(p, g) || te; } return l[a]; } function $y(n) { return n.flags & 6256 ? tre(n, "resolvedMembers") : n.members || te; } function nU(n) { if (n.flags & 106500 && n.escapedName === "__computed") { const a = Ui(n); if (!a.lateSymbol && kt(n.declarations, a4)) { const l = ns(n.parent); kt(n.declarations, _c) ? uf(l) : $y(l); } return a.lateSymbol || (a.lateSymbol = n); } return n; } function Of(n, a, l) { if (Qr(n) & 4) { const u = n.target, p = _s(n); if (Ne(u.typeParameters) === Ne(p)) { const g = jg(u, ha(p, [a || u.thisType])); return l ? Vu(g) : g; } } else if (n.flags & 2097152) { const u = Xl(n.types, (p) => Of(p, a, l)); return u !== n.types ? Lo(u) : n; } return l ? Vu(n) : n; } function cAe(n, a, l, u) { let p, g, x, R, M; rj(l, u, 0, l.length) ? (g = a.symbol ? $y(a.symbol) : ao(a.declaredProperties), x = a.declaredCallSignatures, R = a.declaredConstructSignatures, M = a.declaredIndexInfos) : (p = pd(l, u), g = aAe(a.declaredProperties, p, l.length === 1), x = vU(a.declaredCallSignatures, p), R = vU(a.declaredConstructSignatures, p), M = wCe(a.declaredIndexInfos, p)); const J = No(a); if (J.length) { a.symbol && g === $y(a.symbol) && (g = ao(a.declaredProperties)), Df(n, g, x, R, M); const $ = Zs(u); for (const he of J) { const De = $ ? Of(qi(he, p), $) : he; oAe(g, fs(De)), x = ha(x, Ha(De, 0)), R = ha(R, Ha(De, 1)); const ke = De !== Ie ? Eu(De) : [dm(ce, Ie, !1)]; M = ha(M, yn(ke, (ft) => !mre(M, ft.keyType))); } } Df(n, g, x, R, M); } function XXe(n) { cAe(n, Zne(n), nt, nt); } function YXe(n) { const a = Zne(n.target), l = ha(a.typeParameters, [a.thisType]), u = _s(n), p = u.length === l.length ? u : ha(u, [n]); cAe(n, a, l, p); } function th(n, a, l, u, p, g, x, R) { const M = new m(it, R); return M.declaration = n, M.typeParameters = a, M.parameters = u, M.thisParameter = l, M.resolvedReturnType = p, M.resolvedTypePredicate = g, M.minArgumentCount = x, M.resolvedMinArgumentCount = void 0, M.target = void 0, M.mapper = void 0, M.compositeSignatures = void 0, M.compositeKind = void 0, M; } function Kw(n) { const a = th(n.declaration, n.typeParameters, n.thisParameter, n.parameters, void 0, void 0, n.minArgumentCount, n.flags & 39); return a.target = n.target, a.mapper = n.mapper, a.compositeSignatures = n.compositeSignatures, a.compositeKind = n.compositeKind, a; } function uAe(n, a) { const l = Kw(n); return l.compositeSignatures = a, l.compositeKind = 1048576, l.target = void 0, l.mapper = void 0, l; } function $Xe(n, a) { if ((n.flags & 24) === a) return n; n.optionalCallSignatureCache || (n.optionalCallSignatureCache = {}); const l = a === 8 ? "inner" : "outer"; return n.optionalCallSignatureCache[l] || (n.optionalCallSignatureCache[l] = QXe(n, a)); } function QXe(n, a) { D.assert(a === 8 || a === 16, "An optional call signature can either be for an inner call chain or an outer call chain, but not both."); const l = Kw(n); return l.flags |= a, l; } function dAe(n, a) { if (mu(n)) { const u = n.parameters.length - 1, p = ar(n.parameters[u]); if (Oo(p)) return [l(p, u)]; if (!a && p.flags & 1048576 && Vn(p.types, Oo)) return rn(p.types, (g) => l(g, u)); } return [n.parameters]; function l(u, p) { const g = _s(u), x = u.target.labeledElementDeclarations, R = rn(g, (M, J) => { const he = !!x && _V(x[J]) || DL(n, p + J, u), De = u.target.elementFlags[J], ke = De & 12 ? 32768 : De & 2 ? 16384 : 0, ft = Qo(1, he, ke); return ft.links.type = De & 4 ? Tu(M) : M, ft; }); return ha(n.parameters.slice(0, p), R); } } function ZXe(n) { const a = ti(n), l = Ha(a, 1), u = cg(n.symbol), p = !!u && Jr(u, 256); if (l.length === 0) return [th(void 0, n.localTypeParameters, void 0, nt, n, void 0, 0, p ? 4 : 0)]; const g = Dn(n), x = dr(g), R = _4(g), M = Ne(R), J = []; for (const $ of l) { const he = um($.typeParameters), De = Ne($.typeParameters); if (x || M >= he && M <= De) { const ke = De ? rU($, tv(R, $.typeParameters, he, x)) : Kw($); ke.typeParameters = n.localTypeParameters, ke.resolvedReturnType = n, ke.flags = p ? ke.flags | 4 : ke.flags & -5, J.push(ke); } } return J; } function nre(n, a, l, u, p) { for (const g of n) if (L4(g, a, l, u, p, l ? xQe : oD)) return g; } function eYe(n, a, l) { if (a.typeParameters) { if (l > 0) return; for (let p = 1; p < n.length; p++) if (!nre(n[p], a, !1, !1, !1)) return; return [a]; } let u; for (let p = 0; p < n.length; p++) { const g = p === l ? a : nre(n[p], a, !0, !1, !0); if (!g) return; u = ny(u, g); } return u; } function rre(n) { let a, l; for (let u = 0; u < n.length; u++) { if (n[u].length === 0) return nt; n[u].length > 1 && (l = l === void 0 ? u : -1); for (const p of n[u]) if (!a || !nre(a, p, !1, !1, !0)) { const g = eYe(n, p, u); if (g) { let x = p; if (g.length > 1) { let R = p.thisParameter; const M = Ye(g, (J) => J.thisParameter); if (M) { const J = Lo(_a(g, ($) => $.thisParameter && ar($.thisParameter))); R = DE(M, J); } x = uAe(p, g), x.thisParameter = R; } (a || (a = [])).push(x); } } } if (!Ne(a) && l !== -1) { const u = n[l !== void 0 ? l : 0]; let p = u.slice(); for (const g of n) if (g !== u) { const x = g[0]; if (D.assert(!!x, "getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"), p = x.typeParameters && kt(p, (R) => !!R.typeParameters && !fAe(x.typeParameters, R.typeParameters)) ? void 0 : rn(p, (R) => rYe(R, x)), !p) break; } a = p; } return a || nt; } function fAe(n, a) { if (Ne(n) !== Ne(a)) return !1; if (!n || !a) return !0; const l = pd(a, n); for (let u = 0; u < n.length; u++) { const p = n[u], g = a[u]; if (p !== g && !Hh(pL(p) || me, qi(pL(g) || me, l))) return !1; } return !0; } function tYe(n, a, l) { if (!n || !a) return n || a; const u = Lo([ar(n), qi(ar(a), l)]); return DE(n, u); } function nYe(n, a, l) { const u = Xd(n), p = Xd(a), g = u >= p ? n : a, x = g === n ? a : n, R = g === n ? u : p, M = hm(n) || hm(a), J = M && !hm(g), $ = new Array(R + (J ? 1 : 0)); for (let he = 0; he < R; he++) { let De = BE(g, he); g === a && (De = qi(De, l)); let ke = BE(x, he) || me; x === a && (ke = qi(ke, l)); const ft = Lo([De, ke]), Bt = M && !J && he === R - 1, Mn = he >= mm(g) && he >= mm(x), An = he >= u ? void 0 : DL(n, he), Xn = he >= p ? void 0 : DL(a, he), mn = An === Xn ? An : An ? Xn ? void 0 : An : Xn, xn = Qo(1 | (Mn && !Bt ? 16777216 : 0), mn || `arg${he}`); xn.links.type = Bt ? Tu(ft) : ft, $[he] = xn; } if (J) { const he = Qo(1, "args"); he.links.type = Tu(sp(x, R)), x === a && (he.links.type = qi(he.links.type, l)), $[R] = he; } return $; } function rYe(n, a) { const l = n.typeParameters || a.typeParameters; let u; n.typeParameters && a.typeParameters && (u = pd(a.typeParameters, n.typeParameters)); const p = n.declaration, g = nYe(n, a, u), x = tYe(n.thisParameter, a.thisParameter, u), R = Math.max(n.minArgumentCount, a.minArgumentCount), M = th(p, l, x, g, void 0, void 0, R, (n.flags | a.flags) & 39); return M.compositeKind = 1048576, M.compositeSignatures = ha(n.compositeKind !== 2097152 && n.compositeSignatures || [n], [a]), u && (M.mapper = n.compositeKind !== 2097152 && n.mapper && n.compositeSignatures ? x0(n.mapper, u) : u), M; } function _Ae(n) { const a = Eu(n[0]); if (a) { const l = []; for (const u of a) { const p = u.keyType; Vn(n, (g) => !!nh(g, p)) && l.push(dm(p, Xr(rn(n, (g) => Vg(g, p))), kt(n, (g) => nh(g, p).isReadonly))); } return l; } return nt; } function iYe(n) { const a = rre(rn(n.types, (p) => p === cl ? [Zt] : Ha(p, 0))), l = rre(rn(n.types, (p) => Ha(p, 1))), u = _Ae(n.types); Df(n, te, a, l, u); } function o4(n, a) { return n ? a ? Lo([n, a]) : n : a; } function pAe(n) { const a = xa(n, (u) => Ha(u, 1).length > 0), l = rn(n, r4); if (a > 0 && a === xa(l, (u) => u)) { const u = l.indexOf(!0); l[u] = !1; } return l; } function aYe(n, a, l, u) { const p = []; for (let g = 0; g < a.length; g++) g === u ? p.push(n) : l[g] && p.push(hs(Ha(a[g], 1)[0])); return Lo(p); } function oYe(n) { let a, l, u; const p = n.types, g = pAe(p), x = xa(g, (R) => R); for (let R = 0; R < p.length; R++) { const M = n.types[R]; if (!g[R]) { let J = Ha(M, 1); J.length && x > 0 && (J = rn(J, ($) => { const he = Kw($); return he.resolvedReturnType = aYe(hs($), p, g, R), he; })), l = mAe(l, J); } a = mAe(a, Ha(M, 0)), u = Cu(Eu(M), (J, $) => hAe(J, $, !1), u); } Df(n, te, a || nt, l || nt, u || nt); } function mAe(n, a) { for (const l of a) (!n || Vn(n, (u) => !L4(u, l, !1, !1, !1, oD))) && (n = Fn(n, l)); return n; } function hAe(n, a, l) { if (n) for (let u = 0; u < n.length; u++) { const p = n[u]; if (p.keyType === a.keyType) return n[u] = dm(p.keyType, l ? Xr([p.type, a.type]) : Lo([p.type, a.type]), l ? p.isReadonly || a.isReadonly : p.isReadonly && a.isReadonly), n; } return Fn(n, a); } function sYe(n) { if (n.target) { Df(n, te, nt, nt, nt); const x = aAe(Zy(n.target), n.mapper, !1), R = vU(Ha(n.target, 0), n.mapper), M = vU(Ha(n.target, 1), n.mapper), J = wCe(Eu(n.target), n.mapper); Df(n, x, R, M, J); return; } const a = ns(n.symbol); if (a.flags & 2048) { Df(n, te, nt, nt, nt); const x = $y(a), R = kb(x.get("__call")), M = kb(x.get("__new")), J = wAe(a); Df(n, x, R, M, J); return; } let l = te, u; if (a.exports && (l = uf(a), a === ot)) { const x = /* @__PURE__ */ new Map(); l.forEach((R) => { var M; !(R.flags & 418) && !(R.flags & 512 && ((M = R.declarations) != null && M.length) && Vn(R.declarations, ku)) && x.set(R.escapedName, R); }), l = x; } let p; if (Df(n, l, nt, nt, nt), a.flags & 32) { const x = Gu(a), R = ti(x); R.flags & 11272192 ? (l = ao(v2(l)), oAe(l, fs(R))) : R === Ie && (p = dm(ce, Ie, !1)); } const g = xre(l); if (g ? u = Are(g) : (p && (u = Fn(u, p)), a.flags & 384 && (Bs(a).flags & 32 || kt(n.properties, (x) => !!(ar(x).flags & 296))) && (u = Fn(u, Bu))), Df(n, l, nt, nt, u || nt), a.flags & 8208 && (n.callSignatures = kb(a)), a.flags & 32) { const x = Gu(a); let R = a.members ? kb(a.members.get("__constructor")) : nt; a.flags & 16 && (R = yi(R.slice(), _a(n.callSignatures, (M) => Op(M.declaration) ? th(M.declaration, M.typeParameters, M.thisParameter, M.parameters, x, void 0, M.minArgumentCount, M.flags & 39) : void 0))), R.length || (R = ZXe(x)), n.constructSignatures = R; } } function lYe(n, a, l) { return qi(n, pd([a.indexType, a.objectType], [Rp(0), Dp([l])])); } function cYe(n) { const a = nh(n.source, ce), l = cm(n.mappedType), u = !(l & 1), p = l & 4 ? 0 : 16777216, g = a ? [dm(ce, GU(a.type, n.mappedType, n.constraintType), u && a.isReadonly)] : nt, x = ao(); for (const R of fs(n.source)) { const M = 8192 | (u && lp(R) ? 8 : 0), J = Qo(4 | R.flags & p, R.escapedName, M); if (J.declarations = R.declarations, J.links.nameType = Ui(R).nameType, J.links.propertyType = ar(R), n.constraintType.type.flags & 8388608 && n.constraintType.type.objectType.flags & 262144 && n.constraintType.type.indexType.flags & 262144) { const $ = n.constraintType.type.objectType, he = lYe(n.mappedType, n.constraintType.type, $); J.links.mappedType = he, J.links.constraintType = fm($); } else J.links.mappedType = n.mappedType, J.links.constraintType = n.constraintType; x.set(R.escapedName, J); } Df(n, x, nt, nt, g); } function s4(n) { if (n.flags & 4194304) { const a = Vu(n.type); return G2(a) ? nCe(a) : fm(a); } if (n.flags & 16777216) { if (n.root.isDistributive) { const a = n.checkType, l = s4(a); if (l !== a) return nie(n, yS(n.root.checkType, l, n.mapper)); } return n; } if (n.flags & 1048576) return Xs(n, s4, !0); if (n.flags & 2097152) { const a = n.types; return a.length === 2 && a[0].flags & 76 && a[1] === Ml ? n : Lo(Xl(n.types, s4)); } return n; } function ire(n) { return Al(n) & 4096; } function are(n, a, l, u) { for (const p of fs(n)) u(hL(p, a)); if (n.flags & 1) u(ce); else for (const p of Eu(n)) (!l || p.keyType.flags & 134217732) && u(p.keyType); } function uYe(n) { const a = ao(); let l; Df(n, te, nt, nt, nt); const u = rp(n), p = kp(n), g = Qy(n.target || n), x = g && Eo(g, u), R = jh(n.target || n), M = Vu(fL(n)), J = cm(n), $ = Ge ? 128 : 8576; Xw(n) ? are(M, $, Ge, he) : PE(s4(p), he), Df(n, a, nt, nt, l || nt); function he(ke) { const ft = g ? qi(g, aD(n.mapper, u, ke)) : ke; PE(ft, (Bt) => De(ke, Bt)); } function De(ke, ft) { if (Vh(ft)) { const Bt = lm(ft), Mn = a.get(Bt); if (Mn) Mn.links.nameType = Xr([Mn.links.nameType, ft]), Mn.links.keyType = Xr([Mn.links.keyType, ke]); else { const An = Vh(ke) ? so(M, lm(ke)) : void 0, Xn = !!(J & 4 || !(J & 8) && An && An.flags & 16777216), mn = !!(J & 1 || !(J & 2) && An && lp(An)), xn = H && !Xn && An && An.flags & 16777216, gr = An ? ire(An) : 0, an = Qo(4 | (Xn ? 16777216 : 0), Bt, gr | 262144 | (mn ? 8 : 0) | (xn ? 524288 : 0)); an.links.mappedType = n, an.links.nameType = ft, an.links.keyType = ke, An && (an.links.syntheticOrigin = An, an.declarations = !g || x ? An.declarations : void 0), a.set(Bt, an); } } else if (iU(ft) || ft.flags & 33) { const Bt = ft.flags & 5 ? ce : ft.flags & 40 ? pt : ft, Mn = qi(R, aD(n.mapper, u, ke)), An = dm(Bt, Mn, !!(J & 1)); l = hAe(l, An, !0); } } } function dYe(n) { if (!n.links.type) { const a = n.links.mappedType; if (!Rf(n, 0)) return a.containsError = !0, xe; const l = jh(a.target || a), u = aD(a.mapper, rp(a), n.links.keyType), p = qi(l, u); let g = H && n.flags & 16777216 && !fl(p, 49152) ? qg(p, !0) : n.links.checkFlags & 524288 ? bie(p) : p; Qf() || (qe(B, _.Type_of_property_0_circularly_references_itself_in_mapped_type_1, S(n), Le(a)), g = xe), n.links.type = g; } return n.links.type; } function rp(n) { return n.typeParameter || (n.typeParameter = SE(Lr(n.declaration.typeParameter))); } function kp(n) { return n.constraintType || (n.constraintType = bu(rp(n)) || xe); } function Qy(n) { return n.declaration.nameType ? n.nameType || (n.nameType = qi(ci(n.declaration.nameType), n.mapper)) : void 0; } function jh(n) { return n.templateType || (n.templateType = n.declaration.type ? qi(Ao(ci(n.declaration.type), !0, !!(cm(n) & 4)), n.mapper) : xe); } function gAe(n) { return mA(n.declaration.typeParameter); } function Xw(n) { const a = gAe(n); return a.kind === 195 && a.operator === 141; } function fL(n) { if (!n.modifiersType) if (Xw(n)) n.modifiersType = qi(ci(gAe(n).type), n.mapper); else { const a = zre(n.declaration), l = kp(a), u = l && l.flags & 262144 ? bu(l) : l; n.modifiersType = u && u.flags & 4194304 ? qi(u.type, n.mapper) : me; } return n.modifiersType; } function cm(n) { const a = n.declaration; return (a.readonlyToken ? a.readonlyToken.kind === 40 ? 2 : 1 : 0) | (a.questionToken ? a.questionToken.kind === 40 ? 8 : 4 : 0); } function yAe(n) { const a = cm(n); return a & 8 ? -1 : a & 4 ? 1 : 0; } function ore(n) { const a = yAe(n), l = fL(n); return a || (Pf(l) ? yAe(l) : 0); } function fYe(n) { return !!(Qr(n) & 32 && cm(n) & 4); } function Pf(n) { if (Qr(n) & 32) { const a = kp(n); if (b0(a)) return !0; const l = Qy(n); if (l && b0(qi(l, Mb(rp(n), a)))) return !0; } return !1; } function ip(n) { return n.members || (n.flags & 524288 ? n.objectFlags & 4 ? YXe(n) : n.objectFlags & 3 ? XXe(n) : n.objectFlags & 1024 ? cYe(n) : n.objectFlags & 16 ? sYe(n) : n.objectFlags & 32 ? uYe(n) : D.fail("Unhandled object type " + D.formatObjectFlags(n.objectFlags)) : n.flags & 1048576 ? iYe(n) : n.flags & 2097152 ? oYe(n) : D.fail("Unhandled type " + D.formatTypeFlags(n.flags))), n; } function Zy(n) { return n.flags & 524288 ? ip(n).properties : nt; } function Ib(n, a) { if (n.flags & 524288) { const u = ip(n).members.get(a); if (u && Ng(u)) return u; } } function l4(n) { if (!n.resolvedProperties) { const a = ao(); for (const l of n.types) { for (const u of fs(l)) if (!a.has(u.escapedName)) { const p = _re(n, u.escapedName); p && a.set(u.escapedName, p); } if (n.flags & 1048576 && Eu(l).length === 0) break; } n.resolvedProperties = jy(a); } return n.resolvedProperties; } function fs(n) { return n = _L(n), n.flags & 3145728 ? l4(n) : Zy(n); } function _Ye(n, a) { n = _L(n), n.flags & 3670016 && ip(n).members.forEach((l, u) => { Og(l, u) && a(l, u); }); } function pYe(n, a) { return a.properties.some((u) => { const p = u.name && Hg(u.name), g = p && Vh(p) ? lm(p) : void 0, x = g === void 0 ? void 0 : cc(n, g); return !!x && cD(x) && !Eo(SS(u), x); }); } function mYe(n) { const a = Xr(n); if (!(a.flags & 1048576)) return coe(a); const l = ao(); for (const u of n) for (const { escapedName: p } of coe(u)) if (!l.has(p)) { const g = TAe(a, p); g && l.set(p, g); } return ko(l.values()); } function xE(n) { return n.flags & 262144 ? bu(n) : n.flags & 8388608 ? hYe(n) : n.flags & 16777216 ? yYe(n) : Uu(n); } function bu(n) { return Yw(n) ? pL(n) : void 0; } function c4(n) { var a; return !!(n.flags & 262144 && kt((a = n.symbol) == null ? void 0 : a.declarations, (l) => Jr(l, 2048)) || G2(n) && $i(_s(n), (l, u) => !!(n.target.elementFlags[u] & 8) && c4(l)) >= 0 || n.flags & 8388608 && c4(n.objectType)); } function hYe(n) { return Yw(n) ? gYe(n) : void 0; } function sre(n) { const a = Wg(n, !1); return a !== n ? a : xE(n); } function gYe(n) { if (dre(n)) return _U(n.objectType, n.indexType); const a = sre(n.indexType); if (a && a !== n.indexType) { const u = rv(n.objectType, a, n.accessFlags); if (u) return u; } const l = sre(n.objectType); if (l && l !== n.objectType) return rv(l, n.indexType, n.accessFlags); } function lre(n) { if (!n.resolvedDefaultConstraint) { const a = Q$e(n), l = T0(n); n.resolvedDefaultConstraint = Es(a) ? l : Es(l) ? a : Xr([a, l]); } return n.resolvedDefaultConstraint; } function vAe(n) { if (n.root.isDistributive && n.restrictiveInstantiation !== n) { const a = Wg(n.checkType, !1), l = a === n.checkType ? xE(a) : a; if (l && l !== n.checkType) { const u = nie(n, yS(n.root.checkType, l, n.mapper)); if (!(u.flags & 131072)) return u; } } } function bAe(n) { return vAe(n) || lre(n); } function yYe(n) { return Yw(n) ? bAe(n) : void 0; } function vYe(n, a) { let l, u = !1; for (const p of n) if (p.flags & 465829888) { let g = xE(p); for (; g && g.flags & 21233664; ) g = xE(g); g && (l = Fn(l, g), a && (l = Fn(l, p))); } else (p.flags & 469892092 || zh(p)) && (u = !0); if (l && (a || u)) { if (u) for (const p of n) (p.flags & 469892092 || zh(p)) && (l = Fn(l, p)); return S4(Lo(l), !1); } } function Uu(n) { if (n.flags & 464781312) { const a = cre(n); return a !== Jo && a !== Bl ? a : void 0; } return n.flags & 4194304 ? Bi : void 0; } function ev(n) { return Uu(n) || n; } function Yw(n) { return cre(n) !== Bl; } function cre(n) { if (n.resolvedBaseConstraint) return n.resolvedBaseConstraint; const a = []; return n.resolvedBaseConstraint = Of(l(n), n); function l(g) { if (!g.immediateBaseConstraint) { if (!Rf(g, 4)) return Bl; let x; const R = vL(g); if ((a.length < 10 || a.length < 50 && !Ii(a, R)) && (a.push(R), x = p(Wg(g, !1)), a.pop()), !Qf()) { if (g.flags & 262144) { const M = Cre(g); if (M) { const J = qe(M, _.Type_parameter_0_has_a_circular_constraint, Le(g)); B && !uT(M, B) && !uT(B, M) && qo(J, Dr(B, _.Circularity_originates_in_type_at_this_location)); } } x = Bl; } g.immediateBaseConstraint = x || Jo; } return g.immediateBaseConstraint; } function u(g) { const x = l(g); return x !== Jo && x !== Bl ? x : void 0; } function p(g) { if (g.flags & 262144) { const x = pL(g); return g.isThisType || !x ? x : u(x); } if (g.flags & 3145728) { const x = g.types, R = []; let M = !1; for (const J of x) { const $ = u(J); $ ? ($ !== J && (M = !0), R.push($)) : M = !0; } return M ? g.flags & 1048576 && R.length === x.length ? Xr(R) : g.flags & 2097152 && R.length ? Lo(R) : void 0 : g; } if (g.flags & 4194304) return Bi; if (g.flags & 134217728) { const x = g.types, R = _a(x, u); return R.length === x.length ? LE(g.texts, R) : ce; } if (g.flags & 268435456) { const x = u(g.type); return x && x !== g.type ? hS(g.symbol, x) : ce; } if (g.flags & 8388608) { if (dre(g)) return u(_U(g.objectType, g.indexType)); const x = u(g.objectType), R = u(g.indexType), M = x && R && rv(x, R, g.accessFlags); return M && u(M); } if (g.flags & 16777216) { const x = bAe(g); return x && u(x); } return g.flags & 33554432 ? u(kre(g)) : g; } } function bYe(n) { return n.resolvedApparentType || (n.resolvedApparentType = Of(n, n, !0)); } function ure(n) { if (n.default) n.default === Xc && (n.default = Bl); else if (n.target) { const a = ure(n.target); n.default = a ? qi(a, n.mapper) : Jo; } else { n.default = Xc; const a = n.symbol && Ye(n.symbol.declarations, (u) => Ol(u) && u.default), l = a ? ci(a) : Jo; n.default === Xc && (n.default = l); } return n.default; } function AE(n) { const a = ure(n); return a !== Jo && a !== Bl ? a : void 0; } function EYe(n) { return ure(n) !== Bl; } function EAe(n) { return !!(n.symbol && Ye(n.symbol.declarations, (a) => Ol(a) && a.default)); } function TYe(n) { return n.resolvedApparentType || (n.resolvedApparentType = SYe(n)); } function SYe(n) { const a = Zre(n); if (a && !n.declaration.nameType) { const l = bu(a); if (l && kE(l)) return qi(n, yS(a, l, n.mapper)); } return n; } function dre(n) { let a; return !!(n.flags & 8388608 && Qr(a = n.objectType) & 32 && !Pf(a) && b0(n.indexType) && !(cm(a) & 8) && !a.declaration.nameType); } function Vu(n) { const a = n.flags & 465829888 ? Uu(n) || me : n; return Qr(a) & 32 ? TYe(a) : a.flags & 2097152 ? bYe(a) : a.flags & 402653316 ? ul : a.flags & 296 ? Vd : a.flags & 2112 ? r$e() : a.flags & 528 ? Ul : a.flags & 12288 ? JAe() : a.flags & 67108864 ? da : a.flags & 4194304 ? Bi : a.flags & 2 && !H ? da : a; } function _L(n) { return ap(Vu(ap(n))); } function TAe(n, a, l) { var u, p, g; let x, R, M; const J = n.flags & 1048576; let $, he = 4, De = J ? 0 : 8, ke = !1; for (const Gn of n.types) { const Jn = Vu(Gn); if (!(Zo(Jn) || Jn.flags & 131072)) { const Yr = so(Jn, a, l), ei = Yr ? qf(Yr) : 0; if (Yr) { if (Yr.flags & 106500 && ($ ?? ($ = J ? 0 : 16777216), J ? $ |= Yr.flags & 16777216 : $ &= Yr.flags), !x) x = Yr; else if (Yr !== x) if ((J2(Yr) || Yr) === (J2(x) || x) && _ie(x, Yr, (Ya, gc) => Ya === gc ? -1 : 0) === -1) ke = !!x.parent && !!Ne(Yy(x.parent)); else { R || (R = /* @__PURE__ */ new Map(), R.set(go(x), x)); const Ya = go(Yr); R.has(Ya) || R.set(Ya, Yr); } J && lp(Yr) ? De |= 8 : !J && !lp(Yr) && (De &= -9), De |= (ei & 24 ? 0 : 256) | (ei & 16 ? 512 : 0) | (ei & 8 ? 1024 : 0) | (ei & 32 ? 2048 : 0), sae(Yr) || (he = 2); } else if (J) { const fa = !Jw(a) && k2(Jn, a); fa ? (De |= 32 | (fa.isReadonly ? 8 : 0), M = Fn(M, Oo(Jn) ? I4(Jn) || je : fa.type)) : L0(Jn) && !(Qr(Jn) & 2097152) ? (De |= 32, M = Fn(M, je)) : De |= 16; } } } if (!x || J && (R || De & 48) && De & 1536 && !(R && xYe(R.values()))) return; if (!R && !(De & 16) && !M) if (ke) { const Gn = (u = ri(x, km)) == null ? void 0 : u.links, Jn = DE(x, Gn == null ? void 0 : Gn.type); return Jn.parent = (g = (p = x.valueDeclaration) == null ? void 0 : p.symbol) == null ? void 0 : g.parent, Jn.links.containingType = n, Jn.links.mapper = Gn == null ? void 0 : Gn.mapper, Jn; } else return x; const ft = R ? ko(R.values()) : [x]; let Bt, Mn, An; const Xn = []; let mn, xn, gr = !1; for (const Gn of ft) { xn ? Gn.valueDeclaration && Gn.valueDeclaration !== xn && (gr = !0) : xn = Gn.valueDeclaration, Bt = yi(Bt, Gn.declarations); const Jn = ar(Gn); Mn || (Mn = Jn, An = Ui(Gn).nameType); const Yr = cL(Gn); mn || Yr !== Jn ? mn = Fn(mn || Xn.slice(), Yr) : Jn !== Mn && (De |= 64), (cD(Jn) || P2(Jn) || Jn === qr) && (De |= 128), Jn.flags & 131072 && Jn !== qr && (De |= 131072), Xn.push(Jn); } yi(Xn, M); const an = Qo(4 | ($ ?? 0), a, he | De); return an.links.containingType = n, !gr && xn && (an.valueDeclaration = xn, xn.symbol.parent && (an.parent = xn.symbol.parent)), an.declarations = Bt, an.links.nameType = An, Xn.length > 2 ? (an.links.checkFlags |= 65536, an.links.deferralParent = n, an.links.deferralConstituents = Xn, an.links.deferralWriteConstituents = mn) : (an.links.type = J ? Xr(Xn) : Lo(Xn), mn && (an.links.writeType = J ? Xr(mn) : Lo(mn))), an; } function fre(n, a, l) { var u, p; let g = (u = n.propertyCacheWithoutObjectFunctionPropertyAugment) != null && u.get(a) || !l ? (p = n.propertyCache) == null ? void 0 : p.get(a) : void 0; return g || (g = TAe(n, a, l), g && (l ? n.propertyCacheWithoutObjectFunctionPropertyAugment || (n.propertyCacheWithoutObjectFunctionPropertyAugment = ao()) : n.propertyCache || (n.propertyCache = ao())).set(a, g)), g; } function xYe(n) { let a; for (const l of n) { if (!l.declarations) return; if (!a) { a = new Set(l.declarations); continue; } if (a.forEach((u) => { Ii(l.declarations, u) || a.delete(u); }), a.size === 0) return; } return a; } function _re(n, a, l) { const u = fre(n, a, l); return u && !(Al(u) & 16) ? u : void 0; } function ap(n) { return n.flags & 1048576 && n.objectFlags & 16777216 ? n.resolvedReducedType || (n.resolvedReducedType = AYe(n)) : n.flags & 2097152 ? (n.objectFlags & 16777216 || (n.objectFlags |= 16777216 | (kt(l4(n), CYe) ? 33554432 : 0)), n.objectFlags & 33554432 ? ht : n) : n; } function AYe(n) { const a = Xl(n.types, ap); if (a === n.types) return n; const l = Xr(a); return l.flags & 1048576 && (l.resolvedReducedType = l), l; } function CYe(n) { return SAe(n) || xAe(n); } function SAe(n) { return !(n.flags & 16777216) && (Al(n) & 131264) === 192 && !!(ar(n).flags & 131072); } function xAe(n) { return !n.valueDeclaration && !!(Al(n) & 1024); } function pre(n, a) { if (a.flags & 2097152 && Qr(a) & 33554432) { const l = un(l4(a), SAe); if (l) return Da(n, _.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents, Le(a, void 0, 536870912), S(l)); const u = un(l4(a), xAe); if (u) return Da(n, _.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some, Le(a, void 0, 536870912), S(u)); } return n; } function so(n, a, l, u) { if (n = _L(n), n.flags & 524288) { const p = ip(n), g = p.members.get(a); if (g && Ng(g, u)) return g; if (l) return; const x = p === Aa ? cl : p.callSignatures.length ? lc : p.constructSignatures.length ? ld : void 0; if (x) { const R = Ib(x, a); if (R) return R; } return Ib(Ka, a); } if (n.flags & 3145728) return _re(n, a, l); } function u4(n, a) { if (n.flags & 3670016) { const l = ip(n); return a === 0 ? l.callSignatures : l.constructSignatures; } return nt; } function Ha(n, a) { return u4(_L(n), a); } function mre(n, a) { return un(n, (l) => l.keyType === a); } function hre(n, a) { let l, u, p; for (const g of n) g.keyType === ce ? l = g : I2(a, g.keyType) && (u ? (p || (p = [u])).push(g) : u = g); return p ? dm(me, Lo(rn(p, (g) => g.type)), Cu(p, (g, x) => g && x.isReadonly, !0)) : u || (l && I2(a, ce) ? l : void 0); } function I2(n, a) { return Eo(n, a) || a === ce && Eo(n, pt) || a === pt && (n === no || !!(n.flags & 128) && vh(n.value)); } function gre(n) { return n.flags & 3670016 ? ip(n).indexInfos : nt; } function Eu(n) { return gre(_L(n)); } function nh(n, a) { return mre(Eu(n), a); } function Vg(n, a) { var l; return (l = nh(n, a)) == null ? void 0 : l.type; } function yre(n, a) { return Eu(n).filter((l) => I2(a, l.keyType)); } function d4(n, a) { return hre(Eu(n), a); } function k2(n, a) { return d4(n, Jw(a) ? q : Mf(Zi(a))); } function AAe(n) { var a; let l; for (const u of bv(n)) l = ny(l, SE(u.symbol)); return l != null && l.length ? l : pc(n) ? (a = Qw(n)) == null ? void 0 : a.typeParameters : void 0; } function vre(n) { const a = []; return n.forEach((l, u) => { dE(u) || a.push(l); }), a; } function bre(n, a) { if (Oc(n)) return; const l = Hd(He, '"' + n + '"', 512); return l && a ? ns(l) : l; } function $w(n) { if ($S(n) || ZN(n) || eO(n)) return !0; if (n.initializer) { const l = wp(n.parent), u = n.parent.parameters.indexOf(n); return D.assert(u >= 0), u >= mm(l, 3); } const a = oT(n.parent); return a ? !n.type && !n.dotDotDotToken && n.parent.parameters.indexOf(n) >= a.arguments.length : !1; } function LYe(n) { return Za(n) && !Nm(n) && n.questionToken; } function f4(n, a, l, u) { return { kind: n, parameterName: a, parameterIndex: l, type: u }; } function um(n) { let a = 0; if (n) for (let l = 0; l < n.length; l++) EAe(n[l]) || (a = l + 1); return a; } function tv(n, a, l, u) { const p = Ne(a); if (!p) return []; const g = Ne(n); if (u || g >= l && g <= p) { const x = n ? n.slice() : []; for (let M = g; M < p; M++) x[M] = xe; const R = Pie(u); for (let M = g; M < p; M++) { let J = AE(a[M]); u && J && (Hh(J, me) || Hh(J, da)) && (J = Ie), x[M] = J ? qi(J, pd(a, x)) : R; } return x.length = a.length, x; } return n && n.slice(); } function wp(n) { const a = Wr(n); if (!a.resolvedSignature) { const l = []; let u = 0, p = 0, g, x = !1; const R = oT(n), M = MA(n); !R && dr(n) && cue(n) && !Ple(n) && !vv(n) && (u |= 32); for (let De = M ? 1 : 0; De < n.parameters.length; De++) { const ke = n.parameters[De]; let ft = ke.symbol; const Bt = Qp(ke) ? ke.typeExpression && ke.typeExpression.type : ke.type; ft && ft.flags & 4 && !Ja(ke.name) && (ft = dl(ke, ft.escapedName, 111551, void 0, void 0, !1)), De === 0 && ft.escapedName === "this" ? (x = !0, g = ke.symbol) : l.push(ft), Bt && Bt.kind === 198 && (u |= 2), ZN(ke) || ke.initializer || ke.questionToken || fh(ke) || R && l.length > R.arguments.length && !Bt || eO(ke) || (p = l.length); } if ((n.kind === 174 || n.kind === 175) && L2(n) && (!x || !g)) { const De = n.kind === 174 ? 175 : 174, ke = Tl(Lr(n), De); ke && (g = ze(ke)); } if (dr(n)) { const De = dM(n); De && De.typeExpression && (g = DE(Qo(1, "this"), ci(De.typeExpression))); } const $ = n.kind === 173 ? Gu(ns(n.parent.symbol)) : void 0, he = $ ? $.localTypeParameters : AAe(n); (mW(n) || dr(n) && IYe(n, l)) && (u |= 1), (gk(n) && Jr(n, 256) || jl(n) && Jr(n.parent, 256)) && (u |= 4), a.resolvedSignature = th(n, he, g, l, void 0, void 0, p, u); } return a.resolvedSignature; } function IYe(n, a) { if (R1(n) || !Ere(n)) return !1; const l = Zs(n.parameters), u = l ? dI(l) : l1(n).filter(Qp), p = En(u, (x) => x.typeExpression && L7(x.typeExpression.type) ? x.typeExpression.type : void 0), g = Qo(3, "args", 32768); return p ? g.links.type = Tu(ci(p.type)) : (g.links.checkFlags |= 65536, g.links.deferralParent = ht, g.links.deferralConstituents = [Dt], g.links.deferralWriteConstituents = [Dt]), p && a.pop(), a.push(g), !0; } function Qw(n) { if (!(dr(n) && Ys(n))) return; const a = s1(n); return (a == null ? void 0 : a.typeExpression) && TS(ci(a.typeExpression)); } function kYe(n, a) { const l = Qw(n); if (!l) return; const u = n.parameters.indexOf(a); return a.dotDotDotToken ? TD(l, u) : sp(l, u); } function wYe(n) { const a = Qw(n); return a && hs(a); } function Ere(n) { const a = Wr(n); return a.containsArgumentsReference === void 0 && (a.flags & 512 ? a.containsArgumentsReference = !0 : a.containsArgumentsReference = l(n.body)), a.containsArgumentsReference; function l(u) { if (!u) return !1; switch (u.kind) { case 79: return u.escapedText === At.escapedName && fP(u) === At; case 169: case 171: case 174: case 175: return u.name.kind === 164 && l(u.name); case 208: case 209: return l(u.expression); case 299: return l(u.initializer); default: return !lz(u) && !_h(u) && !!Oa(u, l); } } } function kb(n) { if (!n || !n.declarations) return nt; const a = []; for (let l = 0; l < n.declarations.length; l++) { const u = n.declarations[l]; if (qa(u)) { if (l > 0 && u.body) { const p = n.declarations[l - 1]; if (u.parent === p.parent && u.kind === p.kind && u.pos === p.end) continue; } if (dr(u) && u.jsDoc) { let p = !1; for (const g of u.jsDoc) if (g.tags) { for (const x of g.tags) if (Ik(x)) { const R = x.typeExpression; R.type === void 0 && !jl(u) && C0(R, Ie), a.push(wp(R)), p = !0; } } if (p) continue; } a.push(!ZA(u) && !N_(u) && Qw(u) || wp(u)); } } return a; } function CAe(n) { const a = au(n, n); if (a) { const l = dd(a); if (l) return ar(l); } return Ie; } function wb(n) { if (n.thisParameter) return ar(n.thisParameter); } function Zf(n) { if (!n.resolvedTypePredicate) { if (n.target) { const a = Zf(n.target); n.resolvedTypePredicate = a ? _Qe(a, n.mapper) : Qs; } else if (n.compositeSignatures) n.resolvedTypePredicate = A$e(n.compositeSignatures, n.compositeKind) || Qs; else { const a = n.declaration && fp(n.declaration); let l; if (!a) { const u = Qw(n.declaration); u && n !== u && (l = Zf(u)); } n.resolvedTypePredicate = a && b7(a) ? DYe(a, n) : l || Qs; } D.assert(!!n.resolvedTypePredicate); } return n.resolvedTypePredicate === Qs ? void 0 : n.resolvedTypePredicate; } function DYe(n, a) { const l = n.parameterName, u = n.type && ci(n.type); return l.kind === 194 ? f4(n.assertsModifier ? 2 : 0, void 0, void 0, u) : f4(n.assertsModifier ? 3 : 1, l.escapedText, $i(a.parameters, (p) => p.escapedName === l.escapedText), u); } function LAe(n, a, l) { return a !== 2097152 ? Xr(n, l) : Lo(n); } function hs(n) { if (!n.resolvedReturnType) { if (!Rf(n, 3)) return xe; let a = n.target ? qi(hs(n.target), n.mapper) : n.compositeSignatures ? qi(LAe(rn(n.compositeSignatures, hs), n.compositeKind, 2), n.mapper) : w2(n.declaration) || (Sl(n.declaration.body) ? Ie : pV(n.declaration)); if (n.flags & 8 ? a = aLe(a) : n.flags & 16 && (a = qg(a)), !Qf()) { if (n.declaration) { const l = fp(n.declaration); if (l) qe(l, _.Return_type_annotation_circularly_references_itself); else if (Te) { const u = n.declaration, p = La(u); p ? qe(p, _._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, Is(p)) : qe(u, _.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); } } a = Ie; } n.resolvedReturnType = a; } return n.resolvedReturnType; } function w2(n) { if (n.kind === 173) return Gu(ns(n.parent.symbol)); if (R1(n)) { const l = RI(n); if (l && jl(l.parent)) return Gu(ns(l.parent.parent.symbol)); } if (MA(n)) return ci(n.parameters[0].type); const a = fp(n); if (a) return ci(a); if (n.kind === 174 && L2(n)) { const l = dr(n) && Ai(n); if (l) return l; const u = Tl(Lr(n), 175), p = oe(u); if (p) return p; } return wYe(n); } function Tre(n) { return !n.resolvedReturnType && Zm(n, 3) >= 0; } function RYe(n) { return IAe(n) || Ie; } function IAe(n) { if (mu(n)) { const a = ar(n.parameters[n.parameters.length - 1]), l = Oo(a) ? I4(a) : a; return l && Vg(l, pt); } } function Zw(n, a, l, u) { const p = Sre(n, tv(a, n.typeParameters, um(n.typeParameters), l)); if (u) { const g = MIe(hs(p)); if (g) { const x = Kw(g); x.typeParameters = u; const R = Kw(p); return R.resolvedReturnType = CE(x), R; } } return p; } function Sre(n, a) { const l = n.instantiations || (n.instantiations = /* @__PURE__ */ new Map()), u = e_(a); let p = l.get(u); return p || l.set(u, p = rU(n, a)), p; } function rU(n, a) { return B2(n, NYe(n, a), !0); } function NYe(n, a) { return pd(n.typeParameters, a); } function eD(n) { return n.typeParameters ? n.erasedSignatureCache || (n.erasedSignatureCache = OYe(n)) : n; } function OYe(n) { return B2(n, DCe(n.typeParameters), !0); } function PYe(n) { return n.typeParameters ? n.canonicalSignatureCache || (n.canonicalSignatureCache = MYe(n)) : n; } function MYe(n) { return Zw(n, rn(n.typeParameters, (a) => a.target && !bu(a.target) ? a.target : a), dr(n.declaration)); } function FYe(n) { const a = n.typeParameters; if (a) { if (n.baseSignatureCache) return n.baseSignatureCache; const l = DCe(a), u = pd(a, rn(a, (g) => bu(g) || me)); let p = rn(a, (g) => qi(g, u) || me); for (let g = 0; g < a.length - 1; g++) p = zg(p, u); return p = zg(p, l), n.baseSignatureCache = B2(n, pd(a, p), !0); } return n; } function CE(n) { var a; if (!n.isolatedSignatureType) { const l = (a = n.declaration) == null ? void 0 : a.kind, u = l === void 0 || l === 173 || l === 177 || l === 182, p = df(16); p.members = te, p.properties = nt, p.callSignatures = u ? nt : [n], p.constructSignatures = u ? [n] : nt, p.indexInfos = nt, n.isolatedSignatureType = p; } return n.isolatedSignatureType; } function kAe(n) { return n.members ? xre(n.members) : void 0; } function xre(n) { return n.get("__index"); } function dm(n, a, l, u) { return { keyType: n, type: a, isReadonly: l, declaration: u }; } function wAe(n) { const a = kAe(n); return a ? Are(a) : nt; } function Are(n) { if (n.declarations) { const a = []; for (const l of n.declarations) if (l.parameters.length === 1) { const u = l.parameters[0]; u.type && PE(ci(u.type), (p) => { iU(p) && !mre(a, p) && a.push(dm(p, l.type ? ci(l.type) : Ie, Nd(l, 64), l)); }); } return a; } return nt; } function iU(n) { return !!(n.flags & 4108) || P2(n) || !!(n.flags & 2097152) && !gL(n) && kt(n.types, iU); } function Cre(n) { return _a(yn(n.symbol && n.symbol.declarations, Ol), mA)[0]; } function DAe(n, a) { var l; let u; if ((l = n.symbol) != null && l.declarations) { for (const p of n.symbol.declarations) if (p.parent.kind === 192) { const [g = p.parent, x] = due(p.parent.parent); if (x.kind === 180 && !a) { const R = x, M = Hae(R); if (M) { const J = R.typeArguments.indexOf(g); if (J < M.length) { const $ = bu(M[J]); if ($) { const he = $re(M, M.map((ke, ft) => () => Jrt(R, M, ft))), De = qi($, he); De !== n && (u = Fn(u, De)); } } } } else if (x.kind === 166 && x.dotDotDotToken || x.kind === 188 || x.kind === 199 && x.dotDotDotToken) u = Fn(u, Tu(me)); else if (x.kind === 201) u = Fn(u, ce); else if (x.kind === 165 && x.parent.kind === 197) u = Fn(u, Bi); else if (x.kind === 197 && x.type && Us(x.type) === p.parent && x.parent.kind === 191 && x.parent.extendsType === x && x.parent.checkType.kind === 197 && x.parent.checkType.type) { const R = x.parent.checkType, M = ci(R.type); u = Fn(u, qi(M, Mb(SE(Lr(R.typeParameter)), R.typeParameter.constraint ? ci(R.typeParameter.constraint) : Bi))); } } } return u && Lo(u); } function pL(n) { if (!n.constraint) if (n.target) { const a = bu(n.target); n.constraint = a ? qi(a, n.mapper) : Jo; } else { const a = Cre(n); if (!a) n.constraint = DAe(n) || Jo; else { let l = ci(a); l.flags & 1 && !Zo(l) && (l = a.parent.parent.kind === 197 ? Bi : me), n.constraint = l; } } return n.constraint === Jo ? void 0 : n.constraint; } function RAe(n) { const a = Tl(n.symbol, 165), l = mp(a.parent) ? r3(a.parent) : a.parent; return l && Wd(l); } function e_(n) { let a = ""; if (n) { const l = n.length; let u = 0; for (; u < l; ) { const p = n[u].id; let g = 1; for (; u + g < l && n[u + g].id === p + g; ) g++; a.length && (a += ","), a += p, g > 1 && (a += ":" + g), u += g; } } return a; } function D2(n, a) { return n ? `@${go(n)}` + (a ? `:${e_(a)}` : "") : ""; } function aU(n, a) { let l = 0; for (const u of n) (a === void 0 || !(u.flags & a)) && (l |= Qr(u)); return l & 458752; } function R2(n, a) { return kt(a) && n === So ? me : jg(n, a); } function jg(n, a) { const l = e_(a); let u = n.instantiations.get(l); return u || (u = df(4, n.symbol), n.instantiations.set(l, u), u.objectFlags |= a ? aU(a) : 0, u.target = n, u.resolvedTypeArguments = a), u; } function NAe(n) { const a = om(n.flags, n.symbol); return a.objectFlags = n.objectFlags, a.target = n.target, a.resolvedTypeArguments = n.resolvedTypeArguments, a; } function Lre(n, a, l, u, p) { if (!u) { u = gS(a); const x = M2(u); p = l ? zg(x, l) : x; } const g = df(4, n.symbol); return g.target = n, g.node = a, g.mapper = l, g.aliasSymbol = u, g.aliasTypeArguments = p, g; } function _s(n) { var a, l; if (!n.resolvedTypeArguments) { if (!Rf(n, 6)) return ((a = n.target.localTypeParameters) == null ? void 0 : a.map(() => xe)) || nt; const u = n.node, p = u ? u.kind === 180 ? ha(n.target.outerTypeParameters, gV(u, n.target.localTypeParameters)) : u.kind === 185 ? [ci(u.elementType)] : rn(u.elements, ci) : nt; Qf() ? n.resolvedTypeArguments = n.mapper ? zg(p, n.mapper) : p : (n.resolvedTypeArguments = ((l = n.target.localTypeParameters) == null ? void 0 : l.map(() => xe)) || nt, qe(n.node || B, n.target.symbol ? _.Type_arguments_for_0_circularly_reference_themselves : _.Tuple_type_arguments_circularly_reference_themselves, n.target.symbol && S(n.target.symbol))); } return n.resolvedTypeArguments; } function v0(n) { return Ne(n.target.typeParameters); } function OAe(n, a) { const l = Bs(ns(a)), u = l.localTypeParameters; if (u) { const p = Ne(n.typeArguments), g = um(u), x = dr(n); if (!(!Te && x) && (p < g || p > u.length)) { const J = x && vy(n) && !yC(n.parent), $ = g === u.length ? J ? _.Expected_0_type_arguments_provide_these_with_an_extends_tag : _.Generic_type_0_requires_1_type_argument_s : J ? _.Expected_0_1_type_arguments_provide_these_with_an_extends_tag : _.Generic_type_0_requires_between_1_and_2_type_arguments, he = Le(l, void 0, 2); if (qe(n, $, he, g, u.length), !x) return xe; } if (n.kind === 180 && ZAe(n, Ne(n.typeArguments) !== u.length)) return Lre(l, n, void 0); const M = ha(l.outerTypeParameters, tv(_4(n), u, g, x)); return jg(l, M); } return Db(n, a) ? l : xe; } function N2(n, a, l, u) { const p = Bs(n); if (p === re && d8.has(n.escapedName) && a && a.length === 1) return hS(n, a[0]); const g = Ui(n), x = g.typeParameters, R = e_(a) + D2(l, u); let M = g.instantiations.get(R); return M || g.instantiations.set(R, M = OCe(p, pd(x, tv(a, x, um(x), dr(n.valueDeclaration))), l, u)), M; } function BYe(n, a) { if (Al(a) & 1048576) { const p = _4(n), g = D2(a, p); let x = Ur.get(g); return x || (x = Jl(1, "error"), x.aliasSymbol = a, x.aliasTypeArguments = p, Ur.set(g, x)), x; } const l = Bs(a), u = Ui(a).typeParameters; if (u) { const p = Ne(n.typeArguments), g = um(u); if (p < g || p > u.length) return qe(n, g === u.length ? _.Generic_type_0_requires_1_type_argument_s : _.Generic_type_0_requires_between_1_and_2_type_arguments, S(a), g, u.length), xe; const x = gS(n); let R = x && (PAe(a) || !PAe(x)) ? x : void 0, M; if (R) M = M2(R); else if (xM(n)) { const J = O2(n, 2097152, !0); if (J && J !== en) { const $ = Zl(J); $ && $.flags & 524288 && (R = $, M = _4(n) || (u ? [] : void 0)); } } return N2(a, _4(n), R, M); } return Db(n, a) ? l : xe; } function PAe(n) { var a; const l = (a = n.declarations) == null ? void 0 : a.find(mN); return !!(l && bf(l)); } function GYe(n) { switch (n.kind) { case 180: return n.typeName; case 230: const a = n.expression; if (Vl(a)) return a; } } function MAe(n) { return n.parent ? `${MAe(n.parent)}.${n.escapedName}` : n.escapedName; } function oU(n) { const l = (n.kind === 163 ? n.right : n.kind === 208 ? n.name : n).escapedText; if (l) { const u = n.kind === 163 ? oU(n.left) : n.kind === 208 ? oU(n.expression) : void 0, p = u ? `${MAe(u)}.${l}` : l; let g = xr.get(p); return g || (xr.set(p, g = Qo(524288, l, 1048576)), g.parent = u, g.links.declaredType = _t), g; } return en; } function O2(n, a, l) { const u = GYe(n); if (!u) return en; const p = wl(u, a, l); return p && p !== en ? p : l ? en : oU(u); } function sU(n, a) { if (a === en) return xe; if (a = a0(a) || a, a.flags & 96) return OAe(n, a); if (a.flags & 524288) return BYe(n, a); const l = rAe(a); if (l) return Db(n, a) ? _d(l) : xe; if (a.flags & 111551 && lU(n)) { const u = UYe(n, a); return u || (O2(n, 788968), ar(a)); } return xe; } function UYe(n, a) { const l = Wr(n); if (!l.resolvedJSDocType) { const u = ar(a); let p = u; if (a.valueDeclaration) { const g = n.kind === 202 && n.qualifier; u.symbol && u.symbol !== a && g && (p = sU(n, u.symbol)); } l.resolvedJSDocType = p; } return l.resolvedJSDocType; } function Ire(n, a) { if (a.flags & 3 || a === n || n.flags & 1) return n; const l = `${Su(n)}>${Su(a)}`, u = Ht.get(l); if (u) return u; const p = Fh(33554432); return p.baseType = n, p.constraint = a, Ht.set(l, p), p; } function kre(n) { return Lo([n.constraint, n.baseType]); } function FAe(n) { return n.kind === 186 && n.elements.length === 1; } function BAe(n, a, l) { return FAe(a) && FAe(l) ? BAe(n, a.elements[0], l.elements[0]) : iv(ci(a)) === iv(n) ? ci(l) : void 0; } function VYe(n, a) { let l, u = !0; for (; a && !Ia(a) && a.kind !== 323; ) { const p = a.parent; if (p.kind === 166 && (u = !u), (u || n.flags & 8650752) && p.kind === 191 && a === p.trueType) { const g = BAe(n, p.checkType, p.extendsType); g && (l = Fn(l, g)); } else if (n.flags & 262144 && p.kind === 197 && a === p.type) { const g = ci(p); if (rp(g) === iv(n)) { const x = Zre(g); if (x) { const R = bu(x); R && rh(R, kE) && (l = Fn(l, Xr([pt, no]))); } } } a = p; } return l ? Ire(n, Lo(l)) : n; } function lU(n) { return !!(n.flags & 8388608) && (n.kind === 180 || n.kind === 202); } function Db(n, a) { return n.typeArguments ? (qe(n, _.Type_0_is_not_generic, a ? S(a) : n.typeName ? Is(n.typeName) : u8), !1) : !0; } function GAe(n) { if (Ve(n.typeName)) { const a = n.typeArguments; switch (n.typeName.escapedText) { case "String": return Db(n), ce; case "Number": return Db(n), pt; case "Boolean": return Db(n), we; case "Void": return Db(n), Rt; case "Undefined": return Db(n), je; case "Null": return Db(n), Sn; case "Function": case "function": return Db(n), cl; case "array": return (!a || !a.length) && !Te ? Dt : void 0; case "promise": return (!a || !a.length) && !Te ? Y4(Ie) : void 0; case "Object": if (a && a.length === 2) { if ($M(n)) { const l = ci(a[0]), u = ci(a[1]), p = l === ce || l === pt ? [dm(l, u, !1)] : nt; return Ds(void 0, te, nt, nt, p); } return Ie; } return Db(n), Te ? void 0 : Ie; } } } function jYe(n) { const a = ci(n.type); return H ? NU(a, 65536) : a; } function wre(n) { const a = Wr(n); if (!a.resolvedType) { if (tg(n) && ZE(n.parent)) return a.resolvedSymbol = en, a.resolvedType = Kl(n.parent.expression); let l, u; const p = 788968; lU(n) && (u = GAe(n), u || (l = O2(n, p, !0), l === en ? l = O2(n, p | 111551) : O2(n, p), u = sU(n, l))), u || (l = O2(n, p), u = sU(n, l)), a.resolvedSymbol = l, a.resolvedType = u; } return a.resolvedType; } function _4(n) { return rn(n.typeArguments, ci); } function UAe(n) { const a = Wr(n); if (!a.resolvedType) { const l = nke(n); a.resolvedType = _d(Kd(l)); } return a.resolvedType; } function VAe(n, a) { function l(p) { const g = p.declarations; if (g) for (const x of g) switch (x.kind) { case 260: case 261: case 263: return x; } } if (!n) return a ? So : da; const u = Bs(n); return u.flags & 524288 ? Ne(u.typeParameters) !== a ? (qe(l(n), _.Global_type_0_must_have_1_type_parameter_s, Nl(n), a), a ? So : da) : u : (qe(l(n), _.Global_type_0_must_be_a_class_or_interface_type, Nl(n)), a ? So : da); } function Dre(n, a) { return tD(n, 111551, a ? _.Cannot_find_global_value_0 : void 0); } function jAe(n, a) { return tD(n, 788968, a ? _.Cannot_find_global_type_0 : void 0); } function cU(n, a, l) { const u = tD(n, 788968, l ? _.Cannot_find_global_type_0 : void 0); if (u && (Bs(u), Ne(Ui(u).typeParameters) !== a)) { const p = u.declarations && un(u.declarations, Xp); qe(p, _.Global_type_0_must_have_1_type_parameter_s, Nl(u), a); return; } return u; } function tD(n, a, l) { return dl(void 0, n, a, l, n, !1, !1, !1); } function ac(n, a, l) { const u = jAe(n, l); return u || l ? VAe(u, a) : void 0; } function HYe() { return Pt || (Pt = ac("TypedPropertyDescriptor", 1, !0) || So); } function WYe() { return lf || (lf = ac("TemplateStringsArray", 0, !0) || da); } function HAe() { return g_ || (g_ = ac("ImportMeta", 0, !0) || da); } function WAe() { if (!Ko) { const n = Qo(0, "ImportMetaExpression"), a = HAe(), l = Qo(4, "meta", 8); l.parent = n, l.links.type = a; const u = ao([l]); n.members = u, Ko = Ds(n, u, nt, nt, nt); } return Ko; } function zAe(n) { return y_ || (y_ = ac("ImportCallOptions", 0, n)) || da; } function qAe(n) { return ae || (ae = Dre("Symbol", n)); } function zYe(n) { return lt || (lt = jAe("SymbolConstructor", n)); } function JAe() { return Mt || (Mt = ac("Symbol", 0, !1)) || da; } function p4(n) { return sn || (sn = ac("Promise", 1, n)) || So; } function KAe(n) { return jn || (jn = ac("PromiseLike", 1, n)) || So; } function Rre(n) { return wr || (wr = Dre("Promise", n)); } function qYe(n) { return Zr || (Zr = ac("PromiseConstructorLike", 0, n)) || da; } function uU(n) { return sf || (sf = ac("AsyncIterable", 1, n)) || So; } function JYe(n) { return Ql || (Ql = ac("AsyncIterator", 3, n)) || So; } function KYe(n) { return jd || (jd = ac("AsyncIterableIterator", 1, n)) || So; } function XYe(n) { return vu || (vu = ac("AsyncGenerator", 3, n)) || So; } function Nre(n) { return Ri || (Ri = ac("Iterable", 1, n)) || So; } function YYe(n) { return Ua || (Ua = ac("Iterator", 3, n)) || So; } function $Ye(n) { return Vo || (Vo = ac("IterableIterator", 1, n)) || So; } function QYe(n) { return bs || (bs = ac("Generator", 3, n)) || So; } function ZYe(n) { return Js || (Js = ac("IteratorYieldResult", 1, n)) || So; } function e$e(n) { return cd || (cd = ac("IteratorReturnResult", 1, n)) || So; } function XAe(n, a = 0) { const l = tD(n, 788968, void 0); return l && VAe(l, a); } function t$e() { return cf || (cf = cU("Extract", 2, !0) || en), cf === en ? void 0 : cf; } function n$e() { return J_ || (J_ = cU("Omit", 2, !0) || en), J_ === en ? void 0 : J_; } function Ore(n) { return Tp || (Tp = cU("Awaited", 1, n) || (n ? en : void 0)), Tp === en ? void 0 : Tp; } function r$e() { return G || (G = ac("BigInt", 0, !1)) || da; } function i$e(n) { var a; return (a = Yn ?? (Yn = ac("ClassDecoratorContext", 1, n))) != null ? a : So; } function a$e(n) { var a; return (a = ka ?? (ka = ac("ClassMethodDecoratorContext", 2, n))) != null ? a : So; } function o$e(n) { var a; return (a = Ca ?? (Ca = ac("ClassGetterDecoratorContext", 2, n))) != null ? a : So; } function s$e(n) { var a; return (a = Ce ?? (Ce = ac("ClassSetterDecoratorContext", 2, n))) != null ? a : So; } function l$e(n) { var a; return (a = Be ?? (Be = ac("ClassAccessorDecoratorContext", 2, n))) != null ? a : So; } function c$e(n) { var a; return (a = Lt ?? (Lt = ac("ClassAccessorDecoratorTarget", 2, n))) != null ? a : So; } function u$e(n) { var a; return (a = Ot ?? (Ot = ac("ClassAccessorDecoratorResult", 2, n))) != null ? a : So; } function d$e(n) { var a; return (a = pn ?? (pn = ac("ClassFieldDecoratorContext", 2, n))) != null ? a : So; } function f$e() { return Ze || (Ze = Dre("NaN", !1)); } function _$e() { return zt || (zt = cU("Record", 2, !0) || en), zt === en ? void 0 : zt; } function nD(n, a) { return n !== So ? jg(n, a) : da; } function YAe(n) { return nD(HYe(), [n]); } function $Ae(n) { return nD(Nre(!0), [n]); } function Tu(n, a) { return nD(a ? ls : vs, [n]); } function Pre(n) { switch (n.kind) { case 187: return 2; case 188: return QAe(n); case 199: return n.questionToken ? 2 : n.dotDotDotToken ? QAe(n) : 1; default: return 1; } } function QAe(n) { return y4(n.type) ? 4 : 8; } function p$e(n) { const a = h$e(n.parent); if (y4(n)) return a ? ls : vs; const u = rn(n.elements, Pre), p = kt(n.elements, (g) => g.kind !== 199); return Mre(u, a, p ? void 0 : n.elements); } function ZAe(n, a) { return !!gS(n) || eCe(n) && (n.kind === 185 ? nv(n.elementType) : n.kind === 186 ? kt(n.elements, nv) : a || kt(n.typeArguments, nv)); } function eCe(n) { const a = n.parent; switch (a.kind) { case 193: case 199: case 180: case 189: case 190: case 196: case 191: case 195: case 185: case 186: return eCe(a); case 262: return !0; } return !1; } function nv(n) { switch (n.kind) { case 180: return lU(n) || !!(O2(n, 788968).flags & 524288); case 183: return !0; case 195: return n.operator !== 156 && nv(n.type); case 193: case 187: case 199: case 319: case 317: case 318: case 312: return nv(n.type); case 188: return n.type.kind !== 185 || nv(n.type.elementType); case 189: case 190: return kt(n.types, nv); case 196: return nv(n.objectType) || nv(n.indexType); case 191: return nv(n.checkType) || nv(n.extendsType) || nv(n.trueType) || nv(n.falseType); } return !1; } function m$e(n) { const a = Wr(n); if (!a.resolvedType) { const l = p$e(n); if (l === So) a.resolvedType = da; else if (!(n.kind === 186 && kt(n.elements, (u) => !!(Pre(u) & 8))) && ZAe(n)) a.resolvedType = n.kind === 186 && n.elements.length === 0 ? l : Lre(l, n, void 0); else { const u = n.kind === 185 ? [ci(n.elementType)] : rn(n.elements, ci); a.resolvedType = Fre(l, u); } } return a.resolvedType; } function h$e(n) { return vx(n) && n.operator === 146; } function Dp(n, a, l = !1, u) { const p = Mre(a || rn(n, (g) => 1), l, u); return p === So ? da : n.length ? Fre(p, n) : p; } function Mre(n, a, l) { if (n.length === 1 && n[0] & 4) return a ? ls : vs; const u = rn(n, (g) => g & 1 ? "#" : g & 2 ? "?" : g & 4 ? "." : "*").join() + (a ? "R" : "") + (l && l.length ? "," + rn(l, ds).join(",") : ""); let p = Hn.get(u); return p || Hn.set(u, p = g$e(n, a, l)), p; } function g$e(n, a, l) { const u = n.length, p = xa(n, (he) => !!(he & 9)); let g; const x = []; let R = 0; if (u) { g = new Array(u); for (let he = 0; he < u; he++) { const De = g[he] = Id(), ke = n[he]; if (R |= ke, !(R & 12)) { const ft = Qo(4 | (ke & 2 ? 16777216 : 0), "" + he, a ? 8 : 0); ft.links.tupleLabelDeclaration = l == null ? void 0 : l[he], ft.links.type = De, x.push(ft); } } } const M = x.length, J = Qo(4, "length", a ? 8 : 0); if (R & 12) J.links.type = pt; else { const he = []; for (let De = p; De <= u; De++) he.push(Rp(De)); J.links.type = Xr(he); } x.push(J); const $ = df(12); return $.typeParameters = g, $.outerTypeParameters = void 0, $.localTypeParameters = g, $.instantiations = /* @__PURE__ */ new Map(), $.instantiations.set(e_($.typeParameters), $), $.target = $, $.resolvedTypeArguments = $.typeParameters, $.thisType = Id(), $.thisType.isThisType = !0, $.thisType.constraint = $, $.declaredProperties = x, $.declaredCallSignatures = nt, $.declaredConstructSignatures = nt, $.declaredIndexInfos = nt, $.elementFlags = n, $.minLength = p, $.fixedLength = M, $.hasRestElement = !!(R & 12), $.combinedFlags = R, $.readonly = a, $.labeledElementDeclarations = l, $; } function Fre(n, a) { return n.objectFlags & 8 ? tCe(n, a) : jg(n, a); } function tCe(n, a) { var l, u, p; if (!(n.combinedFlags & 14)) return jg(n, a); if (n.combinedFlags & 8) { const ke = $i(a, (ft, Bt) => !!(n.elementFlags[Bt] & 8 && ft.flags & 1179648)); if (ke >= 0) return h4(rn(a, (ft, Bt) => n.elementFlags[Bt] & 8 ? ft : me)) ? Xs(a[ke], (ft) => tCe(n, aj(a, ke, ft))) : xe; } const g = [], x = []; let R = [], M = -1, J = -1, $ = -1; for (let ke = 0; ke < a.length; ke++) { const ft = a[ke], Bt = n.elementFlags[ke]; if (Bt & 8) if (ft.flags & 58982400 || Pf(ft)) De(ft, 8, (l = n.labeledElementDeclarations) == null ? void 0 : l[ke]); else if (Oo(ft)) { const Mn = _s(ft); if (Mn.length + g.length >= 1e4) return qe(B, _h(B) ? _.Type_produces_a_tuple_type_that_is_too_large_to_represent : _.Expression_produces_a_tuple_type_that_is_too_large_to_represent), xe; Ye(Mn, (An, Xn) => { var mn; return De(An, ft.target.elementFlags[Xn], (mn = ft.target.labeledElementDeclarations) == null ? void 0 : mn[Xn]); }); } else De(A0(ft) && Vg(ft, pt) || xe, 4, (u = n.labeledElementDeclarations) == null ? void 0 : u[ke]); else De(ft, Bt, (p = n.labeledElementDeclarations) == null ? void 0 : p[ke]); } for (let ke = 0; ke < M; ke++) x[ke] & 2 && (x[ke] = 1); J >= 0 && J < $ && (g[J] = Xr(Xl(g.slice(J, $ + 1), (ke, ft) => x[J + ft] & 8 ? Dd(ke, pt) : ke)), g.splice(J + 1, $ - J), x.splice(J + 1, $ - J), R == null || R.splice(J + 1, $ - J)); const he = Mre(x, n.readonly, R); return he === So ? da : x.length ? jg(he, g) : he; function De(ke, ft, Bt) { ft & 1 && (M = x.length), ft & 4 && J < 0 && (J = x.length), ft & 6 && ($ = x.length), g.push(ft & 2 ? Ao(ke, !0) : ke), x.push(ft), R && Bt ? R.push(Bt) : R = void 0; } } function mL(n, a, l = 0) { const u = n.target, p = v0(n) - l; return a > u.fixedLength ? iZe(n) || Dp(nt) : Dp(_s(n).slice(a, p), u.elementFlags.slice(a, p), !1, u.labeledElementDeclarations && u.labeledElementDeclarations.slice(a, p)); } function nCe(n) { return Xr(Fn(ise(n.target.fixedLength, (a) => Mf("" + a)), fm(n.target.readonly ? ls : vs))); } function y$e(n, a) { const l = $i(n.elementFlags, (u) => !(u & a)); return l >= 0 ? l : n.elementFlags.length; } function m4(n, a) { return n.elementFlags.length - ts(n.elementFlags, (l) => !(l & a)) - 1; } function v$e(n) { return Ao(ci(n.type), !0); } function Su(n) { return n.id; } function Rb(n, a) { return _v(n, a, Su, js) >= 0; } function Bre(n, a) { const l = _v(n, a, Su, js); return l < 0 ? (n.splice(~l, 0, a), !0) : !1; } function b$e(n, a, l) { const u = l.flags; if (u & 1048576) return rCe(n, a | (x$e(l) ? 1048576 : 0), l.types); if (!(u & 131072)) if (a |= u & 205258751, u & 465829888 && (a |= 33554432), l === Nt && (a |= 8388608), !H && u & 98304) Qr(l) & 65536 || (a |= 4194304); else { const p = n.length, g = p && l.id > n[p - 1].id ? ~p : _v(n, l, Su, js); g < 0 && n.splice(~g, 0, l); } return a; } function rCe(n, a, l) { for (const u of l) a = b$e(n, a, u); return a; } function E$e(n, a) { var l; if (n.length < 2) return n; const u = e_(n), p = ln.get(u); if (p) return p; const g = a && kt(n, (J) => !!(J.flags & 524288) && !Pf(J) && oie(ip(J))), x = n.length; let R = x, M = 0; for (; R > 0; ) { R--; const J = n[R]; if (g || J.flags & 469499904) { const $ = J.flags & 61603840 ? un(fs(J), (De) => op(ar(De))) : void 0, he = $ && _d(ar($)); for (const De of n) if (J !== De) { if (M === 1e5 && M / (x - R) * x > 1e6) { (l = hi) == null || l.instant(hi.Phase.CheckTypes, "removeSubtypes_DepthLimit", { typeIds: n.map((ft) => ft.id) }), qe(B, _.Expression_produces_a_union_type_that_is_too_complex_to_represent); return; } if (M++, $ && De.flags & 61603840) { const ke = cc(De, $.escapedName); if (ke && op(ke) && _d(ke) !== he) continue; } if (_m(J, De, Y_) && (!(Qr(C2(J)) & 1) || !(Qr(C2(De)) & 1) || Fb(J, De))) { t1(n, R); break; } } } } return ln.set(u, n), n; } function T$e(n, a, l) { let u = n.length; for (; u > 0; ) { u--; const p = n[u], g = p.flags; (g & 402653312 && a & 4 || g & 256 && a & 8 || g & 2048 && a & 64 || g & 8192 && a & 4096 || l && g & 32768 && a & 16384 || Pb(p) && Rb(n, p.regularType)) && t1(n, u); } } function S$e(n) { const a = yn(n, (l) => !!(l.flags & 134217728) && P2(l)); if (a.length) { let l = n.length; for (; l > 0; ) { l--; const u = n[l]; u.flags & 128 && kt(a, (p) => Rie(u, p)) && t1(n, l); } } } function x$e(n) { return !!(n.flags & 1048576 && (n.aliasSymbol || n.origin)); } function iCe(n, a) { for (const l of a) if (l.flags & 1048576) { const u = l.origin; l.aliasSymbol || u && !(u.flags & 1048576) ? a_(n, l) : u && u.flags & 1048576 && iCe(n, u.types); } } function Gre(n, a) { const l = _S(n); return l.types = a, l; } function Xr(n, a = 1, l, u, p) { if (n.length === 0) return ht; if (n.length === 1) return n[0]; let g = []; const x = rCe(g, 0, n); if (a !== 0) { if (x & 3) return x & 1 ? x & 8388608 ? Nt : Ie : x & 65536 || Rb(g, me) ? me : V; if (x & 32768 && g.length >= 2 && g[0] === je && g[1] === Je && t1(g, 1), (x & 402664352 || x & 16384 && x & 32768) && T$e(g, x, !!(a & 2)), x & 128 && x & 134217728 && S$e(g), a === 2 && (g = E$e(g, !!(x & 524288)), !g)) return xe; if (g.length === 0) return x & 65536 ? x & 4194304 ? Sn : br : x & 32768 ? x & 4194304 ? je : Qe : ht; } if (!p && x & 1048576) { const M = []; iCe(M, n); const J = []; for (const he of g) kt(M, (De) => Rb(De.types, he)) || J.push(he); if (!l && M.length === 1 && J.length === 0) return M[0]; if (Cu(M, (he, De) => he + De.types.length, 0) + J.length === g.length) { for (const he of M) Bre(J, he); p = Gre(1048576, J); } } const R = (x & 36323363 ? 0 : 32768) | (x & 2097152 ? 16777216 : 0); return Vre(g, R, l, u, p); } function A$e(n, a) { let l; const u = []; for (const g of n) { const x = Zf(g); if (!x || x.kind === 2 || x.kind === 3) { if (a !== 2097152) continue; return; } if (l) { if (!Ure(l, x)) return; } else l = x; u.push(x.type); } if (!l) return; const p = LAe(u, a); return f4(l.kind, l.parameterName, l.parameterIndex, p); } function Ure(n, a) { return n.kind === a.kind && n.parameterIndex === a.parameterIndex; } function Vre(n, a, l, u, p) { if (n.length === 0) return ht; if (n.length === 1) return n[0]; const x = (p ? p.flags & 1048576 ? `|${e_(p.types)}` : p.flags & 2097152 ? `&${e_(p.types)}` : `#${p.type.id}|${e_(n)}` : e_(n)) + D2(l, u); let R = In.get(x); return R || (R = Fh(1048576), R.objectFlags = a | aU(n, 98304), R.types = n, R.origin = p, R.aliasSymbol = l, R.aliasTypeArguments = u, n.length === 2 && n[0].flags & 512 && n[1].flags & 512 && (R.flags |= 16, R.intrinsicName = "boolean"), In.set(x, R)), R; } function C$e(n) { const a = Wr(n); if (!a.resolvedType) { const l = gS(n); a.resolvedType = Xr(rn(n.types, ci), 1, l, M2(l)); } return a.resolvedType; } function L$e(n, a, l) { const u = l.flags; return u & 2097152 ? aCe(n, a, l.types) : (zh(l) ? a & 16777216 || (a |= 16777216, n.set(l.id.toString(), l)) : (u & 3 ? l === Nt && (a |= 8388608) : (H || !(u & 98304)) && (l === Je && (a |= 262144, l = je), n.has(l.id.toString()) || (l.flags & 109472 && a & 109472 && (a |= 67108864), n.set(l.id.toString(), l))), a |= u & 205258751), a); } function aCe(n, a, l) { for (const u of l) a = L$e(n, a, _d(u)); return a; } function I$e(n, a) { let l = n.length; for (; l > 0; ) { l--; const u = n[l]; (u.flags & 4 && a & 402653312 || u.flags & 8 && a & 256 || u.flags & 64 && a & 2048 || u.flags & 4096 && a & 8192 || u.flags & 16384 && a & 32768 || zh(u) && a & 470302716) && t1(n, l); } } function k$e(n, a) { for (const l of n) if (!Rb(l.types, a)) { const u = a.flags & 128 ? ce : a.flags & 256 ? pt : a.flags & 2048 ? Wt : a.flags & 8192 ? q : void 0; if (!u || !Rb(l.types, u)) return !1; } return !0; } function w$e(n) { let a = n.length; const l = yn(n, (u) => !!(u.flags & 128)); for (; a > 0; ) { a--; const u = n[a]; if (u.flags & 134217728) { for (const p of l) if (av(p, u)) { t1(n, a); break; } else if (P2(u)) return !0; } } return !1; } function oCe(n, a) { return Vn(n, (l) => !!(l.flags & 1048576) && kt(l.types, (u) => !!(u.flags & a))); } function sCe(n, a) { for (let l = 0; l < n.length; l++) n[l] = uc(n[l], (u) => !(u.flags & a)); } function D$e(n) { let a; const l = $i(n, (x) => !!(Qr(x) & 32768)); if (l < 0) return !1; let u = l + 1; for (; u < n.length; ) { const x = n[u]; Qr(x) & 32768 ? ((a || (a = [n[l]])).push(x), t1(n, u)) : u++; } if (!a) return !1; const p = [], g = []; for (const x of a) for (const R of x.types) Bre(p, R) && k$e(a, R) && Bre(g, R); return n[l] = Vre(g, 32768), !0; } function R$e(n, a, l) { const u = Fh(2097152); return u.objectFlags = aU(n, 98304), u.types = n, u.aliasSymbol = a, u.aliasTypeArguments = l, u; } function Lo(n, a, l, u) { const p = /* @__PURE__ */ new Map(), g = aCe(p, 0, n), x = ko(p.values()); if (g & 131072) return Ii(x, dt) ? dt : ht; if (H && g & 98304 && g & 84410368 || g & 67108864 && g & 402783228 || g & 402653316 && g & 67238776 || g & 296 && g & 469891796 || g & 2112 && g & 469889980 || g & 12288 && g & 469879804 || g & 49152 && g & 469842940 || g & 134217728 && g & 128 && w$e(x)) return ht; if (g & 1) return g & 8388608 ? Nt : Ie; if (!H && g & 98304) return g & 16777216 ? ht : g & 32768 ? je : Sn; if ((g & 4 && g & 402653312 || g & 8 && g & 256 || g & 64 && g & 2048 || g & 4096 && g & 8192 || g & 16384 && g & 32768 || g & 16777216 && g & 470302716) && (u || I$e(x, g)), g & 262144 && (x[x.indexOf(je)] = Je), x.length === 0) return me; if (x.length === 1) return x[0]; const R = e_(x) + D2(a, l); let M = Yt.get(R); if (!M) { if (g & 1048576) if (D$e(x)) M = Lo(x, a, l); else if (oCe(x, 32768)) { const J = kt(x, dD) ? Je : je; sCe(x, 32768), M = Xr([Lo(x), J], 1, a, l); } else if (oCe(x, 65536)) sCe(x, 65536), M = Xr([Lo(x), Sn], 1, a, l); else { if (!h4(x)) return xe; const J = N$e(x), $ = kt(J, (he) => !!(he.flags & 2097152)) && jre(J) > jre(x) ? Gre(2097152, x) : void 0; M = Xr(J, 1, a, l, $); } else M = R$e(x, a, l); Yt.set(R, M); } return M; } function lCe(n) { return Cu(n, (a, l) => l.flags & 1048576 ? a * l.types.length : l.flags & 131072 ? 0 : a, 1); } function h4(n) { var a; const l = lCe(n); return l >= 1e5 ? ((a = hi) == null || a.instant(hi.Phase.CheckTypes, "checkCrossProductUnion_DepthLimit", { typeIds: n.map((u) => u.id), size: l }), qe(B, _.Expression_produces_a_union_type_that_is_too_complex_to_represent), !1) : !0; } function N$e(n) { const a = lCe(n), l = []; for (let u = 0; u < a; u++) { const p = n.slice(); let g = u; for (let R = n.length - 1; R >= 0; R--) if (n[R].flags & 1048576) { const M = n[R].types, J = M.length; p[R] = M[g % J], g = Math.floor(g / J); } const x = Lo(p); x.flags & 131072 || l.push(x); } return l; } function cCe(n) { return !(n.flags & 3145728) || n.aliasSymbol ? 1 : n.flags & 1048576 && n.origin ? cCe(n.origin) : jre(n.types); } function jre(n) { return Cu(n, (a, l) => a + cCe(l), 0); } function O$e(n) { const a = Wr(n); if (!a.resolvedType) { const l = gS(n), u = rn(n.types, ci), p = u.length === 2 && !!(u[0].flags & 76) && u[1] === Ml; a.resolvedType = Lo(u, l, M2(l), p); } return a.resolvedType; } function uCe(n, a) { const l = Fh(4194304); return l.type = n, l.stringsOnly = a, l; } function P$e(n) { const a = _S(4194304); return a.type = n, a; } function dCe(n, a) { return a ? n.resolvedStringIndexType || (n.resolvedStringIndexType = uCe(n, !0)) : n.resolvedIndexType || (n.resolvedIndexType = uCe(n, !1)); } function M$e(n, a, l) { const u = rp(n), p = kp(n), g = Qy(n.target || n); if (!g && !l) return p; const x = []; if (Xw(n)) { if (b0(p)) return dCe(n, a); { const J = Vu(fL(n)); are(J, 8576, a, M); } } else PE(s4(p), M); b0(p) && PE(p, M); const R = l ? uc(Xr(x), (J) => !(J.flags & 5)) : Xr(x); if (R.flags & 1048576 && p.flags & 1048576 && e_(R.types) === e_(p.types)) return p; return R; function M(J) { const $ = g ? qi(g, aD(n.mapper, u, J)) : J; x.push($ === ce ? Ti : $); } } function F$e(n) { const a = rp(n); return l(Qy(n) || a); function l(u) { return u.flags & 202375167 ? !0 : u.flags & 16777216 ? u.root.isDistributive && u.checkType === a : u.flags & 137363456 ? Vn(u.types, l) : u.flags & 8388608 ? l(u.objectType) && l(u.indexType) : u.flags & 33554432 ? l(u.baseType) && l(u.constraint) : u.flags & 268435456 ? l(u.type) : !1; } } function Hg(n) { return ki(n) ? ht : Ve(n) ? Mf(Zi(n.escapedText)) : _d(Ss(n) ? Kg(n) : ma(n)); } function hL(n, a, l) { if (l || !(qf(n) & 24)) { let u = Ui(nU(n)).nameType; if (!u) { const p = La(n.valueDeclaration); u = n.escapedName === "default" ? Mf("default") : p && Hg(p) || (AN(n) ? void 0 : Mf(Nl(n))); } if (u && u.flags & a) return u; } return ht; } function fCe(n, a) { return !!(n.flags & a || n.flags & 2097152 && kt(n.types, (l) => fCe(l, a))); } function B$e(n, a, l) { const u = l && (Qr(n) & 7 || n.aliasSymbol) ? P$e(n) : void 0, p = rn(fs(n), (x) => hL(x, a)), g = rn(Eu(n), (x) => x !== Bu && fCe(x.keyType, a) ? x.keyType === ce && a & 8 ? Ti : x.keyType : ht); return Xr(ha(p, g), 1, void 0, void 0, u); } function G$e(n) { const a = EQe(n); return ap(a) !== a; } function _Ce(n) { return !!(n.flags & 58982400 || G2(n) || Pf(n) && !F$e(n) || n.flags & 1048576 && kt(n.types, G$e) || n.flags & 2097152 && fl(n, 465829888) && kt(n.types, zh)); } function fm(n, a = Ge, l) { return n = ap(n), _Ce(n) ? dCe(n, a) : n.flags & 1048576 ? Lo(rn(n.types, (u) => fm(u, a, l))) : n.flags & 2097152 ? Xr(rn(n.types, (u) => fm(u, a, l))) : Qr(n) & 32 ? M$e(n, a, l) : n === Nt ? Nt : n.flags & 2 ? ht : n.flags & 131073 ? Bi : B$e(n, (l ? 128 : 402653316) | (a ? 0 : 12584), a === Ge && !l); } function pCe(n) { if (Ge) return n; const a = t$e(); return a ? N2(a, [n, ce]) : ce; } function U$e(n) { const a = pCe(fm(n)); return a.flags & 131072 ? ce : a; } function V$e(n) { const a = Wr(n); if (!a.resolvedType) switch (n.operator) { case 141: a.resolvedType = fm(ci(n.type)); break; case 156: a.resolvedType = n.type.kind === 153 ? Yre(vN(n.parent)) : xe; break; case 146: a.resolvedType = ci(n.type); break; default: throw D.assertNever(n.operator); } return a.resolvedType; } function j$e(n) { const a = Wr(n); return a.resolvedType || (a.resolvedType = LE([n.head.text, ...rn(n.templateSpans, (l) => l.literal.text)], rn(n.templateSpans, (l) => ci(l.type)))), a.resolvedType; } function LE(n, a) { const l = $i(a, (J) => !!(J.flags & 1179648)); if (l >= 0) return h4(a) ? Xs(a[l], (J) => LE(n, aj(a, l, J))) : xe; if (Ii(a, Nt)) return Nt; const u = [], p = []; let g = n[0]; if (!M(n, a)) return ce; if (u.length === 0) return Mf(g); if (p.push(g), Vn(p, (J) => J === "")) { if (Vn(u, (J) => !!(J.flags & 4))) return ce; if (u.length === 1 && P2(u[0])) return u[0]; } const x = `${e_(u)}|${rn(p, (J) => J.length).join(",")}|${p.join("")}`; let R = xt.get(x); return R || xt.set(x, R = W$e(p, u)), R; function M(J, $) { const he = Ga(J); for (let De = 0; De < $.length; De++) { const ke = $[De], ft = he ? J[De + 1] : J; if (ke.flags & 101248) { if (g += H$e(ke) || "", g += ft, !he) return !0; } else if (ke.flags & 134217728) { if (g += ke.texts[0], !M(ke.texts, ke.types)) return !1; if (g += ft, !he) return !0; } else if (b0(ke) || fU(ke)) u.push(ke), p.push(g), g = ft; else if (ke.flags & 2097152) { if (!M(J[De + 1], ke.types)) return !1; } else if (he) return !1; } return !0; } } function H$e(n) { return n.flags & 128 ? n.value : n.flags & 256 ? "" + n.value : n.flags & 2048 ? A1(n.value) : n.flags & 98816 ? n.intrinsicName : void 0; } function W$e(n, a) { const l = Fh(134217728); return l.texts = n, l.types = a, l; } function hS(n, a) { return a.flags & 1179648 ? Xs(a, (l) => hS(n, l)) : a.flags & 128 ? Mf(mCe(n, a.value)) : a.flags & 134217728 ? LE(...z$e(n, a.texts, a.types)) : a.flags & 268435456 && n === a.symbol ? a : a.flags & 268435461 || b0(a) ? hCe(n, a) : fU(a) ? hCe(n, LE(["", ""], [a])) : a; } function mCe(n, a) { switch (d8.get(n.escapedName)) { case 0: return a.toUpperCase(); case 1: return a.toLowerCase(); case 2: return a.charAt(0).toUpperCase() + a.slice(1); case 3: return a.charAt(0).toLowerCase() + a.slice(1); } return a; } function z$e(n, a, l) { switch (d8.get(n.escapedName)) { case 0: return [a.map((u) => u.toUpperCase()), l.map((u) => hS(n, u))]; case 1: return [a.map((u) => u.toLowerCase()), l.map((u) => hS(n, u))]; case 2: return [a[0] === "" ? a : [a[0].charAt(0).toUpperCase() + a[0].slice(1), ...a.slice(1)], a[0] === "" ? [hS(n, l[0]), ...l.slice(1)] : l]; case 3: return [a[0] === "" ? a : [a[0].charAt(0).toLowerCase() + a[0].slice(1), ...a.slice(1)], a[0] === "" ? [hS(n, l[0]), ...l.slice(1)] : l]; } return [a, l]; } function hCe(n, a) { const l = `${go(n)},${Su(a)}`; let u = gn.get(l); return u || gn.set(l, u = q$e(n, a)), u; } function q$e(n, a) { const l = om(268435456, n); return l.type = a, l; } function J$e(n, a, l, u, p) { const g = Fh(8388608); return g.objectType = n, g.indexType = a, g.accessFlags = l, g.aliasSymbol = u, g.aliasTypeArguments = p, g; } function rD(n) { if (Te) return !1; if (Qr(n) & 4096) return !0; if (n.flags & 1048576) return Vn(n.types, rD); if (n.flags & 2097152) return kt(n.types, rD); if (n.flags & 465829888) { const a = cre(n); return a !== n && rD(a); } return !1; } function dU(n, a) { return Vh(n) ? lm(n) : a && hl(a) ? v1(a) : void 0; } function Hre(n, a) { if (a.flags & 8208) { const l = nr(n.parent, (u) => !ol(u)) || n.parent; return WS(l) ? ng(l) && Ve(n) && xLe(l, n) : Vn(a.declarations, (u) => !qa(u) || !!(up(u) & 268435456)); } return !0; } function gCe(n, a, l, u, p, g) { var x; const R = p && p.kind === 209 ? p : void 0, M = p && ki(p) ? void 0 : dU(l, p); if (M !== void 0) { if (g & 256) return FE(a, M) || Ie; const $ = so(a, M); if ($) { if (g & 64 && p && $.declarations && t0($) && Hre(p, $)) { const De = (x = R == null ? void 0 : R.argumentExpression) != null ? x : bx(p) ? p.indexType : p; xg(De, $.declarations, M); } if (R) { if (W4($, R, DIe(R.expression, a.symbol)), gke(R, $, cT(R))) { qe(R.argumentExpression, _.Cannot_assign_to_0_because_it_is_a_read_only_property, S($)); return; } if (g & 8 && (Wr(p).resolvedSymbol = $), xIe(R, $)) return gt; } const he = ar($); return R && cT(R) !== 1 ? I0(R, he) : p && bx(p) && dD(he) ? Xr([he, je]) : he; } if (rh(a, Oo) && vh(M)) { const he = +M; if (p && rh(a, (De) => !De.target.hasRestElement) && !(g & 16)) { const De = Wre(p); if (Oo(a)) { if (he < 0) return qe(De, _.A_tuple_type_cannot_be_indexed_with_a_negative_value), je; qe(De, _.Tuple_type_0_of_length_1_has_no_element_at_index_2, Le(a), v0(a), Zi(M)); } else qe(De, _.Property_0_does_not_exist_on_type_1, Zi(M), Le(a)); } if (he >= 0) return J(nh(a, pt)), Xs(a, (De) => { const ke = I4(De) || je; return g & 1 ? Xr([ke, Je]) : ke; }); } } if (!(l.flags & 98304) && Rc(l, 402665900)) { if (a.flags & 131073) return a; const $ = d4(a, l) || nh(a, ce); if ($) { if (g & 2 && $.keyType !== pt) { R && qe(R, _.Type_0_cannot_be_used_to_index_type_1, Le(l), Le(n)); return; } if (p && $.keyType === ce && !Rc(l, 12)) { const he = Wre(p); return qe(he, _.Type_0_cannot_be_used_as_an_index_type, Le(l)), g & 1 ? Xr([$.type, Je]) : $.type; } return J($), g & 1 && !(a.symbol && a.symbol.flags & 384 && l.symbol && l.flags & 1024 && fd(l.symbol) === a.symbol) ? Xr([$.type, Je]) : $.type; } if (l.flags & 131072) return ht; if (rD(a)) return Ie; if (R && !Pae(a)) { if (L0(a)) { if (Te && l.flags & 384) return Xo.add(Dr(R, _.Property_0_does_not_exist_on_type_1, l.value, Le(a))), je; if (l.flags & 12) { const he = rn(a.properties, (De) => ar(De)); return Xr(Fn(he, je)); } } if (a.symbol === ot && M !== void 0 && ot.exports.has(M) && ot.exports.get(M).flags & 418) qe(R, _.Property_0_does_not_exist_on_type_1, Zi(M), Le(a)); else if (Te && !Y.suppressImplicitAnyIndexErrors && !(g & 128)) if (M !== void 0 && IIe(M, a)) { const he = Le(a); qe(R, _.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, M, he, he + "[" + bc(R.argumentExpression) + "]"); } else if (Vg(a, pt)) qe(R.argumentExpression, _.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number); else { let he; if (M !== void 0 && (he = pae(M, a))) he !== void 0 && qe(R.argumentExpression, _.Property_0_does_not_exist_on_type_1_Did_you_mean_2, M, Le(a), he); else { const De = jtt(a, R, l); if (De !== void 0) qe(R, _.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, Le(a), De); else { let ke; if (l.flags & 1024) ke = Da(void 0, _.Property_0_does_not_exist_on_type_1, "[" + Le(l) + "]", Le(a)); else if (l.flags & 8192) { const ft = Rh(l.symbol, R); ke = Da(void 0, _.Property_0_does_not_exist_on_type_1, "[" + ft + "]", Le(a)); } else l.flags & 128 || l.flags & 256 ? ke = Da(void 0, _.Property_0_does_not_exist_on_type_1, l.value, Le(a)) : l.flags & 12 && (ke = Da(void 0, _.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1, Le(l), Le(a))); ke = Da(ke, _.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1, Le(u), Le(a)), Xo.add(rg(Zn(R), R, ke)); } } } return; } } if (rD(a)) return Ie; if (p) { const $ = Wre(p); l.flags & 384 ? qe($, _.Property_0_does_not_exist_on_type_1, "" + l.value, Le(a)) : l.flags & 12 ? qe($, _.Type_0_has_no_matching_index_signature_for_type_1, Le(a), Le(l)) : qe($, _.Type_0_cannot_be_used_as_an_index_type, Le(l)); } if (Es(l)) return l; return; function J($) { $ && $.isReadonly && R && (mh(R) || rz(R)) && qe(R, _.Index_signature_in_type_0_only_permits_reading, Le(a)); } } function Wre(n) { return n.kind === 209 ? n.argumentExpression : n.kind === 196 ? n.indexType : n.kind === 164 ? n.expression : n; } function fU(n) { return !!(n.flags & 77) || P2(n); } function P2(n) { return !!(n.flags & 134217728) && Vn(n.types, fU) || !!(n.flags & 268435456) && fU(n.type); } function gL(n) { return !!iD(n); } function Nb(n) { return !!(iD(n) & 4194304); } function b0(n) { return !!(iD(n) & 8388608); } function iD(n) { return n.flags & 3145728 ? (n.objectFlags & 2097152 || (n.objectFlags |= 2097152 | Cu(n.types, (a, l) => a | iD(l), 0)), n.objectFlags & 12582912) : n.flags & 33554432 ? (n.objectFlags & 2097152 || (n.objectFlags |= 2097152 | iD(n.baseType) | iD(n.constraint)), n.objectFlags & 12582912) : (n.flags & 58982400 || Pf(n) || G2(n) ? 4194304 : 0) | (n.flags & 465829888 && !P2(n) ? 8388608 : 0); } function Wg(n, a) { return n.flags & 8388608 ? X$e(n, a) : n.flags & 16777216 ? Y$e(n, a) : n; } function yCe(n, a, l) { if (n.flags & 1048576 || n.flags & 2097152 && !_Ce(n)) { const u = rn(n.types, (p) => Wg(Dd(p, a), l)); return n.flags & 2097152 || l ? Lo(u) : Xr(u); } } function K$e(n, a, l) { if (a.flags & 1048576) { const u = rn(a.types, (p) => Wg(Dd(n, p), l)); return l ? Lo(u) : Xr(u); } } function X$e(n, a) { const l = a ? "simplifiedForWriting" : "simplifiedForReading"; if (n[l]) return n[l] === Bl ? n : n[l]; n[l] = Bl; const u = Wg(n.objectType, a), p = Wg(n.indexType, a), g = K$e(u, p, a); if (g) return n[l] = g; if (!(p.flags & 465829888)) { const x = yCe(u, p, a); if (x) return n[l] = x; } if (G2(u) && p.flags & 296) { const x = TL(u, p.flags & 8 ? 0 : u.target.fixedLength, 0, a); if (x) return n[l] = x; } if (Pf(u)) { const x = Qy(u); if (!x || Eo(x, rp(u))) return n[l] = Xs(_U(u, n.indexType), (R) => Wg(R, a)); } return n[l] = n; } function Y$e(n, a) { const l = n.checkType, u = n.extendsType, p = E0(n), g = T0(n); if (g.flags & 131072 && iv(p) === iv(l)) { if (l.flags & 1 || Eo(IE(l), IE(u))) return Wg(p, a); if (vCe(l, u)) return ht; } else if (p.flags & 131072 && iv(g) === iv(l)) { if (!(l.flags & 1) && Eo(IE(l), IE(u))) return ht; if (l.flags & 1 || vCe(l, u)) return Wg(g, a); } return n; } function vCe(n, a) { return !!(Xr([o4(n, a), ht]).flags & 131072); } function _U(n, a) { const l = pd([rp(n)], [a]), u = x0(n.mapper, l); return qi(jh(n.target || n), u); } function Dd(n, a, l = 0, u, p, g) { return rv(n, a, l, u, p, g) || (u ? xe : me); } function bCe(n, a) { return rh(n, (l) => { if (l.flags & 384) { const u = lm(l); if (vh(u)) { const p = +u; return p >= 0 && p < a; } } return !1; }); } function rv(n, a, l = 0, u, p, g) { if (n === Nt || a === Nt) return Nt; if (WCe(n) && !(a.flags & 98304) && Rc(a, 12) && (a = ce), Y.noUncheckedIndexedAccess && l & 32 && (l |= 1), b0(a) || (u && u.kind !== 196 ? G2(n) && !bCe(a, n.target.fixedLength) : Nb(n) && !(Oo(n) && bCe(a, n.target.fixedLength)))) { if (n.flags & 3) return n; const R = l & 1, M = n.id + "," + a.id + "," + R + D2(p, g); let J = Rr.get(M); return J || Rr.set(M, J = J$e(n, a, R, p, g)), J; } const x = _L(n); if (a.flags & 1048576 && !(a.flags & 16)) { const R = []; let M = !1; for (const J of a.types) { const $ = gCe(n, x, J, a, u, l | (M ? 128 : 0)); if ($) R.push($); else if (u) M = !0; else return; } return M ? void 0 : l & 4 ? Lo(R, p, g) : Xr(R, 1, p, g); } return gCe(n, x, a, a, u, l | 8 | 64); } function ECe(n) { const a = Wr(n); if (!a.resolvedType) { const l = ci(n.objectType), u = ci(n.indexType), p = gS(n); a.resolvedType = Dd(l, u, 0, n, p, M2(p)); } return a.resolvedType; } function zre(n) { const a = Wr(n); if (!a.resolvedType) { const l = df(32, n.symbol); l.declaration = n, l.aliasSymbol = gS(n), l.aliasTypeArguments = M2(l.aliasSymbol), a.resolvedType = l, kp(l); } return a.resolvedType; } function iv(n) { return n.flags & 33554432 ? iv(n.baseType) : n.flags & 8388608 && (n.objectType.flags & 33554432 || n.indexType.flags & 33554432) ? Dd(iv(n.objectType), iv(n.indexType)) : n; } function $$e(n) { const a = bu(n); return a && (Nb(a) || b0(a)) ? EU(n) : n; } function TCe(n) { return lC(n) && Ne(n.elements) > 0 && !kt(n.elements, (a) => $q(a) || Qq(a) || vk(a) && !!(a.questionToken || a.dotDotDotToken)); } function SCe(n, a) { return gL(n) || a && Oo(n) && kt(_s(n), gL); } function qre(n, a, l, u) { let p, g, x = 0; for (; ; ) { if (x === 1e3) { qe(B, _.Type_instantiation_is_excessively_deep_and_possibly_infinite), p = xe; break; } const M = TCe(n.node.checkType) && TCe(n.node.extendsType) && Ne(n.node.checkType.elements) === Ne(n.node.extendsType.elements), J = qi(iv(n.checkType), a), $ = SCe(J, M), he = qi(n.extendsType, a); if (J === Nt || he === Nt) return Nt; let De; if (n.inferTypeParameters) { const ft = Xl(n.inferTypeParameters, $$e), Bt = ft !== n.inferTypeParameters ? pd(n.inferTypeParameters, ft) : void 0, Mn = fD(ft, void 0, 0); if (Bt) { const Xn = x0(a, Bt); for (const mn of ft) n.inferTypeParameters.indexOf(mn) === -1 && (mn.mapper = Xn); } $ || qh(Mn.inferences, J, qi(he, Bt), 1536); const An = x0(Bt, Mn.mapper); De = a ? x0(An, a) : An; } const ke = De ? qi(n.extendsType, De) : he; if (!$ && !SCe(ke, M)) { if (!(ke.flags & 3) && (J.flags & 1 || !Eo(TU(J), TU(ke)))) { J.flags & 1 && (g || (g = [])).push(qi(ci(n.node.trueType), De || a)); const ft = ci(n.node.falseType); if (ft.flags & 16777216) { const Bt = ft.root; if (Bt.node.parent === n.node && (!Bt.isDistributive || Bt.checkType === n.checkType)) { n = Bt; continue; } if (R(ft, a)) continue; } p = qi(ft, a); break; } if (ke.flags & 3 || Eo(IE(J), IE(ke))) { const ft = ci(n.node.trueType), Bt = De || a; if (R(ft, Bt)) continue; p = qi(ft, Bt); break; } } p = Fh(16777216), p.root = n, p.checkType = qi(n.checkType, a), p.extendsType = qi(n.extendsType, a), p.mapper = a, p.combinedMapper = De, p.aliasSymbol = l || n.aliasSymbol, p.aliasTypeArguments = l ? u : zg(n.aliasTypeArguments, a); break; } return g ? Xr(Fn(g, p)) : p; function R(M, J) { if (M.flags & 16777216 && J) { const $ = M.root; if ($.outerTypeParameters) { const he = x0(M.mapper, J), De = rn($.outerTypeParameters, (Bt) => S0(Bt, he)), ke = pd($.outerTypeParameters, De), ft = $.isDistributive ? S0($.checkType, ke) : void 0; if (!ft || ft === $.checkType || !(ft.flags & 1179648)) return n = $, a = ke, l = void 0, u = void 0, $.aliasSymbol && x++, !0; } } return !1; } } function E0(n) { return n.resolvedTrueType || (n.resolvedTrueType = qi(ci(n.root.node.trueType), n.mapper)); } function T0(n) { return n.resolvedFalseType || (n.resolvedFalseType = qi(ci(n.root.node.falseType), n.mapper)); } function Q$e(n) { return n.resolvedInferredTrueType || (n.resolvedInferredTrueType = n.combinedMapper ? qi(ci(n.root.node.trueType), n.combinedMapper) : E0(n)); } function xCe(n) { let a; return n.locals && n.locals.forEach((l) => { l.flags & 262144 && (a = Fn(a, Bs(l))); }), a; } function Z$e(n) { return n.isDistributive && (b4(n.checkType, n.node.trueType) || b4(n.checkType, n.node.falseType)); } function eQe(n) { const a = Wr(n); if (!a.resolvedType) { const l = ci(n.checkType), u = gS(n), p = M2(u), g = uL(n, !0), x = p ? g : yn(g, (M) => b4(M, n)), R = { node: n, checkType: l, extendsType: ci(n.extendsType), isDistributive: !!(l.flags & 262144), inferTypeParameters: xCe(n), outerTypeParameters: x, instantiations: void 0, aliasSymbol: u, aliasTypeArguments: p }; a.resolvedType = qre(R, void 0), x && (R.instantiations = /* @__PURE__ */ new Map(), R.instantiations.set(e_(x), a.resolvedType)); } return a.resolvedType; } function tQe(n) { const a = Wr(n); return a.resolvedType || (a.resolvedType = SE(Lr(n.typeParameter))), a.resolvedType; } function ACe(n) { return Ve(n) ? [n] : Fn(ACe(n.left), n.right); } function nQe(n) { var a; const l = Wr(n); if (!l.resolvedType) { if (!B0(n)) return qe(n.argument, _.String_literal_expected), l.resolvedSymbol = en, l.resolvedType = xe; const u = n.isTypeOf ? 111551 : n.flags & 8388608 ? 900095 : 788968, p = au(n, n.argument.literal); if (!p) return l.resolvedSymbol = en, l.resolvedType = xe; const g = !!((a = p.exports) != null && a.get("export=")), x = dd(p, !1); if (Sl(n.qualifier)) if (x.flags & u) l.resolvedType = CCe(n, l, x, u); else { const R = u === 111551 ? _.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; qe(n, R, n.argument.literal.text), l.resolvedSymbol = en, l.resolvedType = xe; } else { const R = ACe(n.qualifier); let M = x, J; for (; J = R.shift(); ) { const $ = R.length ? 1920 : u, he = ns(ql(M)), De = n.isTypeOf || dr(n) && g ? so(ar(he), J.escapedText, !1, !0) : void 0, ke = n.isTypeOf ? void 0 : Hd(uf(he), J.escapedText, $), ft = ke ?? De; if (!ft) return qe(J, _.Namespace_0_has_no_exported_member_1, Rh(M), Is(J)), l.resolvedType = xe; Wr(J).resolvedSymbol = ft, Wr(J.parent).resolvedSymbol = ft, M = ft; } l.resolvedType = CCe(n, l, M, u); } } return l.resolvedType; } function CCe(n, a, l, u) { const p = ql(l); return a.resolvedSymbol = p, u === 111551 ? rke(ar(l), n) : sU(n, p); } function LCe(n) { const a = Wr(n); if (!a.resolvedType) { const l = gS(n); if ($y(n.symbol).size === 0 && !l) a.resolvedType = Ml; else { let u = df(16, n.symbol); u.aliasSymbol = l, u.aliasTypeArguments = M2(l), Lk(n) && n.isArrayType && (u = Tu(u)), a.resolvedType = u; } } return a.resolvedType; } function gS(n) { let a = n.parent; for (; yx(a) || AT(a) || vx(a) && a.operator === 146; ) a = a.parent; return mN(a) ? Lr(a) : void 0; } function M2(n) { return n ? Yy(n) : void 0; } function pU(n) { return !!(n.flags & 524288) && !Pf(n); } function Jre(n) { return Wh(n) || !!(n.flags & 474058748); } function Kre(n, a) { if (!(n.flags & 1048576)) return n; if (Vn(n.types, Jre)) return un(n.types, Wh) || da; const l = un(n.types, (g) => !Jre(g)); if (!l || un(n.types, (g) => g !== l && !Jre(g))) return n; return p(l); function p(g) { const x = ao(); for (const M of fs(g)) if (!(qf(M) & 24)) { if (mU(M)) { const J = M.flags & 65536 && !(M.flags & 32768), he = Qo(16777220, M.escapedName, ire(M) | (a ? 8 : 0)); he.links.type = J ? je : Ao(ar(M), !0), he.declarations = M.declarations, he.links.nameType = Ui(M).nameType, he.links.syntheticOrigin = M, x.set(M.escapedName, he); } } const R = Ds(g.symbol, x, nt, nt, Eu(g)); return R.objectFlags |= 131200, R; } } function Ob(n, a, l, u, p) { if (n.flags & 1 || a.flags & 1) return Ie; if (n.flags & 2 || a.flags & 2) return me; if (n.flags & 131072) return a; if (a.flags & 131072) return n; if (n = Kre(n, p), n.flags & 1048576) return h4([n, a]) ? Xs(n, (J) => Ob(J, a, l, u, p)) : xe; if (a = Kre(a, p), a.flags & 1048576) return h4([n, a]) ? Xs(a, (J) => Ob(n, J, l, u, p)) : xe; if (a.flags & 473960444) return n; if (Nb(n) || Nb(a)) { if (Wh(n)) return a; if (n.flags & 2097152) { const J = n.types, $ = J[J.length - 1]; if (pU($) && pU(a)) return Lo(ha(J.slice(0, J.length - 1), [Ob($, a, l, u, p)])); } return Lo([n, a]); } const g = ao(), x = /* @__PURE__ */ new Set(), R = n === da ? Eu(a) : _Ae([n, a]); for (const J of fs(a)) qf(J) & 24 ? x.add(J.escapedName) : mU(J) && g.set(J.escapedName, Xre(J, p)); for (const J of fs(n)) if (!(x.has(J.escapedName) || !mU(J))) if (g.has(J.escapedName)) { const $ = g.get(J.escapedName), he = ar($); if ($.flags & 16777216) { const De = ha(J.declarations, $.declarations), ke = 4 | J.flags & 16777216, ft = Qo(ke, J.escapedName); ft.links.type = Xr([ar(J), bie(he)], 2), ft.links.leftSpread = J, ft.links.rightSpread = $, ft.declarations = De, ft.links.nameType = Ui(J).nameType, g.set(J.escapedName, ft); } } else g.set(J.escapedName, Xre(J, p)); const M = Ds(l, g, nt, nt, Xl(R, (J) => rQe(J, p))); return M.objectFlags |= 2228352 | u, M; } function mU(n) { var a; return !kt(n.declarations, zu) && (!(n.flags & 106496) || !((a = n.declarations) != null && a.some((l) => li(l.parent)))); } function Xre(n, a) { const l = n.flags & 65536 && !(n.flags & 32768); if (!l && a === lp(n)) return n; const u = 4 | n.flags & 16777216, p = Qo(u, n.escapedName, ire(n) | (a ? 8 : 0)); return p.links.type = l ? je : ar(n), p.declarations = n.declarations, p.links.nameType = Ui(n).nameType, p.links.syntheticOrigin = n, p; } function rQe(n, a) { return n.isReadonly !== a ? dm(n.keyType, n.type, a, n.declaration) : n; } function g4(n, a, l, u) { const p = om(n, l); return p.value = a, p.regularType = u || p, p; } function F2(n) { if (n.flags & 2976) { if (!n.freshType) { const a = g4(n.flags, n.value, n.symbol, n); a.freshType = a, n.freshType = a; } return n.freshType; } return n; } function _d(n) { return n.flags & 2976 ? n.regularType : n.flags & 1048576 ? n.regularType || (n.regularType = Xs(n, _d)) : n; } function Pb(n) { return !!(n.flags & 2976) && n.freshType === n; } function Mf(n) { let a; return fr.get(n) || (fr.set(n, a = g4(128, n)), a); } function Rp(n) { let a; return xi.get(n) || (xi.set(n, a = g4(256, n)), a); } function hU(n) { let a; const l = A1(n); return Ji.get(l) || (Ji.set(l, a = g4(2048, n)), a); } function iQe(n, a, l) { let u; const p = `${a}${typeof n == "string" ? "@" : "#"}${n}`, g = 1024 | (typeof n == "string" ? 128 : 256); return Ki.get(p) || (Ki.set(p, u = g4(g, n, l)), u); } function aQe(n) { if (n.literal.kind === 104) return Sn; const a = Wr(n); return a.resolvedType || (a.resolvedType = _d(ma(n.literal))), a.resolvedType; } function oQe(n) { const a = om(8192, n); return a.escapedName = `__@${a.symbol.escapedName}@${go(a.symbol)}`, a; } function Yre(n) { if (Hce(n)) { const a = UM(n) ? Wd(n.left) : Wd(n); if (a) { const l = Ui(a); return l.uniqueESSymbolType || (l.uniqueESSymbolType = oQe(a)); } } return q; } function sQe(n) { const a = yd(n, !1, !1), l = a && a.parent; if (l && (li(l) || l.kind === 261) && !za(a) && (!jl(a) || uT(n, a.body))) return Gu(Lr(l)).thisType; if (l && As(l) && vr(l.parent) && xl(l.parent) === 6) return Gu(Wd(l.parent.left).parent).thisType; const u = n.flags & 8388608 ? V0(n) : void 0; return u && Ms(u) && vr(u.parent) && xl(u.parent) === 3 ? Gu(Wd(u.parent.left).parent).thisType : Op(a) && uT(n, a.body) ? Gu(Lr(a)).thisType : (qe(n, _.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface), xe); } function gU(n) { const a = Wr(n); return a.resolvedType || (a.resolvedType = sQe(n)), a.resolvedType; } function ICe(n) { return ci(y4(n.type) || n.type); } function y4(n) { switch (n.kind) { case 193: return y4(n.type); case 186: if (n.elements.length === 1 && (n = n.elements[0], n.kind === 188 || n.kind === 199 && n.dotDotDotToken)) return y4(n.type); break; case 185: return n.elementType; } } function lQe(n) { const a = Wr(n); return a.resolvedType || (a.resolvedType = n.dotDotDotToken ? ICe(n) : Ao(ci(n.type), !0, !!n.questionToken)); } function ci(n) { return VYe(kCe(n), n); } function kCe(n) { switch (n.kind) { case 131: case 315: case 316: return Ie; case 157: return me; case 152: return ce; case 148: return pt; case 160: return Wt; case 134: return we; case 153: return q; case 114: return Rt; case 155: return je; case 104: return Sn; case 144: return ht; case 149: return n.flags & 262144 && !Te ? Ie : ii; case 139: return re; case 194: case 108: return gU(n); case 198: return aQe(n); case 180: return wre(n); case 179: return n.assertsModifier ? Rt : we; case 230: return wre(n); case 183: return UAe(n); case 185: case 186: return m$e(n); case 187: return v$e(n); case 189: return C$e(n); case 190: return O$e(n); case 317: return jYe(n); case 319: return Ao(ci(n.type)); case 199: return lQe(n); case 193: case 318: case 312: return ci(n.type); case 188: return ICe(n); case 321: return aot(n); case 181: case 182: case 184: case 325: case 320: case 326: return LCe(n); case 195: return V$e(n); case 196: return ECe(n); case 197: return zre(n); case 191: return eQe(n); case 192: return tQe(n); case 200: return j$e(n); case 202: return nQe(n); case 79: case 163: case 208: const a = A_(n); return a ? Bs(a) : xe; default: return xe; } } function yU(n, a, l) { if (n && n.length) for (let u = 0; u < n.length; u++) { const p = n[u], g = l(p, a); if (p !== g) { const x = u === 0 ? [] : n.slice(0, u); for (x.push(g), u++; u < n.length; u++) x.push(l(n[u], a)); return x; } } return n; } function zg(n, a) { return yU(n, a, qi); } function vU(n, a) { return yU(n, a, B2); } function wCe(n, a) { return yU(n, a, TQe); } function pd(n, a) { return n.length === 1 ? Mb(n[0], a ? a[0] : Ie) : cQe(n, a); } function S0(n, a) { switch (a.kind) { case 0: return n === a.source ? a.target : n; case 1: { const u = a.sources, p = a.targets; for (let g = 0; g < u.length; g++) if (n === u[g]) return p ? p[g] : Ie; return n; } case 2: { const u = a.sources, p = a.targets; for (let g = 0; g < u.length; g++) if (n === u[g]) return p[g](); return n; } case 3: return a.func(n); case 4: case 5: const l = S0(n, a.mapper1); return l !== n && a.kind === 4 ? qi(l, a.mapper2) : S0(l, a.mapper2); } } function Mb(n, a) { return D.attachDebugPrototypeIfDebug({ kind: 0, source: n, target: a }); } function cQe(n, a) { return D.attachDebugPrototypeIfDebug({ kind: 1, sources: n, targets: a }); } function v4(n, a) { return D.attachDebugPrototypeIfDebug({ kind: 3, func: n, debugInfo: D.isDebugging ? a : void 0 }); } function $re(n, a) { return D.attachDebugPrototypeIfDebug({ kind: 2, sources: n, targets: a }); } function bU(n, a, l) { return D.attachDebugPrototypeIfDebug({ kind: n, mapper1: a, mapper2: l }); } function DCe(n) { return pd(n, void 0); } function uQe(n, a) { const l = n.inferences.slice(a); return pd(rn(l, (u) => u.typeParameter), rn(l, () => me)); } function x0(n, a) { return n ? bU(4, n, a) : a; } function dQe(n, a) { return n ? bU(5, n, a) : a; } function yS(n, a, l) { return l ? bU(5, Mb(n, a), l) : Mb(n, a); } function aD(n, a, l) { return n ? bU(5, n, Mb(a, l)) : Mb(a, l); } function fQe(n) { return !n.constraint && !Cre(n) || n.constraint === Jo ? n : n.restrictiveInstantiation || (n.restrictiveInstantiation = Id(n.symbol), n.restrictiveInstantiation.constraint = Jo, n.restrictiveInstantiation); } function EU(n) { const a = Id(n.symbol); return a.target = n, a; } function _Qe(n, a) { return f4(n.kind, n.parameterName, n.parameterIndex, qi(n.type, a)); } function B2(n, a, l) { let u; if (n.typeParameters && !l) { u = rn(n.typeParameters, EU), a = x0(pd(n.typeParameters, u), a); for (const g of u) g.mapper = a; } const p = th(n.declaration, u, n.thisParameter && Qre(n.thisParameter, a), yU(n.parameters, a, Qre), void 0, void 0, n.minArgumentCount, n.flags & 39); return p.target = n, p.mapper = a, p; } function Qre(n, a) { const l = Ui(n); if (l.type && !RE(l.type)) return n; Al(n) & 1 && (n = l.target, a = x0(l.mapper, a)); const u = Qo(n.flags, n.escapedName, 1 | Al(n) & 53256); return u.declarations = n.declarations, u.parent = n.parent, u.links.target = n, u.links.mapper = a, n.valueDeclaration && (u.valueDeclaration = n.valueDeclaration), l.nameType && (u.links.nameType = l.nameType), u; } function pQe(n, a, l, u) { const p = n.objectFlags & 4 || n.objectFlags & 8388608 ? n.node : n.symbol.declarations[0], g = Wr(p), x = n.objectFlags & 4 ? g.resolvedType : n.objectFlags & 64 ? n.target : n; let R = g.outerTypeParameters; if (!R) { let M = uL(p, !0); if (Op(p)) { const $ = AAe(p); M = yi(M, $); } R = M || nt; const J = n.objectFlags & 8388612 ? [p] : n.symbol.declarations; R = (x.objectFlags & 8388612 || x.symbol.flags & 8192 || x.symbol.flags & 2048) && !x.aliasTypeArguments ? yn(R, ($) => kt(J, (he) => b4($, he))) : R, g.outerTypeParameters = R; } if (R.length) { const M = x0(n.mapper, a), J = rn(R, (ft) => S0(ft, M)), $ = l || n.aliasSymbol, he = l ? u : zg(n.aliasTypeArguments, a), De = e_(J) + D2($, he); x.instantiations || (x.instantiations = /* @__PURE__ */ new Map(), x.instantiations.set(e_(R) + D2(x.aliasSymbol, x.aliasTypeArguments), x)); let ke = x.instantiations.get(De); if (!ke) { const ft = pd(R, J); ke = x.objectFlags & 4 ? Lre(n.target, n.node, ft, $, he) : x.objectFlags & 32 ? RCe(x, ft, $, he) : tie(x, ft, $, he), x.instantiations.set(De, ke); } return ke; } return n; } function mQe(n) { return !(n.parent.kind === 180 && n.parent.typeArguments && n === n.parent.typeName || n.parent.kind === 202 && n.parent.typeArguments && n === n.parent.qualifier); } function b4(n, a) { if (n.symbol && n.symbol.declarations && n.symbol.declarations.length === 1) { const u = n.symbol.declarations[0].parent; for (let p = a; p !== u; p = p.parent) if (!p || p.kind === 238 || p.kind === 191 && Oa(p.extendsType, l)) return !0; return l(a); } return !0; function l(u) { switch (u.kind) { case 194: return !!n.isThisType; case 79: return !n.isThisType && _h(u) && mQe(u) && kCe(u) === n; case 183: const p = u.exprName, g = Ef(p), x = x_(g), R = n.symbol.declarations[0]; let M; if (R.kind === 165) M = R.parent; else if (n.isThisType) M = R; else return !0; return x.declarations ? kt(x.declarations, (J) => uT(J, M)) || kt(u.typeArguments, l) : !0; case 171: case 170: return !u.type && !!u.body || kt(u.typeParameters, l) || kt(u.parameters, l) || !!u.type && l(u.type); } return !!Oa(u, l); } } function Zre(n) { const a = kp(n); if (a.flags & 4194304) { const l = iv(a.type); if (l.flags & 262144) return l; } } function RCe(n, a, l, u) { const p = Zre(n); if (p) { const g = qi(p, a); if (p !== g) return OLe(ap(g), (x) => { if (x.flags & 61603843 && x !== Nt && !Zo(x)) { if (!n.declaration.nameType) { let R; if (Ff(x) || x.flags & 1 && Zm(p, 4) < 0 && (R = bu(p)) && rh(R, kE)) return gQe(x, n, yS(p, x, a)); if (G2(x)) return hQe(x, n, p, a); if (Oo(x)) return yQe(x, n, yS(p, x, a)); } return tie(n, yS(p, x, a)); } return x; }, l, u); } return qi(kp(n), a) === Nt ? Nt : tie(n, a, l, u); } function eie(n, a) { return a & 1 ? !0 : a & 2 ? !1 : n; } function hQe(n, a, l, u) { const p = n.target.elementFlags, g = rn(_s(n), (R, M) => { const J = p[M] & 8 ? R : p[M] & 4 ? Tu(R) : Dp([R], [p[M]]); return RCe(a, yS(l, J, u)); }), x = eie(n.target.readonly, cm(a)); return Dp(g, rn(g, (R) => 8), x); } function gQe(n, a, l) { const u = NCe(a, pt, !0, l); return Zo(u) ? xe : Tu(u, eie(bL(n), cm(a))); } function yQe(n, a, l) { const u = n.target.elementFlags, p = rn(_s(n), (M, J) => NCe(a, Mf("" + J), !!(u[J] & 2), l)), g = cm(a), x = g & 4 ? rn(u, (M) => M & 1 ? 2 : M) : g & 8 ? rn(u, (M) => M & 2 ? 1 : M) : u, R = eie(n.target.readonly, g); return Ii(p, xe) ? xe : Dp(p, x, R, n.target.labeledElementDeclarations); } function NCe(n, a, l, u) { const p = aD(u, rp(n), a), g = qi(jh(n.target || n), p), x = cm(n); return H && x & 4 && !fl(g, 49152) ? qg(g, !0) : H && x & 8 && l ? n_(g, 524288) : g; } function tie(n, a, l, u) { const p = df(n.objectFlags | 64, n.symbol); if (n.objectFlags & 32) { p.declaration = n.declaration; const g = rp(n), x = EU(g); p.typeParameter = x, a = x0(Mb(g, x), a), x.mapper = a; } return n.objectFlags & 8388608 && (p.node = n.node), p.target = n, p.mapper = a, p.aliasSymbol = l || n.aliasSymbol, p.aliasTypeArguments = l ? u : zg(n.aliasTypeArguments, a), p.objectFlags |= p.aliasTypeArguments ? aU(p.aliasTypeArguments) : 0, p; } function nie(n, a, l, u) { const p = n.root; if (p.outerTypeParameters) { const g = rn(p.outerTypeParameters, (M) => S0(M, a)), x = e_(g) + D2(l, u); let R = p.instantiations.get(x); if (!R) { const M = pd(p.outerTypeParameters, g), J = p.checkType, $ = p.isDistributive ? S0(J, M) : void 0; R = $ && J !== $ && $.flags & 1179648 ? OLe(ap($), (he) => qre(p, yS(J, he, M)), l, u) : qre(p, M, l, u), p.instantiations.set(x, R); } return R; } return n; } function qi(n, a) { return n && a ? OCe(n, a, void 0, void 0) : n; } function OCe(n, a, l, u) { var p; if (!RE(n)) return n; if (O === 100 || I >= 5e6) return (p = hi) == null || p.instant(hi.Phase.CheckTypes, "instantiateType_DepthLimit", { typeId: n.id, instantiationDepth: O, instantiationCount: I }), qe(B, _.Type_instantiation_is_excessively_deep_and_possibly_infinite), xe; C++, I++, O++; const g = vQe(n, a, l, u); return O--, g; } function vQe(n, a, l, u) { const p = n.flags; if (p & 262144) return S0(n, a); if (p & 524288) { const g = n.objectFlags; if (g & 52) { if (g & 4 && !n.node) { const x = n.resolvedTypeArguments, R = zg(x, a); return R !== x ? Fre(n.target, R) : n; } return g & 1024 ? bQe(n, a) : pQe(n, a, l, u); } return n; } if (p & 3145728) { const g = n.flags & 1048576 ? n.origin : void 0, x = g && g.flags & 3145728 ? g.types : n.types, R = zg(x, a); if (R === x && l === n.aliasSymbol) return n; const M = l || n.aliasSymbol, J = l ? u : zg(n.aliasTypeArguments, a); return p & 2097152 || g && g.flags & 2097152 ? Lo(R, M, J) : Xr(R, 1, M, J); } if (p & 4194304) return fm(qi(n.type, a)); if (p & 134217728) return LE(n.texts, zg(n.types, a)); if (p & 268435456) return hS(n.symbol, qi(n.type, a)); if (p & 8388608) { const g = l || n.aliasSymbol, x = l ? u : zg(n.aliasTypeArguments, a); return Dd(qi(n.objectType, a), qi(n.indexType, a), n.accessFlags, void 0, g, x); } if (p & 16777216) return nie(n, x0(n.mapper, a), l, u); if (p & 33554432) { const g = qi(n.baseType, a), x = qi(n.constraint, a); return g.flags & 8650752 && gL(x) ? Ire(g, x) : x.flags & 3 || Eo(IE(g), IE(x)) ? g : g.flags & 8650752 ? Ire(g, x) : Lo([x, g]); } return n; } function bQe(n, a) { const l = qi(n.mappedType, a); if (!(Qr(l) & 32)) return n; const u = qi(n.constraintType, a); if (!(u.flags & 4194304)) return n; const p = dLe(qi(n.source, a), l, u); return p || n; } function EQe(n) { return n.flags & 134479871 ? n : n.uniqueLiteralFilledInstantiation || (n.uniqueLiteralFilledInstantiation = qi(n, is)); } function TU(n) { return n.flags & 134479871 ? n : n.permissiveInstantiation || (n.permissiveInstantiation = qi(n, Gi)); } function IE(n) { return n.flags & 134479871 ? n : (n.restrictiveInstantiation || (n.restrictiveInstantiation = qi(n, sa), n.restrictiveInstantiation.restrictiveInstantiation = n.restrictiveInstantiation), n.restrictiveInstantiation); } function TQe(n, a) { return dm(n.keyType, qi(n.type, a), n.isReadonly, n.declaration); } function S_(n) { switch (D.assert(n.kind !== 171 || N_(n)), n.kind) { case 215: case 216: case 171: case 259: return PCe(n); case 207: return kt(n.properties, S_); case 206: return kt(n.elements, S_); case 224: return S_(n.whenTrue) || S_(n.whenFalse); case 223: return (n.operatorToken.kind === 56 || n.operatorToken.kind === 60) && (S_(n.left) || S_(n.right)); case 299: return S_(n.initializer); case 214: return S_(n.expression); case 289: return kt(n.properties, S_) || xh(n.parent) && kt(n.parent.parent.children, S_); case 288: { const { initializer: a } = n; return !!a && S_(a); } case 291: { const { expression: a } = n; return !!a && S_(a); } } return !1; } function PCe(n) { return D3(n) || SQe(n); } function SQe(n) { return !n.typeParameters && !fp(n) && !!n.body && n.body.kind !== 238 && S_(n.body); } function SU(n) { return (ZA(n) || N_(n)) && PCe(n); } function MCe(n) { if (n.flags & 524288) { const a = ip(n); if (a.constructSignatures.length || a.callSignatures.length) { const l = df(16, n.symbol); return l.members = a.members, l.properties = a.properties, l.callSignatures = nt, l.constructSignatures = nt, l.indexInfos = nt, l; } } else if (n.flags & 2097152) return Lo(rn(n.types, MCe)); return n; } function Hh(n, a) { return _m(n, a, Cd); } function oD(n, a) { return _m(n, a, Cd) ? -1 : 0; } function rie(n, a) { return _m(n, a, xd) ? -1 : 0; } function xQe(n, a) { return _m(n, a, qm) ? -1 : 0; } function av(n, a) { return _m(n, a, qm); } function FCe(n, a) { return _m(n, a, Y_); } function Eo(n, a) { return _m(n, a, xd); } function Fb(n, a) { return n.flags & 1048576 ? Vn(n.types, (l) => Fb(l, a)) : a.flags & 1048576 ? kt(a.types, (l) => Fb(n, l)) : n.flags & 2097152 ? kt(n.types, (l) => Fb(l, a)) : n.flags & 58982400 ? Fb(Uu(n) || me, a) : zh(a) ? !!(n.flags & 67633152) : a === Ka ? !!(n.flags & 67633152) && !zh(n) : a === cl ? !!(n.flags & 524288) && Bie(n) : TE(n, C2(a)) || Ff(a) && !bL(a) && Fb(n, ls); } function xU(n, a) { return _m(n, a, Ad); } function E4(n, a) { return xU(n, a) || xU(a, n); } function Qu(n, a, l, u, p, g) { return t_(n, a, xd, l, u, p, g); } function ov(n, a, l, u, p, g) { return iie(n, a, xd, l, u, p, g, void 0); } function iie(n, a, l, u, p, g, x, R) { return _m(n, a, l) ? !0 : !u || !sD(p, n, a, l, g, x, R) ? t_(n, a, l, u, g, x, R) : !1; } function BCe(n) { return !!(n.flags & 16777216 || n.flags & 2097152 && kt(n.types, BCe)); } function sD(n, a, l, u, p, g, x) { if (!n || BCe(l)) return !1; if (!t_(a, l, u, void 0) && AQe(n, a, l, u, p, g, x)) return !0; switch (n.kind) { case 291: case 214: return sD(n.expression, a, l, u, p, g, x); case 223: switch (n.operatorToken.kind) { case 63: case 27: return sD(n.right, a, l, u, p, g, x); } break; case 207: return NQe(n, a, l, u, g, x); case 206: return DQe(n, a, l, u, g, x); case 289: return wQe(n, a, l, u, g, x); case 216: return CQe(n, a, l, u, g, x); } return !1; } function AQe(n, a, l, u, p, g, x) { const R = Ha(a, 0), M = Ha(a, 1); for (const J of [M, R]) if (kt(J, ($) => { const he = hs($); return !(he.flags & 131073) && t_(he, l, u, void 0); })) { const $ = x || {}; Qu(a, l, n, p, g, $); const he = $.errors[$.errors.length - 1]; return qo(he, Dr(n, J === M ? _.Did_you_mean_to_use_new_with_this_expression : _.Did_you_mean_to_call_this_expression)), !0; } return !1; } function CQe(n, a, l, u, p, g) { if (oo(n.body) || kt(n.parameters, SM)) return !1; const x = TS(a); if (!x) return !1; const R = Ha(l, 0); if (!Ne(R)) return !1; const M = n.body, J = hs(x), $ = Xr(rn(R, hs)); if (!t_(J, $, u, void 0)) { const he = M && sD(M, J, $, u, void 0, p, g); if (he) return he; const De = g || {}; if (t_(J, $, u, M, void 0, p, De), De.errors) return l.symbol && Ne(l.symbol.declarations) && qo(De.errors[De.errors.length - 1], Dr(l.symbol.declarations[0], _.The_expected_type_comes_from_the_return_type_of_this_signature)), !(Mc(n) & 2) && !cc(J, "then") && t_(Y4(J), $, u, void 0) && qo(De.errors[De.errors.length - 1], Dr(n, _.Did_you_mean_to_mark_this_function_as_async)), !0; } return !1; } function GCe(n, a, l) { const u = rv(a, l); if (u) return u; if (a.flags & 1048576) { const p = JCe(n, a); if (p) return rv(p, l); } } function UCe(n, a) { G4(n, a, !1); const l = NL(n, 1); return yD(), l; } function T4(n, a, l, u, p, g) { let x = !1; for (const R of n) { const { errorNode: M, innerExpression: J, nameType: $, errorMessage: he } = R; let De = GCe(a, l, $); if (!De || De.flags & 8388608) continue; let ke = rv(a, $); if (!ke) continue; const ft = dU($, void 0); if (!t_(ke, De, u, void 0)) { const Bt = J && sD(J, ke, De, u, void 0, p, g); if (x = !0, !Bt) { const Mn = g || {}, An = J ? UCe(J, ke) : ke; if (We && CU(An, De)) { const Xn = Dr(M, _.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target, Le(An), Le(De)); Xo.add(Xn), Mn.errors = [Xn]; } else { const Xn = !!(ft && (so(l, ft) || en).flags & 16777216), mn = !!(ft && (so(a, ft) || en).flags & 16777216); De = wE(De, Xn), ke = wE(ke, Xn && mn), t_(An, De, u, M, he, p, Mn) && An !== ke && t_(ke, De, u, M, he, p, Mn); } if (Mn.errors) { const Xn = Mn.errors[Mn.errors.length - 1], mn = Vh($) ? lm($) : void 0, xn = mn !== void 0 ? so(l, mn) : void 0; let gr = !1; if (!xn) { const an = d4(l, $); an && an.declaration && !Zn(an.declaration).hasNoDefaultLib && (gr = !0, qo(Xn, Dr(an.declaration, _.The_expected_type_comes_from_this_index_signature))); } if (!gr && (xn && Ne(xn.declarations) || l.symbol && Ne(l.symbol.declarations))) { const an = xn && Ne(xn.declarations) ? xn.declarations[0] : l.symbol.declarations[0]; Zn(an).hasNoDefaultLib || qo(Xn, Dr(an, _.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1, mn && !($.flags & 8192) ? Zi(mn) : Le($), Le(l))); } } } } } return x; } function LQe(n, a, l, u, p, g) { const x = uc(l, RU), R = uc(l, ($) => !RU($)), M = R !== ht ? Qae(13, 0, R, void 0) : void 0; let J = !1; for (let $ = n.next(); !$.done; $ = n.next()) { const { errorNode: he, innerExpression: De, nameType: ke, errorMessage: ft } = $.value; let Bt = M; const Mn = x !== ht ? GCe(a, x, ke) : void 0; if (Mn && !(Mn.flags & 8388608) && (Bt = M ? Xr([M, Mn]) : Mn), !Bt) continue; let An = rv(a, ke); if (!An) continue; const Xn = dU(ke, void 0); if (!t_(An, Bt, u, void 0)) { const mn = De && sD(De, An, Bt, u, void 0, p, g); if (J = !0, !mn) { const xn = g || {}, gr = De ? UCe(De, An) : An; if (We && CU(gr, Bt)) { const an = Dr(he, _.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target, Le(gr), Le(Bt)); Xo.add(an), xn.errors = [an]; } else { const an = !!(Xn && (so(x, Xn) || en).flags & 16777216), Gn = !!(Xn && (so(a, Xn) || en).flags & 16777216); Bt = wE(Bt, an), An = wE(An, an && Gn), t_(gr, Bt, u, he, ft, p, xn) && gr !== An && t_(An, Bt, u, he, ft, p, xn); } } } } return J; } function* IQe(n) { if (Ne(n.properties)) for (const a of n.properties) ST(a) || nae(Or(a.name)) || (yield { errorNode: a.name, innerExpression: a.initializer, nameType: Mf(Or(a.name)) }); } function* kQe(n, a) { if (!Ne(n.children)) return; let l = 0; for (let u = 0; u < n.children.length; u++) { const p = n.children[u], g = Rp(u - l), x = VCe(p, g, a); x ? yield x : l++; } } function VCe(n, a, l) { switch (n.kind) { case 291: return { errorNode: n, innerExpression: n.expression, nameType: a }; case 11: if (n.containsOnlyTriviaWhiteSpaces) break; return { errorNode: n, innerExpression: void 0, nameType: a, errorMessage: l() }; case 281: case 282: case 285: return { errorNode: n, innerExpression: n, nameType: a }; default: return D.assertNever(n, "Found invalid jsx child"); } } function wQe(n, a, l, u, p, g) { let x = T4(IQe(n), a, l, u, p, g), R; if (xh(n.parent) && Ey(n.parent.parent)) { const J = n.parent.parent, $ = eV(j2(n)), he = $ === void 0 ? "children" : Zi($), De = Mf(he), ke = Dd(l, De), ft = IN(J.children); if (!Ne(ft)) return x; const Bt = Ne(ft) > 1; let Mn, An; if (Nre(!1) !== So) { const mn = $Ae(Ie); Mn = uc(ke, (xn) => Eo(xn, mn)), An = uc(ke, (xn) => !Eo(xn, mn)); } else Mn = uc(ke, RU), An = uc(ke, (mn) => !RU(mn)); if (Bt) { if (Mn !== ht) { const mn = Dp(ZU(J, 0)), xn = kQe(J, M); x = LQe(xn, mn, Mn, u, p, g) || x; } else if (!_m(Dd(a, De), ke, u)) { x = !0; const mn = qe(J.openingElement.tagName, _.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided, he, Le(ke)); g && g.skipLogging && (g.errors || (g.errors = [])).push(mn); } } else if (An !== ht) { const mn = ft[0], xn = VCe(mn, De, M); xn && (x = T4(function* () { yield xn; }(), a, l, u, p, g) || x); } else if (!_m(Dd(a, De), ke, u)) { x = !0; const mn = qe(J.openingElement.tagName, _.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided, he, Le(ke)); g && g.skipLogging && (g.errors || (g.errors = [])).push(mn); } } return x; function M() { if (!R) { const J = bc(n.parent.tagName), $ = eV(j2(n)), he = $ === void 0 ? "children" : Zi($), De = Dd(l, Mf(he)), ke = _._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2; R = { ...ke, key: "!!ALREADY FORMATTED!!", message: Vz(void 0, ke, J, he, Le(De)) }; } return R; } } function* jCe(n, a) { const l = Ne(n.elements); if (l) for (let u = 0; u < l; u++) { if (EL(a) && !so(a, "" + u)) continue; const p = n.elements[u]; if (Ic(p)) continue; const g = Rp(u); yield { errorNode: p, innerExpression: p, nameType: g }; } } function DQe(n, a, l, u, p, g) { if (l.flags & 134479868) return !1; if (EL(a)) return T4(jCe(n, l), a, l, u, p, g); G4(n, l, !1); const x = oIe(n, 1, !0); return yD(), EL(x) ? T4(jCe(n, l), x, l, u, p, g) : !1; } function* RQe(n) { if (Ne(n.properties)) for (const a of n.properties) { if (Ix(a)) continue; const l = hL(Lr(a), 8576); if (!(!l || l.flags & 131072)) switch (a.kind) { case 175: case 174: case 171: case 300: yield { errorNode: a.name, innerExpression: void 0, nameType: l }; break; case 299: yield { errorNode: a.name, innerExpression: a.initializer, nameType: l, errorMessage: XR(a.name) ? _.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1 : void 0 }; break; default: D.assertNever(a); } } } function NQe(n, a, l, u, p, g) { return l.flags & 134479868 ? !1 : T4(RQe(n), a, l, u, p, g); } function HCe(n, a, l, u, p) { return t_(n, a, Ad, l, u, p); } function OQe(n, a, l) { return aie(n, a, l ? 4 : 0, !1, void 0, void 0, rie, void 0) !== 0; } function AU(n) { if (!n.typeParameters && (!n.thisParameter || Es(K4(n.thisParameter))) && n.parameters.length === 1 && mu(n)) { const a = K4(n.parameters[0]); return !!((Ff(a) ? _s(a)[0] : a).flags & 131073 && hs(n).flags & 3); } return !1; } function aie(n, a, l, u, p, g, x, R) { if (n === a || !(l & 16 && AU(n)) && AU(a)) return -1; if (l & 16 && AU(n) && !AU(a)) return 0; const M = Xd(a); if (!hm(a) && (l & 8 ? hm(n) || Xd(n) > M : mm(n) > M)) return 0; n.typeParameters && n.typeParameters !== a.typeParameters && (a = PYe(a), n = FIe(n, a, void 0, x)); const $ = Xd(n), he = xD(n), De = xD(a); (he || De) && qi(he || De, R); const ke = a.declaration ? a.declaration.kind : 0, ft = !(l & 3) && le && ke !== 171 && ke !== 170 && ke !== 173; let Bt = -1; const Mn = wb(n); if (Mn && Mn !== Rt) { const mn = wb(a); if (mn) { const xn = !ft && x(Mn, mn, !1) || x(mn, Mn, u); if (!xn) return u && p(_.The_this_types_of_each_signature_are_incompatible), 0; Bt &= xn; } } const An = he || De ? Math.min($, M) : Math.max($, M), Xn = he || De ? An - 1 : -1; for (let mn = 0; mn < An; mn++) { const xn = mn === Xn ? TD(n, mn) : BE(n, mn), gr = mn === Xn ? TD(a, mn) : BE(a, mn); if (xn && gr) { const an = l & 3 ? void 0 : TS(Jg(xn)), Gn = l & 3 ? void 0 : TS(Jg(gr)); let Yr = an && Gn && !Zf(an) && !Zf(Gn) && (xu(xn) & 50331648) === (xu(gr) & 50331648) ? aie(Gn, an, l & 8 | (ft ? 2 : 1), u, p, g, x, R) : !(l & 3) && !ft && x(xn, gr, !1) || x(gr, xn, u); if (Yr && l & 8 && mn >= mm(n) && mn < mm(a) && x(xn, gr, !1) && (Yr = 0), !Yr) return u && p(_.Types_of_parameters_0_and_1_are_incompatible, Zi(DL(n, mn)), Zi(DL(a, mn))), 0; Bt &= Yr; } } if (!(l & 4)) { const mn = Tre(a) ? Ie : a.declaration && Op(a.declaration) ? Gu(ns(a.declaration.symbol)) : hs(a); if (mn === Rt || mn === Ie) return Bt; const xn = Tre(n) ? Ie : n.declaration && Op(n.declaration) ? Gu(ns(n.declaration.symbol)) : hs(n), gr = Zf(a); if (gr) { const an = Zf(n); if (an) Bt &= PQe(an, gr, u, p, x); else if (zce(gr)) return u && p(_.Signature_0_must_be_a_type_predicate, se(n)), 0; } else Bt &= l & 1 && x(mn, xn, !1) || x(xn, mn, u), !Bt && u && g && g(xn, mn); } return Bt; } function PQe(n, a, l, u, p) { if (n.kind !== a.kind) return l && (u(_.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard), u(_.Type_predicate_0_is_not_assignable_to_1, Yc(n), Yc(a))), 0; if ((n.kind === 1 || n.kind === 3) && n.parameterIndex !== a.parameterIndex) return l && (u(_.Parameter_0_is_not_in_the_same_position_as_parameter_1, n.parameterName, a.parameterName), u(_.Type_predicate_0_is_not_assignable_to_1, Yc(n), Yc(a))), 0; const g = n.type === a.type ? -1 : n.type && a.type ? p(n.type, a.type, l) : 0; return g === 0 && l && u(_.Type_predicate_0_is_not_assignable_to_1, Yc(n), Yc(a)), g; } function MQe(n, a) { const l = eD(n), u = eD(a), p = hs(l), g = hs(u); return g === Rt || _m(g, p, xd) || _m(p, g, xd) ? OQe(l, u, !0) : !1; } function oie(n) { return n !== Aa && n.properties.length === 0 && n.callSignatures.length === 0 && n.constructSignatures.length === 0 && n.indexInfos.length === 0; } function Wh(n) { return n.flags & 524288 ? !Pf(n) && oie(ip(n)) : n.flags & 67108864 ? !0 : n.flags & 1048576 ? kt(n.types, Wh) : n.flags & 2097152 ? Vn(n.types, Wh) : !1; } function zh(n) { return !!(Qr(n) & 16 && (n.members && oie(n) || n.symbol && n.symbol.flags & 2048 && $y(n.symbol).size === 0)); } function FQe(n) { if (H && n.flags & 1048576) { if (!(n.objectFlags & 33554432)) { const a = n.types; n.objectFlags |= 33554432 | (a.length >= 3 && a[0].flags & 32768 && a[1].flags & 65536 && kt(a, zh) ? 67108864 : 0); } return !!(n.objectFlags & 67108864); } return !1; } function yL(n) { return !!((n.flags & 1048576 ? n.types[0] : n).flags & 32768); } function WCe(n) { return n.flags & 524288 && !Pf(n) && fs(n).length === 0 && Eu(n).length === 1 && !!nh(n, ce) || n.flags & 3145728 && Vn(n.types, WCe) || !1; } function sie(n, a, l) { const u = n.flags & 8 ? fd(n) : n, p = a.flags & 8 ? fd(a) : a; if (u === p) return !0; if (u.escapedName !== p.escapedName || !(u.flags & 256) || !(p.flags & 256)) return !1; const g = go(u) + "," + go(p), x = cb.get(g); if (x !== void 0 && !(!(x & 4) && x & 2 && l)) return !!(x & 1); const R = ar(p); for (const M of fs(ar(u))) if (M.flags & 8) { const J = so(R, M.escapedName); if (!J || !(J.flags & 8)) return l ? (l(_.Property_0_is_missing_in_type_1, Nl(M), Le(Bs(p), void 0, 64)), cb.set(g, 6)) : cb.set(g, 2), !1; } return cb.set(g, 1), !0; } function lD(n, a, l, u) { const p = n.flags, g = a.flags; return g & 1 || p & 131072 || n === Nt || g & 2 && !(l === Y_ && p & 1) ? !0 : g & 131072 ? !1 : !!(p & 402653316 && g & 4 || p & 128 && p & 1024 && g & 128 && !(g & 1024) && n.value === a.value || p & 296 && g & 8 || p & 256 && p & 1024 && g & 256 && !(g & 1024) && n.value === a.value || p & 2112 && g & 64 || p & 528 && g & 16 || p & 12288 && g & 4096 || p & 32 && g & 32 && n.symbol.escapedName === a.symbol.escapedName && sie(n.symbol, a.symbol, u) || p & 1024 && g & 1024 && (p & 1048576 && g & 1048576 && sie(n.symbol, a.symbol, u) || p & 2944 && g & 2944 && n.value === a.value && sie(n.symbol, a.symbol, u)) || p & 32768 && (!H && !(g & 3145728) || g & 49152) || p & 65536 && (!H && !(g & 3145728) || g & 65536) || p & 524288 && g & 67108864 && !(l === Y_ && zh(n) && !(Qr(n) & 8192)) || (l === xd || l === Ad) && (p & 1 || p & 8 && (g & 32 || g & 256 && g & 1024) || p & 256 && !(p & 1024) && (g & 32 || g & 256 && g & 1024 && n.value === a.value) || FQe(a))); } function _m(n, a, l) { if (Pb(n) && (n = n.regularType), Pb(a) && (a = a.regularType), n === a) return !0; if (l !== Cd) { if (l === Ad && !(a.flags & 131072) && lD(a, n, l) || lD(n, a, l)) return !0; } else if (!((n.flags | a.flags) & 61865984)) { if (n.flags !== a.flags) return !1; if (n.flags & 67358815) return !0; } if (n.flags & 524288 && a.flags & 524288) { const u = l.get(fie(n, a, 0, l, !1)); if (u !== void 0) return !!(u & 1); } return n.flags & 469499904 || a.flags & 469499904 ? t_(n, a, l, void 0) : !1; } function zCe(n, a) { return Qr(n) & 2048 && nae(a.escapedName); } function S4(n, a) { for (; ; ) { const l = Pb(n) ? n.regularType : Qr(n) & 4 ? n.node ? jg(n.target, _s(n)) : mie(n) || n : n.flags & 3145728 ? BQe(n, a) : n.flags & 33554432 ? a ? n.baseType : kre(n) : n.flags & 25165824 ? Wg(n, a) : n; if (l === n) return l; n = l; } } function BQe(n, a) { const l = ap(n); if (l !== n) return l; if (n.flags & 2097152 && kt(n.types, zh)) { const u = Xl(n.types, (p) => S4(p, a)); if (u !== n.types) return Lo(u); } return n; } function t_(n, a, l, u, p, g, x) { var R; let M, J, $, he, De, ke = 0, ft = 0, Bt = 0, Mn = 0, An = !1, Xn = 0, mn, xn; D.assert(l !== Cd || !u, "no error reporting in identity checking"); const gr = ia(n, a, 3, !!u, p); if (xn && Yr(), An) { (R = hi) == null || R.instant(hi.Phase.CheckTypes, "checkTypeRelatedTo_DepthLimit", { sourceId: n.id, targetId: a.id, depth: ft, targetDepth: Bt }); const tt = qe(u || B, _.Excessive_stack_depth_comparing_types_0_and_1, Le(n), Le(a)); x && (x.errors || (x.errors = [])).push(tt); } else if (M) { if (g) { const Qt = g(); Qt && (ode(Qt, M), M = Qt); } let tt; if (p && u && !gr && n.symbol) { const Qt = Ui(n.symbol); if (Qt.originatingImport && !tf(Qt.originatingImport) && t_(ar(Qt.target), a, l, void 0)) { const pr = Dr(Qt.originatingImport, _.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); tt = Fn(tt, pr); } } const Tt = rg(Zn(u), u, M, tt); J && qo(Tt, ...J), x && (x.errors || (x.errors = [])).push(Tt), (!x || !x.skipLogging) && Xo.add(Tt); } return u && x && x.skipLogging && gr === 0 && D.assert(!!x.errors, "missed opportunity to interact with error."), gr !== 0; function an(tt) { M = tt.errorInfo, mn = tt.lastSkippedInfo, xn = tt.incompatibleStack, Xn = tt.overrideNextErrorInfo, J = tt.relatedInfo; } function Gn() { return { errorInfo: M, lastSkippedInfo: mn, incompatibleStack: xn == null ? void 0 : xn.slice(), overrideNextErrorInfo: Xn, relatedInfo: J == null ? void 0 : J.slice() }; } function Jn(tt, Tt, Qt, zn, pr) { Xn++, mn = void 0, (xn || (xn = [])).push([tt, Tt, Qt, zn, pr]); } function Yr() { const tt = xn || []; xn = void 0; const Tt = mn; if (mn = void 0, tt.length === 1) { ei(...tt[0]), Tt && Ya(void 0, ...Tt); return; } let Qt = ""; const zn = []; for (; tt.length; ) { const [pr, ...Ln] = tt.pop(); switch (pr.code) { case _.Types_of_property_0_are_incompatible.code: { Qt.indexOf("new ") === 0 && (Qt = `(${Qt})`); const Tr = "" + Ln[0]; Qt.length === 0 ? Qt = `${Tr}` : w_(Tr, $o(Y)) ? Qt = `${Qt}.${Tr}` : Tr[0] === "[" && Tr[Tr.length - 1] === "]" ? Qt = `${Qt}${Tr}` : Qt = `${Qt}[${Tr}]`; break; } case _.Call_signature_return_types_0_and_1_are_incompatible.code: case _.Construct_signature_return_types_0_and_1_are_incompatible.code: case _.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: case _.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: { if (Qt.length === 0) { let Tr = pr; pr.code === _.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? Tr = _.Call_signature_return_types_0_and_1_are_incompatible : pr.code === _.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code && (Tr = _.Construct_signature_return_types_0_and_1_are_incompatible), zn.unshift([Tr, Ln[0], Ln[1]]); } else { const Tr = pr.code === _.Construct_signature_return_types_0_and_1_are_incompatible.code || pr.code === _.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "new " : "", Gr = pr.code === _.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code || pr.code === _.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "" : "..."; Qt = `${Tr}${Qt}(${Gr})`; } break; } case _.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code: { zn.unshift([_.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, Ln[0], Ln[1]]); break; } case _.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code: { zn.unshift([_.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, Ln[0], Ln[1], Ln[2]]); break; } default: return D.fail(`Unhandled Diagnostic: ${pr.code}`); } } Qt ? ei(Qt[Qt.length - 1] === ")" ? _.The_types_returned_by_0_are_incompatible_between_these_types : _.The_types_of_0_are_incompatible_between_these_types, Qt) : zn.shift(); for (const [pr, ...Ln] of zn) { const Tr = pr.elidedInCompatabilityPyramid; pr.elidedInCompatabilityPyramid = !1, ei(pr, ...Ln), pr.elidedInCompatabilityPyramid = Tr; } Tt && Ya(void 0, ...Tt); } function ei(tt, Tt, Qt, zn, pr) { D.assert(!!u), xn && Yr(), !tt.elidedInCompatabilityPyramid && (M = Da(M, tt, Tt, Qt, zn, pr)); } function fa(tt) { D.assert(!!M), J ? J.push(tt) : J = [tt]; } function Ya(tt, Tt, Qt) { xn && Yr(); const [zn, pr] = tn(Tt, Qt); let Ln = Tt, Tr = zn; if (cD(Tt) && !lie(Qt) && (Ln = sv(Tt), D.assert(!Eo(Ln, Qt), "generalized source shouldn't be assignable"), Tr = Ar(Ln)), (Qt.flags & 8388608 && !(Tt.flags & 8388608) ? Qt.objectType.flags : Qt.flags) & 262144 && Qt !== ks && Qt !== pl) { const Mi = Uu(Qt); let Sa; Mi && (Eo(Ln, Mi) || (Sa = Eo(Tt, Mi))) ? ei(_._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2, Sa ? zn : Tr, pr, Le(Mi)) : (M = void 0, ei(_._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1, pr, Tr)); } if (tt) tt === _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1 && We && qCe(Tt, Qt).length && (tt = _.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 (l === Ad) tt = _.Type_0_is_not_comparable_to_type_1; else if (zn === pr) tt = _.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated; else if (We && qCe(Tt, Qt).length) tt = _.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 (Tt.flags & 128 && Qt.flags & 1048576) { const Mi = Htt(Tt, Qt); if (Mi) { ei(_.Type_0_is_not_assignable_to_type_1_Did_you_mean_2, Tr, pr, Le(Mi)); return; } } tt = _.Type_0_is_not_assignable_to_type_1; } ei(tt, Tr, pr); } function gc(tt, Tt) { const Qt = vi(tt.symbol) ? Le(tt, tt.symbol.valueDeclaration) : Le(tt), zn = vi(Tt.symbol) ? Le(Tt, Tt.symbol.valueDeclaration) : Le(Tt); (ul === tt && ce === Tt || Vd === tt && pt === Tt || Ul === tt && we === Tt || JAe() === tt && q === Tt) && ei(_._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible, zn, Qt); } function Bf(tt, Tt, Qt) { return Oo(tt) ? tt.target.readonly && wU(Tt) ? (Qt && ei(_.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, Le(tt), Le(Tt)), !1) : kE(Tt) : bL(tt) && wU(Tt) ? (Qt && ei(_.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, Le(tt), Le(Tt)), !1) : Oo(Tt) ? Ff(tt) : !0; } function mf(tt, Tt, Qt) { return ia(tt, Tt, 3, Qt); } function ia(tt, Tt, Qt = 3, zn = !1, pr, Ln = 0) { if (tt.flags & 524288 && Tt.flags & 134348796) return l === Ad && !(Tt.flags & 131072) && lD(Tt, tt, l) || lD(tt, Tt, l, zn ? ei : void 0) ? -1 : (zn && Un(tt, Tt, tt, Tt, pr), 0); const Tr = S4(tt, !1); let Gr = S4(Tt, !0); if (Tr === Gr) return -1; if (l === Cd) return Tr.flags !== Gr.flags ? 0 : Tr.flags & 67358815 ? -1 : (sr(Tr, Gr), Qn(Tr, Gr, !1, 0, Qt)); if (Tr.flags & 262144 && xE(Tr) === Gr) return -1; if (Tr.flags & 470302716 && Gr.flags & 1048576) { const Mi = Gr.types, Sa = Mi.length === 2 && Mi[0].flags & 98304 ? Mi[1] : Mi.length === 3 && Mi[0].flags & 98304 && Mi[1].flags & 98304 ? Mi[2] : void 0; if (Sa && !(Sa.flags & 98304) && (Gr = S4(Sa, !0), Tr === Gr)) return -1; } if (l === Ad && !(Gr.flags & 131072) && lD(Gr, Tr, l) || lD(Tr, Gr, l, zn ? ei : void 0)) return -1; if (Tr.flags & 469499904 || Gr.flags & 469499904) { if (!(Ln & 2) && L0(Tr) && Qr(Tr) & 8192 && Fa(Tr, Gr, zn)) return zn && Ya(pr, Tr, Tt.aliasSymbol ? Tt : Gr), 0; const Sa = (l !== Ad || op(Tr)) && !(Ln & 2) && Tr.flags & 136970236 && Tr !== Ka && Gr.flags & 2621440 && KCe(Gr) && (fs(Tr).length > 0 || RV(Tr)), Wa = !!(Qr(Tr) & 2048); if (Sa && !UQe(Tr, Gr, Wa)) { if (zn) { const Qa = Le(tt.aliasSymbol ? tt : Tr), Po = Le(Tt.aliasSymbol ? Tt : Gr), Io = Ha(Tr, 0), Ls = Ha(Tr, 1); Io.length > 0 && ia(hs(Io[0]), Gr, 1, !1) || Ls.length > 0 && ia(hs(Ls[0]), Gr, 1, !1) ? ei(_.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it, Qa, Po) : ei(_.Type_0_has_no_properties_in_common_with_type_1, Qa, Po); } return 0; } sr(Tr, Gr); const di = Tr.flags & 1048576 && Tr.types.length < 4 && !(Gr.flags & 1048576) || Gr.flags & 1048576 && Gr.types.length < 4 && !(Tr.flags & 469499904) ? Yo(Tr, Gr, zn, Ln) : Qn(Tr, Gr, zn, Ln, Qt); if (di) return di; } return zn && Un(tt, Tt, Tr, Gr, pr), 0; } function Un(tt, Tt, Qt, zn, pr) { var Ln, Tr; const Gr = !!mie(tt), Mi = !!mie(Tt); Qt = tt.aliasSymbol || Gr ? tt : Qt, zn = Tt.aliasSymbol || Mi ? Tt : zn; let Sa = Xn > 0; if (Sa && Xn--, Qt.flags & 524288 && zn.flags & 524288) { const Wa = M; Bf(Qt, zn, !0), M !== Wa && (Sa = !!M); } if (Qt.flags & 524288 && zn.flags & 134348796) gc(Qt, zn); else if (Qt.symbol && Qt.flags & 524288 && Ka === Qt) ei(_.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead); else if (Qr(Qt) & 2048 && zn.flags & 2097152) { const Wa = zn.types, $a = Vb(Sf.IntrinsicAttributes, u), di = Vb(Sf.IntrinsicClassAttributes, u); if (!Zo($a) && !Zo(di) && (Ii(Wa, $a) || Ii(Wa, di))) return; } else M = pre(M, Tt); if (!pr && Sa) { mn = [Qt, zn]; return; } if (Ya(pr, Qt, zn), Qt.flags & 262144 && ((Tr = (Ln = Qt.symbol) == null ? void 0 : Ln.declarations) != null && Tr[0]) && !xE(Qt)) { const Wa = EU(Qt); if (Wa.constraint = qi(zn, Mb(Qt, Wa)), Yw(Wa)) { const $a = Le(zn, Qt.symbol.declarations[0]); fa(Dr(Qt.symbol.declarations[0], _.This_type_parameter_might_need_an_extends_0_constraint, $a)); } } } function sr(tt, Tt) { if (hi && tt.flags & 3145728 && Tt.flags & 3145728) { const Qt = tt, zn = Tt; if (Qt.objectFlags & zn.objectFlags & 32768) return; const pr = Qt.types.length, Ln = zn.types.length; pr * Ln > 1e6 && hi.instant(hi.Phase.CheckTypes, "traceUnionsOrIntersectionsTooLarge_DepthLimit", { sourceId: tt.id, sourceSize: pr, targetId: Tt.id, targetSize: Ln, pos: u == null ? void 0 : u.pos, end: u == null ? void 0 : u.end }); } } function Xi(tt, Tt) { return Xr(Cu(tt, (zn, pr) => { var Ln; pr = Vu(pr); const Tr = pr.flags & 3145728 ? _re(pr, Tt) : Ib(pr, Tt), Gr = Tr && ar(Tr) || ((Ln = k2(pr, Tt)) == null ? void 0 : Ln.type) || je; return Fn(zn, Gr); }, void 0) || nt); } function Fa(tt, Tt, Qt) { var zn; if (!j4(Tt) || !Te && Qr(Tt) & 4096) return !1; const pr = !!(Qr(tt) & 2048); if ((l === xd || l === Ad) && (hD(Ka, Tt) || !pr && Wh(Tt))) return !1; let Ln = Tt, Tr; Tt.flags & 1048576 && (Ln = iDe(tt, Tt, ia) || Wst(Tt), Tr = Ln.flags & 1048576 ? Ln.types : [Ln]); for (const Gr of fs(tt)) if (ea(Gr, tt.symbol) && !zCe(tt, Gr)) { if (!oae(Ln, Gr.escapedName, pr)) { if (Qt) { const Mi = uc(Ln, j4); if (!u) return D.fail(); if (w1(u) || qu(u) || qu(u.parent)) { Gr.valueDeclaration && $p(Gr.valueDeclaration) && Zn(u) === Zn(Gr.valueDeclaration.name) && (u = Gr.valueDeclaration.name); const Sa = S(Gr), Wa = wIe(Sa, Mi), $a = Wa ? S(Wa) : void 0; $a ? ei(_.Property_0_does_not_exist_on_type_1_Did_you_mean_2, Sa, Le(Mi), $a) : ei(_.Property_0_does_not_exist_on_type_1, Sa, Le(Mi)); } else { const Sa = ((zn = tt.symbol) == null ? void 0 : zn.declarations) && Wc(tt.symbol.declarations); let Wa; if (Gr.valueDeclaration && nr(Gr.valueDeclaration, ($a) => $a === Sa) && Zn(Sa) === Zn(u)) { const $a = Gr.valueDeclaration; D.assertNode($a, dy), u = $a; const di = $a.name; Ve(di) && (Wa = pae(di, Mi)); } Wa !== void 0 ? ei(_.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2, S(Gr), Le(Mi), Wa) : ei(_.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, S(Gr), Le(Mi)); } } return !0; } if (Tr && !ia(ar(Gr), Xi(Tr, Gr.escapedName), 3, Qt)) return Qt && Jn(_.Types_of_property_0_are_incompatible, S(Gr)), !0; } return !1; } function ea(tt, Tt) { return tt.valueDeclaration && Tt.valueDeclaration && tt.valueDeclaration.parent === Tt.valueDeclaration; } function Yo(tt, Tt, Qt, zn) { if (tt.flags & 1048576) return l === Ad ? ju(tt, Tt, Qt && !(tt.flags & 134348796), zn) : Ee(tt, Tt, Qt && !(tt.flags & 134348796), zn); if (Tt.flags & 1048576) return ml(k4(tt), Tt, Qt && !(tt.flags & 134348796) && !(Tt.flags & 134348796)); if (Tt.flags & 2097152) return To(tt, Tt, Qt, 2); if (l === Ad && Tt.flags & 134348796) { const pr = Xl(tt.types, (Ln) => Ln.flags & 465829888 ? Uu(Ln) || me : Ln); if (pr !== tt.types) { if (tt = Lo(pr), tt.flags & 131072) return 0; if (!(tt.flags & 2097152)) return ia(tt, Tt, 1, !1) || ia(Tt, tt, 1, !1); } } return ju(tt, Tt, !1, 1); } function Rs(tt, Tt) { let Qt = -1; const zn = tt.types; for (const pr of zn) { const Ln = ml(pr, Tt, !1); if (!Ln) return 0; Qt &= Ln; } return Qt; } function ml(tt, Tt, Qt) { const zn = Tt.types; if (Tt.flags & 1048576) { if (Rb(zn, tt)) return -1; const pr = TLe(Tt, tt); if (pr) { const Ln = ia(tt, pr, 2, !1); if (Ln) return Ln; } } for (const pr of zn) { const Ln = ia(tt, pr, 2, !1); if (Ln) return Ln; } if (Qt) { const pr = JCe(tt, Tt, ia); pr && ia(tt, pr, 2, !0); } return 0; } function To(tt, Tt, Qt, zn) { let pr = -1; const Ln = Tt.types; for (const Tr of Ln) { const Gr = ia(tt, Tr, 2, Qt, void 0, zn); if (!Gr) return 0; pr &= Gr; } return pr; } function ju(tt, Tt, Qt, zn) { const pr = tt.types; if (tt.flags & 1048576 && Rb(pr, Tt)) return -1; const Ln = pr.length; for (let Tr = 0; Tr < Ln; Tr++) { const Gr = ia(pr[Tr], Tt, 1, Qt && Tr === Ln - 1, void 0, zn); if (Gr) return Gr; } return 0; } function ct(tt, Tt) { return tt.flags & 1048576 && Tt.flags & 1048576 && !(tt.types[0].flags & 32768) && Tt.types[0].flags & 32768 ? xL(Tt, -32769) : Tt; } function Ee(tt, Tt, Qt, zn) { let pr = -1; const Ln = tt.types, Tr = ct(tt, Tt); for (let Gr = 0; Gr < Ln.length; Gr++) { const Mi = Ln[Gr]; if (Tr.flags & 1048576 && Ln.length >= Tr.types.length && Ln.length % Tr.types.length === 0) { const Wa = ia(Mi, Tr.types[Gr % Tr.types.length], 3, !1, void 0, zn); if (Wa) { pr &= Wa; continue; } } const Sa = ia(Mi, Tt, 1, Qt, void 0, zn); if (!Sa) return 0; pr &= Sa; } return pr; } function er(tt = nt, Tt = nt, Qt = nt, zn, pr) { if (tt.length !== Tt.length && l === Cd) return 0; const Ln = tt.length <= Tt.length ? tt.length : Tt.length; let Tr = -1; for (let Gr = 0; Gr < Ln; Gr++) { const Mi = Gr < Qt.length ? Qt[Gr] : 1, Sa = Mi & 7; if (Sa !== 4) { const Wa = tt[Gr], $a = Tt[Gr]; let di = -1; if (Mi & 8 ? di = l === Cd ? ia(Wa, $a, 3, !1) : oD(Wa, $a) : Sa === 1 ? di = ia(Wa, $a, 3, zn, void 0, pr) : Sa === 2 ? di = ia($a, Wa, 3, zn, void 0, pr) : Sa === 3 ? (di = ia($a, Wa, 3, !1), di || (di = ia(Wa, $a, 3, zn, void 0, pr))) : (di = ia(Wa, $a, 3, zn, void 0, pr), di && (di &= ia($a, Wa, 3, zn, void 0, pr))), !di) return 0; Tr &= di; } } return Tr; } function Qn(tt, Tt, Qt, zn, pr) { var Ln, Tr, Gr; if (An) return 0; const Mi = fie(tt, Tt, zn, l, !1), Sa = l.get(Mi); if (Sa !== void 0 && !(Qt && Sa & 2 && !(Sa & 4))) { if (ui) { const Io = Sa & 24; Io & 8 && qi(tt, wn), Io & 16 && qi(tt, la); } return Sa & 1 ? -1 : 0; } if (!$) $ = [], he = [], De = []; else { const Io = Mi.startsWith("*") ? fie(tt, Tt, zn, l, !0) : void 0; for (let Ls = 0; Ls < ke; Ls++) if (Mi === $[Ls] || Io && Io === $[Ls]) return 3; if (ft === 100 || Bt === 100) return An = !0, 0; } const Wa = ke; $[ke] = Mi, ke++; const $a = Mn; pr & 1 && (he[ft] = tt, ft++, !(Mn & 1) && C4(tt, he, ft) && (Mn |= 1)), pr & 2 && (De[Bt] = Tt, Bt++, !(Mn & 2) && C4(Tt, De, Bt) && (Mn |= 2)); let di, Qa = 0; ui && (di = ui, ui = (Io) => (Qa |= Io ? 16 : 8, di(Io))); let Po; if (Mn === 3 ? ((Ln = hi) == null || Ln.instant(hi.Phase.CheckTypes, "recursiveTypeRelatedTo_DepthLimit", { sourceId: tt.id, sourceIdStack: he.map((Io) => Io.id), targetId: Tt.id, targetIdStack: De.map((Io) => Io.id), depth: ft, targetDepth: Bt }), Po = 3) : ((Tr = hi) == null || Tr.push(hi.Phase.CheckTypes, "structuredTypeRelatedTo", { sourceId: tt.id, targetId: Tt.id }), Po = Er(tt, Tt, Qt, zn), (Gr = hi) == null || Gr.pop()), ui && (ui = di), pr & 1 && ft--, pr & 2 && Bt--, Mn = $a, Po) { if (Po === -1 || ft === 0 && Bt === 0) { if (Po === -1 || Po === 3) for (let Io = Wa; Io < ke; Io++) l.set($[Io], 1 | Qa); ke = Wa; } } else l.set(Mi, (Qt ? 4 : 0) | 2 | Qa), ke = Wa; return Po; } function Er(tt, Tt, Qt, zn) { const pr = Gn(); let Ln = Ir(tt, Tt, Qt, zn, pr); if (l !== Cd) { if (!Ln && (tt.flags & 2097152 || tt.flags & 262144 && Tt.flags & 1048576)) { const Tr = vYe(tt.flags & 2097152 ? tt.types : [tt], !!(Tt.flags & 1048576)); Tr && rh(Tr, (Gr) => Gr !== tt) && (Ln = ia(Tr, Tt, 1, !1, void 0, zn)); } Ln && !(zn & 2) && Tt.flags & 2097152 && !Nb(Tt) && tt.flags & 2621440 ? (Ln &= Kt(tt, Tt, Qt, void 0, !1, 0), Ln && L0(tt) && Qr(tt) & 8192 && (Ln &= os(tt, Tt, !1, Qt, 0))) : Ln && pU(Tt) && !kE(Tt) && tt.flags & 2097152 && Vu(tt).flags & 3670016 && !kt(tt.types, (Tr) => Tr === Tt || !!(Qr(Tr) & 262144)) && (Ln &= Kt(tt, Tt, Qt, void 0, !0, zn)); } return Ln && an(pr), Ln; } function Ir(tt, Tt, Qt, zn, pr) { let Ln, Tr, Gr = !1, Mi = tt.flags; const Sa = Tt.flags; if (l === Cd) { if (Mi & 3145728) { let di = Rs(tt, Tt); return di && (di &= Rs(Tt, tt)), di; } if (Mi & 4194304) return ia(tt.type, Tt.type, 3, !1); if (Mi & 8388608 && (Ln = ia(tt.objectType, Tt.objectType, 3, !1)) && (Ln &= ia(tt.indexType, Tt.indexType, 3, !1)) || Mi & 16777216 && tt.root.isDistributive === Tt.root.isDistributive && (Ln = ia(tt.checkType, Tt.checkType, 3, !1)) && (Ln &= ia(tt.extendsType, Tt.extendsType, 3, !1)) && (Ln &= ia(E0(tt), E0(Tt), 3, !1)) && (Ln &= ia(T0(tt), T0(Tt), 3, !1)) || Mi & 33554432 && (Ln = ia(tt.baseType, Tt.baseType, 3, !1)) && (Ln &= ia(tt.constraint, Tt.constraint, 3, !1))) return Ln; if (!(Mi & 524288)) return 0; } else if (Mi & 3145728 || Sa & 3145728) { if (Ln = Yo(tt, Tt, Qt, zn)) return Ln; if (!(Mi & 465829888 || Mi & 524288 && Sa & 1048576 || Mi & 2097152 && Sa & 467402752)) return 0; } if (Mi & 17301504 && tt.aliasSymbol && tt.aliasTypeArguments && tt.aliasSymbol === Tt.aliasSymbol && !(LU(tt) || LU(Tt))) { const di = XCe(tt.aliasSymbol); if (di === nt) return 1; const Qa = Ui(tt.aliasSymbol).typeParameters, Po = um(Qa), Io = tv(tt.aliasTypeArguments, Qa, Po, dr(tt.aliasSymbol.valueDeclaration)), Ls = tv(Tt.aliasTypeArguments, Qa, Po, dr(tt.aliasSymbol.valueDeclaration)), ou = $a(Io, Ls, di, zn); if (ou !== void 0) return ou; } if (nLe(tt) && !tt.target.readonly && (Ln = ia(_s(tt)[0], Tt, 1)) || nLe(Tt) && (Tt.target.readonly || wU(Uu(tt) || tt)) && (Ln = ia(tt, _s(Tt)[0], 2))) return Ln; if (Sa & 262144) { if (Qr(tt) & 32 && !tt.declaration.nameType && ia(fm(Tt), kp(tt), 3) && !(cm(tt) & 4)) { const di = jh(tt), Qa = Dd(Tt, rp(tt)); if (Ln = ia(di, Qa, 3, Qt)) return Ln; } if (l === Ad && Mi & 262144) { let di = bu(tt); if (di && Yw(tt)) for (; di && Jh(di, (Qa) => !!(Qa.flags & 262144)); ) { if (Ln = ia(di, Tt, 1, !1)) return Ln; di = bu(di); } return 0; } } else if (Sa & 4194304) { const di = Tt.type; if (Mi & 4194304 && (Ln = ia(di, tt.type, 3, !1))) return Ln; if (Oo(di)) { if (Ln = ia(tt, nCe(di), 2, Qt)) return Ln; } else { const Qa = sre(di); if (Qa) { if (ia(tt, fm(Qa, Tt.stringsOnly), 2, Qt) === -1) return -1; } else if (Pf(di)) { const Po = Qy(di), Io = kp(di); let Ls; if (Po && Xw(di)) { const ou = Vu(fL(di)), cp = []; are(ou, 8576, !1, (oh) => void cp.push(qi(Po, aD(di.mapper, rp(di), oh)))), Ls = Xr([...cp, Po]); } else Ls = Po || Io; if (ia(tt, Ls, 2, Qt) === -1) return -1; } } } else if (Sa & 8388608) { if (Mi & 8388608) { if ((Ln = ia(tt.objectType, Tt.objectType, 3, Qt)) && (Ln &= ia(tt.indexType, Tt.indexType, 3, Qt)), Ln) return Ln; Qt && (Tr = M); } if (l === xd || l === Ad) { const di = Tt.objectType, Qa = Tt.indexType, Po = Uu(di) || di, Io = Uu(Qa) || Qa; if (!Nb(Po) && !b0(Io)) { const Ls = 4 | (Po !== di ? 2 : 0), ou = rv(Po, Io, Ls); if (ou) { if (Qt && Tr && an(pr), Ln = ia(tt, ou, 2, Qt, void 0, zn)) return Ln; Qt && Tr && M && (M = Wa([Tr]) <= Wa([M]) ? Tr : M); } } } Qt && (Tr = void 0); } else if (Pf(Tt) && l !== Cd) { const di = !!Tt.declaration.nameType, Qa = jh(Tt), Po = cm(Tt); if (!(Po & 8)) { if (!di && Qa.flags & 8388608 && Qa.objectType === tt && Qa.indexType === rp(Tt)) return -1; if (!Pf(tt)) { const Io = di ? Qy(Tt) : kp(Tt), Ls = fm(tt, void 0, !0), ou = Po & 4, cp = ou ? o4(Io, Ls) : void 0; if (ou ? !(cp.flags & 131072) : ia(Io, Ls, 3)) { const oh = jh(Tt), k0 = rp(Tt), AS = xL(oh, -98305); if (!di && AS.flags & 8388608 && AS.indexType === k0) { if (Ln = ia(tt, AS.objectType, 2, Qt)) return Ln; } else { const VL = di ? cp || Io : cp ? Lo([cp, k0]) : k0, gm = Dd(tt, VL); if (Ln = ia(gm, oh, 3, Qt)) return Ln; } } Tr = M, an(pr); } } } else if (Sa & 16777216) { if (C4(Tt, De, Bt, 10)) return 3; const di = Tt; if (!di.root.inferTypeParameters && !Z$e(di.root)) { const Qa = !Eo(TU(di.checkType), TU(di.extendsType)), Po = !Qa && Eo(IE(di.checkType), IE(di.extendsType)); if ((Ln = Qa ? -1 : ia(tt, E0(di), 2, !1, void 0, zn)) && (Ln &= Po ? -1 : ia(tt, T0(di), 2, !1, void 0, zn), Ln)) return Ln; } } else if (Sa & 134217728) { if (Mi & 134217728) { if (l === Ad) return CZe(tt, Tt) ? 0 : -1; qi(tt, la); } if (Rie(tt, Tt)) return -1; } else if (Tt.flags & 268435456 && !(tt.flags & 268435456) && Die(tt, Tt)) return -1; if (Mi & 8650752) { if (!(Mi & 8388608 && Sa & 8388608)) { const di = xE(tt) || me; if (Ln = ia(di, Tt, 1, !1, void 0, zn)) return Ln; if (Ln = ia(Of(di, tt), Tt, 1, Qt && di !== me && !(Sa & Mi & 262144), void 0, zn)) return Ln; if (dre(tt)) { const Qa = xE(tt.indexType); if (Qa && (Ln = ia(Dd(tt.objectType, Qa), Tt, 1, Qt))) return Ln; } } } else if (Mi & 4194304) { if (Ln = ia(Bi, Tt, 1, Qt)) return Ln; } else if (Mi & 134217728 && !(Sa & 524288)) { if (!(Sa & 134217728)) { const di = Uu(tt); if (di && di !== tt && (Ln = ia(di, Tt, 1, Qt))) return Ln; } } else if (Mi & 268435456) if (Sa & 268435456) { if (tt.symbol !== Tt.symbol) return 0; if (Ln = ia(tt.type, Tt.type, 3, Qt)) return Ln; } else { const di = Uu(tt); if (di && (Ln = ia(di, Tt, 1, Qt))) return Ln; } else if (Mi & 16777216) { if (C4(tt, he, ft, 10)) return 3; if (Sa & 16777216) { const Qa = tt.root.inferTypeParameters; let Po = tt.extendsType, Io; if (Qa) { const Ls = fD(Qa, void 0, 0, mf); qh(Ls.inferences, Tt.extendsType, Po, 1536), Po = qi(Po, Ls.mapper), Io = Ls.mapper; } if (Hh(Po, Tt.extendsType) && (ia(tt.checkType, Tt.checkType, 3) || ia(Tt.checkType, tt.checkType, 3)) && ((Ln = ia(qi(E0(tt), Io), E0(Tt), 3, Qt)) && (Ln &= ia(T0(tt), T0(Tt), 3, Qt)), Ln)) return Ln; } else { const Qa = Yw(tt) ? vAe(tt) : void 0; if (Qa && (Ln = ia(Qa, Tt, 1, Qt))) return Ln; } const di = lre(tt); if (di && (Ln = ia(di, Tt, 1, Qt))) return Ln; } else { if (l !== qm && l !== Y_ && fYe(Tt) && Wh(tt)) return -1; if (Pf(Tt)) return Pf(tt) && (Ln = wa(tt, Tt, Qt)) ? Ln : 0; const di = !!(Mi & 134348796); if (l !== Cd) tt = Vu(tt), Mi = tt.flags; else if (Pf(tt)) return 0; if (Qr(tt) & 4 && Qr(Tt) & 4 && tt.target === Tt.target && !Oo(tt) && !(LU(tt) || LU(Tt))) { if (DU(tt)) return -1; const Qa = uie(tt.target); if (Qa === nt) return 1; const Po = $a(_s(tt), _s(Tt), Qa, zn); if (Po !== void 0) return Po; } else { if (bL(Tt) ? kE(tt) : Ff(Tt) && Oo(tt) && !tt.target.readonly) return l !== Cd ? ia(Vg(tt, pt) || Ie, Vg(Tt, pt) || Ie, 3, Qt) : 0; if ((l === qm || l === Y_) && Wh(Tt) && Qr(Tt) & 8192 && !Wh(tt)) return 0; } if (Mi & 2621440 && Sa & 524288) { const Qa = Qt && M === pr.errorInfo && !di; if (Ln = Kt(tt, Tt, Qa, void 0, !1, zn), Ln && (Ln &= qn(tt, Tt, 0, Qa, zn), Ln && (Ln &= qn(tt, Tt, 1, Qa, zn), Ln && (Ln &= os(tt, Tt, di, Qa, zn)))), Gr && Ln) M = Tr || M || pr.errorInfo; else if (Ln) return Ln; } if (Mi & 2621440 && Sa & 1048576) { const Qa = xL(Tt, 36175872); if (Qa.flags & 1048576) { const Po = Li(tt, Qa); if (Po) return Po; } } } return 0; function Wa(di) { return di ? Cu(di, (Qa, Po) => Qa + 1 + Wa(Po.next), 0) : 0; } function $a(di, Qa, Po, Io) { if (Ln = er(di, Qa, Po, Qt, Io)) return Ln; if (kt(Po, (ou) => !!(ou & 24))) { Tr = void 0, an(pr); return; } const Ls = Qa && VQe(Qa, Po); if (Gr = !Ls, Po !== nt && !Ls) { if (Gr && !(Qt && kt(Po, (ou) => (ou & 7) === 0))) return 0; Tr = M, an(pr); } } } function wa(tt, Tt, Qt) { if (l === Ad || (l === Cd ? cm(tt) === cm(Tt) : ore(tt) <= ore(Tt))) { let pr; const Ln = kp(Tt), Tr = qi(kp(tt), ore(tt) < 0 ? wn : la); if (pr = ia(Ln, Tr, 3, Qt)) { const Gr = pd([rp(tt)], [rp(Tt)]); if (qi(Qy(tt), Gr) === qi(Qy(Tt), Gr)) return pr & ia(qi(jh(tt), Gr), jh(Tt), 3, Qt); } } return 0; } function Li(tt, Tt) { var Qt; const zn = fs(tt), pr = ELe(zn, Tt); if (!pr) return 0; let Ln = 1; for (const $a of pr) if (Ln *= eet(h0($a)), Ln > 25) return (Qt = hi) == null || Qt.instant(hi.Phase.CheckTypes, "typeRelatedToDiscriminatedType_DepthLimit", { sourceId: tt.id, targetId: Tt.id, numCombinations: Ln }), 0; const Tr = new Array(pr.length), Gr = /* @__PURE__ */ new Set(); for (let $a = 0; $a < pr.length; $a++) { const di = pr[$a], Qa = h0(di); Tr[$a] = Qa.flags & 1048576 ? Qa.types : [Qa], Gr.add(di.escapedName); } const Mi = Ese(Tr), Sa = []; for (const $a of Mi) { let di = !1; e: for (const Qa of Tt.types) { for (let Po = 0; Po < pr.length; Po++) { const Io = pr[Po], Ls = so(Qa, Io.escapedName); if (!Ls) continue e; if (Io === Ls) continue; if (!Ft(tt, Tt, Io, Ls, (cp) => $a[Po], !1, 0, H || l === Ad)) continue e; } a_(Sa, Qa, N0), di = !0; } if (!di) return 0; } let Wa = -1; for (const $a of Sa) if (Wa &= Kt(tt, $a, !1, Gr, !1, 0), Wa && (Wa &= qn(tt, $a, 0, !1, 0), Wa && (Wa &= qn(tt, $a, 1, !1, 0), Wa && !(Oo(tt) && Oo($a)) && (Wa &= os(tt, $a, !1, !1, 0)))), !Wa) return Wa; return Wa; } function Cr(tt, Tt) { if (!Tt || tt.length === 0) return tt; let Qt; for (let zn = 0; zn < tt.length; zn++) Tt.has(tt[zn].escapedName) ? Qt || (Qt = tt.slice(0, zn)) : Qt && Qt.push(tt[zn]); return Qt || tt; } function vt(tt, Tt, Qt, zn, pr) { const Ln = H && !!(Al(Tt) & 48), Tr = Ao(h0(Tt), !1, Ln), Gr = Qt(tt); return ia(Gr, Tr, 3, zn, void 0, pr); } function Ft(tt, Tt, Qt, zn, pr, Ln, Tr, Gr) { const Mi = qf(Qt), Sa = qf(zn); if (Mi & 8 || Sa & 8) { if (Qt.valueDeclaration !== zn.valueDeclaration) return Ln && (Mi & 8 && Sa & 8 ? ei(_.Types_have_separate_declarations_of_a_private_property_0, S(zn)) : ei(_.Property_0_is_private_in_type_1_but_not_in_type_2, S(zn), Le(Mi & 8 ? tt : Tt), Le(Mi & 8 ? Tt : tt))), 0; } else if (Sa & 16) { if (!qQe(Qt, zn)) return Ln && ei(_.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2, S(zn), Le(vS(Qt) || tt), Le(vS(zn) || Tt)), 0; } else if (Mi & 16) return Ln && ei(_.Property_0_is_protected_in_type_1_but_public_in_type_2, S(zn), Le(tt), Le(Tt)), 0; if (l === Y_ && lp(Qt) && !lp(zn)) return 0; const Wa = vt(Qt, zn, pr, Ln, Tr); return Wa ? !Gr && Qt.flags & 16777216 && zn.flags & 106500 && !(zn.flags & 16777216) ? (Ln && ei(_.Property_0_is_optional_in_type_1_but_required_in_type_2, S(zn), Le(tt), Le(Tt)), 0) : Wa : (Ln && Jn(_.Types_of_property_0_are_incompatible, S(zn)), 0); } function $t(tt, Tt, Qt, zn) { let pr = !1; if (Qt.valueDeclaration && du(Qt.valueDeclaration) && ki(Qt.valueDeclaration.name) && tt.symbol && tt.symbol.flags & 32) { const Tr = Qt.valueDeclaration.name.escapedText, Gr = xN(tt.symbol, Tr); if (Gr && so(tt, Gr)) { const Mi = N.getDeclarationName(tt.symbol.valueDeclaration), Sa = N.getDeclarationName(Tt.symbol.valueDeclaration); ei(_.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2, $f(Tr), $f(Mi.escapedText === "" ? u8 : Mi), $f(Sa.escapedText === "" ? u8 : Sa)); return; } } const Ln = ko(Iie(tt, Tt, zn, !1)); if ((!p || p.code !== _.Class_0_incorrectly_implements_interface_1.code && p.code !== _.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code) && (pr = !0), Ln.length === 1) { const Tr = S(Qt, void 0, 0, 20); ei(_.Property_0_is_missing_in_type_1_but_required_in_type_2, Tr, ...tn(tt, Tt)), Ne(Qt.declarations) && fa(Dr(Qt.declarations[0], _._0_is_declared_here, Tr)), pr && M && Xn++; } else Bf(tt, Tt, !1) && (Ln.length > 5 ? ei(_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more, Le(tt), Le(Tt), rn(Ln.slice(0, 4), (Tr) => S(Tr)).join(", "), Ln.length - 4) : ei(_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2, Le(tt), Le(Tt), rn(Ln, (Tr) => S(Tr)).join(", ")), pr && M && Xn++); } function Kt(tt, Tt, Qt, zn, pr, Ln) { if (l === Cd) return kn(tt, Tt, zn); let Tr = -1; if (Oo(Tt)) { if (kE(tt)) { if (!Tt.target.readonly && (bL(tt) || Oo(tt) && tt.target.readonly)) return 0; const $a = v0(tt), di = v0(Tt), Qa = Oo(tt) ? tt.target.combinedFlags & 4 : 4, Po = Tt.target.combinedFlags & 4, Io = Oo(tt) ? tt.target.minLength : 0, Ls = Tt.target.minLength; if (!Qa && $a < Ls) return Qt && ei(_.Source_has_0_element_s_but_target_requires_1, $a, Ls), 0; if (!Po && di < Io) return Qt && ei(_.Source_has_0_element_s_but_target_allows_only_1, Io, di), 0; if (!Po && (Qa || di < $a)) return Qt && (Io < Ls ? ei(_.Target_requires_0_element_s_but_source_may_have_fewer, Ls) : ei(_.Target_allows_only_0_element_s_but_source_may_have_more, di)), 0; const ou = _s(tt), cp = _s(Tt), oh = y$e(Tt.target, 11), k0 = m4(Tt.target, 11), AS = Tt.target.hasRestElement; let VL = !!zn; for (let gm = 0; gm < $a; gm++) { const X2 = Oo(tt) ? tt.target.elementFlags[gm] : 4, Y2 = $a - 1 - gm, VE = AS && gm >= oh ? di - 1 - Math.min(Y2, k0) : gm, Rd = Tt.target.elementFlags[VE]; if (Rd & 8 && !(X2 & 8)) return Qt && ei(_.Source_provides_no_match_for_variadic_element_at_position_0_in_target, VE), 0; if (X2 & 8 && !(Rd & 12)) return Qt && ei(_.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target, gm, VE), 0; if (Rd & 1 && !(X2 & 1)) return Qt && ei(_.Source_provides_no_match_for_required_element_at_position_0_in_target, VE), 0; if (VL && ((X2 & 12 || Rd & 12) && (VL = !1), VL && (zn != null && zn.has("" + gm)))) continue; const wt = wE(ou[gm], !!(X2 & Rd & 2)), Sr = cp[VE], gi = X2 & 8 && Rd & 4 ? Tu(Sr) : wE(Sr, !!(Rd & 2)), ai = ia(wt, gi, 3, Qt, void 0, Ln); if (!ai) return Qt && (di > 1 || $a > 1) && (AS && gm >= oh && Y2 >= k0 && oh !== $a - k0 - 1 ? Jn(_.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, oh, $a - k0 - 1, VE) : Jn(_.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, gm, VE)), 0; Tr &= ai; } return Tr; } if (Tt.target.combinedFlags & 12) return 0; } const Gr = (l === qm || l === Y_) && !L0(tt) && !DU(tt) && !Oo(tt), Mi = kie(tt, Tt, Gr, !1); if (Mi) return Qt && aa(tt, Tt) && $t(tt, Tt, Mi, Gr), 0; if (L0(Tt)) { for (const $a of Cr(fs(tt), zn)) if (!Ib(Tt, $a.escapedName) && !(ar($a).flags & 32768)) return Qt && ei(_.Property_0_does_not_exist_on_type_1, S($a), Le(Tt)), 0; } const Sa = fs(Tt), Wa = Oo(tt) && Oo(Tt); for (const $a of Cr(Sa, zn)) { const di = $a.escapedName; if (!($a.flags & 4194304) && (!Wa || vh(di) || di === "length") && (!pr || $a.flags & 16777216)) { const Qa = so(tt, di); if (Qa && Qa !== $a) { const Po = Ft(tt, Tt, Qa, $a, h0, Qt, Ln, l === Ad); if (!Po) return 0; Tr &= Po; } } } return Tr; } function kn(tt, Tt, Qt) { if (!(tt.flags & 524288 && Tt.flags & 524288)) return 0; const zn = Cr(Zy(tt), Qt), pr = Cr(Zy(Tt), Qt); if (zn.length !== pr.length) return 0; let Ln = -1; for (const Tr of zn) { const Gr = Ib(Tt, Tr.escapedName); if (!Gr) return 0; const Mi = _ie(Tr, Gr, ia); if (!Mi) return 0; Ln &= Mi; } return Ln; } function qn(tt, Tt, Qt, zn, pr) { var Ln, Tr; if (l === Cd) return $r(tt, Tt, Qt); if (Tt === Aa || tt === Aa) return -1; const Gr = tt.symbol && Op(tt.symbol.valueDeclaration), Mi = Tt.symbol && Op(Tt.symbol.valueDeclaration), Sa = Ha(tt, Gr && Qt === 1 ? 0 : Qt), Wa = Ha(Tt, Mi && Qt === 1 ? 0 : Qt); if (Qt === 1 && Sa.length && Wa.length) { const Io = !!(Sa[0].flags & 4), Ls = !!(Wa[0].flags & 4); if (Io && !Ls) return zn && ei(_.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type), 0; if (!md(Sa[0], Wa[0], zn)) return 0; } let $a = -1; const di = Qt === 1 ? hn : mi, Qa = Qr(tt), Po = Qr(Tt); if (Qa & 64 && Po & 64 && tt.symbol === Tt.symbol || Qa & 4 && Po & 4 && tt.target === Tt.target) for (let Io = 0; Io < Wa.length; Io++) { const Ls = cr(Sa[Io], Wa[Io], !0, zn, pr, di(Sa[Io], Wa[Io])); if (!Ls) return 0; $a &= Ls; } else if (Sa.length === 1 && Wa.length === 1) { const Io = l === Ad || !!Y.noStrictGenericChecks, Ls = ss(Sa), ou = ss(Wa); if ($a = cr(Ls, ou, Io, zn, pr, di(Ls, ou)), !$a && zn && Qt === 1 && Qa & Po && (((Ln = ou.declaration) == null ? void 0 : Ln.kind) === 173 || ((Tr = Ls.declaration) == null ? void 0 : Tr.kind) === 173)) { const cp = (oh) => se(oh, void 0, 262144, Qt); return ei(_.Type_0_is_not_assignable_to_type_1, cp(Ls), cp(ou)), ei(_.Types_of_construct_signatures_are_incompatible), $a; } } else e: for (const Io of Wa) { const Ls = Gn(); let ou = zn; for (const cp of Sa) { const oh = cr(cp, Io, !0, ou, pr, di(cp, Io)); if (oh) { $a &= oh, an(Ls); continue e; } ou = !1; } return ou && ei(_.Type_0_provides_no_match_for_the_signature_1, Le(tt), se(Io, void 0, void 0, Qt)), 0; } return $a; } function aa(tt, Tt) { const Qt = u4(tt, 0), zn = u4(tt, 1), pr = Zy(tt); return (Qt.length || zn.length) && !pr.length ? !!(Ha(Tt, 0).length && Qt.length || Ha(Tt, 1).length && zn.length) : !0; } function mi(tt, Tt) { return tt.parameters.length === 0 && Tt.parameters.length === 0 ? (Qt, zn) => Jn(_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, Le(Qt), Le(zn)) : (Qt, zn) => Jn(_.Call_signature_return_types_0_and_1_are_incompatible, Le(Qt), Le(zn)); } function hn(tt, Tt) { return tt.parameters.length === 0 && Tt.parameters.length === 0 ? (Qt, zn) => Jn(_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, Le(Qt), Le(zn)) : (Qt, zn) => Jn(_.Construct_signature_return_types_0_and_1_are_incompatible, Le(Qt), Le(zn)); } function cr(tt, Tt, Qt, zn, pr, Ln) { const Tr = l === qm ? 16 : l === Y_ ? 24 : 0; return aie(Qt ? eD(tt) : tt, Qt ? eD(Tt) : Tt, Tr, zn, ei, Ln, Gr, la); function Gr(Mi, Sa, Wa) { return ia(Mi, Sa, 3, Wa, void 0, pr); } } function $r(tt, Tt, Qt) { const zn = Ha(tt, Qt), pr = Ha(Tt, Qt); if (zn.length !== pr.length) return 0; let Ln = -1; for (let Tr = 0; Tr < zn.length; Tr++) { const Gr = L4(zn[Tr], pr[Tr], !1, !1, !1, ia); if (!Gr) return 0; Ln &= Gr; } return Ln; } function yr(tt, Tt, Qt, zn) { let pr = -1; const Ln = Tt.keyType, Tr = tt.flags & 2097152 ? l4(tt) : Zy(tt); for (const Gr of Tr) if (!zCe(tt, Gr) && I2(hL(Gr, 8576), Ln)) { const Mi = h0(Gr), Sa = We || Mi.flags & 32768 || Ln === pt || !(Gr.flags & 16777216) ? Mi : n_(Mi, 524288), Wa = ia(Sa, Tt.type, 3, Qt, void 0, zn); if (!Wa) return Qt && ei(_.Property_0_is_incompatible_with_index_signature, S(Gr)), 0; pr &= Wa; } for (const Gr of Eu(tt)) if (I2(Gr.keyType, Ln)) { const Mi = ba(Gr, Tt, Qt, zn); if (!Mi) return 0; pr &= Mi; } return pr; } function ba(tt, Tt, Qt, zn) { const pr = ia(tt.type, Tt.type, 3, Qt, void 0, zn); return !pr && Qt && (tt.keyType === Tt.keyType ? ei(_._0_index_signatures_are_incompatible, Le(tt.keyType)) : ei(_._0_and_1_index_signatures_are_incompatible, Le(tt.keyType), Le(Tt.keyType))), pr; } function os(tt, Tt, Qt, zn, pr) { if (l === Cd) return Gs(tt, Tt); const Ln = Eu(Tt), Tr = kt(Ln, (Mi) => Mi.keyType === ce); let Gr = -1; for (const Mi of Ln) { const Sa = !Qt && Tr && Mi.type.flags & 1 ? -1 : Pf(tt) && Tr ? ia(jh(tt), Mi.type, 3, zn) : Fs(tt, Mi, zn, pr); if (!Sa) return 0; Gr &= Sa; } return Gr; } function Fs(tt, Tt, Qt, zn) { const pr = d4(tt, Tt.keyType); return pr ? ba(pr, Tt, Qt, zn) : !(zn & 1) && (l !== Y_ || Qr(tt) & 8192) && PU(tt) ? yr(tt, Tt, Qt, zn) : (Qt && ei(_.Index_signature_for_type_0_is_missing_in_type_1, Le(Tt.keyType), Le(tt)), 0); } function Gs(tt, Tt) { const Qt = Eu(tt), zn = Eu(Tt); if (Qt.length !== zn.length) return 0; for (const pr of zn) { const Ln = nh(tt, pr.keyType); if (!(Ln && ia(Ln.type, pr.type, 3) && Ln.isReadonly === pr.isReadonly)) return 0; } return -1; } function md(tt, Tt, Qt) { if (!tt.declaration || !Tt.declaration) return !0; const zn = rx(tt.declaration, 24), pr = rx(Tt.declaration, 24); return pr === 8 || pr === 16 && zn !== 8 || pr !== 16 && !zn ? !0 : (Qt && ei(_.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type, ff(zn), ff(pr)), !1); } } function lie(n) { if (n.flags & 16) return !1; if (n.flags & 3145728) return !!Ye(n.types, lie); if (n.flags & 465829888) { const a = xE(n); if (a && a !== n) return lie(a); } return op(n) || !!(n.flags & 134217728) || !!(n.flags & 268435456); } function qCe(n, a) { return Oo(n) && Oo(a) ? nt : fs(a).filter((l) => CU(cc(n, l.escapedName), ar(l))); } function CU(n, a) { return !!n && !!a && fl(n, 32768) && !!dD(a); } function GQe(n) { return fs(n).filter((a) => dD(ar(a))); } function JCe(n, a, l = rie) { return iDe(n, a, l, !0) || Ust(n, a) || Vst(n, a) || jst(n, a) || Hst(n, a); } function cie(n, a, l, u, p) { const g = n.types.map((M) => { }); for (const [M, J] of a) { const $ = fre(n, J); if (p && $ && Al($) & 16) continue; let he = 0; for (const De of n.types) { const ke = cc(De, J); ke && l(M(), ke) ? g[he] = g[he] === void 0 ? !0 : g[he] : g[he] = !1, he++; } } const x = g.indexOf(!0); if (x === -1) return u; let R = g.indexOf(!0, x + 1); for (; R !== -1; ) { if (!Hh(n.types[x], n.types[R])) return u; R = g.indexOf(!0, R + 1); } return n.types[x]; } function KCe(n) { if (n.flags & 524288) { const a = ip(n); return a.callSignatures.length === 0 && a.constructSignatures.length === 0 && a.indexInfos.length === 0 && a.properties.length > 0 && Vn(a.properties, (l) => !!(l.flags & 16777216)); } return n.flags & 2097152 ? Vn(n.types, KCe) : !1; } function UQe(n, a, l) { for (const u of fs(n)) if (oae(a, u.escapedName, l)) return !0; return !1; } function uie(n) { return n === vs || n === ls || n.objectFlags & 8 ? X : YCe(n.symbol, n.typeParameters); } function XCe(n) { return YCe(n, Ui(n).typeParameters); } function YCe(n, a = nt) { var l, u; const p = Ui(n); if (!p.variances) { (l = hi) == null || l.push(hi.Phase.CheckTypes, "getVariancesWorker", { arity: a.length, id: Su(Bs(n)) }), p.variances = nt; const g = []; for (const x of a) { const R = die(x); let M = R & 65536 ? R & 32768 ? 0 : 1 : R & 32768 ? 2 : void 0; if (M === void 0) { let J = !1, $ = !1; const he = ui; ui = (ft) => ft ? $ = !0 : J = !0; const De = x4(n, x, Ud), ke = x4(n, x, rc); M = (Eo(ke, De) ? 1 : 0) | (Eo(De, ke) ? 2 : 0), M === 3 && Eo(x4(n, x, jc), De) && (M = 4), ui = he, (J || $) && (J && (M |= 8), $ && (M |= 16)); } g.push(M); } p.variances = g, (u = hi) == null || u.pop({ variances: g.map(D.formatVariance) }); } return p.variances; } function x4(n, a, l) { const u = Mb(a, l), p = Bs(n); if (Zo(p)) return p; const g = n.flags & 524288 ? N2(n, zg(Ui(n).typeParameters, u)) : jg(p, zg(p.typeParameters, u)); return Rn.add(Su(g)), g; } function LU(n) { return Rn.has(Su(n)); } function die(n) { var a; return Cu((a = n.symbol) == null ? void 0 : a.declarations, (l, u) => l | wu(u), 0) & 100352; } function VQe(n, a) { for (let l = 0; l < a.length; l++) if ((a[l] & 7) === 1 && n[l].flags & 16384) return !0; return !1; } function jQe(n) { return n.flags & 262144 && !bu(n); } function HQe(n) { return !!(Qr(n) & 4) && !n.node; } function IU(n) { return HQe(n) && kt(_s(n), (a) => !!(a.flags & 262144) || IU(a)); } function WQe(n, a, l, u) { const p = []; let g = ""; const x = M(n, 0), R = M(a, 0); return `${g}${x},${R}${l}`; function M(J, $ = 0) { let he = "" + J.target.id; for (const De of _s(J)) { if (De.flags & 262144) { if (u || jQe(De)) { let ke = p.indexOf(De); ke < 0 && (ke = p.length, p.push(De)), he += "=" + ke; continue; } g = "*"; } else if ($ < 4 && IU(De)) { he += "<" + M(De, $ + 1) + ">"; continue; } he += "-" + De.id; } return he; } } function fie(n, a, l, u, p) { if (u === Cd && n.id > a.id) { const x = n; n = a, a = x; } const g = l ? ":" + l : ""; return IU(n) && IU(a) ? WQe(n, a, g, p) : `${n.id},${a.id}${g}`; } function A4(n, a) { if (Al(n) & 6) { for (const l of n.links.containingType.types) { const u = so(l, n.escapedName), p = u && A4(u, a); if (p) return p; } return; } return a(n); } function vS(n) { return n.parent && n.parent.flags & 32 ? Bs(fd(n)) : void 0; } function kU(n) { const a = vS(n), l = a && No(a)[0]; return l && cc(l, n.escapedName); } function zQe(n, a) { return A4(n, (l) => { const u = vS(l); return u ? TE(u, a) : !1; }); } function qQe(n, a) { return !A4(a, (l) => qf(l) & 16 ? !zQe(n, vS(l)) : !1); } function $Ce(n, a, l) { return A4(a, (u) => qf(u, l) & 16 ? !TE(n, vS(u)) : !1) ? void 0 : n; } function C4(n, a, l, u = 3) { if (l >= u) { if (n.flags & 2097152) return kt(n.types, (R) => C4(R, a, l, u)); const p = vL(n); let g = 0, x = 0; for (let R = 0; R < l; R++) { const M = a[R]; if (M.flags & 2097152 ? kt(M.types, (J) => vL(J) === p) : vL(M) === p) { if (M.id >= x && (g++, g >= u)) return !0; x = M.id; } } } return !1; } function vL(n) { if (n.flags & 524288 && !Nie(n)) { if (Qr(n) && n.node) return n.node; if (n.symbol && !(Qr(n) & 16 && n.symbol.flags & 32)) return n.symbol; if (Oo(n)) return n.target; } if (n.flags & 262144) return n.symbol; if (n.flags & 8388608) { do n = n.objectType; while (n.flags & 8388608); return n; } return n.flags & 16777216 ? n.root : n; } function JQe(n, a) { return _ie(n, a, oD) !== 0; } function _ie(n, a, l) { if (n === a) return -1; const u = qf(n) & 24, p = qf(a) & 24; if (u !== p) return 0; if (u) { if (J2(n) !== J2(a)) return 0; } else if ((n.flags & 16777216) !== (a.flags & 16777216)) return 0; return lp(n) !== lp(a) ? 0 : l(ar(n), ar(a)); } function KQe(n, a, l) { const u = Xd(n), p = Xd(a), g = mm(n), x = mm(a), R = hm(n), M = hm(a); return !!(u === p && g === x && R === M || l && g <= x); } function L4(n, a, l, u, p, g) { if (n === a) return -1; if (!KQe(n, a, l) || Ne(n.typeParameters) !== Ne(a.typeParameters)) return 0; if (a.typeParameters) { const M = pd(n.typeParameters, a.typeParameters); for (let J = 0; J < a.typeParameters.length; J++) { const $ = n.typeParameters[J], he = a.typeParameters[J]; if (!($ === he || g(qi(pL($), M) || me, pL(he) || me) && g(qi(AE($), M) || me, AE(he) || me))) return 0; } n = B2(n, M, !0); } let x = -1; if (!u) { const M = wb(n); if (M) { const J = wb(a); if (J) { const $ = g(M, J); if (!$) return 0; x &= $; } } } const R = Xd(a); for (let M = 0; M < R; M++) { const J = sp(n, M), $ = sp(a, M), he = g($, J); if (!he) return 0; x &= he; } if (!p) { const M = Zf(n), J = Zf(a); x &= M || J ? XQe(M, J, g) : g(hs(n), hs(a)); } return x; } function XQe(n, a, l) { return n && a && Ure(n, a) ? n.type === a.type ? -1 : n.type && a.type ? l(n.type, a.type) : 0 : 0; } function YQe(n) { let a; for (const l of n) if (!(l.flags & 131072)) { const u = sv(l); if (a ?? (a = u), u === l || u !== a) return !1; } return !0; } function QCe(n) { return Cu(n, (a, l) => a | (l.flags & 1048576 ? QCe(l.types) : l.flags), 0); } function $Qe(n) { if (n.length === 1) return n[0]; const a = H ? Xl(n, (u) => uc(u, (p) => !(p.flags & 98304))) : n, l = YQe(a) ? Xr(a) : Cu(a, (u, p) => av(u, p) ? p : u); return a === n ? l : NU(l, QCe(n) & 98304); } function QQe(n) { return Cu(n, (a, l) => av(l, a) ? l : a); } function Ff(n) { return !!(Qr(n) & 4) && (n.target === vs || n.target === ls); } function bL(n) { return !!(Qr(n) & 4) && n.target === ls; } function kE(n) { return Ff(n) || Oo(n); } function wU(n) { return Ff(n) && !bL(n) || Oo(n) && !n.target.readonly; } function pie(n) { return Ff(n) ? _s(n)[0] : void 0; } function A0(n) { return Ff(n) || !(n.flags & 98304) && Eo(n, zi); } function mie(n) { if (!(Qr(n) & 4) || !(Qr(n.target) & 3)) return; if (Qr(n) & 33554432) return Qr(n) & 67108864 ? n.cachedEquivalentBaseType : void 0; n.objectFlags |= 33554432; const a = n.target; if (Qr(a) & 1) { const p = Dn(a); if (p && p.expression.kind !== 79 && p.expression.kind !== 208) return; } const l = No(a); if (l.length !== 1 || $y(n.symbol).size) return; let u = Ne(a.typeParameters) ? qi(l[0], pd(a.typeParameters, _s(n).slice(0, a.typeParameters.length))) : l[0]; return Ne(_s(n)) > Ne(a.typeParameters) && (u = Of(u, Ho(_s(n)))), n.objectFlags |= 67108864, n.cachedEquivalentBaseType = u; } function ZCe(n) { return H ? n === dn : n === Qe; } function DU(n) { const a = pie(n); return !!a && ZCe(a); } function EL(n) { return Oo(n) || !!so(n, "0"); } function RU(n) { return A0(n) || EL(n); } function ZQe(n, a) { const l = cc(n, "" + a); if (l) return l; if (rh(n, Oo)) return Xs(n, (u) => { const p = u, g = I4(p); return g ? Y.noUncheckedIndexedAccess && a >= p.target.fixedLength + m4(p.target, 3) ? Xr([g, je]) : g : je; }); } function eZe(n) { return !(n.flags & 240544); } function op(n) { return !!(n.flags & 109472); } function eLe(n) { const a = ev(n); return a.flags & 2097152 ? kt(a.types, op) : op(a); } function tZe(n) { return n.flags & 2097152 && un(n.types, op) || n; } function cD(n) { return n.flags & 16 ? !0 : n.flags & 1048576 ? n.flags & 1024 ? !0 : Vn(n.types, op) : op(n); } function sv(n) { return n.flags & 1056 ? qw(n) : n.flags & 402653312 ? ce : n.flags & 256 ? pt : n.flags & 2048 ? Wt : n.flags & 512 ? we : n.flags & 1048576 ? nZe(n) : n; } function nZe(n) { var a; const l = `B${Su(n)}`; return (a = db(l)) != null ? a : Sg(l, Xs(n, sv)); } function hie(n) { return n.flags & 402653312 ? ce : n.flags & 288 ? pt : n.flags & 2048 ? Wt : n.flags & 512 ? we : n.flags & 1048576 ? Xs(n, hie) : n; } function Bb(n) { return n.flags & 1056 && Pb(n) ? qw(n) : n.flags & 128 && Pb(n) ? ce : n.flags & 256 && Pb(n) ? pt : n.flags & 2048 && Pb(n) ? Wt : n.flags & 512 && Pb(n) ? we : n.flags & 1048576 ? Xs(n, Bb) : n; } function tLe(n) { return n.flags & 8192 ? q : n.flags & 1048576 ? Xs(n, tLe) : n; } function gie(n, a) { return hV(n, a) || (n = tLe(Bb(n))), _d(n); } function rZe(n, a, l) { if (n && op(n)) { const u = a ? l ? wD(a) : a : void 0; n = gie(n, u); } return n; } function yie(n, a, l, u) { if (n && op(n)) { const p = a ? jb(l, a, u) : void 0; n = gie(n, p); } return n; } function Oo(n) { return !!(Qr(n) & 4 && n.target.objectFlags & 8); } function G2(n) { return Oo(n) && !!(n.target.combinedFlags & 8); } function nLe(n) { return G2(n) && n.target.elementFlags.length === 1; } function I4(n) { return TL(n, n.target.fixedLength); } function iZe(n) { const a = I4(n); return a && Tu(a); } function TL(n, a, l = 0, u = !1, p = !1) { const g = v0(n) - l; if (a < g) { const x = _s(n), R = []; for (let M = a; M < g; M++) { const J = x[M]; R.push(n.target.elementFlags[M] & 8 ? Dd(J, pt) : J); } return u ? Lo(R) : Xr(R, p ? 0 : 1); } } function aZe(n, a) { return v0(n) === v0(a) && Vn(n.target.elementFlags, (l, u) => (l & 12) === (a.target.elementFlags[u] & 12)); } function rLe({ value: n }) { return n.base10Value === "0"; } function iLe(n) { return uc(n, (a) => !!(xu(a) & 4194304)); } function oZe(n) { return Xs(n, sZe); } function sZe(n) { return n.flags & 4 ? i2 : n.flags & 8 ? QT : n.flags & 64 ? a2 : n === K || n === rt || n.flags & 114691 || n.flags & 128 && n.value === "" || n.flags & 256 && n.value === 0 || n.flags & 2048 && rLe(n) ? n : ht; } function NU(n, a) { const l = a & ~n.flags & 98304; return l === 0 ? n : Xr(l === 32768 ? [n, je] : l === 65536 ? [n, Sn] : [n, je, Sn]); } function qg(n, a = !1) { D.assert(H); const l = a ? Ut : je; return n === l || n.flags & 1048576 && n.types[0] === l ? n : Xr([n, l]); } function lZe(n) { return xo || (xo = tD("NonNullable", 524288, void 0) || en), xo !== en ? N2(xo, [n]) : Lo([n, da]); } function Jg(n) { return H ? OE(n, 2097152) : n; } function aLe(n) { return H ? Xr([n, on]) : n; } function vie(n) { return H ? jU(n, on) : n; } function OU(n, a, l) { return l ? pI(a) ? qg(n) : aLe(n) : n; } function uD(n, a) { return pM(a) ? Jg(n) : fu(a) ? vie(n) : n; } function wE(n, a) { return We && a ? jU(n, Je) : n; } function dD(n) { return n === Je || !!(n.flags & 1048576) && n.types[0] === Je; } function bie(n) { return We ? jU(n, Je) : n_(n, 524288); } function cZe(n, a) { return (n.flags & 524) !== 0 && (a.flags & 28) !== 0; } function PU(n) { const a = Qr(n); return n.flags & 2097152 ? Vn(n.types, PU) : !!(n.symbol && n.symbol.flags & 7040 && !(n.symbol.flags & 32) && !RV(n)) || !!(a & 4194304) || !!(a & 1024 && PU(n.source)); } function DE(n, a) { const l = Qo(n.flags, n.escapedName, Al(n) & 8); l.declarations = n.declarations, l.parent = n.parent, l.links.type = a, l.links.target = n, n.valueDeclaration && (l.valueDeclaration = n.valueDeclaration); const u = Ui(n).nameType; return u && (l.links.nameType = u), l; } function uZe(n, a) { const l = ao(); for (const u of Zy(n)) { const p = ar(u), g = a(p); l.set(u.escapedName, g === p ? u : DE(u, g)); } return l; } function k4(n) { if (!(L0(n) && Qr(n) & 8192)) return n; const a = n.regularType; if (a) return a; const l = n, u = uZe(n, k4), p = Ds(l.symbol, u, l.callSignatures, l.constructSignatures, l.indexInfos); return p.flags = l.flags, p.objectFlags |= l.objectFlags & -8193, n.regularType = p, p; } function oLe(n, a, l) { return { parent: n, propertyName: a, siblings: l, resolvedProperties: void 0 }; } function sLe(n) { if (!n.siblings) { const a = []; for (const l of sLe(n.parent)) if (L0(l)) { const u = Ib(l, n.propertyName); u && PE(ar(u), (p) => { a.push(p); }); } n.siblings = a; } return n.siblings; } function dZe(n) { if (!n.resolvedProperties) { const a = /* @__PURE__ */ new Map(); for (const l of sLe(n)) if (L0(l) && !(Qr(l) & 2097152)) for (const u of fs(l)) a.set(u.escapedName, u); n.resolvedProperties = ko(a.values()); } return n.resolvedProperties; } function fZe(n, a) { if (!(n.flags & 4)) return n; const l = ar(n), u = a && oLe(a, n.escapedName, void 0), p = Eie(l, u); return p === l ? n : DE(n, p); } function _Ze(n) { const a = _i.get(n.escapedName); if (a) return a; const l = DE(n, Ut); return l.flags |= 16777216, _i.set(n.escapedName, l), l; } function pZe(n, a) { const l = ao(); for (const p of Zy(n)) l.set(p.escapedName, fZe(p, a)); if (a) for (const p of dZe(a)) l.has(p.escapedName) || l.set(p.escapedName, _Ze(p)); const u = Ds(n.symbol, l, nt, nt, Xl(Eu(n), (p) => dm(p.keyType, Kd(p.type), p.isReadonly))); return u.objectFlags |= Qr(n) & 266240, u; } function Kd(n) { return Eie(n, void 0); } function Eie(n, a) { if (Qr(n) & 196608) { if (a === void 0 && n.widened) return n.widened; let l; if (n.flags & 98305) l = Ie; else if (L0(n)) l = pZe(n, a); else if (n.flags & 1048576) { const u = a || oLe(void 0, void 0, n.types), p = Xl(n.types, (g) => g.flags & 98304 ? g : Eie(g, u)); l = Xr(p, kt(p, Wh) ? 2 : 1); } else n.flags & 2097152 ? l = Lo(Xl(n.types, Kd)) : kE(n) && (l = jg(n.target, Xl(_s(n), Kd))); return l && a === void 0 && (n.widened = l), l || n; } return n; } function MU(n) { let a = !1; if (Qr(n) & 65536) { if (n.flags & 1048576) if (kt(n.types, Wh)) a = !0; else for (const l of n.types) MU(l) && (a = !0); if (kE(n)) for (const l of _s(n)) MU(l) && (a = !0); if (L0(n)) for (const l of Zy(n)) { const u = ar(l); Qr(u) & 65536 && (MU(u) || qe(l.valueDeclaration, _.Object_literal_s_property_0_implicitly_has_an_1_type, S(l), Le(Kd(u))), a = !0); } } return a; } function C0(n, a, l) { const u = Le(Kd(a)); if (dr(n) && !$N(Zn(n), Y)) return; let p; switch (n.kind) { case 223: case 169: case 168: p = Te ? _.Member_0_implicitly_has_an_1_type : _.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; break; case 166: const g = n; if (Ve(g.name)) { const x = M0(g.name); if ((sC(g.parent) || bh(g.parent) || Eh(g.parent)) && g.parent.parameters.indexOf(g) > -1 && (dl(g, g.name.escapedText, 788968, void 0, g.name.escapedText, !0) || x && Bz(x))) { const R = "arg" + g.parent.parameters.indexOf(g), M = Is(g.name) + (g.dotDotDotToken ? "[]" : ""); tm(Te, n, _.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1, R, M); return; } } p = n.dotDotDotToken ? Te ? _.Rest_parameter_0_implicitly_has_an_any_type : _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage : Te ? _.Parameter_0_implicitly_has_an_1_type : _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; break; case 205: if (p = _.Binding_element_0_implicitly_has_an_1_type, !Te) return; break; case 320: qe(n, _.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, u); return; case 326: Te && Ik(n.parent) && qe(n.parent.tagName, _.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation, u); return; case 259: case 171: case 170: case 174: case 175: case 215: case 216: if (Te && !n.name) { l === 3 ? qe(n, _.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, u) : qe(n, _.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, u); return; } p = Te ? l === 3 ? _._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type : _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type : _._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage; break; case 197: Te && qe(n, _.Mapped_object_type_implicitly_has_an_any_template_type); return; default: p = Te ? _.Variable_0_implicitly_has_an_1_type : _.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; } tm(Te, n, p, Is(La(n)), u); } function FU(n, a, l) { i(() => { Te && Qr(a) & 65536 && (!l || !Zie(n)) && (MU(a) || C0(n, a, l)); }); } function Tie(n, a, l) { const u = Xd(n), p = Xd(a), g = SD(n), x = SD(a), R = x ? p - 1 : p, M = g ? R : Math.min(u, R), J = wb(n); if (J) { const $ = wb(a); $ && l(J, $); } for (let $ = 0; $ < M; $++) l(sp(n, $), sp(a, $)); x && l(TD(n, M), x); } function Sie(n, a, l) { const u = Zf(n), p = Zf(a); u && p && Ure(u, p) && u.type && p.type ? l(u.type, p.type) : l(hs(n), hs(a)); } function fD(n, a, l, u) { return xie(n.map(Aie), a, l, u || rie); } function mZe(n, a = 0) { return n && xie(rn(n.inferences, cLe), n.signature, n.flags | a, n.compareTypes); } function xie(n, a, l, u) { const p = { inferences: n, signature: a, flags: l, compareTypes: u, mapper: wn, nonFixingMapper: wn }; return p.mapper = hZe(p), p.nonFixingMapper = gZe(p), p; } function hZe(n) { return $re(rn(n.inferences, (a) => a.typeParameter), rn(n.inferences, (a, l) => () => (a.isFixed || (yZe(n), BU(n.inferences), a.isFixed = !0), Oie(n, l)))); } function gZe(n) { return $re(rn(n.inferences, (a) => a.typeParameter), rn(n.inferences, (a, l) => () => Oie(n, l))); } function BU(n) { for (const a of n) a.isFixed || (a.inferredType = void 0); } function lLe(n, a, l) { var u; ((u = n.intraExpressionInferenceSites) != null ? u : n.intraExpressionInferenceSites = []).push({ node: a, type: l }); } function yZe(n) { if (n.intraExpressionInferenceSites) { for (const { node: a, type: l } of n.intraExpressionInferenceSites) { const u = a.kind === 171 ? eIe(a, 2) : Zu(a, 2); u && qh(n.inferences, l, u); } n.intraExpressionInferenceSites = void 0; } } function Aie(n) { return { typeParameter: n, candidates: void 0, contraCandidates: void 0, inferredType: void 0, priority: void 0, topLevel: !0, isFixed: !1, impliedArity: void 0 }; } function cLe(n) { return { typeParameter: n.typeParameter, candidates: n.candidates && n.candidates.slice(), contraCandidates: n.contraCandidates && n.contraCandidates.slice(), inferredType: n.inferredType, priority: n.priority, topLevel: n.topLevel, isFixed: n.isFixed, impliedArity: n.impliedArity }; } function vZe(n) { const a = yn(n.inferences, z2); return a.length ? xie(rn(a, cLe), n.signature, n.flags, n.compareTypes) : void 0; } function Cie(n) { return n && n.mapper; } function RE(n) { const a = Qr(n); if (a & 524288) return !!(a & 1048576); const l = !!(n.flags & 465829888 || n.flags & 524288 && !uLe(n) && (a & 4 && (n.node || Ye(_s(n), RE)) || a & 16 && n.symbol && n.symbol.flags & 14384 && n.symbol.declarations || a & 12583968) || n.flags & 3145728 && !(n.flags & 1024) && !uLe(n) && kt(n.types, RE)); return n.flags & 3899393 && (n.objectFlags |= 524288 | (l ? 1048576 : 0)), l; } function uLe(n) { if (n.aliasSymbol && !n.aliasTypeArguments) { const a = Tl(n.aliasSymbol, 262); return !!(a && nr(a.parent, (l) => l.kind === 308 ? !0 : l.kind === 264 ? !1 : "quit")); } return !1; } function _D(n, a, l = 0) { return !!(n === a || n.flags & 3145728 && kt(n.types, (u) => _D(u, a, l)) || l < 3 && n.flags & 16777216 && (_D(E0(n), a, l + 1) || _D(T0(n), a, l + 1))); } function bZe(n, a) { const l = Zf(n); return l ? !!l.type && _D(l.type, a) : _D(hs(n), a); } function EZe(n) { const a = ao(); PE(n, (u) => { if (!(u.flags & 128)) return; const p = al(u.value), g = Qo(4, p); g.links.type = Ie, u.symbol && (g.declarations = u.symbol.declarations, g.valueDeclaration = u.symbol.valueDeclaration), a.set(p, g); }); const l = n.flags & 4 ? [dm(ce, da, !1)] : nt; return Ds(void 0, a, nt, nt, l); } function dLe(n, a, l) { if (va) return; const u = n.id + "," + a.id + "," + l.id; if (Nr.has(u)) return Nr.get(u); va = !0; const p = TZe(n, a, l); return va = !1, Nr.set(u, p), p; } function Lie(n) { return !(Qr(n) & 262144) || L0(n) && kt(fs(n), (a) => Lie(ar(a))) || Oo(n) && kt(_s(n), Lie); } function TZe(n, a, l) { if (!(nh(n, ce) || fs(n).length !== 0 && Lie(n))) return; if (Ff(n)) return Tu(GU(_s(n)[0], a, l), bL(n)); if (Oo(n)) { const p = rn(_s(n), (x) => GU(x, a, l)), g = cm(a) & 4 ? Xl(n.target.elementFlags, (x) => x & 2 ? 1 : x) : n.target.elementFlags; return Dp(p, g, n.target.readonly, n.target.labeledElementDeclarations); } const u = df(1040, void 0); return u.source = n, u.mappedType = a, u.constraintType = l, u; } function SZe(n) { const a = Ui(n); return a.type || (a.type = GU(n.links.propertyType, n.links.mappedType, n.links.constraintType)), a.type; } function GU(n, a, l) { const u = Dd(l.type, rp(a)), p = jh(a), g = Aie(u); return qh([g], n, p), fLe(g) || me; } function* Iie(n, a, l, u) { const p = fs(a); for (const g of p) if (!sAe(g) && (l || !(g.flags & 16777216 || Al(g) & 48))) { const x = so(n, g.escapedName); if (!x) yield g; else if (u) { const R = ar(g); if (R.flags & 109472) { const M = ar(x); M.flags & 1 || _d(M) === _d(R) || (yield g); } } } } function kie(n, a, l, u) { return EP(Iie(n, a, l, u)); } function xZe(n, a) { return !(a.target.combinedFlags & 8) && a.target.minLength > n.target.minLength || !a.target.hasRestElement && (n.target.hasRestElement || a.target.fixedLength < n.target.fixedLength); } function AZe(n, a) { return Oo(n) && Oo(a) ? xZe(n, a) : !!kie(n, a, !1, !0) && !!kie(a, n, !1, !1); } function fLe(n) { return n.candidates ? Xr(n.candidates, 2) : n.contraCandidates ? Lo(n.contraCandidates) : void 0; } function wie(n) { return !!Wr(n).skipDirectInference; } function _Le(n) { return !!(n.symbol && kt(n.symbol.declarations, wie)); } function CZe(n, a) { const l = n.texts[0], u = a.texts[0], p = n.texts[n.texts.length - 1], g = a.texts[a.texts.length - 1], x = Math.min(l.length, u.length), R = Math.min(p.length, g.length); return l.slice(0, x) !== u.slice(0, x) || p.slice(p.length - R) !== g.slice(g.length - R); } function pLe(n, a) { if (n === "") return !1; const l = +n; return isFinite(l) && (!a || "" + l === n); } function LZe(n) { return hU(iq(n)); } function Die(n, a) { if (a.flags & 1) return !0; if (a.flags & 134217732) return Eo(n, a); if (a.flags & 268435456) { const l = []; for (; a.flags & 268435456; ) l.unshift(a.symbol), a = a.type; return Cu(l, (p, g) => hS(g, p), n) === n && Die(n, a); } return !1; } function IZe(n, a) { if (n === a || a.flags & 5) return !0; if (n.flags & 128) { const l = n.value; return !!(a.flags & 8 && pLe(l, !1) || a.flags & 64 && w3(l, !1) || a.flags & 98816 && l === a.intrinsicName || a.flags & 268435456 && Die(Mf(l), a)); } if (n.flags & 134217728) { const l = n.texts; return l.length === 2 && l[0] === "" && l[1] === "" && Eo(n.types[0], a); } return Eo(n, a); } function mLe(n, a) { return n.flags & 128 ? hLe([n.value], nt, a) : n.flags & 134217728 ? oa(n.texts, a.texts) ? rn(n.types, kZe) : hLe(n.texts, n.types, a) : void 0; } function Rie(n, a) { const l = mLe(n, a); return !!l && Vn(l, (u, p) => IZe(u, a.types[p])); } function kZe(n) { return n.flags & 402653317 ? n : LE(["", ""], [n]); } function hLe(n, a, l) { const u = n.length - 1, p = n[0], g = n[u], x = l.texts, R = x.length - 1, M = x[0], J = x[R]; if (u === 0 && p.length < M.length + J.length || !p.startsWith(M) || !g.endsWith(J)) return; const $ = g.slice(0, g.length - J.length), he = []; let De = 0, ke = M.length; for (let Mn = 1; Mn < R; Mn++) { const An = x[Mn]; if (An.length > 0) { let Xn = De, mn = ke; for (; mn = ft(Xn).indexOf(An, mn), !(mn >= 0); ) { if (Xn++, Xn === n.length) return; mn = 0; } Bt(Xn, mn), ke += An.length; } else if (ke < ft(De).length) Bt(De, ke + 1); else if (De < u) Bt(De + 1, 0); else return; } return Bt(u, ft(u).length), he; function ft(Mn) { return Mn < u ? n[Mn] : $; } function Bt(Mn, An) { const Xn = Mn === De ? Mf(ft(Mn).slice(ke, An)) : LE([n[De].slice(ke), ...n.slice(De + 1, Mn), ft(Mn).slice(0, An)], a.slice(De, Mn)); he.push(Xn), De = Mn, ke = An; } } function qh(n, a, l, u = 0, p = !1) { let g = !1, x, R = 2048, M = !0, J, $, he, De = 0; ke(a, l); function ke(Un, sr) { if (RE(sr)) { if (Un === Nt) { const Xi = x; x = Un, ke(sr, sr), x = Xi; return; } if (Un.aliasSymbol && Un.aliasSymbol === sr.aliasSymbol) { if (Un.aliasTypeArguments) { const Xi = Ui(Un.aliasSymbol).typeParameters, Fa = um(Xi), ea = tv(Un.aliasTypeArguments, Xi, Fa, dr(Un.aliasSymbol.valueDeclaration)), Yo = tv(sr.aliasTypeArguments, Xi, Fa, dr(Un.aliasSymbol.valueDeclaration)); mn(ea, Yo, XCe(Un.aliasSymbol)); } return; } if (Un === sr && Un.flags & 3145728) { for (const Xi of Un.types) ke(Xi, Xi); return; } if (sr.flags & 1048576) { const [Xi, Fa] = Xn(Un.flags & 1048576 ? Un.types : [Un], sr.types, wZe), [ea, Yo] = Xn(Xi, Fa, DZe); if (Yo.length === 0) return; if (sr = Xr(Yo), ea.length === 0) { ft(Un, sr, 1); return; } Un = Xr(ea); } else if (sr.flags & 2097152 && !Vn(sr.types, pU)) { if (!(Un.flags & 1048576)) { const [Xi, Fa] = Xn(Un.flags & 2097152 ? Un.types : [Un], sr.types, Hh); if (Xi.length === 0 || Fa.length === 0) return; Un = Lo(Xi), sr = Lo(Fa); } } else sr.flags & 41943040 && (sr = iv(sr)); if (sr.flags & 8650752) { if (_Le(Un)) return; const Xi = an(sr); if (Xi) { if (Qr(Un) & 262144 || Un === _e) return; if (!Xi.isFixed) { if ((Xi.priority === void 0 || u < Xi.priority) && (Xi.candidates = void 0, Xi.contraCandidates = void 0, Xi.topLevel = !0, Xi.priority = u), u === Xi.priority) { const ea = x || Un; p && !g ? Ii(Xi.contraCandidates, ea) || (Xi.contraCandidates = Fn(Xi.contraCandidates, ea), BU(n)) : Ii(Xi.candidates, ea) || (Xi.candidates = Fn(Xi.candidates, ea), BU(n)); } !(u & 128) && sr.flags & 262144 && Xi.topLevel && !_D(l, sr) && (Xi.topLevel = !1, BU(n)); } R = Math.min(R, u); return; } const Fa = Wg(sr, !1); if (Fa !== sr) ke(Un, Fa); else if (sr.flags & 8388608) { const ea = Wg(sr.indexType, !1); if (ea.flags & 465829888) { const Yo = yCe(Wg(sr.objectType, !1), ea, !1); Yo && Yo !== sr && ke(Un, Yo); } } } if (Qr(Un) & 4 && Qr(sr) & 4 && (Un.target === sr.target || Ff(Un) && Ff(sr)) && !(Un.node && sr.node)) mn(_s(Un), _s(sr), uie(Un.target)); else if (Un.flags & 4194304 && sr.flags & 4194304) xn(Un.type, sr.type); else if ((cD(Un) || Un.flags & 4) && sr.flags & 4194304) { const Xi = EZe(Un); Bt(Xi, sr.type, 256); } else if (Un.flags & 8388608 && sr.flags & 8388608) ke(Un.objectType, sr.objectType), ke(Un.indexType, sr.indexType); else if (Un.flags & 268435456 && sr.flags & 268435456) Un.symbol === sr.symbol && ke(Un.type, sr.type); else if (Un.flags & 33554432) ke(Un.baseType, sr), ft(kre(Un), sr, 4); else if (sr.flags & 16777216) An(Un, sr, ei); else if (sr.flags & 3145728) Jn(Un, sr.types, sr.flags); else if (Un.flags & 1048576) { const Xi = Un.types; for (const Fa of Xi) ke(Fa, sr); } else if (sr.flags & 134217728) fa(Un, sr); else { if (Un = ap(Un), !(u & 512 && Un.flags & 467927040)) { const Xi = Vu(Un); if (Xi !== Un && M && !(Xi.flags & 2621440)) return M = !1, ke(Xi, sr); Un = Xi; } Un.flags & 2621440 && An(Un, sr, Ya); } } } function ft(Un, sr, Xi) { const Fa = u; u |= Xi, ke(Un, sr), u = Fa; } function Bt(Un, sr, Xi) { const Fa = u; u |= Xi, xn(Un, sr), u = Fa; } function Mn(Un, sr, Xi, Fa) { const ea = u; u |= Fa, Jn(Un, sr, Xi), u = ea; } function An(Un, sr, Xi) { const Fa = Un.id + "," + sr.id, ea = J && J.get(Fa); if (ea !== void 0) { R = Math.min(R, ea); return; } (J || (J = /* @__PURE__ */ new Map())).set(Fa, -1); const Yo = R; R = 2048; const Rs = De, ml = vL(Un), To = vL(sr); Ii($, ml) && (De |= 1), Ii(he, To) && (De |= 2), De !== 3 ? (($ || ($ = [])).push(ml), (he || (he = [])).push(To), Xi(Un, sr), he.pop(), $.pop()) : R = -1, De = Rs, J.set(Fa, R), R = Math.min(R, Yo); } function Xn(Un, sr, Xi) { let Fa, ea; for (const Yo of sr) for (const Rs of Un) Xi(Rs, Yo) && (ke(Rs, Yo), Fa = ny(Fa, Rs), ea = ny(ea, Yo)); return [ Fa ? yn(Un, (Yo) => !Ii(Fa, Yo)) : Un, ea ? yn(sr, (Yo) => !Ii(ea, Yo)) : sr ]; } function mn(Un, sr, Xi) { const Fa = Un.length < sr.length ? Un.length : sr.length; for (let ea = 0; ea < Fa; ea++) ea < Xi.length && (Xi[ea] & 7) === 2 ? xn(Un[ea], sr[ea]) : ke(Un[ea], sr[ea]); } function xn(Un, sr) { p = !p, ke(Un, sr), p = !p; } function gr(Un, sr) { le || u & 1024 ? xn(Un, sr) : ke(Un, sr); } function an(Un) { if (Un.flags & 8650752) { for (const sr of n) if (Un === sr.typeParameter) return sr; } } function Gn(Un) { let sr; for (const Xi of Un) { const Fa = Xi.flags & 2097152 && un(Xi.types, (ea) => !!an(ea)); if (!Fa || sr && Fa !== sr) return; sr = Fa; } return sr; } function Jn(Un, sr, Xi) { let Fa = 0; if (Xi & 1048576) { let ea; const Yo = Un.flags & 1048576 ? Un.types : [Un], Rs = new Array(Yo.length); let ml = !1; for (const To of sr) if (an(To)) ea = To, Fa++; else for (let ju = 0; ju < Yo.length; ju++) { const ct = R; R = 2048, ke(Yo[ju], To), R === u && (Rs[ju] = !0), ml = ml || R === -1, R = Math.min(R, ct); } if (Fa === 0) { const To = Gn(sr); To && ft(Un, To, 1); return; } if (Fa === 1 && !ml) { const To = Mo(Yo, (ju, ct) => Rs[ct] ? void 0 : ju); if (To.length) { ke(Xr(To), ea); return; } } } else for (const ea of sr) an(ea) ? Fa++ : ke(Un, ea); if (Xi & 2097152 ? Fa === 1 : Fa > 0) for (const ea of sr) an(ea) && ft(Un, ea, 1); } function Yr(Un, sr, Xi) { if (Xi.flags & 1048576) { let Fa = !1; for (const ea of Xi.types) Fa = Yr(Un, sr, ea) || Fa; return Fa; } if (Xi.flags & 4194304) { const Fa = an(Xi.type); if (Fa && !Fa.isFixed && !_Le(Un)) { const ea = dLe(Un, sr, Xi); ea && ft(ea, Fa.typeParameter, Qr(Un) & 262144 ? 16 : 8); } return !0; } if (Xi.flags & 262144) { ft(fm(Un), Xi, 32); const Fa = xE(Xi); if (Fa && Yr(Un, sr, Fa)) return !0; const ea = rn(fs(Un), ar), Yo = rn(Eu(Un), (Rs) => Rs !== Bu ? Rs.type : ht); return ke(Xr(ha(ea, Yo)), jh(sr)), !0; } return !1; } function ei(Un, sr) { if (Un.flags & 16777216) ke(Un.checkType, sr.checkType), ke(Un.extendsType, sr.extendsType), ke(E0(Un), E0(sr)), ke(T0(Un), T0(sr)); else { const Xi = [E0(sr), T0(sr)]; Mn(Un, Xi, sr.flags, p ? 64 : 0); } } function fa(Un, sr) { const Xi = mLe(Un, sr), Fa = sr.types; if (Xi || Vn(sr.texts, (ea) => ea.length === 0)) for (let ea = 0; ea < Fa.length; ea++) { const Yo = Xi ? Xi[ea] : ht, Rs = Fa[ea]; if (Yo.flags & 128 && Rs.flags & 8650752) { const ml = an(Rs), To = ml ? Uu(ml.typeParameter) : void 0; if (To && !Es(To)) { const ju = To.flags & 1048576 ? To.types : [To]; let ct = Cu(ju, (Ee, er) => Ee | er.flags, 0); if (!(ct & 4)) { const Ee = Yo.value; ct & 296 && !pLe(Ee, !0) && (ct &= -297), ct & 2112 && !w3(Ee, !0) && (ct &= -2113); const er = Cu(ju, (Qn, Er) => Er.flags & ct ? Qn.flags & 4 ? Qn : Er.flags & 4 ? Yo : Qn.flags & 134217728 ? Qn : Er.flags & 134217728 && Rie(Yo, Er) ? Yo : Qn.flags & 268435456 ? Qn : Er.flags & 268435456 && Ee === mCe(Er.symbol, Ee) ? Yo : Qn.flags & 128 ? Qn : Er.flags & 128 && Er.value === Ee ? Er : Qn.flags & 8 ? Qn : Er.flags & 8 ? Rp(+Ee) : Qn.flags & 32 ? Qn : Er.flags & 32 ? Rp(+Ee) : Qn.flags & 256 ? Qn : Er.flags & 256 && Er.value === +Ee ? Er : Qn.flags & 64 ? Qn : Er.flags & 64 ? LZe(Ee) : Qn.flags & 2048 ? Qn : Er.flags & 2048 && A1(Er.value) === Ee ? Er : Qn.flags & 16 ? Qn : Er.flags & 16 ? Ee === "true" ? Oe : Ee === "false" ? rt : we : Qn.flags & 512 ? Qn : Er.flags & 512 && Er.intrinsicName === Ee ? Er : Qn.flags & 32768 ? Qn : Er.flags & 32768 && Er.intrinsicName === Ee ? Er : Qn.flags & 65536 ? Qn : Er.flags & 65536 && Er.intrinsicName === Ee ? Er : Qn : Qn, ht); if (!(er.flags & 131072)) { ke(er, Rs); continue; } } } } ke(Yo, Rs); } } function Ya(Un, sr) { var Xi, Fa; if (Qr(Un) & 4 && Qr(sr) & 4 && (Un.target === sr.target || Ff(Un) && Ff(sr))) { mn(_s(Un), _s(sr), uie(Un.target)); return; } if (Pf(Un) && Pf(sr)) { ke(kp(Un), kp(sr)), ke(jh(Un), jh(sr)); const ea = Qy(Un), Yo = Qy(sr); ea && Yo && ke(ea, Yo); } if (Qr(sr) & 32 && !sr.declaration.nameType) { const ea = kp(sr); if (Yr(Un, sr, ea)) return; } if (!AZe(Un, sr)) { if (kE(Un)) { if (Oo(sr)) { const ea = v0(Un), Yo = v0(sr), Rs = _s(sr), ml = sr.target.elementFlags; if (Oo(Un) && aZe(Un, sr)) { for (let ct = 0; ct < Yo; ct++) ke(_s(Un)[ct], Rs[ct]); return; } const To = Oo(Un) ? Math.min(Un.target.fixedLength, sr.target.fixedLength) : 0, ju = Math.min(Oo(Un) ? m4(Un.target, 3) : 0, sr.target.hasRestElement ? m4(sr.target, 3) : 0); for (let ct = 0; ct < To; ct++) ke(_s(Un)[ct], Rs[ct]); if (!Oo(Un) || ea - To - ju === 1 && Un.target.elementFlags[To] & 4) { const ct = _s(Un)[To]; for (let Ee = To; Ee < Yo - ju; Ee++) ke(ml[Ee] & 8 ? Tu(ct) : ct, Rs[Ee]); } else { const ct = Yo - To - ju; if (ct === 2) { if (ml[To] & ml[To + 1] & 8) { const Ee = an(Rs[To]); Ee && Ee.impliedArity !== void 0 && (ke(mL(Un, To, ju + ea - Ee.impliedArity), Rs[To]), ke(mL(Un, To + Ee.impliedArity, ju), Rs[To + 1])); } else if (ml[To] & 8 && ml[To + 1] & 4) { const Ee = (Xi = an(Rs[To])) == null ? void 0 : Xi.typeParameter, er = Ee && Uu(Ee); if (er && Oo(er) && !er.target.hasRestElement) { const Qn = er.target.fixedLength; ke(mL(Un, To, ea - (To + Qn)), Rs[To]), ke(TL(Un, To + Qn, ju), Rs[To + 1]); } } else if (ml[To] & 4 && ml[To + 1] & 8) { const Ee = (Fa = an(Rs[To + 1])) == null ? void 0 : Fa.typeParameter, er = Ee && Uu(Ee); if (er && Oo(er) && !er.target.hasRestElement) { const Qn = er.target.fixedLength, Er = ea - m4(sr.target, 3), Ir = Er - Qn, wa = Dp(_s(Un).slice(Ir, Er), Un.target.elementFlags.slice(Ir, Er), !1, Un.target.labeledElementDeclarations && Un.target.labeledElementDeclarations.slice(Ir, Er)); ke(TL(Un, To, ju + Qn), Rs[To]), ke(wa, Rs[To + 1]); } } } else if (ct === 1 && ml[To] & 8) { const Ee = sr.target.elementFlags[Yo - 1] & 2, er = mL(Un, To, ju); ft(er, Rs[To], Ee ? 2 : 0); } else if (ct === 1 && ml[To] & 4) { const Ee = TL(Un, To, ju); Ee && ke(Ee, Rs[To]); } } for (let ct = 0; ct < ju; ct++) ke(_s(Un)[ea - ct - 1], Rs[Yo - ct - 1]); return; } if (Ff(sr)) { ia(Un, sr); return; } } gc(Un, sr), Bf(Un, sr, 0), Bf(Un, sr, 1), ia(Un, sr); } } function gc(Un, sr) { const Xi = Zy(sr); for (const Fa of Xi) { const ea = so(Un, Fa.escapedName); ea && !kt(ea.declarations, wie) && ke(ar(ea), ar(Fa)); } } function Bf(Un, sr, Xi) { const Fa = Ha(Un, Xi), ea = Ha(sr, Xi), Yo = Fa.length, Rs = ea.length, ml = Yo < Rs ? Yo : Rs; for (let To = 0; To < ml; To++) mf(FYe(Fa[Yo - ml + To]), eD(ea[Rs - ml + To])); } function mf(Un, sr) { const Xi = g, Fa = sr.declaration ? sr.declaration.kind : 0; g = g || Fa === 171 || Fa === 170 || Fa === 173, Tie(Un, sr, gr), g = Xi, Sie(Un, sr, ke); } function ia(Un, sr) { const Xi = Qr(Un) & Qr(sr) & 32 ? 8 : 0, Fa = Eu(sr); if (PU(Un)) for (const ea of Fa) { const Yo = []; for (const Rs of fs(Un)) if (I2(hL(Rs, 8576), ea.keyType)) { const ml = ar(Rs); Yo.push(Rs.flags & 16777216 ? bie(ml) : ml); } for (const Rs of Eu(Un)) I2(Rs.keyType, ea.keyType) && Yo.push(Rs.type); Yo.length && ft(Xr(Yo), ea.type, Xi); } for (const ea of Fa) { const Yo = d4(Un, ea.keyType); Yo && ft(Yo.type, ea.type, Xi); } } } function wZe(n, a) { return a === Je ? n === a : Hh(n, a) || !!(a.flags & 4 && n.flags & 128 || a.flags & 8 && n.flags & 256); } function DZe(n, a) { return !!(n.flags & 524288 && a.flags & 524288 && n.symbol && n.symbol === a.symbol || n.aliasSymbol && n.aliasTypeArguments && n.aliasSymbol === a.aliasSymbol); } function RZe(n) { const a = bu(n); return !!a && fl(a.flags & 16777216 ? lre(a) : a, 406978556); } function L0(n) { return !!(Qr(n) & 128); } function Nie(n) { return !!(Qr(n) & 16512); } function NZe(n) { if (n.length > 1) { const a = yn(n, Nie); if (a.length) { const l = Xr(a, 2); return ha(yn(n, (u) => !Nie(u)), [l]); } } return n; } function OZe(n) { return n.priority & 416 ? Lo(n.contraCandidates) : QQe(n.contraCandidates); } function PZe(n, a) { const l = NZe(n.candidates), u = RZe(n.typeParameter) || c4(n.typeParameter), p = !u && n.topLevel && (n.isFixed || !bZe(a, n.typeParameter)), g = u ? Xl(l, _d) : p ? Xl(l, Bb) : l, x = n.priority & 416 ? Xr(g, 2) : $Qe(g); return Kd(x); } function Oie(n, a) { const l = n.inferences[a]; if (!l.inferredType) { let u; const p = n.signature; if (p) { const x = l.candidates ? PZe(l, p) : void 0; if (l.contraCandidates) u = x && !(x.flags & 131072) && kt(l.contraCandidates, (M) => av(x, M)) && Vn(n.inferences, (M) => M !== l && bu(M.typeParameter) !== l.typeParameter || Vn(M.candidates, (J) => av(J, x))) ? x : OZe(l); else if (x) u = x; else if (n.flags & 1) u = dt; else { const R = AE(l.typeParameter); R && (u = qi(R, dQe(uQe(n, a), n.nonFixingMapper))); } } else u = fLe(l); l.inferredType = u || Pie(!!(n.flags & 2)); const g = bu(l.typeParameter); if (g) { const x = qi(g, n.nonFixingMapper); (!u || !n.compareTypes(u, Of(x, u))) && (l.inferredType = u = x); } } return l.inferredType; } function Pie(n) { return n ? Ie : me; } function Mie(n) { const a = []; for (let l = 0; l < n.inferences.length; l++) a.push(Oie(n, l)); return a; } function gLe(n) { switch (n.escapedText) { case "document": case "console": return _.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom; case "$": return Y.types ? _.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 : _.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery; case "describe": case "suite": case "it": case "test": return Y.types ? _.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 : _.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; case "process": case "require": case "Buffer": case "module": return Y.types ? _.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 : _.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode; case "Map": case "Set": case "Promise": case "Symbol": case "WeakMap": case "WeakSet": case "Iterator": case "AsyncIterator": case "SharedArrayBuffer": case "Atomics": case "AsyncIterable": case "AsyncIterableIterator": case "AsyncGenerator": case "AsyncGeneratorFunction": case "BigInt": case "Reflect": case "BigInt64Array": case "BigUint64Array": return _.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later; case "await": if (eo(n.parent)) return _.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function; default: return n.parent.kind === 300 ? _.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer : _.Cannot_find_name_0; } } function x_(n) { const a = Wr(n); return a.resolvedSymbol || (a.resolvedSymbol = !Sl(n) && dl(n, n.escapedText, 1160127, gLe(n), n, !Pz(n), !1) || en), a.resolvedSymbol; } function SL(n) { return !!nr(n, (a) => a.kind === 183 ? !0 : a.kind === 79 || a.kind === 163 ? !1 : "quit"); } function yLe(n) { return !!(n.flags & 16777216 || nr(n, (a) => Yu(a) || rf(a))); } function UU(n, a, l, u) { switch (n.kind) { case 79: if (!nx(n)) { const x = x_(n); return x !== en ? `${u ? ds(u) : "-1"}|${Su(a)}|${Su(l)}|${go(x)}` : void 0; } case 108: return `0|${u ? ds(u) : "-1"}|${Su(a)}|${Su(l)}`; case 232: case 214: return UU(n.expression, a, l, u); case 163: const p = UU(n.left, a, l, u); return p && p + "." + n.right.escapedText; case 208: case 209: const g = NE(n); if (g !== void 0) { const x = UU(n.expression, a, l, u); return x && x + "." + g; } break; case 203: case 204: case 259: case 215: case 216: case 171: return `${ds(n)}#${Su(a)}`; } } function Hc(n, a) { switch (a.kind) { case 214: case 232: return Hc(n, a.expression); case 223: return Ku(a) && Hc(n, a.left) || vr(a) && a.operatorToken.kind === 27 && Hc(n, a.right); } switch (n.kind) { case 233: return a.kind === 233 && n.keywordToken === a.keywordToken && n.name.escapedText === a.name.escapedText; case 79: case 80: return nx(n) ? a.kind === 108 : a.kind === 79 && x_(n) === x_(a) || (Wi(a) || us(a)) && Lp(x_(n)) === Lr(a); case 108: return a.kind === 108; case 106: return a.kind === 106; case 232: case 214: return Hc(n.expression, a); case 208: case 209: const l = NE(n), u = ol(a) ? NE(a) : void 0; return l !== void 0 && u !== void 0 && u === l && Hc(n.expression, a.expression); case 163: return ol(a) && n.right.escapedText === NE(a) && Hc(n.left, a.expression); case 223: return vr(n) && n.operatorToken.kind === 27 && Hc(n.right, a); } return !1; } function NE(n) { if (Pr(n)) return n.name.escapedText; if (sl(n)) return MZe(n); if (us(n)) { const a = Cn(n); return a ? al(a) : void 0; } if (Ma(n)) return "" + n.parent.parameters.indexOf(n); } function vLe(n) { return n.flags & 8192 ? n.escapedName : n.flags & 384 ? al("" + n.value) : void 0; } function MZe(n) { if (Hf(n.argumentExpression)) return al(n.argumentExpression.text); if (Vl(n.argumentExpression)) { const a = wl(n.argumentExpression, 111551, !0); if (!a || !(AL(a) || a.flags & 8)) return; const l = a.valueDeclaration; if (l === void 0) return; const u = wd(l); if (u) { const p = vLe(u); if (p !== void 0) return p; } if (eT(l) && Cg(l, n.argumentExpression)) { const p = iN(l); if (p) return vLe(Au(p)); if (D1(l)) return AA(l.name); } } } function bLe(n, a) { for (; ol(n); ) if (n = n.expression, Hc(n, a)) return !0; return !1; } function bS(n, a) { for (; fu(n); ) if (n = n.expression, Hc(n, a)) return !0; return !1; } function pD(n, a) { if (n && n.flags & 1048576) { const l = fre(n, a); if (l && Al(l) & 2) return l.links.isDiscriminantProperty === void 0 && (l.links.isDiscriminantProperty = (l.links.checkFlags & 192) === 192 && !gL(ar(l))), !!l.links.isDiscriminantProperty; } return !1; } function ELe(n, a) { let l; for (const u of n) if (pD(a, u.escapedName)) { if (l) { l.push(u); continue; } l = [u]; } return l; } function FZe(n, a) { const l = /* @__PURE__ */ new Map(); let u = 0; for (const p of n) if (p.flags & 61603840) { const g = cc(p, a); if (g) { if (!cD(g)) return; let x = !1; PE(g, (R) => { const M = Su(_d(R)), J = l.get(M); J ? J !== me && (l.set(M, me), x = !0) : l.set(M, p); }), x || u++; } } return u >= 10 && u * 2 >= n.length ? l : void 0; } function w4(n) { const a = n.types; if (!(a.length < 10 || Qr(n) & 32768 || xa(a, (l) => !!(l.flags & 59506688)) < 10)) { if (n.keyPropertyName === void 0) { const l = Ye(a, (p) => p.flags & 59506688 ? Ye(fs(p), (g) => op(ar(g)) ? g.escapedName : void 0) : void 0), u = l && FZe(a, l); n.keyPropertyName = u ? l : "", n.constituentMap = u; } return n.keyPropertyName.length ? n.keyPropertyName : void 0; } } function D4(n, a) { var l; const u = (l = n.constituentMap) == null ? void 0 : l.get(Su(_d(a))); return u !== me ? u : void 0; } function TLe(n, a) { const l = w4(n), u = l && cc(a, l); return u && D4(n, u); } function BZe(n, a) { const l = w4(n), u = l && un(a.properties, (g) => g.symbol && g.kind === 299 && g.symbol.escapedName === l && B4(g.initializer)), p = u && tP(u.initializer); return p && D4(n, p); } function SLe(n, a) { return Hc(n, a) || bLe(n, a); } function xLe(n, a) { if (n.arguments) { for (const l of n.arguments) if (SLe(a, l)) return !0; } return !!(n.expression.kind === 208 && SLe(a, n.expression.expression)); } function Fie(n) { return (!n.id || n.id < 0) && (n.id = MK, MK++), n.id; } function GZe(n, a) { if (!(n.flags & 1048576)) return Eo(n, a); for (const l of n.types) if (Eo(l, a)) return !0; return !1; } function UZe(n, a) { var l; if (n === a) return n; if (a.flags & 131072) return a; const u = `A${Su(n)},${Su(a)}`; return (l = db(u)) != null ? l : Sg(u, VZe(n, a)); } function VZe(n, a) { const l = uc(n, (p) => GZe(a, p)), u = a.flags & 512 && Pb(a) ? Xs(l, F2) : l; return Eo(a, u) ? u : n; } function Bie(n) { const a = ip(n); return !!(a.callSignatures.length || a.constructSignatures.length || a.members.get("bind") && av(n, cl)); } function xu(n) { n.flags & 467927040 && (n = Uu(n) || me); const a = n.flags; if (a & 268435460) return H ? 16317953 : 16776705; if (a & 134217856) { const l = a & 128 && n.value === ""; return H ? l ? 12123649 : 7929345 : l ? 12582401 : 16776705; } if (a & 40) return H ? 16317698 : 16776450; if (a & 256) { const l = n.value === 0; return H ? l ? 12123394 : 7929090 : l ? 12582146 : 16776450; } if (a & 64) return H ? 16317188 : 16775940; if (a & 2048) { const l = rLe(n); return H ? l ? 12122884 : 7928580 : l ? 12581636 : 16775940; } return a & 16 ? H ? 16316168 : 16774920 : a & 528 ? H ? n === rt || n === K ? 12121864 : 7927560 : n === rt || n === K ? 12580616 : 16774920 : a & 524288 ? Qr(n) & 16 && Wh(n) ? H ? 83427327 : 83886079 : Bie(n) ? H ? 7880640 : 16728e3 : H ? 7888800 : 16736160 : a & 16384 ? 9830144 : a & 32768 ? 26607360 : a & 65536 ? 42917664 : a & 12288 ? H ? 7925520 : 16772880 : a & 67108864 ? H ? 7888800 : 16736160 : a & 131072 ? 0 : a & 1048576 ? Cu(n.types, (l, u) => l | xu(u), 0) : a & 2097152 ? jZe(n) : 83886079; } function jZe(n) { const a = fl(n, 134348796); let l = 0, u = 134217727; for (const p of n.types) if (!(a && p.flags & 524288)) { const g = xu(p); l |= g, u &= g; } return l & 8256 | u & 134209471; } function n_(n, a) { return uc(n, (l) => (xu(l) & a) !== 0); } function OE(n, a) { const l = ALe(n_(H && n.flags & 2 ? Fl : n, a)); if (H) switch (a) { case 524288: return Xs(l, (u) => xu(u) & 65536 ? Lo([u, xu(u) & 131072 && !fl(l, 65536) ? Xr([da, Sn]) : da]) : u); case 1048576: return Xs(l, (u) => xu(u) & 131072 ? Lo([u, xu(u) & 65536 && !fl(l, 32768) ? Xr([da, je]) : da]) : u); case 2097152: case 4194304: return Xs(l, (u) => xu(u) & 262144 ? lZe(u) : u); } return l; } function ALe(n) { return n === Fl ? me : n; } function Gie(n, a) { return a ? Xr([be(n), Au(a)]) : n; } function CLe(n, a) { var l; const u = Hg(a); if (!Vh(u)) return xe; const p = lm(u); return cc(n, p) || mD((l = k2(n, p)) == null ? void 0 : l.type) || xe; } function LLe(n, a) { return rh(n, EL) && ZQe(n, a) || mD(cv(65, n, je, void 0)) || xe; } function mD(n) { return n && (Y.noUncheckedIndexedAccess ? Xr([n, Je]) : n); } function ILe(n) { return Tu(cv(65, n, je, void 0) || xe); } function HZe(n) { return n.parent.kind === 206 && Uie(n.parent) || n.parent.kind === 299 && Uie(n.parent.parent) ? Gie(R4(n), n.right) : Au(n.right); } function Uie(n) { return n.parent.kind === 223 && n.parent.left === n || n.parent.kind === 247 && n.parent.initializer === n; } function WZe(n, a) { return LLe(R4(n), n.elements.indexOf(a)); } function zZe(n) { return ILe(R4(n.parent)); } function kLe(n) { return CLe(R4(n.parent), n.name); } function qZe(n) { return Gie(kLe(n), n.objectAssignmentInitializer); } function R4(n) { const { parent: a } = n; switch (a.kind) { case 246: return ce; case 247: return lP(a) || xe; case 223: return HZe(a); case 217: return je; case 206: return WZe(a, n); case 227: return zZe(a); case 299: return kLe(a); case 300: return qZe(a); } return xe; } function JZe(n) { const a = n.parent, l = DLe(a.parent), u = a.kind === 203 ? CLe(l, n.propertyName || n.name) : n.dotDotDotToken ? ILe(l) : LLe(l, a.elements.indexOf(n)); return Gie(u, n.initializer); } function wLe(n) { return Wr(n).resolvedType || Au(n); } function KZe(n) { return n.initializer ? wLe(n.initializer) : n.parent.parent.kind === 246 ? ce : n.parent.parent.kind === 247 && lP(n.parent.parent) || xe; } function DLe(n) { return n.kind === 257 ? KZe(n) : JZe(n); } function XZe(n) { return n.kind === 257 && n.initializer && Cs(n.initializer) || n.kind !== 205 && n.parent.kind === 223 && Cs(n.parent.right); } function Gb(n) { switch (n.kind) { case 214: return Gb(n.expression); case 223: switch (n.operatorToken.kind) { case 63: case 75: case 76: case 77: return Gb(n.left); case 27: return Gb(n.right); } } return n; } function RLe(n) { const { parent: a } = n; return a.kind === 214 || a.kind === 223 && a.operatorToken.kind === 63 && a.left === n || a.kind === 223 && a.operatorToken.kind === 27 && a.right === n ? RLe(a) : n; } function YZe(n) { return n.kind === 292 ? _d(Au(n.expression)) : ht; } function VU(n) { const a = Wr(n); if (!a.switchTypes) { a.switchTypes = []; for (const l of n.caseBlock.clauses) a.switchTypes.push(YZe(l)); } return a.switchTypes; } function NLe(n) { if (kt(n.caseBlock.clauses, (l) => l.kind === 292 && !Ts(l.expression))) return; const a = []; for (const l of n.caseBlock.clauses) { const u = l.kind === 292 ? l.expression.text : void 0; a.push(u && !Ii(a, u) ? u : void 0); } return a; } function $Ze(n, a) { return n.flags & 1048576 ? !Ye(n.types, (l) => !Ii(a, l)) : Ii(a, n); } function hD(n, a) { return n === a || a.flags & 1048576 && QZe(n, a); } function QZe(n, a) { if (n.flags & 1048576) { for (const l of n.types) if (!Rb(a.types, l)) return !1; return !0; } return n.flags & 1056 && qw(n) === a ? !0 : Rb(a.types, n); } function PE(n, a) { return n.flags & 1048576 ? Ye(n.types, a) : a(n); } function Jh(n, a) { return n.flags & 1048576 ? kt(n.types, a) : a(n); } function rh(n, a) { return n.flags & 1048576 ? Vn(n.types, a) : a(n); } function ZZe(n, a) { return n.flags & 3145728 ? Vn(n.types, a) : a(n); } function uc(n, a) { if (n.flags & 1048576) { const l = n.types, u = yn(l, a); if (u === l) return n; const p = n.origin; let g; if (p && p.flags & 1048576) { const x = p.types, R = yn(x, (M) => !!(M.flags & 1048576) || a(M)); if (x.length - R.length === l.length - u.length) { if (R.length === 1) return R[0]; g = Gre(1048576, R); } } return Vre(u, n.objectFlags & 16809984, void 0, void 0, g); } return n.flags & 131072 || a(n) ? n : ht; } function jU(n, a) { return uc(n, (l) => l !== a); } function eet(n) { return n.flags & 1048576 ? n.types.length : 1; } function Xs(n, a, l) { if (n.flags & 131072) return n; if (!(n.flags & 1048576)) return a(n); const u = n.origin, p = u && u.flags & 1048576 ? u.types : n.types; let g, x = !1; for (const R of p) { const M = R.flags & 1048576 ? Xs(R, a, l) : a(R); x || (x = R !== M), M && (g ? g.push(M) : g = [M]); } return x ? g && Xr(g, l ? 0 : 1) : n; } function OLe(n, a, l, u) { return n.flags & 1048576 && l ? Xr(rn(n.types, a), 1, l, u) : Xs(n, a); } function xL(n, a) { return uc(n, (l) => (l.flags & a) !== 0); } function PLe(n, a) { return fl(n, 134217804) && fl(a, 402655616) ? Xs(n, (l) => l.flags & 4 ? xL(a, 402653316) : P2(l) && !fl(a, 402653188) ? xL(a, 128) : l.flags & 8 ? xL(a, 264) : l.flags & 64 ? xL(a, 2112) : l) : n; } function U2(n) { return n.flags === 0; } function ME(n) { return n.flags === 0 ? n.type : n; } function V2(n, a) { return a ? { flags: 0, type: n.flags & 131072 ? dt : n } : n; } function tet(n) { const a = df(256); return a.elementType = n, a; } function Vie(n) { return Di[n.id] || (Di[n.id] = tet(n)); } function MLe(n, a) { const l = k4(sv(tP(a))); return hD(l, n.elementType) ? n : Vie(Xr([n.elementType, l])); } function net(n) { return n.flags & 131072 ? Nn : Tu(n.flags & 1048576 ? Xr(n.types, 2) : n); } function ret(n) { return n.finalArrayType || (n.finalArrayType = net(n.elementType)); } function N4(n) { return Qr(n) & 256 ? ret(n) : n; } function iet(n) { return Qr(n) & 256 ? n.elementType : ht; } function aet(n) { let a = !1; for (const l of n) if (!(l.flags & 131072)) { if (!(Qr(l) & 256)) return !1; a = !0; } return a; } function FLe(n) { const a = RLe(n), l = a.parent, u = Pr(l) && (l.name.escapedText === "length" || l.parent.kind === 210 && Ve(l.name) && sz(l.name)), p = l.kind === 209 && l.expression === a && l.parent.kind === 223 && l.parent.operatorToken.kind === 63 && l.parent.left === l && !mh(l.parent) && Rc(Au(l.argumentExpression), 296); return u || p; } function oet(n) { return (Wi(n) || Za(n) || Tf(n) || Ma(n)) && !!(Jc(n) || dr(n) && xv(n) && n.initializer && ZA(n.initializer) && fp(n.initializer)); } function HU(n, a) { if (n = ql(n), n.flags & 8752) return ar(n); if (n.flags & 7) { if (Al(n) & 262144) { const u = n.links.syntheticOrigin; if (u && HU(u)) return ar(n); } const l = n.valueDeclaration; if (l) { if (oet(l)) return ar(n); if (Wi(l) && l.parent.parent.kind === 247) { const u = l.parent.parent, p = O4(u.expression, void 0); if (p) { const g = u.awaitModifier ? 15 : 13; return cv(g, p, je, void 0); } } a && qo(a, Dr(l, _._0_needs_an_explicit_type_annotation, S(n))); } } } function O4(n, a) { if (!(n.flags & 33554432)) switch (n.kind) { case 79: const l = Lp(x_(n)); return HU(l, a); case 108: return Let(n); case 106: return qie(n); case 208: { const u = O4(n.expression, a); if (u) { const p = n.name; let g; if (ki(p)) { if (!u.symbol) return; g = so(u, xN(u.symbol, p.escapedText)); } else g = so(u, p.escapedText); return g && HU(g, a); } return; } case 214: return O4(n.expression, a); } } function WU(n) { const a = Wr(n); let l = a.effectsSignature; if (l === void 0) { let u; n.parent.kind === 241 ? u = O4(n.expression, void 0) : n.expression.kind !== 106 && (fu(n) ? u = Np(uD(ma(n.expression), n.expression), n.expression) : u = IL(n.expression)); const p = Ha(u && Vu(u) || me, 0), g = p.length === 1 && !p[0].typeParameters ? p[0] : kt(p, BLe) ? wL(n) : void 0; l = a.effectsSignature = g && BLe(g) ? g : Zt; } return l === Zt ? void 0 : l; } function BLe(n) { return !!(Zf(n) || n.declaration && (w2(n.declaration) || me).flags & 131072); } function set(n, a) { if (n.kind === 1 || n.kind === 3) return a.arguments[n.parameterIndex]; const l = Us(a.expression); return ol(l) ? Us(l.expression) : void 0; } function cet(n) { const a = nr(n, iW), l = Zn(n), u = _y(l, a.statements.pos); Xo.add(Lc(l, u.start, u.length, _.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)); } function P4(n) { const a = zU(n, !1); return fn = n, ur = a, a; } function M4(n) { const a = Us(n, !0); return a.kind === 95 || a.kind === 223 && (a.operatorToken.kind === 55 && (M4(a.left) || M4(a.right)) || a.operatorToken.kind === 56 && M4(a.left) && M4(a.right)); } function zU(n, a) { for (; ; ) { if (n === fn) return ur; const l = n.flags; if (l & 4096) { if (!a) { const u = Fie(n), p = o2[u]; return p !== void 0 ? p : o2[u] = zU(n, !0); } a = !1; } if (l & 368) n = n.antecedent; else if (l & 512) { const u = WU(n.node); if (u) { const p = Zf(u); if (p && p.kind === 3 && !p.type) { const g = n.node.arguments[p.parameterIndex]; if (g && M4(g)) return !1; } if (hs(u).flags & 131072) return !1; } n = n.antecedent; } else { if (l & 4) return kt(n.antecedents, (u) => zU(u, !1)); if (l & 8) { const u = n.antecedents; if (u === void 0 || u.length === 0) return !1; n = u[0]; } else if (l & 128) { if (n.clauseStart === n.clauseEnd && _ke(n.switchStatement)) return !1; n = n.antecedent; } else if (l & 1024) { fn = void 0; const u = n.target, p = u.antecedents; u.antecedents = n.antecedents; const g = zU(n.antecedent, !1); return u.antecedents = p, g; } else return !(l & 1); } } } function qU(n, a) { for (; ; ) { const l = n.flags; if (l & 4096) { if (!a) { const u = Fie(n), p = Y1[u]; return p !== void 0 ? p : Y1[u] = qU(n, !0); } a = !1; } if (l & 496) n = n.antecedent; else if (l & 512) { if (n.node.expression.kind === 106) return !0; n = n.antecedent; } else { if (l & 4) return Vn(n.antecedents, (u) => qU(u, !1)); if (l & 8) n = n.antecedents[0]; else if (l & 1024) { const u = n.target, p = u.antecedents; u.antecedents = n.antecedents; const g = qU(n.antecedent, !1); return u.antecedents = p, g; } else return !!(l & 1); } } } function GLe(n) { switch (n.kind) { case 79: if (!nx(n)) { const a = x_(n); return AL(a) || oq(a) && !JU(a); } break; case 208: case 209: return GLe(n.expression) && lp(Wr(n).resolvedSymbol || en); } return !1; } function I0(n, a, l = a, u, p = ((g) => (g = ri(n, hN)) == null ? void 0 : g.flowNode)()) { let g, x = !1, R = 0; if (Hi) return xe; if (!p) return a; tr++; const M = Hr, J = ME(De(p)); Hr = M; const $ = Qr(J) & 256 && FLe(n) ? Nn : N4(J); if ($ === $n || n.parent && n.parent.kind === 232 && !($.flags & 131072) && n_($, 2097152).flags & 131072) return a; return $ === V ? me : $; function he() { return x ? g : (x = !0, g = UU(n, a, l, u)); } function De(vt) { var Ft; if (R === 2e3) return (Ft = hi) == null || Ft.instant(hi.Phase.CheckTypes, "getTypeAtFlowNode_DepthLimit", { flowId: vt.id }), Hi = !0, cet(n), xe; R++; let $t; for (; ; ) { const Kt = vt.flags; if (Kt & 4096) { for (let qn = M; qn < Hr; qn++) if (X1[qn] === vt) return R--, Yv[qn]; $t = vt; } let kn; if (Kt & 16) { if (kn = ft(vt), !kn) { vt = vt.antecedent; continue; } } else if (Kt & 512) { if (kn = Mn(vt), !kn) { vt = vt.antecedent; continue; } } else if (Kt & 96) kn = Xn(vt); else if (Kt & 128) kn = mn(vt); else if (Kt & 12) { if (vt.antecedents.length === 1) { vt = vt.antecedents[0]; continue; } kn = Kt & 4 ? xn(vt) : gr(vt); } else if (Kt & 256) { if (kn = An(vt), !kn) { vt = vt.antecedent; continue; } } else if (Kt & 1024) { const qn = vt.target, aa = qn.antecedents; qn.antecedents = vt.antecedents, kn = De(vt.antecedent), qn.antecedents = aa; } else if (Kt & 2) { const qn = vt.node; if (qn && qn !== u && n.kind !== 208 && n.kind !== 209 && n.kind !== 108) { vt = qn.flowNode; continue; } kn = l; } else kn = OD(a); return $t && (X1[Hr] = $t, Yv[Hr] = kn, Hr++), R--, kn; } } function ke(vt) { const Ft = vt.node; return jie(Ft.kind === 257 || Ft.kind === 205 ? DLe(Ft) : R4(Ft), n); } function ft(vt) { const Ft = vt.node; if (Hc(n, Ft)) { if (!P4(vt)) return $n; if (cT(Ft) === 2) { const $t = De(vt.antecedent); return V2(sv(ME($t)), U2($t)); } if (a === gt || a === Nn) { if (XZe(Ft)) return Vie(ht); const $t = Bb(ke(vt)); return Eo($t, a) ? $t : Dt; } return a.flags & 1048576 ? UZe(a, ke(vt)) : a; } if (bLe(n, Ft)) { if (!P4(vt)) return $n; if (Wi(Ft) && (dr(Ft) || ig(Ft))) { const $t = aN(Ft); if ($t && ($t.kind === 215 || $t.kind === 216)) return De(vt.antecedent); } return a; } if (Wi(Ft) && Ft.parent.parent.kind === 246 && (Hc(n, Ft.parent.parent.expression) || bS(Ft.parent.parent.expression, n))) return cae(N4(ME(De(vt.antecedent)))); } function Bt(vt, Ft) { const $t = Us(Ft, !0); if ($t.kind === 95) return $n; if ($t.kind === 223) { if ($t.operatorToken.kind === 55) return Bt(Bt(vt, $t.left), $t.right); if ($t.operatorToken.kind === 56) return Xr([Bt(vt, $t.left), Bt(vt, $t.right)]); } return Li(vt, $t, !0); } function Mn(vt) { const Ft = WU(vt.node); if (Ft) { const $t = Zf(Ft); if ($t && ($t.kind === 2 || $t.kind === 3)) { const Kt = De(vt.antecedent), kn = N4(ME(Kt)), qn = $t.type ? wa(kn, $t, vt.node, !0) : $t.kind === 3 && $t.parameterIndex >= 0 && $t.parameterIndex < vt.node.arguments.length ? Bt(kn, vt.node.arguments[$t.parameterIndex]) : kn; return qn === kn ? Kt : V2(qn, U2(Kt)); } if (hs(Ft).flags & 131072) return $n; } } function An(vt) { if (a === gt || a === Nn) { const Ft = vt.node, $t = Ft.kind === 210 ? Ft.expression.expression : Ft.left.expression; if (Hc(n, Gb($t))) { const Kt = De(vt.antecedent), kn = ME(Kt); if (Qr(kn) & 256) { let qn = kn; if (Ft.kind === 210) for (const aa of Ft.arguments) qn = MLe(qn, aa); else { const aa = tP(Ft.left.argumentExpression); Rc(aa, 296) && (qn = MLe(qn, Ft.right)); } return qn === kn ? Kt : V2(qn, U2(Kt)); } return Kt; } } } function Xn(vt) { const Ft = De(vt.antecedent), $t = ME(Ft); if ($t.flags & 131072) return Ft; const Kt = (vt.flags & 32) !== 0, kn = N4($t), qn = Li(kn, vt.node, Kt); return qn === kn ? Ft : V2(qn, U2(Ft)); } function mn(vt) { const Ft = vt.switchStatement.expression, $t = De(vt.antecedent); let Kt = ME($t); if (Hc(n, Ft)) Kt = Yo(Kt, vt.switchStatement, vt.clauseStart, vt.clauseEnd); else if (Ft.kind === 218 && Hc(n, Ft.expression)) Kt = To(Kt, vt.switchStatement, vt.clauseStart, vt.clauseEnd); else { H && (bS(Ft, n) ? Kt = ea(Kt, vt.switchStatement, vt.clauseStart, vt.clauseEnd, (qn) => !(qn.flags & 163840)) : Ft.kind === 218 && bS(Ft.expression, n) && (Kt = ea(Kt, vt.switchStatement, vt.clauseStart, vt.clauseEnd, (qn) => !(qn.flags & 131072 || qn.flags & 128 && qn.value === "undefined")))); const kn = Jn(Ft, Kt); kn && (Kt = fa(Kt, kn, vt.switchStatement, vt.clauseStart, vt.clauseEnd)); } return V2(Kt, U2($t)); } function xn(vt) { const Ft = []; let $t = !1, Kt = !1, kn; for (const qn of vt.antecedents) { if (!kn && qn.flags & 128 && qn.clauseStart === qn.clauseEnd) { kn = qn; continue; } const aa = De(qn), mi = ME(aa); if (mi === a && a === l) return mi; a_(Ft, mi), hD(mi, a) || ($t = !0), U2(aa) && (Kt = !0); } if (kn) { const qn = De(kn), aa = ME(qn); if (!(aa.flags & 131072) && !Ii(Ft, aa) && !_ke(kn.switchStatement)) { if (aa === a && a === l) return aa; Ft.push(aa), hD(aa, a) || ($t = !0), U2(qn) && (Kt = !0); } } return V2(an(Ft, $t ? 2 : 1), Kt); } function gr(vt) { const Ft = Fie(vt), $t = bg[Ft] || (bg[Ft] = /* @__PURE__ */ new Map()), Kt = he(); if (!Kt) return a; const kn = $t.get(Kt); if (kn) return kn; for (let cr = Tn; cr < Wn; cr++) if (ZT[cr] === vt && J1[cr] === Kt && K1[cr].length) return V2(an(K1[cr], 1), !0); const qn = []; let aa = !1, mi; for (const cr of vt.antecedents) { let $r; if (!mi) $r = mi = De(cr); else { ZT[Wn] = vt, J1[Wn] = Kt, K1[Wn] = qn, Wn++; const ba = Ta; Ta = void 0, $r = De(cr), Ta = ba, Wn--; const os = $t.get(Kt); if (os) return os; } const yr = ME($r); if (a_(qn, yr), hD(yr, a) || (aa = !0), yr === a) break; } const hn = an(qn, aa ? 2 : 1); return U2(mi) ? V2(hn, !0) : ($t.set(Kt, hn), hn); } function an(vt, Ft) { if (aet(vt)) return Vie(Xr(rn(vt, iet))); const $t = ALe(Xr(Xl(vt, N4), Ft)); return $t !== a && $t.flags & a.flags & 1048576 && oa($t.types, a.types) ? a : $t; } function Gn(vt) { if (Ja(n) || ZA(n) || N_(n)) { if (Ve(vt)) { const $t = x_(vt).valueDeclaration; if ($t && (us($t) || Ma($t)) && n === $t.parent && !$t.initializer && !$t.dotDotDotToken) return $t; } } else if (ol(vt)) { if (Hc(n, vt.expression)) return vt; } else if (Ve(vt)) { const Ft = x_(vt); if (AL(Ft)) { const $t = Ft.valueDeclaration; if (Wi($t) && !$t.type && $t.initializer && ol($t.initializer) && Hc(n, $t.initializer.expression)) return $t.initializer; if (us($t) && !$t.initializer) { const Kt = $t.parent.parent; if (Wi(Kt) && !Kt.type && Kt.initializer && (Ve(Kt.initializer) || ol(Kt.initializer)) && Hc(n, Kt.initializer)) return $t; } } } } function Jn(vt, Ft) { const $t = a.flags & 1048576 ? a : Ft; if ($t.flags & 1048576) { const Kt = Gn(vt); if (Kt) { const kn = NE(Kt); if (kn && pD($t, kn)) return Kt; } } } function Yr(vt, Ft, $t) { const Kt = NE(Ft); if (Kt === void 0) return vt; const kn = fu(Ft), qn = H && (kn || Rde(Ft)) && fl(vt, 98304); let aa = cc(qn ? n_(vt, 2097152) : vt, Kt); if (!aa) return vt; aa = qn && kn ? qg(aa) : aa; const mi = $t(aa); return uc(vt, (hn) => { const cr = t4(hn, Kt); return !(cr.flags & 131072) && !(mi.flags & 131072) && E4(mi, cr); }); } function ei(vt, Ft, $t, Kt, kn) { if (($t === 36 || $t === 37) && vt.flags & 1048576) { const qn = w4(vt); if (qn && qn === NE(Ft)) { const aa = D4(vt, Au(Kt)); if (aa) return $t === (kn ? 36 : 37) ? aa : op(cc(aa, qn) || me) ? jU(vt, aa) : vt; } } return Yr(vt, Ft, (qn) => sr(qn, $t, Kt, kn)); } function fa(vt, Ft, $t, Kt, kn) { if (Kt < kn && vt.flags & 1048576 && w4(vt) === NE(Ft)) { const qn = VU($t).slice(Kt, kn), aa = Xr(rn(qn, (mi) => D4(vt, mi) || me)); if (aa !== me) return aa; } return Yr(vt, Ft, (qn) => Yo(qn, $t, Kt, kn)); } function Ya(vt, Ft, $t) { if (Hc(n, Ft)) return OE(vt, $t ? 4194304 : 8388608); H && $t && bS(Ft, n) && (vt = OE(vt, 2097152)); const Kt = Jn(Ft, vt); return Kt ? Yr(vt, Kt, (kn) => n_(kn, $t ? 4194304 : 8388608)) : vt; } function gc(vt, Ft, $t) { const Kt = so(vt, Ft); return Kt ? !!(Kt.flags & 16777216) || $t : !!k2(vt, Ft) || !$t; } function Bf(vt, Ft, $t) { const Kt = lm(Ft); if (Jh(vt, (qn) => gc(qn, Kt, !0))) return uc(vt, (qn) => gc(qn, Kt, $t)); if ($t) { const qn = _$e(); if (qn) return Lo([vt, N2(qn, [Ft, me])]); } return vt; } function mf(vt, Ft, $t) { switch (Ft.operatorToken.kind) { case 63: case 75: case 76: case 77: return Ya(Li(vt, Ft.right, $t), Ft.left, $t); case 34: case 35: case 36: case 37: const Kt = Ft.operatorToken.kind, kn = Gb(Ft.left), qn = Gb(Ft.right); if (kn.kind === 218 && Ts(qn)) return Xi(vt, kn, Kt, qn, $t); if (qn.kind === 218 && Ts(kn)) return Xi(vt, qn, Kt, kn, $t); if (Hc(n, kn)) return sr(vt, Kt, qn, $t); if (Hc(n, qn)) return sr(vt, Kt, kn, $t); H && (bS(kn, n) ? vt = Un(vt, Kt, qn, $t) : bS(qn, n) && (vt = Un(vt, Kt, kn, $t))); const aa = Jn(kn, vt); if (aa) return ei(vt, aa, Kt, qn, $t); const mi = Jn(qn, vt); if (mi) return ei(vt, mi, Kt, kn, $t); if (ju(kn)) return ct(vt, Kt, qn, $t); if (ju(qn)) return ct(vt, Kt, kn, $t); break; case 102: return Ee(vt, Ft, $t); case 101: if (ki(Ft.left)) return ia(vt, Ft, $t); const hn = Gb(Ft.right), cr = Au(Ft.left); if (cr.flags & 8576) { if (dD(vt) && ol(n) && Hc(n.expression, hn) && NE(n) === lm(cr)) return n_(vt, $t ? 524288 : 65536); if (Hc(n, hn)) return Bf(vt, cr, $t); } break; case 27: return Li(vt, Ft.right, $t); case 55: return $t ? Li(Li(vt, Ft.left, !0), Ft.right, !0) : Xr([Li(vt, Ft.left, !1), Li(vt, Ft.right, !1)]); case 56: return $t ? Xr([Li(vt, Ft.left, !0), Li(vt, Ft.right, !0)]) : Li(Li(vt, Ft.left, !1), Ft.right, !1); } return vt; } function ia(vt, Ft, $t) { const Kt = Gb(Ft.right); if (!Hc(n, Kt)) return vt; D.assertNode(Ft.left, ki); const kn = iV(Ft.left); if (kn === void 0) return vt; const qn = kn.parent, aa = _c(D.checkDefined(kn.valueDeclaration, "should always have a declaration")) ? ar(qn) : Bs(qn); return Qn(vt, aa, $t, !0); } function Un(vt, Ft, $t, Kt) { const kn = Ft === 34 || Ft === 36, qn = Ft === 34 || Ft === 35 ? 98304 : 32768, aa = Au($t); return kn !== Kt && rh(aa, (hn) => !!(hn.flags & qn)) || kn === Kt && rh(aa, (hn) => !(hn.flags & (3 | qn))) ? OE(vt, 2097152) : vt; } function sr(vt, Ft, $t, Kt) { if (vt.flags & 1) return vt; (Ft === 35 || Ft === 37) && (Kt = !Kt); const kn = Au($t), qn = Ft === 34 || Ft === 35; if (kn.flags & 98304) { if (!H) return vt; const aa = qn ? Kt ? 262144 : 2097152 : kn.flags & 65536 ? Kt ? 131072 : 1048576 : Kt ? 65536 : 524288; return OE(vt, aa); } if (Kt) { if (!qn && (vt.flags & 2 || Jh(vt, zh))) { if (kn.flags & 201457660 || zh(kn)) return kn; if (kn.flags & 524288) return ii; } const aa = uc(vt, (mi) => E4(mi, kn) || qn && cZe(mi, kn)); return PLe(aa, kn); } return op(kn) ? uc(vt, (aa) => !(eLe(aa) && E4(aa, kn))) : vt; } function Xi(vt, Ft, $t, Kt, kn) { ($t === 35 || $t === 37) && (kn = !kn); const qn = Gb(Ft.expression); if (!Hc(n, qn)) { H && bS(qn, n) && kn === (Kt.text !== "undefined") && (vt = OE(vt, 2097152)); const aa = Jn(qn, vt); return aa ? Yr(vt, aa, (mi) => Fa(mi, Kt, kn)) : vt; } return Fa(vt, Kt, kn); } function Fa(vt, Ft, $t) { return $t ? Rs(vt, Ft.text) : OE(vt, S5.get(Ft.text) || 32768); } function ea(vt, Ft, $t, Kt, kn) { return $t !== Kt && Vn(VU(Ft).slice($t, Kt), kn) ? n_(vt, 2097152) : vt; } function Yo(vt, Ft, $t, Kt) { const kn = VU(Ft); if (!kn.length) return vt; const qn = kn.slice($t, Kt), aa = $t === Kt || Ii(qn, ht); if (vt.flags & 2 && !aa) { let $r; for (let yr = 0; yr < qn.length; yr += 1) { const ba = qn[yr]; if (ba.flags & 201457660) $r !== void 0 && $r.push(ba); else if (ba.flags & 524288) $r === void 0 && ($r = qn.slice(0, yr)), $r.push(ii); else return vt; } return Xr($r === void 0 ? qn : $r); } const mi = Xr(qn), hn = mi.flags & 131072 ? ht : PLe(uc(vt, ($r) => E4(mi, $r)), mi); if (!aa) return hn; const cr = uc(vt, ($r) => !(eLe($r) && Ii(kn, _d(tZe($r))))); return hn.flags & 131072 ? cr : Xr([hn, cr]); } function Rs(vt, Ft) { switch (Ft) { case "string": return ml(vt, ce, 1); case "number": return ml(vt, pt, 2); case "bigint": return ml(vt, Wt, 4); case "boolean": return ml(vt, we, 8); case "symbol": return ml(vt, q, 16); case "object": return vt.flags & 1 ? vt : Xr([ml(vt, ii, 32), ml(vt, Sn, 131072)]); case "function": return vt.flags & 1 ? vt : ml(vt, cl, 64); case "undefined": return ml(vt, je, 65536); } return ml(vt, ii, 128); } function ml(vt, Ft, $t) { return Xs(vt, (Kt) => _m(Kt, Ft, Y_) ? xu(Kt) & $t ? Kt : ht : av(Ft, Kt) ? Ft : xu(Kt) & $t ? Lo([Kt, Ft]) : ht); } function To(vt, Ft, $t, Kt) { const kn = NLe(Ft); if (!kn) return vt; const qn = $i(Ft.caseBlock.clauses, (hn) => hn.kind === 293); if ($t === Kt || qn >= $t && qn < Kt) { const hn = fke($t, Kt, kn); return uc(vt, (cr) => (xu(cr) & hn) === hn); } const mi = kn.slice($t, Kt); return Xr(rn(mi, (hn) => hn ? Rs(vt, hn) : ht)); } function ju(vt) { return (Pr(vt) && Or(vt.name) === "constructor" || sl(vt) && Ts(vt.argumentExpression) && vt.argumentExpression.text === "constructor") && Hc(n, vt.expression); } function ct(vt, Ft, $t, Kt) { if (Kt ? Ft !== 34 && Ft !== 36 : Ft !== 35 && Ft !== 37) return vt; const kn = Au($t); if (!doe(kn) && !y0(kn)) return vt; const qn = so(kn, "prototype"); if (!qn) return vt; const aa = ar(qn), mi = Es(aa) ? void 0 : aa; if (!mi || mi === Ka || mi === cl) return vt; if (Es(vt)) return mi; return uc(vt, (cr) => hn(cr, mi)); function hn(cr, $r) { return cr.flags & 524288 && Qr(cr) & 1 || $r.flags & 524288 && Qr($r) & 1 ? cr.symbol === $r.symbol : av(cr, $r); } } function Ee(vt, Ft, $t) { const Kt = Gb(Ft.left); if (!Hc(n, Kt)) return $t && H && bS(Kt, n) ? OE(vt, 2097152) : vt; const kn = Au(Ft.right); if (!Fb(kn, cl)) return vt; const qn = Xs(kn, er); return Es(vt) && (qn === Ka || qn === cl) || !$t && !(qn.flags & 524288 && !zh(qn)) ? vt : Qn(vt, qn, $t, !0); } function er(vt) { const Ft = cc(vt, "prototype"); if (Ft && !Es(Ft)) return Ft; const $t = Ha(vt, 1); return $t.length ? Xr(rn($t, (Kt) => hs(eD(Kt)))) : da; } function Qn(vt, Ft, $t, Kt) { var kn; const qn = vt.flags & 1048576 ? `N${Su(vt)},${Su(Ft)},${($t ? 1 : 0) | (Kt ? 2 : 0)}` : void 0; return (kn = db(qn)) != null ? kn : Sg(qn, Er(vt, Ft, $t, Kt)); } function Er(vt, Ft, $t, Kt) { if (!$t) { if (Kt) return uc(vt, (hn) => !Fb(hn, Ft)); const mi = Qn(vt, Ft, !0, !1); return uc(vt, (hn) => !hD(hn, mi)); } if (vt.flags & 3) return Ft; const kn = Kt ? Fb : av, qn = vt.flags & 1048576 ? w4(vt) : void 0, aa = Xs(Ft, (mi) => { const hn = qn && cc(mi, qn), cr = hn && D4(vt, hn), $r = Xs(cr || vt, Kt ? (yr) => Fb(yr, mi) ? yr : Fb(mi, yr) ? mi : ht : (yr) => FCe(yr, mi) ? yr : FCe(mi, yr) ? mi : av(yr, mi) ? yr : av(mi, yr) ? mi : ht); return $r.flags & 131072 ? Xs(vt, (yr) => fl(yr, 465829888) && kn(mi, Uu(yr) || me) ? Lo([yr, mi]) : ht) : $r; }); return aa.flags & 131072 ? av(Ft, vt) ? Ft : Eo(vt, Ft) ? vt : Eo(Ft, vt) ? Ft : Lo([vt, Ft]) : aa; } function Ir(vt, Ft, $t) { if (xLe(Ft, n)) { const Kt = $t || !YE(Ft) ? WU(Ft) : void 0, kn = Kt && Zf(Kt); if (kn && (kn.kind === 0 || kn.kind === 1)) return wa(vt, kn, Ft, $t); } if (dD(vt) && ol(n) && Pr(Ft.expression)) { const Kt = Ft.expression; if (Hc(n.expression, Gb(Kt.expression)) && Ve(Kt.name) && Kt.name.escapedText === "hasOwnProperty" && Ft.arguments.length === 1) { const kn = Ft.arguments[0]; if (Ts(kn) && NE(n) === al(kn.text)) return n_(vt, $t ? 524288 : 65536); } } return vt; } function wa(vt, Ft, $t, Kt) { if (Ft.type && !(Es(vt) && (Ft.type === Ka || Ft.type === cl))) { const kn = set(Ft, $t); if (kn) { if (Hc(n, kn)) return Qn(vt, Ft.type, Kt, !1); H && Kt && bS(kn, n) && !(xu(Ft.type) & 65536) && (vt = OE(vt, 2097152)); const qn = Jn(kn, vt); if (qn) return Yr(vt, qn, (aa) => Qn(aa, Ft.type, Kt, !1)); } } return vt; } function Li(vt, Ft, $t) { if (pM(Ft) || vr(Ft.parent) && (Ft.parent.operatorToken.kind === 60 || Ft.parent.operatorToken.kind === 77) && Ft.parent.left === Ft) return Cr(vt, Ft, $t); switch (Ft.kind) { case 79: if (!Hc(n, Ft) && k < 5) { const Kt = x_(Ft); if (AL(Kt)) { const kn = Kt.valueDeclaration; if (kn && Wi(kn) && !kn.type && kn.initializer && GLe(n)) { k++; const qn = Li(vt, kn.initializer, $t); return k--, qn; } } } case 108: case 106: case 208: case 209: return Ya(vt, Ft, $t); case 210: return Ir(vt, Ft, $t); case 214: case 232: return Li(vt, Ft.expression, $t); case 223: return mf(vt, Ft, $t); case 221: if (Ft.operator === 53) return Li(vt, Ft.operand, !$t); break; } return vt; } function Cr(vt, Ft, $t) { if (Hc(n, Ft)) return OE(vt, $t ? 2097152 : 262144); const Kt = Jn(Ft, vt); return Kt ? Yr(vt, Kt, (kn) => n_(kn, $t ? 2097152 : 262144)) : vt; } } function uet(n, a) { if (n = Lp(n), (a.kind === 79 || a.kind === 80) && (WI(a) && (a = a.parent), ag(a) && (!mh(a) || XI(a)))) { const l = Au(a); if (Lp(Wr(a).resolvedSymbol) === n) return l; } return sg(a) && fy(a.parent) && F(a.parent) ? Qi(a.parent.symbol) : h0(n); } function gD(n) { return nr(n.parent, (a) => qa(a) && !oT(a) || a.kind === 265 || a.kind === 308 || a.kind === 169); } function JU(n) { if (!n.valueDeclaration) return !1; const a = Rm(n.valueDeclaration).parent, l = Wr(a); return l.flags & 524288 || (l.flags |= 524288, det(a) || ULe(a)), n.isAssigned || !1; } function det(n) { return !!nr(n.parent, (a) => (qa(a) || mC(a)) && !!(Wr(a).flags & 524288)); } function ULe(n) { if (n.kind === 79) { if (mh(n)) { const a = x_(n); oq(a) && (a.isAssigned = !0); } } else Oa(n, ULe); } function AL(n) { return n.flags & 3 && (tV(n) & 2) !== 0; } function fet(n) { const a = Wr(n); if (a.parameterInitializerContainsUndefined === void 0) { if (!Rf(n, 9)) return lL(n.symbol), !0; const l = !!(xu(CD(n, 0)) & 16777216); if (!Qf()) return lL(n.symbol), !0; a.parameterInitializerContainsUndefined = l; } return a.parameterInitializerContainsUndefined; } function _et(n, a) { return H && a.kind === 166 && a.initializer && xu(n) & 16777216 && !fet(a) ? n_(n, 524288) : n; } function pet(n, a) { const l = a.parent; return l.kind === 208 || l.kind === 163 || l.kind === 210 && l.expression === a || l.kind === 209 && l.expression === a && !(Jh(n, jLe) && b0(Au(l.argumentExpression))); } function VLe(n) { return n.flags & 2097152 ? kt(n.types, VLe) : !!(n.flags & 465829888 && ev(n).flags & 1146880); } function jLe(n) { return n.flags & 2097152 ? kt(n.types, jLe) : !!(n.flags & 465829888 && !fl(ev(n), 98304)); } function met(n, a) { const l = (Ve(n) || Pr(n) || sl(n)) && !((xh(n.parent) || xx(n.parent)) && n.parent.tagName === n) && (a && a & 64 ? Zu(n, 8) : Zu(n, void 0)); return l && !gL(l); } function jie(n, a, l) { return !(l && l & 2) && Jh(n, VLe) && (pet(n, a) || met(a, l)) ? Xs(n, ev) : n; } function HLe(n) { return !!nr(n, (a) => { const l = a.parent; return l === void 0 ? "quit" : Pl(l) ? l.expression === a && Vl(a) : od(l) ? l.name === a || l.propertyName === a : !1; }); } function KU(n, a) { if (!Y.verbatimModuleSyntax && Fy(n, 111551) && !SL(a) && !Ld(n, 111551)) { const l = Zl(n); iu(l) & 1160127 && (F_(Y) || S1(Y) && HLe(a) || !PD(Lp(l)) ? Sb(n) : xb(n)); } } function het(n, a) { var l; const u = ar(n), p = n.valueDeclaration; if (p) { if (us(p) && !p.initializer && !p.dotDotDotToken && p.parent.elements.length >= 2) { const g = p.parent.parent; if (g.kind === 257 && up(p) & 2 || g.kind === 166) { const x = Wr(g); if (!(x.flags & 16777216)) { x.flags |= 16777216; const R = T2(g, 0), M = R && Xs(R, ev); if (x.flags &= -16777217, M && M.flags & 1048576 && !(g.kind === 166 && JU(n))) { const J = p.parent, $ = I0(J, M, M, void 0, a.flowNode); return $.flags & 131072 ? ht : bi(p, $); } } } } if (Ma(p) && !p.type && !p.initializer && !p.dotDotDotToken) { const g = p.parent; if (g.parameters.length >= 2 && SU(g)) { const x = vD(g); if (x && x.parameters.length === 1 && mu(x)) { const R = _L(qi(ar(x.parameters[0]), (l = ES(g)) == null ? void 0 : l.nonFixingMapper)); if (R.flags & 1048576 && rh(R, Oo) && !JU(n)) { const M = I0(g, R, R, void 0, a.flowNode), J = g.parameters.indexOf(p) - (b1(g) ? 1 : 0); return Dd(M, Rp(J)); } } } } } return u; } function get(n, a) { if (nx(n)) return F4(n); const l = x_(n); if (l === en) return xe; if (l === At) { if (CIe(n)) return qe(n, _.arguments_cannot_be_referenced_in_property_initializers), xe; const Xn = bf(n); return P < 2 && (Xn.kind === 216 ? qe(n, _.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression) : Jr(Xn, 512) && qe(n, _.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)), Wr(Xn).flags |= 512, ar(l); } vet(n) && KU(l, n); const u = Lp(l), p = Awe(u, n); t0(p) && Hre(n, p) && p.declarations && xg(n, p.declarations, n.escapedText); let g = u.valueDeclaration; if (g && u.flags & 32) { if (g.kind === 260 && DA(ne, g)) { let Xn = Ec(n); for (; Xn !== void 0; ) { if (Xn === g && Xn.name !== n) { Wr(g).flags |= 1048576, Wr(n).flags |= 2097152; break; } Xn = Ec(Xn); } } else if (g.kind === 228) { let Xn = yd(n, !1, !1); for (; Xn.kind !== 308; ) { if (Xn.parent === g) { (Za(Xn) && za(Xn) || Cl(Xn)) && (Wr(g).flags |= 1048576, Wr(n).flags |= 2097152); break; } Xn = yd(Xn, !1, !1); } } } Tet(n, l); let x = het(u, n); const R = cT(n); if (R) { if (!(u.flags & 3) && !(dr(n) && u.flags & 512)) { const Xn = u.flags & 384 ? _.Cannot_assign_to_0_because_it_is_an_enum : u.flags & 32 ? _.Cannot_assign_to_0_because_it_is_a_class : u.flags & 1536 ? _.Cannot_assign_to_0_because_it_is_a_namespace : u.flags & 16 ? _.Cannot_assign_to_0_because_it_is_a_function : u.flags & 2097152 ? _.Cannot_assign_to_0_because_it_is_an_import : _.Cannot_assign_to_0_because_it_is_not_a_variable; return qe(n, Xn, S(l)), xe; } if (lp(u)) return u.flags & 3 ? qe(n, _.Cannot_assign_to_0_because_it_is_a_constant, S(l)) : qe(n, _.Cannot_assign_to_0_because_it_is_a_read_only_property, S(l)), xe; } const M = u.flags & 2097152; if (u.flags & 3) { if (R === 1) return x; } else if (M) g = ud(l); else return x; if (!g) return x; x = jie(x, n, a); const J = Rm(g).kind === 166, $ = gD(g); let he = gD(n); const De = he !== $, ke = n.parent && n.parent.parent && Ix(n.parent) && Uie(n.parent.parent), ft = l.flags & 134217728; for (; he !== $ && (he.kind === 215 || he.kind === 216 || VM(he)) && (AL(u) && x !== Nn || J && !JU(u)); ) he = gD(he); const Bt = J || M || De || ke || ft || yet(n, g) || x !== gt && x !== Nn && (!H || (x.flags & 16387) !== 0 || SL(n) || yLe(n) || n.parent.kind === 278) || n.parent.kind === 232 || g.kind === 257 && g.exclamationToken || g.flags & 16777216, Mn = Bt ? J ? _et(x, g) : x : x === gt || x === Nn ? je : qg(x), An = I0(n, x, Mn, he); if (!FLe(n) && (x === gt || x === Nn)) { if (An === gt || An === Nn) return Te && (qe(La(g), _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, S(l), Le(An)), qe(n, _.Variable_0_implicitly_has_an_1_type, S(l), Le(An))), OD(An); } else if (!Bt && !yL(x) && yL(An)) return qe(n, _.Variable_0_is_used_before_being_assigned, S(l)), x; return R ? sv(An) : An; } function yet(n, a) { if (us(a)) { const l = nr(n, us); return l && Rm(l) === Rm(a); } } function vet(n) { var a; const l = n.parent; if (l) { if (Pr(l) && l.expression === n || od(l) && l.isTypeOnly) return !1; const u = (a = l.parent) == null ? void 0 : a.parent; if (u && Kc(u) && u.isTypeOnly) return !1; } return !0; } function bet(n, a) { return !!nr(n, (l) => l === a ? "quit" : qa(l) || l.parent && Za(l.parent) && !_c(l.parent) && l.parent.initializer === l); } function Eet(n, a) { return nr(n, (l) => l === a ? "quit" : l === a.initializer || l === a.condition || l === a.incrementor || l === a.statement); } function Hie(n) { return nr(n, (a) => !a || lz(a) ? "quit" : Tv(a, !1)); } function Tet(n, a) { if (P >= 2 || !(a.flags & 34) || !a.valueDeclaration || ji(a.valueDeclaration) || a.valueDeclaration.parent.kind === 295) return; const l = Dm(a.valueDeclaration), u = bet(n, l), p = Hie(l); if (p) { if (u) { let g = !0; if (TT(l)) { const x = j0(a.valueDeclaration, 258); if (x && x.parent === l) { const R = Eet(n.parent, l); if (R) { const M = Wr(R); M.flags |= 8192; const J = M.capturedBlockScopeBindings || (M.capturedBlockScopeBindings = []); a_(J, a), R === l.initializer && (g = !1); } } } g && (Wr(p).flags |= 4096); } if (TT(l)) { const g = j0(a.valueDeclaration, 258); g && g.parent === l && Aet(n, l) && (Wr(a.valueDeclaration).flags |= 262144); } Wr(a.valueDeclaration).flags |= 32768; } u && (Wr(a.valueDeclaration).flags |= 16384); } function xet(n, a) { const l = Wr(n); return !!l && Ii(l.capturedBlockScopeBindings, Lr(a)); } function Aet(n, a) { let l = n; for (; l.parent.kind === 214; ) l = l.parent; let u = !1; if (mh(l)) u = !0; else if (l.parent.kind === 221 || l.parent.kind === 222) { const p = l.parent; u = p.operator === 45 || p.operator === 46; } return u ? !!nr(l, (p) => p === a ? "quit" : p === a.statement) : !1; } function Wie(n, a) { if (Wr(n).flags |= 2, a.kind === 169 || a.kind === 173) { const l = a.parent; Wr(l).flags |= 4; } else Wr(a).flags |= 4; } function WLe(n) { return LA(n) ? n : qa(n) ? void 0 : Oa(n, WLe); } function zLe(n) { const a = Lr(n), l = Bs(a); return ti(l) === br; } function qLe(n, a, l) { const u = a.parent; y1(u) && !zLe(u) && hN(n) && n.flowNode && !qU(n.flowNode, !1) && qe(n, l); } function Cet(n, a) { Za(a) && _c(a) && ne && a.initializer && sM(a.initializer, n.pos) && zf(a.parent) && qe(n, _.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class); } function F4(n) { const a = SL(n); let l = yd(n, !0, !0), u = !1, p = !1; for (l.kind === 173 && qLe(n, l, _.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class); ; ) { if (l.kind === 216 && (l = yd(l, !1, !p), u = !0), l.kind === 164) { l = yd(l, !u, !1), p = !0; continue; } break; } if (Cet(n, l), p) qe(n, _.this_cannot_be_referenced_in_a_computed_property_name); else switch (l.kind) { case 264: qe(n, _.this_cannot_be_referenced_in_a_module_or_namespace_body); break; case 263: qe(n, _.this_cannot_be_referenced_in_current_location); break; case 173: JLe(n, l) && qe(n, _.this_cannot_be_referenced_in_constructor_arguments); break; } !a && u && P < 2 && Wie(n, l); const g = zie(n, !0, l); if (ee) { const x = ar(ot); if (g === x && u) qe(n, _.The_containing_arrow_function_captures_the_global_value_of_this); else if (!g) { const R = qe(n, _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation); if (!ji(l)) { const M = zie(l); M && M !== x && qo(R, Dr(l, _.An_outer_value_of_this_is_shadowed_by_this_container)); } } } return g || Ie; } function zie(n, a = !0, l = yd(n, !1, !1)) { const u = dr(n); if (qa(l) && (!Kie(n) || b1(l))) { let p = qt(l) || u && ket(l); if (!p) { const g = Iet(l); if (u && g) { const x = ma(g).symbol; x && x.members && x.flags & 16 && (p = Bs(x).thisType); } else Op(l) && (p = Bs(ns(l.symbol)).thisType); p || (p = XLe(l)); } if (p) return I0(n, p); } if (li(l.parent)) { const p = Lr(l.parent), g = za(l) ? ar(p) : Bs(p).thisType; return I0(n, g); } if (ji(l)) if (l.commonJsModuleIndicator) { const p = Lr(l); return p && ar(p); } else { if (l.externalModuleIndicator) return je; if (a) return ar(ot); } } function Let(n) { const a = yd(n, !1, !1); if (qa(a)) { const l = wp(a); if (l.thisParameter) return HU(l.thisParameter); } if (li(a.parent)) { const l = Lr(a.parent); return za(a) ? ar(l) : Bs(l).thisType; } } function Iet(n) { if (n.kind === 215 && vr(n.parent) && xl(n.parent) === 3) return n.parent.left.expression.expression; if (n.kind === 171 && n.parent.kind === 207 && vr(n.parent.parent) && xl(n.parent.parent) === 6) return n.parent.parent.left.expression; if (n.kind === 215 && n.parent.kind === 299 && n.parent.parent.kind === 207 && vr(n.parent.parent.parent) && xl(n.parent.parent.parent) === 6) return n.parent.parent.parent.left.expression; if (n.kind === 215 && Uc(n.parent) && Ve(n.parent.name) && (n.parent.name.escapedText === "value" || n.parent.name.escapedText === "get" || n.parent.name.escapedText === "set") && As(n.parent.parent) && eo(n.parent.parent.parent) && n.parent.parent.parent.arguments[2] === n.parent.parent && xl(n.parent.parent.parent) === 9) return n.parent.parent.parent.arguments[0].expression; if (nc(n) && Ve(n.name) && (n.name.escapedText === "value" || n.name.escapedText === "get" || n.name.escapedText === "set") && As(n.parent) && eo(n.parent.parent) && n.parent.parent.arguments[2] === n.parent && xl(n.parent.parent) === 9) return n.parent.parent.arguments[0].expression; } function ket(n) { const a = vv(n); if (a && a.kind === 320) { const u = a; if (u.parameters.length > 0 && u.parameters[0].name && u.parameters[0].name.escapedText === "this") return ci(u.parameters[0].type); } const l = dM(n); if (l && l.typeExpression) return ci(l.typeExpression); } function JLe(n, a) { return !!nr(n, (l) => Ys(l) ? "quit" : l.kind === 166 && l.parent === a); } function qie(n) { const a = n.parent.kind === 210 && n.parent.expression === n, l = QR(n, !0); let u = l, p = !1, g = !1; if (!a) { for (; u && u.kind === 216; ) Jr(u, 512) && (g = !0), u = QR(u, !0), p = P < 2; u && Jr(u, 512) && (g = !0); } let x = 0; if (!u || !$(u)) { const he = nr(n, (De) => De === u ? "quit" : De.kind === 164); return he && he.kind === 164 ? qe(n, _.super_cannot_be_referenced_in_a_computed_property_name) : a ? qe(n, _.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors) : !u || !u.parent || !(li(u.parent) || u.parent.kind === 207) ? qe(n, _.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions) : qe(n, _.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class), xe; } if (!a && l.kind === 173 && qLe(n, u, _.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class), za(u) || a ? (x = 32, !a && P >= 2 && P <= 8 && (Za(u) || Cl(u)) && Pce(n.parent, (he) => { (!ji(he) || ef(he)) && (Wr(he).flags |= 8388608); })) : x = 16, Wr(n).flags |= x, u.kind === 171 && g && (ad(n.parent) && mh(n.parent) ? Wr(u).flags |= 256 : Wr(u).flags |= 128), p && Wie(n.parent, u), u.parent.kind === 207) return P < 2 ? (qe(n, _.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher), xe) : Ie; const R = u.parent; if (!y1(R)) return qe(n, _.super_can_only_be_referenced_in_a_derived_class), xe; const M = Bs(Lr(R)), J = M && No(M)[0]; if (!J) return xe; if (u.kind === 173 && JLe(n, u)) return qe(n, _.super_cannot_be_referenced_in_constructor_arguments), xe; return x === 32 ? ti(M) : Of(J, M.thisType); function $(he) { return a ? he.kind === 173 : li(he.parent) || he.parent.kind === 207 ? za(he) ? he.kind === 171 || he.kind === 170 || he.kind === 174 || he.kind === 175 || he.kind === 169 || he.kind === 172 : he.kind === 171 || he.kind === 170 || he.kind === 174 || he.kind === 175 || he.kind === 169 || he.kind === 168 || he.kind === 173 : !1; } } function wet(n) { return (n.kind === 171 || n.kind === 174 || n.kind === 175) && n.parent.kind === 207 ? n.parent : n.kind === 215 && n.parent.kind === 299 ? n.parent.parent : void 0; } function KLe(n) { return Qr(n) & 4 && n.target === Se ? _s(n)[0] : void 0; } function Det(n) { return Xs(n, (a) => a.flags & 2097152 ? Ye(a.types, KLe) : KLe(a)); } function XLe(n) { if (n.kind === 216) return; if (SU(n)) { const l = vD(n); if (l) { const u = l.thisParameter; if (u) return ar(u); } } const a = dr(n); if (ee || a) { const l = wet(n); if (l) { const p = Ub(l, void 0); let g = l, x = p; for (; x; ) { const R = Det(x); if (R) return qi(R, Cie(ES(l))); if (g.parent.kind !== 299) break; g = g.parent.parent, x = Ub(g, void 0); } return Kd(p ? Jg(p) : Kl(l)); } const u = Cv(n.parent); if (u.kind === 223 && u.operatorToken.kind === 63) { const p = u.left; if (ol(p)) { const { expression: g } = p; if (a && Ve(g)) { const x = Zn(u); if (x.commonJsModuleIndicator && x_(g) === x.symbol) return; } return Kd(Kl(g)); } } } } function YLe(n) { const a = n.parent; if (!SU(a)) return; const l = oT(a); if (l && l.arguments) { const p = Tae(l), g = a.parameters.indexOf(n); if (n.dotDotDotToken) return bae(p, g, p.length, Ie, void 0, 0); const x = Wr(l), R = x.resolvedSignature; x.resolvedSignature = qs; const M = g < p.length ? Bb(ma(p[g])) : n.initializer ? void 0 : Qe; return x.resolvedSignature = R, M; } const u = vD(a); if (u) { const p = a.parameters.indexOf(n) - (b1(a) ? 1 : 0); return n.dotDotDotToken && Zs(a.parameters) === n ? TD(u, p) : BE(u, p); } } function Jie(n, a) { const l = Jc(n) || (dr(n) ? N3(n) : void 0); if (l) return ci(l); switch (n.kind) { case 166: return YLe(n); case 205: return Ret(n, a); case 169: if (za(n)) return Net(n, a); } } function Ret(n, a) { const l = n.parent.parent, u = n.propertyName || n.name, p = Jie(l, a) || l.kind !== 205 && l.initializer && CD(l, n.dotDotDotToken ? 64 : 0); if (!p || Ja(u) || XR(u)) return; if (l.name.kind === 204) { const x = xA(n.parent.elements, n); return x < 0 ? void 0 : tIe(p, x); } const g = Hg(u); if (Vh(g)) { const x = lm(g); return cc(p, x); } } function Net(n, a) { const l = yt(n.parent) && Zu(n.parent, a); if (l) return FE(l, Lr(n).escapedName); } function Oet(n, a) { const l = n.parent; if (xv(l) && n === l.initializer) { const u = Jie(l, a); if (u) return u; if (!(a & 8) && Ja(l.name) && l.name.elements.length > 0) return Co(l.name, !0, !1); } } function Pet(n, a) { const l = bf(n); if (l) { let u = Xie(l, a); if (u) { const p = Mc(l); if (p & 1) { const g = (p & 2) !== 0; u.flags & 1048576 && (u = uc(u, (R) => !!jb(1, R, g))); const x = jb(1, u, (p & 2) !== 0); if (!x) return; u = x; } if (p & 2) { const g = Xs(u, Xg); return g && Xr([g, cke(g)]); } return u; } } } function Met(n, a) { const l = Zu(n, a); if (l) { const u = Xg(l); return u && Xr([u, cke(u)]); } } function Fet(n, a) { const l = bf(n); if (l) { const u = Mc(l); let p = Xie(l, a); if (p) { const g = (u & 2) !== 0; return !n.asteriskToken && p.flags & 1048576 && (p = uc(p, (x) => !!jb(1, x, g))), n.asteriskToken ? p : jb(0, p, g); } } } function Kie(n) { let a = !1; for (; n.parent && !qa(n.parent); ) { if (Ma(n.parent) && (a || n.parent.initializer === n)) return !0; us(n.parent) && n.parent.initializer === n && (a = !0), n = n.parent; } return !1; } function $Le(n, a) { const l = !!(Mc(a) & 2), u = Xie(a, void 0); if (u) return jb(n, u, l) || void 0; } function Xie(n, a) { const l = w2(n); if (l) return l; const u = Zie(n); if (u && !Tre(u)) return hs(u); const p = oT(n); if (p) return Zu(p, a); } function QLe(n, a) { const u = Tae(n).indexOf(a); return u === -1 ? void 0 : Yie(n, u); } function Yie(n, a) { if (tf(n)) return a === 0 ? ce : a === 1 ? zAe(!1) : Ie; const l = Wr(n).resolvedSignature === Gl ? Gl : wL(n); if (qu(n) && a === 0) return QU(l, n); const u = l.parameters.length - 1; return mu(l) && a >= u ? Dd(ar(l.parameters[u]), Rp(a - u), 256) : sp(l, a); } function Bet(n) { const a = Rae(n); return a ? CE(a) : void 0; } function Get(n, a) { if (n.parent.kind === 212) return QLe(n.parent, a); } function Uet(n, a) { const l = n.parent, { left: u, operatorToken: p, right: g } = l; switch (p.kind) { case 63: case 76: case 75: case 77: return n === g ? jet(l) : void 0; case 56: case 60: const x = Zu(l, a); return n === g && (x && x.pattern || !x && !eue(l)) ? Au(u) : x; case 55: case 27: return n === g ? Zu(l, a) : void 0; default: return; } } function Vet(n) { if (Lm(n) && n.symbol) return n.symbol; if (Ve(n)) return x_(n); if (Pr(n)) { const l = Au(n.expression); return ki(n.name) ? a(l, n.name) : so(l, n.name.escapedText); } if (sl(n)) { const l = Kl(n.argumentExpression); if (!Vh(l)) return; const u = Au(n.expression); return so(u, lm(l)); } return; function a(l, u) { const p = rV(u.escapedText, u); return p && uae(l, p); } } function jet(n) { var a, l; const u = xl(n); switch (u) { case 0: case 4: const p = Vet(n.left), g = p && p.valueDeclaration; if (g && (Za(g) || Tf(g))) { const M = Jc(g); return M && qi(ci(M), Ui(p).mapper) || (Za(g) ? g.initializer && Au(n.left) : void 0); } return u === 0 ? Au(n.left) : ZLe(n); case 5: if (XU(n, u)) return ZLe(n); if (!Lm(n.left) || !n.left.symbol) return Au(n.left); { const M = n.left.symbol.valueDeclaration; if (!M) return; const J = ro(n.left, ol), $ = Jc(M); if ($) return ci($); if (Ve(J.expression)) { const he = J.expression, De = dl(he, he.escapedText, 111551, void 0, he.escapedText, !0); if (De) { const ke = De.valueDeclaration && Jc(De.valueDeclaration); if (ke) { const ft = og(J); if (ft !== void 0) return FE(ci(ke), ft); } return; } } return dr(M) ? void 0 : Au(n.left); } case 1: case 6: case 3: case 2: let x; u !== 2 && (x = Lm(n.left) ? (a = n.left.symbol) == null ? void 0 : a.valueDeclaration : void 0), x || (x = (l = n.symbol) == null ? void 0 : l.valueDeclaration); const R = x && Jc(x); return R ? ci(R) : void 0; case 7: case 8: case 9: return D.fail("Does not apply"); default: return D.assertNever(u); } } function XU(n, a = xl(n)) { if (a === 4) return !0; if (!dr(n) || a !== 5 || !Ve(n.left.expression)) return !1; const l = n.left.expression.escapedText, u = dl(n.left, l, 111551, void 0, void 0, !0, !0); return zM(u == null ? void 0 : u.valueDeclaration); } function ZLe(n) { if (!n.symbol) return Au(n.left); if (n.symbol.valueDeclaration) { const p = Jc(n.symbol.valueDeclaration); if (p) { const g = ci(p); if (g) return g; } } const a = ro(n.left, ol); if (!N_(yd(a.expression, !1, !1))) return; const l = F4(a.expression), u = og(a); return u !== void 0 && FE(l, u) || void 0; } function Het(n) { return !!(Al(n) & 262144 && !n.links.type && Zm(n, 0) >= 0); } function FE(n, a, l) { return Xs(n, (u) => { var p; if (Pf(u) && !u.declaration.nameType) { const g = kp(u), x = Uu(g) || g, R = l || Mf(Zi(a)); if (Eo(R, x)) return _U(u, R); } else if (u.flags & 3670016) { const g = so(u, a); if (g) return Het(g) ? void 0 : ar(g); if (Oo(u) && vh(a) && +a >= 0) { const x = TL(u, u.target.fixedLength, 0, !1, !0); if (x) return x; } return (p = hre(gre(u), l || Mf(Zi(a)))) == null ? void 0 : p.type; } }, !0); } function eIe(n, a) { if (D.assert(N_(n)), !(n.flags & 33554432)) return $ie(n, a); } function $ie(n, a) { const l = n.parent, u = Uc(n) && Jie(n, a); if (u) return u; const p = Ub(l, a); if (p) { if (L2(n)) { const g = Lr(n); return FE(p, g.escapedName, Ui(g).nameType); } if (n.name) { const g = Hg(n.name); return Xs(p, (x) => { var R; return (R = hre(gre(x), g)) == null ? void 0 : R.type; }, !0); } } } function tIe(n, a) { return n && (a >= 0 && FE(n, "" + a) || Xs(n, (l) => Oo(l) ? TL(l, 0, 0, !1, !0) : $ae(1, l, je, void 0, !1), !0)); } function Wet(n, a) { const l = n.parent; return n === l.whenTrue || n === l.whenFalse ? Zu(l, a) : void 0; } function zet(n, a, l) { const u = Ub(n.openingElement.tagName, l), p = eV(j2(n)); if (!(u && !Es(u) && p && p !== "")) return; const g = IN(n.children), x = g.indexOf(a), R = FE(u, p); return R && (g.length === 1 ? R : Xs(R, (M) => A0(M) ? Dd(M, Rp(x)) : M, !0)); } function qet(n, a) { const l = n.parent; return TM(l) ? Zu(n, a) : Ey(l) ? zet(l, n, a) : void 0; } function nIe(n, a) { if ($p(n)) { const l = Ub(n.parent, a); return !l || Es(l) ? void 0 : FE(l, n.name.escapedText); } else return Zu(n.parent, a); } function B4(n) { switch (n.kind) { case 10: case 8: case 9: case 14: case 110: case 95: case 104: case 79: case 155: return !0; case 208: case 214: return B4(n.expression); case 291: return !n.expression || B4(n.expression); } return !1; } function Jet(n, a) { return BZe(a, n) || cie(a, ha(rn(yn(n.properties, (l) => !!l.symbol && l.kind === 299 && B4(l.initializer) && pD(a, l.symbol.escapedName)), (l) => [() => tP(l.initializer), l.symbol.escapedName]), rn(yn(fs(a), (l) => { var u; return !!(l.flags & 16777216) && !!((u = n == null ? void 0 : n.symbol) != null && u.members) && !n.symbol.members.has(l.escapedName) && pD(a, l.escapedName); }), (l) => [() => je, l.escapedName])), Eo, a); } function Ket(n, a) { return cie(a, ha(rn(yn(n.properties, (l) => !!l.symbol && l.kind === 288 && pD(a, l.symbol.escapedName) && (!l.initializer || B4(l.initializer))), (l) => [l.initializer ? () => tP(l.initializer) : () => Oe, l.symbol.escapedName]), rn(yn(fs(a), (l) => { var u; return !!(l.flags & 16777216) && !!((u = n == null ? void 0 : n.symbol) != null && u.members) && !n.symbol.members.has(l.escapedName) && pD(a, l.escapedName); }), (l) => [() => je, l.escapedName])), Eo, a); } function Ub(n, a) { const l = N_(n) ? eIe(n, a) : Zu(n, a), u = YU(l, n, a); if (u && !(a && a & 2 && u.flags & 8650752)) { const p = Xs(u, Vu, !0); return p.flags & 1048576 && As(n) ? Jet(n, p) : p.flags & 1048576 && w1(n) ? Ket(n, p) : p; } } function YU(n, a, l) { if (n && fl(n, 465829888)) { const u = ES(a); if (u && l & 1 && kt(u.inferences, Lrt)) return $U(n, u.nonFixingMapper); if (u != null && u.returnMapper) { const p = $U(n, u.returnMapper); return p.flags & 1048576 && Rb(p.types, K) && Rb(p.types, Z) ? uc(p, (g) => g !== K && g !== Z) : p; } } return n; } function $U(n, a) { return n.flags & 465829888 ? qi(n, a) : n.flags & 1048576 ? Xr(rn(n.types, (l) => $U(l, a)), 0) : n.flags & 2097152 ? Lo(rn(n.types, (l) => $U(l, a))) : n; } function Zu(n, a) { var l, u; if (n.flags & 33554432) return; const p = iIe(n, !a); if (p >= 0) return ic[p]; const { parent: g } = n; switch (g.kind) { case 257: case 166: case 169: case 168: case 205: return Oet(n, a); case 216: case 250: return Pet(n, a); case 226: return Fet(g, a); case 220: return Met(g, a); case 210: case 211: return QLe(g, n); case 167: return Bet(g); case 213: case 231: return tg(g.type) ? Zu(g, a) : ci(g.type); case 223: return Uet(n, a); case 299: case 300: return $ie(g, a); case 301: return Zu(g.parent, a); case 206: { const x = g, R = Ub(x, a), M = (u = (l = Wr(x)).firstSpreadIndex) != null ? u : l.firstSpreadIndex = $i(x.elements, Th), J = xA(x.elements, n); return tIe(R, M < 0 || J < M ? J : -1); } case 224: return Wet(n, a); case 236: return D.assert(g.parent.kind === 225), Get(g.parent, n); case 214: { if (dr(g)) { if (uq(g)) return ci(dq(g)); const x = s1(g); if (x && !tg(x.typeExpression.type)) return ci(x.typeExpression.type); } return Zu(g, a); } case 232: return Zu(g, a); case 235: return ci(g.type); case 274: return wd(g); case 291: return qet(g, a); case 288: case 290: return nIe(g, a); case 283: case 282: return $et(g, a); } } function rIe(n) { G4(n, Zu(n, void 0), !0); } function G4(n, a, l) { Ks[yg] = n, ic[yg] = a, zm[yg] = l, yg++; } function yD() { yg--; } function iIe(n, a) { for (let l = yg - 1; l >= 0; l--) if (n === Ks[l] && (a || !zm[l])) return l; return -1; } function Xet(n, a) { K_[Jv] = n, ob[Jv] = a, Jv++; } function Yet() { Jv--; } function ES(n) { for (let a = Jv - 1; a >= 0; a--) if (uT(n, K_[a])) return ob[a]; } function $et(n, a) { if (xh(n) && a !== 4) { const l = iIe(n.parent, !a); if (l >= 0) return ic[l]; } return Yie(n, 0); } function QU(n, a) { return UIe(a) !== 0 ? Qet(n, a) : ttt(n, a); } function Qet(n, a) { let l = wae(n, me); l = aIe(a, j2(a), l); const u = Vb(Sf.IntrinsicAttributes, a); return Zo(u) || (l = o4(u, l)), l; } function Zet(n, a) { if (n.compositeSignatures) { const u = []; for (const p of n.compositeSignatures) { const g = hs(p); if (Es(g)) return g; const x = cc(g, a); if (!x) return; u.push(x); } return Lo(u); } const l = hs(n); return Es(l) ? l : cc(l, a); } function ett(n) { if (LL(n.tagName)) { const l = pIe(n), u = uV(n, l); return CE(u); } const a = Kl(n.tagName); if (a.flags & 128) { const l = _Ie(a, n); if (!l) return xe; const u = uV(n, l); return CE(u); } return a; } function aIe(n, a, l) { const u = btt(a); if (u) { const p = Bs(u), g = ett(n); if (u.flags & 524288) { const x = Ui(u).typeParameters; if (Ne(x) >= 2) { const R = tv([g, l], x, 2, dr(n)); return N2(u, R); } } if (Ne(p.typeParameters) >= 2) { const x = tv([g, l], p.typeParameters, 2, dr(n)); return jg(p, x); } } return l; } function ttt(n, a) { const l = j2(a), u = Ett(l); let p = u === void 0 ? wae(n, me) : u === "" ? hs(n) : Zet(n, u); if (!p) return u && Ne(a.attributes.properties) && qe(a, _.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, Zi(u)), me; if (p = aIe(a, l, p), Es(p)) return p; { let g = p; const x = Vb(Sf.IntrinsicClassAttributes, a); if (!Zo(x)) { const M = Yy(x.symbol), J = hs(n); let $; if (M) { const he = tv([J], M, um(M), dr(a)); $ = qi(x, pd(M, he)); } else $ = x; g = o4($, g); } const R = Vb(Sf.IntrinsicAttributes, a); return Zo(R) || (g = o4(R, g)), g; } } function ntt(n) { return f_(Y, "noImplicitAny") ? Cu(n, (a, l) => a === l || !a ? a : fAe(a.typeParameters, l.typeParameters) ? att(a, l) : void 0) : void 0; } function rtt(n, a, l) { if (!n || !a) return n || a; const u = Xr([ar(n), qi(ar(a), l)]); return DE(n, u); } function itt(n, a, l) { const u = Xd(n), p = Xd(a), g = u >= p ? n : a, x = g === n ? a : n, R = g === n ? u : p, M = hm(n) || hm(a), J = M && !hm(g), $ = new Array(R + (J ? 1 : 0)); for (let he = 0; he < R; he++) { let De = BE(g, he); g === a && (De = qi(De, l)); let ke = BE(x, he) || me; x === a && (ke = qi(ke, l)); const ft = Xr([De, ke]), Bt = M && !J && he === R - 1, Mn = he >= mm(g) && he >= mm(x), An = he >= u ? void 0 : DL(n, he), Xn = he >= p ? void 0 : DL(a, he), mn = An === Xn ? An : An ? Xn ? void 0 : An : Xn, xn = Qo(1 | (Mn && !Bt ? 16777216 : 0), mn || `arg${he}`); xn.links.type = Bt ? Tu(ft) : ft, $[he] = xn; } if (J) { const he = Qo(1, "args"); he.links.type = Tu(sp(x, R)), x === a && (he.links.type = qi(he.links.type, l)), $[R] = he; } return $; } function att(n, a) { const l = n.typeParameters || a.typeParameters; let u; n.typeParameters && a.typeParameters && (u = pd(a.typeParameters, n.typeParameters)); const p = n.declaration, g = itt(n, a, u), x = rtt(n.thisParameter, a.thisParameter, u), R = Math.max(n.minArgumentCount, a.minArgumentCount), M = th(p, l, x, g, void 0, void 0, R, (n.flags | a.flags) & 39); return M.compositeKind = 2097152, M.compositeSignatures = ha(n.compositeKind === 2097152 && n.compositeSignatures || [n], [a]), u && (M.mapper = n.compositeKind === 2097152 && n.mapper && n.compositeSignatures ? x0(n.mapper, u) : u), M; } function Qie(n, a) { const l = Ha(n, 0), u = yn(l, (p) => !ott(p, a)); return u.length === 1 ? u[0] : ntt(u); } function ott(n, a) { let l = 0; for (; l < a.parameters.length; l++) { const u = a.parameters[l]; if (u.initializer || u.questionToken || u.dotDotDotToken || eO(u)) break; } return a.parameters.length && E1(a.parameters[0]) && l--, !hm(n) && Xd(n) < l; } function Zie(n) { return ZA(n) || N_(n) ? vD(n) : void 0; } function vD(n) { D.assert(n.kind !== 171 || N_(n)); const a = Qw(n); if (a) return a; const l = Ub(n, 1); if (!l) return; if (!(l.flags & 1048576)) return Qie(l, n); let u; const p = l.types; for (const g of p) { const x = Qie(g, n); if (x) if (!u) u = [x]; else if (L4(u[0], x, !1, !0, !0, oD)) u.push(x); else return; } if (u) return u.length === 1 ? u[0] : uAe(u[0], u); } function stt(n, a) { P < 2 && dc(n, Y.downlevelIteration ? 1536 : 1024); const l = ma(n.expression, a); return cv(33, l, je, n.expression); } function ltt(n) { return n.isSpread ? Dd(n.type, pt) : n.type; } function CL(n) { return n.kind === 205 && !!n.initializer || n.kind === 223 && n.operatorToken.kind === 63; } function oIe(n, a, l) { const u = n.elements, p = u.length, g = [], x = []; rIe(n); const R = mh(n), M = RL(n), J = Ub(n, void 0), $ = !!J && Jh(J, EL); let he = !1; for (let De = 0; De < p; De++) { const ke = u[De]; if (ke.kind === 227) { P < 2 && dc(ke, Y.downlevelIteration ? 1536 : 1024); const ft = ma(ke.expression, a, l); if (A0(ft)) g.push(ft), x.push(8); else if (R) { const Bt = Vg(ft, pt) || $ae(65, ft, je, void 0, !1) || me; g.push(Bt), x.push(4); } else g.push(cv(33, ft, je, ke.expression)), x.push(4); } else if (We && ke.kind === 229) he = !0, g.push(Ut), x.push(2); else { const ft = NL(ke, a, l); if (g.push(Ao(ft, !0, he)), x.push(he ? 2 : 1), $ && a && a & 2 && !(a & 4) && S_(ke)) { const Bt = ES(n); D.assert(Bt), lLe(Bt, ke, ft); } } } return yD(), R ? Dp(g, x) : sIe(l || M || $ ? Dp(g, x, M) : Tu(g.length ? Xr(Xl(g, (De, ke) => x[ke] & 8 ? rv(De, pt) || Ie : De), 2) : H ? dn : Qe, M)); } function sIe(n) { if (!(Qr(n) & 4)) return n; let a = n.literalType; return a || (a = n.literalType = NAe(n), a.objectFlags |= 147456), a; } function ctt(n) { switch (n.kind) { case 164: return utt(n); case 79: return vh(n.escapedText); case 8: case 10: return vh(n.text); default: return !1; } } function utt(n) { return Rc(Kg(n), 296); } function Kg(n) { const a = Wr(n.expression); if (!a.resolvedType) { if ((rf(n.parent.parent) || li(n.parent.parent) || Yu(n.parent.parent)) && vr(n.expression) && n.expression.operatorToken.kind === 101 && n.parent.kind !== 174 && n.parent.kind !== 175) return a.resolvedType = xe; if (a.resolvedType = ma(n.expression), Za(n.parent) && !_c(n.parent) && Nu(n.parent.parent)) { const l = Dm(n.parent.parent), u = Hie(l); u && (Wr(u).flags |= 4096, Wr(n).flags |= 32768, Wr(n.parent.parent).flags |= 32768); } (a.resolvedType.flags & 98304 || !Rc(a.resolvedType, 402665900) && !Eo(a.resolvedType, Si)) && qe(n, _.A_computed_property_name_must_be_of_type_string_number_symbol_or_any); } return a.resolvedType; } function dtt(n) { var a; const l = (a = n.declarations) == null ? void 0 : a[0]; return vh(n.escapedName) || l && du(l) && ctt(l.name); } function lIe(n) { var a; const l = (a = n.declarations) == null ? void 0 : a[0]; return AN(n) || l && du(l) && Ss(l.name) && Rc(Kg(l.name), 4096); } function eae(n, a, l, u) { const p = []; for (let x = a; x < l.length; x++) { const R = l[x]; (u === ce && !lIe(R) || u === pt && dtt(R) || u === q && lIe(R)) && p.push(ar(l[x])); } const g = p.length ? Xr(p, 2) : je; return dm(u, g, RL(n)); } function tae(n) { D.assert((n.flags & 2097152) !== 0, "Should only get Alias here."); const a = Ui(n); if (!a.immediateTarget) { const l = ud(n); if (!l) return D.fail(); a.immediateTarget = ep(l, !0); } return a.immediateTarget; } function ftt(n, a) { var l; const u = mh(n); _st(n, u); const p = H ? ao() : void 0; let g = ao(), x = [], R = da; rIe(n); const M = Ub(n, void 0), J = M && M.pattern && (M.pattern.kind === 203 || M.pattern.kind === 207), $ = RL(n), he = $ ? 8 : 0, De = dr(n) && !YM(n), ke = qH(n), ft = !M && De && !ke; let Bt = Fe, Mn = !1, An = !1, Xn = !1, mn = !1; for (const an of n.properties) an.name && Ss(an.name) && Kg(an.name); let xn = 0; for (const an of n.properties) { let Gn = Lr(an); const Jn = an.name && an.name.kind === 164 ? Kg(an.name) : void 0; if (an.kind === 299 || an.kind === 300 || N_(an)) { let Yr = an.kind === 299 ? Ske(an, a) : an.kind === 300 ? NL(!u && an.objectAssignmentInitializer ? an.objectAssignmentInitializer : an.name, a) : xke(an, a); if (De) { const Ya = Ai(an); Ya ? (Qu(Yr, Ya, an), Yr = Ya) : ke && ke.typeExpression && Qu(Yr, ci(ke.typeExpression), an); } Bt |= Qr(Yr) & 458752; const ei = Jn && Vh(Jn) ? Jn : void 0, fa = ei ? Qo(4 | Gn.flags, lm(ei), he | 4096) : Qo(4 | Gn.flags, Gn.escapedName, he); if (ei && (fa.links.nameType = ei), u) (an.kind === 299 && CL(an.initializer) || an.kind === 300 && an.objectAssignmentInitializer) && (fa.flags |= 16777216); else if (J && !(Qr(M) & 512)) { const Ya = so(M, Gn.escapedName); Ya ? fa.flags |= Ya.flags & 16777216 : !Y.suppressExcessPropertyErrors && !nh(M, ce) && qe(an.name, _.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, S(Gn), Le(M)); } if (fa.declarations = Gn.declarations, fa.parent = Gn.parent, Gn.valueDeclaration && (fa.valueDeclaration = Gn.valueDeclaration), fa.links.type = Yr, fa.links.target = Gn, Gn = fa, p == null || p.set(fa.escapedName, fa), M && a && a & 2 && !(a & 4) && (an.kind === 299 || an.kind === 171) && S_(an)) { const Ya = ES(n); D.assert(Ya); const gc = an.kind === 299 ? an.initializer : an; lLe(Ya, gc, Yr); } } else if (an.kind === 301) { P < 2 && dc(an, 2), x.length > 0 && (R = Ob(R, gr(), n.symbol, Bt, $), x = [], g = ao(), An = !1, Xn = !1, mn = !1); const Yr = ap(ma(an.expression)); if (U4(Yr)) { const ei = Kre(Yr, $); if (p && uIe(ei, p, an), xn = x.length, Zo(R)) continue; R = Ob(R, ei, n.symbol, Bt, $); } else qe(an, _.Spread_types_may_only_be_created_from_object_types), R = xe; continue; } else D.assert(an.kind === 174 || an.kind === 175), GL(an); Jn && !(Jn.flags & 8576) ? Eo(Jn, Si) && (Eo(Jn, pt) ? Xn = !0 : Eo(Jn, q) ? mn = !0 : An = !0, u && (Mn = !0)) : g.set(Gn.escapedName, Gn), x.push(Gn); } if (yD(), J) { const an = nr(M.pattern.parent, (Jn) => Jn.kind === 257 || Jn.kind === 223 || Jn.kind === 166); if (nr(n, (Jn) => Jn === an || Jn.kind === 301).kind !== 301) for (const Jn of fs(M)) !g.get(Jn.escapedName) && !so(R, Jn.escapedName) && (Jn.flags & 16777216 || qe(Jn.valueDeclaration || ((l = ri(Jn, km)) == null ? void 0 : l.links.bindingElement), _.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value), g.set(Jn.escapedName, Jn), x.push(Jn)); } if (Zo(R)) return xe; if (R !== da) return x.length > 0 && (R = Ob(R, gr(), n.symbol, Bt, $), x = [], g = ao(), An = !1, Xn = !1), Xs(R, (an) => an === da ? gr() : an); return gr(); function gr() { const an = []; An && an.push(eae(n, xn, x, ce)), Xn && an.push(eae(n, xn, x, pt)), mn && an.push(eae(n, xn, x, q)); const Gn = Ds(n.symbol, g, nt, nt, an); return Gn.objectFlags |= Bt | 128 | 131072, ft && (Gn.objectFlags |= 4096), Mn && (Gn.objectFlags |= 512), u && (Gn.pattern = n), Gn; } } function U4(n) { const a = iLe(Xs(n, ev)); return !!(a.flags & 126615553 || a.flags & 3145728 && Vn(a.types, U4)); } function _tt(n) { aae(n); } function ptt(n, a) { return GL(n), V4(n) || Ie; } function mtt(n) { aae(n.openingElement), LL(n.closingElement.tagName) ? rae(n.closingElement) : ma(n.closingElement.tagName), ZU(n); } function htt(n, a) { return GL(n), V4(n) || Ie; } function gtt(n) { aae(n.openingFragment); const a = Zn(n); return Wz(Y) && (Y.jsxFactory || a.pragmas.has("jsx")) && !Y.jsxFragmentFactory && !a.pragmas.has("jsxfrag") && qe(n, Y.jsxFactory ? _.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), ZU(n), V4(n) || Ie; } function nae(n) { return lu(n, "-"); } function LL(n) { return n.kind === 79 && FI(n.escapedText); } function cIe(n, a) { return n.initializer ? NL(n.initializer, a) : Oe; } function ytt(n, a) { const l = n.attributes, u = Zu(l, 0), p = H ? ao() : void 0; let g = ao(), x = $l, R = !1, M, J = !1, $ = 2048; const he = eV(j2(n)); for (const ft of l.properties) { const Bt = ft.symbol; if ($p(ft)) { const Mn = cIe(ft, a); $ |= Qr(Mn) & 458752; const An = Qo(4 | Bt.flags, Bt.escapedName); if (An.declarations = Bt.declarations, An.parent = Bt.parent, Bt.valueDeclaration && (An.valueDeclaration = Bt.valueDeclaration), An.links.type = Mn, An.links.target = Bt, g.set(An.escapedName, An), p == null || p.set(An.escapedName, An), ft.name.escapedText === he && (J = !0), u) { const Xn = so(u, Bt.escapedName); Xn && Xn.declarations && t0(Xn) && xg(ft.name, Xn.declarations, ft.name.escapedText); } } else { D.assert(ft.kind === 290), g.size > 0 && (x = Ob(x, ke(), l.symbol, $, !1), g = ao()); const Mn = ap(Kl(ft.expression, a)); Es(Mn) && (R = !0), U4(Mn) ? (x = Ob(x, Mn, l.symbol, $, !1), p && uIe(Mn, p, ft)) : (qe(ft.expression, _.Spread_types_may_only_be_created_from_object_types), M = M ? Lo([M, Mn]) : Mn); } } R || g.size > 0 && (x = Ob(x, ke(), l.symbol, $, !1)); const De = n.parent.kind === 281 ? n.parent : void 0; if (De && De.openingElement === n && De.children.length > 0) { const ft = ZU(De, a); if (!R && he && he !== "") { J && qe(l, _._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, Zi(he)); const Bt = Ub(n.attributes, void 0), Mn = Bt && FE(Bt, he), An = Qo(4, he); An.links.type = ft.length === 1 ? ft[0] : Mn && Jh(Mn, EL) ? Dp(ft) : Tu(Xr(ft)), An.valueDeclaration = N.createPropertySignature(void 0, Zi(he), void 0, void 0), Bo(An.valueDeclaration, l), An.valueDeclaration.symbol = An; const Xn = ao(); Xn.set(he, An), x = Ob(x, Ds(l.symbol, Xn, nt, nt, nt), l.symbol, $, !1); } } if (R) return Ie; if (M && x !== $l) return Lo([M, x]); return M || (x === $l ? ke() : x); function ke() { $ |= Fe; const ft = Ds(l.symbol, g, nt, nt, nt); return ft.objectFlags |= $ | 128 | 131072, ft; } } function ZU(n, a) { const l = []; for (const u of n.children) if (u.kind === 11) u.containsOnlyTriviaWhiteSpaces || l.push(ce); else { if (u.kind === 291 && !u.expression) continue; l.push(NL(u, a)); } return l; } function uIe(n, a, l) { for (const u of fs(n)) if (!(u.flags & 16777216)) { const p = a.get(u.escapedName); if (p) { const g = qe(p.valueDeclaration, _._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, Zi(p.escapedName)); qo(g, Dr(l, _.This_spread_always_overwrites_this_property)); } } } function vtt(n, a) { return ytt(n.parent, a); } function Vb(n, a) { const l = j2(a), u = l && uf(l), p = u && Hd(u, n, 788968); return p ? Bs(p) : xe; } function rae(n) { const a = Wr(n); if (!a.resolvedSymbol) { const l = Vb(Sf.IntrinsicElements, n); if (Zo(l)) return Te && qe(n, _.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, Zi(Sf.IntrinsicElements)), a.resolvedSymbol = en; { if (!Ve(n.tagName)) return D.fail(); const u = so(l, n.tagName.escapedText); return u ? (a.jsxFlags |= 1, a.resolvedSymbol = u) : Vg(l, ce) ? (a.jsxFlags |= 2, a.resolvedSymbol = l.symbol) : (qe(n, _.Property_0_does_not_exist_on_type_1, Or(n.tagName), "JSX." + Sf.IntrinsicElements), a.resolvedSymbol = en); } } return a.resolvedSymbol; } function iae(n) { const a = n && Zn(n), l = a && Wr(a); if (l && l.jsxImplicitImportContainer === !1) return; if (l && l.jsxImplicitImportContainer) return l.jsxImplicitImportContainer; const u = A3(x3(Y, a), Y); if (!u) return; const g = gl(Y) === 1 ? _.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : _.Cannot_find_module_0_or_its_corresponding_type_declarations, x = hc(n, u, g, n), R = x && x !== en ? ns(ql(x)) : void 0; return l && (l.jsxImplicitImportContainer = R || !1), R; } function j2(n) { const a = n && Wr(n); if (a && a.jsxNamespace) return a.jsxNamespace; if (!a || a.jsxNamespace !== !1) { let u = iae(n); if (!u || u === en) { const p = fb(n); u = dl(n, p, 1920, void 0, p, !1); } if (u) { const p = ql(Hd(uf(ql(u)), Sf.JSX, 1920)); if (p && p !== en) return a && (a.jsxNamespace = p), p; } a && (a.jsxNamespace = !1); } const l = ql(tD(Sf.JSX, 1920, void 0)); if (l !== en) return l; } function dIe(n, a) { const l = a && Hd(a.exports, n, 788968), u = l && Bs(l), p = u && fs(u); if (p) { if (p.length === 0) return ""; if (p.length === 1) return p[0].escapedName; p.length > 1 && l.declarations && qe(l.declarations[0], _.The_global_type_JSX_0_may_not_have_more_than_one_property, Zi(n)); } } function btt(n) { return n && Hd(n.exports, Sf.LibraryManagedAttributes, 788968); } function Ett(n) { return dIe(Sf.ElementAttributesPropertyNameContainer, n); } function eV(n) { return dIe(Sf.ElementChildrenAttributeNameContainer, n); } function fIe(n, a) { if (n.flags & 4) return [qs]; if (n.flags & 128) { const p = _Ie(n, a); return p ? [uV(a, p)] : (qe(a, _.Property_0_does_not_exist_on_type_1, n.value, "JSX." + Sf.IntrinsicElements), nt); } const l = Vu(n); let u = Ha(l, 1); return u.length === 0 && (u = Ha(l, 0)), u.length === 0 && l.flags & 1048576 && (u = rre(rn(l.types, (p) => fIe(p, a)))), u; } function _Ie(n, a) { const l = Vb(Sf.IntrinsicElements, a); if (!Zo(l)) { const u = n.value, p = so(l, al(u)); if (p) return ar(p); const g = Vg(l, ce); return g || void 0; } return Ie; } function Ttt(n, a, l) { if (n === 1) { const p = hIe(l); p && t_(a, p, xd, l.tagName, _.Its_return_type_0_is_not_a_valid_JSX_element, u); } else if (n === 0) { const p = mIe(l); p && t_(a, p, xd, l.tagName, _.Its_instance_type_0_is_not_a_valid_JSX_element, u); } else { const p = hIe(l), g = mIe(l); if (!p || !g) return; const x = Xr([p, g]); t_(a, x, xd, l.tagName, _.Its_element_type_0_is_not_a_valid_JSX_element, u); } function u() { const p = bc(l.tagName); return Da(void 0, _._0_cannot_be_used_as_a_JSX_component, p); } } function pIe(n) { D.assert(LL(n.tagName)); const a = Wr(n); if (!a.resolvedJsxElementAttributesType) { const l = rae(n); return a.jsxFlags & 1 ? a.resolvedJsxElementAttributesType = ar(l) || xe : a.jsxFlags & 2 ? a.resolvedJsxElementAttributesType = Vg(Vb(Sf.IntrinsicElements, n), ce) || xe : a.resolvedJsxElementAttributesType = xe; } return a.resolvedJsxElementAttributesType; } function mIe(n) { const a = Vb(Sf.ElementClass, n); if (!Zo(a)) return a; } function V4(n) { return Vb(Sf.Element, n); } function hIe(n) { const a = V4(n); if (a) return Xr([a, Sn]); } function Stt(n) { const a = Vb(Sf.IntrinsicElements, n); return a ? fs(a) : nt; } function xtt(n) { (Y.jsx || 0) === 0 && qe(n, _.Cannot_use_JSX_unless_the_jsx_flag_is_provided), V4(n) === void 0 && Te && qe(n, _.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist); } function aae(n) { const a = qu(n); if (a && pst(n), xtt(n), !iae(n)) { const l = Xo && Y.jsx === 2 ? _.Cannot_find_name_0 : void 0, u = fb(n), p = a ? n.tagName : n; let g; if (Lx(n) && u === "null" || (g = dl(p, u, 111551, l, u, !0)), g && (g.isReferenced = 67108863, !Y.verbatimModuleSyntax && g.flags & 2097152 && !Ld(g) && Sb(g)), Lx(n)) { const x = Zn(n), R = tS(x); R && dl(p, R, 111551, l, R, !0); } } if (a) { const l = n, u = wL(l); fV(u, n), Ttt(UIe(l), hs(u), l); } } function oae(n, a, l) { if (n.flags & 524288) { if (Ib(n, a) || k2(n, a) || Jw(a) && nh(n, ce) || l && nae(a)) return !0; } else if (n.flags & 3145728 && j4(n)) { for (const u of n.types) if (oae(u, a, l)) return !0; } return !1; } function j4(n) { return !!(n.flags & 524288 && !(Qr(n) & 512) || n.flags & 67108864 || n.flags & 1048576 && kt(n.types, j4) || n.flags & 2097152 && Vn(n.types, j4)); } function Att(n, a) { if (hst(n), n.expression) { const l = ma(n.expression, a); return n.dotDotDotToken && l !== Ie && !Ff(l) && qe(n, _.JSX_spread_child_must_be_an_array_type), l; } else return xe; } function tV(n) { return n.valueDeclaration ? up(n.valueDeclaration) : 0; } function sae(n) { if (n.flags & 8192 || Al(n) & 4) return !0; if (dr(n.valueDeclaration)) { const a = n.valueDeclaration.parent; return a && vr(a) && xl(a) === 3; } } function lae(n, a, l, u, p, g = !0) { const x = g ? n.kind === 163 ? n.right : n.kind === 202 ? n : n.kind === 205 && n.propertyName ? n.propertyName : n.name : void 0; return gIe(n, a, l, u, p, x); } function gIe(n, a, l, u, p, g) { const x = qf(p, l); if (a) { if (P < 2 && yIe(p)) return g && qe(g, _.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword), !1; if (x & 256) return g && qe(g, _.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression, S(p), Le(vS(p))), !1; } if (x & 256 && yIe(p) && (ZR(n) || Yce(n) || Bm(n.parent) && zM(n.parent.parent))) { const M = cg(fd(p)); if (M && mot(n)) return g && qe(g, _.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor, S(p), P_(M.name)), !1; } if (!(x & 24)) return !0; if (x & 8) { const M = cg(fd(p)); return loe(n, M) ? !0 : (g && qe(g, _.Property_0_is_private_and_only_accessible_within_class_1, S(p), Le(vS(p))), !1); } if (a) return !0; let R = Owe(n, (M) => { const J = Bs(Lr(M)); return $Ce(J, p, l); }); return !R && (R = Ctt(n), R = R && $Ce(R, p, l), x & 32 || !R) ? (g && qe(g, _.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, S(p), Le(vS(p) || u)), !1) : x & 32 ? !0 : (u.flags & 262144 && (u = u.isThisType ? bu(u) : Uu(u)), !u || !TE(u, R) ? (g && qe(g, _.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2, S(p), Le(R), Le(u)), !1) : !0); } function Ctt(n) { const a = Ltt(n); let l = (a == null ? void 0 : a.type) && ci(a.type); if (l && l.flags & 262144 && (l = bu(l)), l && Qr(l) & 7) return C2(l); } function Ltt(n) { const a = yd(n, !1, !1); return a && qa(a) ? b1(a) : void 0; } function yIe(n) { return !!A4(n, (a) => !(a.flags & 8192)); } function IL(n) { return Np(ma(n), n); } function nV(n) { return !!(xu(n) & 50331648); } function cae(n) { return nV(n) ? Jg(n) : n; } function Itt(n, a) { const l = Vl(n) ? vf(n) : void 0; if (n.kind === 104) { qe(n, _.The_value_0_cannot_be_used_here, "null"); return; } if (l !== void 0 && l.length < 100) { if (Ve(n) && l === "undefined") { qe(n, _.The_value_0_cannot_be_used_here, "undefined"); return; } qe(n, a & 16777216 ? a & 33554432 ? _._0_is_possibly_null_or_undefined : _._0_is_possibly_undefined : _._0_is_possibly_null, l); } else qe(n, a & 16777216 ? a & 33554432 ? _.Object_is_possibly_null_or_undefined : _.Object_is_possibly_undefined : _.Object_is_possibly_null); } function ktt(n, a) { qe(n, a & 16777216 ? a & 33554432 ? _.Cannot_invoke_an_object_which_is_possibly_null_or_undefined : _.Cannot_invoke_an_object_which_is_possibly_undefined : _.Cannot_invoke_an_object_which_is_possibly_null); } function vIe(n, a, l) { if (H && n.flags & 2) { if (Vl(a)) { const p = vf(a); if (p.length < 100) return qe(a, _._0_is_of_type_unknown, p), xe; } return qe(a, _.Object_is_of_type_unknown), xe; } const u = xu(n); if (u & 50331648) { l(a, u); const p = Jg(n); return p.flags & 229376 ? xe : p; } return n; } function Np(n, a) { return vIe(n, a, Itt); } function bIe(n, a) { const l = Np(n, a); if (l.flags & 16384) { if (Vl(a)) { const u = vf(a); if (Ve(a) && u === "undefined") return qe(a, _.The_value_0_cannot_be_used_here, u), l; if (u.length < 100) return qe(a, _._0_is_possibly_undefined, u), l; } qe(a, _.Object_is_possibly_undefined); } return l; } function EIe(n, a) { return n.flags & 32 ? wtt(n, a) : dae(n, n.expression, IL(n.expression), n.name, a); } function wtt(n, a) { const l = ma(n.expression), u = uD(l, n.expression); return OU(dae(n, n.expression, Np(u, n.expression), n.name, a), n, u !== l); } function TIe(n, a) { const l = XM(n) && _T(n.left) ? Np(F4(n.left), n.left) : IL(n.left); return dae(n, n.left, l, n.right, a); } function SIe(n) { for (; n.parent.kind === 214; ) n = n.parent; return ng(n.parent) && n.parent.expression === n; } function rV(n, a) { for (let l = Ec(a); l; l = Ec(l)) { const { symbol: u } = l, p = xN(u, n), g = u.members && u.members.get(p) || u.exports && u.exports.get(p); if (g) return g; } } function Dtt(n) { if (!Ec(n)) return bn(n, _.Private_identifiers_are_not_allowed_outside_class_bodies); if (!tJ(n.parent)) { if (!ag(n)) return bn(n, _.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); const a = vr(n.parent) && n.parent.operatorToken.kind === 101; if (!iV(n) && !a) return bn(n, _.Cannot_find_name_0, Or(n)); } return !1; } function Rtt(n) { Dtt(n); const a = iV(n); return a && W4(a, void 0, !1), Ie; } function iV(n) { if (!ag(n)) return; const a = Wr(n); return a.resolvedSymbol === void 0 && (a.resolvedSymbol = rV(n.escapedText, n)), a.resolvedSymbol; } function uae(n, a) { return so(n, a.escapedName); } function Ntt(n, a, l) { let u; const p = fs(n); p && Ye(p, (x) => { const R = x.valueDeclaration; if (R && du(R) && ki(R.name) && R.name.escapedText === a.escapedText) return u = x, !0; }); const g = $f(a); if (u) { const x = D.checkDefined(u.valueDeclaration), R = D.checkDefined(Ec(x)); if (l != null && l.valueDeclaration) { const M = l.valueDeclaration, J = Ec(M); if (D.assert(!!J), nr(J, ($) => R === $)) { const $ = qe(a, _.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling, g, Le(n)); return qo($, Dr(M, _.The_shadowing_declaration_of_0_is_defined_here, g), Dr(x, _.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here, g)), !0; } } return qe(a, _.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier, g, $f(R.name || u8)), !0; } return !1; } function xIe(n, a) { return (kd(a) || ZR(n) && Ip(a)) && yd(n, !0, !1) === sm(a); } function dae(n, a, l, u, p) { const g = Wr(a).resolvedSymbol, x = cT(n), R = Vu(x !== 0 || SIe(n) ? Kd(l) : l), M = Es(R) || R === dt; let J; if (ki(u)) { P < 99 && (x !== 0 && dc(n, 1048576), x !== 1 && dc(n, 524288)); const he = rV(u.escapedText, u); if (x && he && he.valueDeclaration && nc(he.valueDeclaration) && bn(u, _.Cannot_assign_to_private_method_0_Private_methods_are_not_writable, Or(u)), M) { if (he) return Zo(R) ? xe : R; if (!Ec(u)) return bn(u, _.Private_identifiers_are_not_allowed_outside_class_bodies), Ie; } if (J = he ? uae(l, he) : void 0, !J && Ntt(l, u, he)) return xe; J && J.flags & 65536 && !(J.flags & 32768) && x !== 1 && qe(n, _.Private_accessor_was_defined_without_a_getter); } else { if (M) return Ve(a) && g && KU(g, n), Zo(R) ? xe : R; J = so(R, u.escapedText, !1, n.kind === 163); } Ve(a) && g && (F_(Y) || !(J && (PD(J) || J.flags & 8 && n.parent.kind === 302)) || S1(Y) && HLe(n)) && KU(g, n); let $; if (J) { t0(J) && Hre(n, J) && J.declarations && xg(u, J.declarations, u.escapedText), Ott(J, n, u), W4(J, n, DIe(a, g)), Wr(n).resolvedSymbol = J; const he = XI(n); if (lae(n, a.kind === 106, he, R, J), gke(n, J, x)) return qe(u, _.Cannot_assign_to_0_because_it_is_a_read_only_property, Or(u)), xe; $ = xIe(n, J) ? gt : he ? cL(J) : ar(J); } else { const he = !ki(u) && (x === 0 || !Nb(l) || lk(l)) ? k2(R, u.escapedText) : void 0; if (!(he && he.type)) { const De = fae(n, l.symbol, !0); return !De && rD(l) ? Ie : l.symbol === ot ? (ot.exports.has(u.escapedText) && ot.exports.get(u.escapedText).flags & 418 ? qe(u, _.Property_0_does_not_exist_on_type_1, Zi(u.escapedText), Le(l)) : Te && qe(u, _.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, Le(l)), Ie) : (u.escapedText && !n0(n) && LIe(u, lk(l) ? R : l, De), xe); } he.isReadonly && (mh(n) || rz(n)) && qe(n, _.Index_signature_in_type_0_only_permits_reading, Le(R)), $ = Y.noUncheckedIndexedAccess && !mh(n) ? Xr([he.type, Je]) : he.type, Y.noPropertyAccessFromIndexSignature && Pr(n) && qe(u, _.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, Zi(u.escapedText)), he.declaration && up(he.declaration) & 268435456 && xg(u, [he.declaration], u.escapedText); } return AIe(n, J, $, u, p); } function fae(n, a, l) { const u = Zn(n); if (u && Y.checkJs === void 0 && u.checkJsDirective === void 0 && (u.scriptKind === 1 || u.scriptKind === 2)) { const p = Ye(a == null ? void 0 : a.declarations, Zn); return !(u !== p && p && Jm(p)) && !(l && a && a.flags & 32) && !(n && l && Pr(n) && n.expression.kind === 108); } return !1; } function AIe(n, a, l, u, p) { const g = cT(n); if (g === 1) return wE(l, !!(a && a.flags & 16777216)); if (a && !(a.flags & 98311) && !(a.flags & 8192 && l.flags & 1048576) && !kV(a.declarations)) return l; if (l === gt) return x2(n, a); l = jie(l, n, p); let x = !1; if (H && ye && ol(n) && n.expression.kind === 108) { const M = a && a.valueDeclaration; if (M && bwe(M) && !za(M)) { const J = gD(n); J.kind === 173 && J.parent === M.parent && !(M.flags & 16777216) && (x = !0); } } else H && a && a.valueDeclaration && Pr(a.valueDeclaration) && cN(a.valueDeclaration) && gD(n) === gD(a.valueDeclaration) && (x = !0); const R = I0(n, l, x ? qg(l) : l); return x && !yL(l) && yL(R) ? (qe(u, _.Property_0_is_used_before_being_assigned, S(a)), l) : g ? sv(R) : R; } function Ott(n, a, l) { const { valueDeclaration: u } = n; if (!u || Zn(a).isDeclarationFile) return; let p; const g = Or(l); CIe(a) && !LYe(u) && !(ol(a) && ol(a.expression)) && !Cg(u, l) && !(nc(u) && cy(u) & 32) && (Y.useDefineForClassFields || !Ptt(n)) ? p = qe(l, _.Property_0_is_used_before_its_initialization, g) : u.kind === 260 && a.parent.kind !== 180 && !(u.flags & 16777216) && !Cg(u, l) && (p = qe(l, _.Class_0_used_before_its_declaration, g)), p && qo(p, Dr(u, _._0_is_declared_here, g)); } function CIe(n) { return !!nr(n, (a) => { switch (a.kind) { case 169: return !0; case 299: case 171: case 174: case 175: case 301: case 164: case 236: case 291: case 288: case 289: case 290: case 283: case 230: case 294: return !1; case 216: case 241: return oo(a.parent) && Cl(a.parent.parent) ? !0 : "quit"; default: return ag(a) ? !1 : "quit"; } }); } function Ptt(n) { if (!(n.parent.flags & 32)) return !1; let a = ar(n.parent); for (; ; ) { if (a = a.symbol && Mtt(a), !a) return !1; const l = so(a, n.escapedName); if (l && l.valueDeclaration) return !0; } } function Mtt(n) { const a = No(n); if (a.length !== 0) return Lo(a); } function LIe(n, a, l) { let u, p; if (!ki(n) && a.flags & 1048576 && !(a.flags & 134348796)) { for (const x of a.types) if (!so(x, n.escapedText) && !k2(x, n.escapedText)) { u = Da(u, _.Property_0_does_not_exist_on_type_1, Is(n), Le(x)); break; } } if (IIe(n.escapedText, a)) { const x = Is(n), R = Le(a); u = Da(u, _.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, x, R, R + "." + x); } else { const x = wD(a); if (x && so(x, n.escapedText)) u = Da(u, _.Property_0_does_not_exist_on_type_1, Is(n), Le(a)), p = Dr(n, _.Did_you_forget_to_use_await); else { const R = Is(n), M = Le(a), J = Gtt(R, a); if (J !== void 0) u = Da(u, _.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, R, M, J); else { const $ = _ae(n, a); if ($ !== void 0) { const he = Nl($), De = l ? _.Property_0_may_not_exist_on_type_1_Did_you_mean_2 : _.Property_0_does_not_exist_on_type_1_Did_you_mean_2; u = Da(u, De, R, M, he), p = $.valueDeclaration && Dr($.valueDeclaration, _._0_is_declared_here, he); } else { const he = Ftt(a) ? _.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom : _.Property_0_does_not_exist_on_type_1; u = Da(pre(u, a), he, R, M); } } } } const g = rg(Zn(n), n, u); p && qo(g, p), Ry(!l || u.code !== _.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code, g); } function Ftt(n) { return Y.lib && !Y.lib.includes("dom") && ZZe(n, (a) => a.symbol && /^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Zi(a.symbol.escapedName))) && Wh(n); } function IIe(n, a) { const l = a.symbol && so(ar(a.symbol), n); return l !== void 0 && !!l.valueDeclaration && za(l.valueDeclaration); } function Btt(n) { const a = $f(n), u = AW().get(a); return u && rse(u.keys()); } function Gtt(n, a) { const l = Vu(a).symbol; if (!l) return; const u = Nl(l), g = AW().get(u); if (g) { for (const [x, R] of g) if (Ii(R, n)) return x; } } function kIe(n, a) { return H4(n, fs(a), 106500); } function _ae(n, a) { let l = fs(a); if (typeof n != "string") { const u = n.parent; Pr(u) && (l = yn(l, (p) => RIe(u, a, p))), n = Or(n); } return H4(n, l, 111551); } function wIe(n, a) { const l = Va(n) ? n : Or(n), u = fs(a), p = l === "for" ? un(u, (g) => Nl(g) === "htmlFor") : l === "class" ? un(u, (g) => Nl(g) === "className") : void 0; return p ?? H4(l, u, 111551); } function pae(n, a) { const l = _ae(n, a); return l && Nl(l); } function mae(n, a, l) { return D.assert(a !== void 0, "outername should always be defined"), gb(n, a, l, void 0, a, !1, !1, !0, (p, g, x) => { D.assertEqual(a, g, "name should equal outerName"); const R = Hd(p, g, x); if (R) return R; let M; return p === He ? M = _a(["string", "number", "boolean", "object", "bigint", "symbol"], ($) => p.has($.charAt(0).toUpperCase() + $.slice(1)) ? Qo(524288, $) : void 0).concat(ko(p.values())) : M = ko(p.values()), H4(Zi(g), M, x); }); } function Utt(n, a, l) { const u = mae(n, a, l); return u && Nl(u); } function aV(n, a) { return a.exports && H4(Or(n), Gy(a), 2623475); } function Vtt(n, a) { const l = aV(n, a); return l && Nl(l); } function jtt(n, a, l) { function u(x) { const R = Ib(n, x); if (R) { const M = TS(ar(R)); return !!M && mm(M) >= 1 && Eo(l, sp(M, 0)); } return !1; } const p = mh(a) ? "set" : "get"; if (!u(p)) return; let g = FN(a.expression); return g === void 0 ? g = p : g += "." + p, g; } function Htt(n, a) { const l = a.types.filter((u) => !!(u.flags & 128)); return YL(n.value, l, (u) => u.value); } function H4(n, a, l) { return YL(n, a, u); function u(p) { const g = Nl(p); if (!Ea(g, '"')) { if (p.flags & l) return g; if (p.flags & 2097152) { const x = wg(p); if (x && x.flags & l) return g; } } } } function W4(n, a, l) { const u = n && n.flags & 106500 && n.valueDeclaration; if (!u) return; const p = Nd(u, 8), g = n.valueDeclaration && du(n.valueDeclaration) && ki(n.valueDeclaration.name); if (!(!p && !g) && !(a && Pz(a) && !(n.flags & 65536))) { if (l) { const x = nr(a, Ys); if (x && x.symbol === n) return; } (Al(n) & 1 ? Ui(n).target : n).isReferenced = 67108863; } } function DIe(n, a) { return n.kind === 108 || !!a && Vl(n) && a === x_(Ef(n)); } function Wtt(n, a) { switch (n.kind) { case 208: return hae(n, n.expression.kind === 106, a, Kd(ma(n.expression))); case 163: return hae(n, !1, a, Kd(ma(n.left))); case 202: return hae(n, !1, a, ci(n)); } } function RIe(n, a, l) { return gae(n, n.kind === 208 && n.expression.kind === 106, !1, a, l); } function hae(n, a, l, u) { if (Es(u)) return !0; const p = so(u, l); return !!p && gae(n, a, !1, u, p); } function gae(n, a, l, u, p) { if (Es(u)) return !0; if (p.valueDeclaration && zu(p.valueDeclaration)) { const g = Ec(p.valueDeclaration); return !fu(n) && !!nr(n, (x) => x === g); } return gIe(n, a, l, u, p); } function ztt(n) { const a = n.initializer; if (a.kind === 258) { const l = a.declarations[0]; if (l && !Ja(l.name)) return Lr(l); } else if (a.kind === 79) return x_(a); } function qtt(n) { return Eu(n).length === 1 && !!nh(n, pt); } function Jtt(n) { const a = Us(n); if (a.kind === 79) { const l = x_(a); if (l.flags & 3) { let u = n, p = n.parent; for (; p; ) { if (p.kind === 246 && u === p.statement && ztt(p) === l && qtt(Au(p.expression))) return !0; u = p, p = p.parent; } } } return !1; } function Ktt(n, a) { return n.flags & 32 ? Xtt(n, a) : NIe(n, IL(n.expression), a); } function Xtt(n, a) { const l = ma(n.expression), u = uD(l, n.expression); return OU(NIe(n, Np(u, n.expression), a), n, u !== l); } function NIe(n, a, l) { const u = cT(n) !== 0 || SIe(n) ? Kd(a) : a, p = n.argumentExpression, g = ma(p); if (Zo(u) || u === dt) return u; if (Pae(u) && !Ts(p)) return qe(p, _.A_const_enum_member_can_only_be_accessed_using_a_string_literal), xe; const x = Jtt(p) ? pt : g, R = mh(n) ? 4 | (Nb(u) && !lk(u) ? 2 : 0) : 32, M = rv(u, x, R, n) || xe; return Fke(AIe(n, Wr(n).resolvedSymbol, M, p, l), n); } function OIe(n) { return ng(n) || bT(n) || qu(n); } function H2(n) { return OIe(n) && Ye(n.typeArguments, po), n.kind === 212 ? ma(n.template) : qu(n) ? ma(n.attributes) : n.kind !== 167 && Ye(n.arguments, (a) => { ma(a); }), qs; } function pm(n) { return H2(n), Zt; } function Ytt(n, a, l) { let u, p, g = 0, x, R = -1, M; D.assert(!a.length); for (const J of n) { const $ = J.declaration && Lr(J.declaration), he = J.declaration && J.declaration.parent; !p || $ === p ? u && he === u ? x = x + 1 : (u = he, x = g) : (x = g = a.length, u = he), p = $, RK(J) ? (R++, M = R, g++) : M = x, a.splice(M, 0, l ? $Xe(J, l) : J); } } function oV(n) { return !!n && (n.kind === 227 || n.kind === 234 && n.isSpread); } function sV(n) { return $i(n, oV); } function PIe(n) { return !!(n.flags & 16384); } function $tt(n) { return !!(n.flags & 49155); } function lV(n, a, l, u = !1) { let p, g = !1, x = Xd(l), R = mm(l); if (n.kind === 212) if (p = a.length, n.template.kind === 225) { const M = Ho(n.template.templateSpans); g = Sl(M.literal) || !!M.literal.isUnterminated; } else { const M = n.template; D.assert(M.kind === 14), g = !!M.isUnterminated; } else if (n.kind === 167) p = jIe(n, l); else if (qu(n)) { if (g = n.attributes.end === n.end, g) return !0; p = R === 0 ? a.length : 1, x = a.length === 0 ? x : 1, R = Math.min(R, 1); } else if (n.arguments) { p = u ? a.length + 1 : a.length, g = n.arguments.end === n.end; const M = sV(a); if (M >= 0) return M >= mm(l) && (hm(l) || M < Xd(l)); } else return D.assert(n.kind === 211), mm(l) === 0; if (!hm(l) && p > x) return !1; if (g || p >= R) return !0; for (let M = p; M < R; M++) { const J = sp(l, M); if (uc(J, dr(n) && !H ? $tt : PIe).flags & 131072) return !1; } return !0; } function yae(n, a) { const l = Ne(n.typeParameters), u = um(n.typeParameters); return !kt(a) || a.length >= u && a.length <= l; } function TS(n) { return bD(n, 0, !1); } function MIe(n) { return bD(n, 0, !1) || bD(n, 1, !1); } function bD(n, a, l) { if (n.flags & 524288) { const u = ip(n); if (l || u.properties.length === 0 && u.indexInfos.length === 0) { if (a === 0 && u.callSignatures.length === 1 && u.constructSignatures.length === 0) return u.callSignatures[0]; if (a === 1 && u.constructSignatures.length === 1 && u.callSignatures.length === 0) return u.constructSignatures[0]; } } } function FIe(n, a, l, u) { const p = fD(n.typeParameters, n, 0, u), g = SD(a), x = l && (g && g.flags & 262144 ? l.nonFixingMapper : l.mapper), R = x ? B2(a, x) : a; return Tie(R, n, (M, J) => { qh(p.inferences, M, J); }), l || Sie(a, n, (M, J) => { qh(p.inferences, M, J, 128); }), Zw(n, Mie(p), dr(a.declaration)); } function Qtt(n, a, l, u) { const p = QU(a, n), g = W2(n.attributes, p, u, l); return qh(u.inferences, g, p), Mie(u); } function BIe(n) { if (!n) return Rt; const a = ma(n); return _I(n.parent) ? Jg(a) : fu(n.parent) ? vie(a) : a; } function vae(n, a, l, u, p) { if (qu(n)) return Qtt(n, a, u, p); if (n.kind !== 167) { const M = Vn(a.typeParameters, ($) => !!AE($)), J = Zu(n, M ? 8 : 0); if (J) { const $ = hs(a); if (RE($)) { const he = ES(n); if (!(!M && Zu(n, 8) !== J)) { const Bt = Cie(mZe(he, 1)), Mn = qi(J, Bt), An = TS(Mn), Xn = An && An.typeParameters ? CE(Sre(An, An.typeParameters)) : Mn; qh(p.inferences, Xn, $, 128); } const ke = fD(a.typeParameters, a, p.flags), ft = qi(J, he && he.returnMapper); qh(ke.inferences, ft, $), p.returnMapper = kt(ke.inferences, z2) ? Cie(vZe(ke)) : void 0; } } } const g = xD(a), x = g ? Math.min(Xd(a) - 1, l.length) : l.length; if (g && g.flags & 262144) { const M = un(p.inferences, (J) => J.typeParameter === g); M && (M.impliedArity = $i(l, oV, x) < 0 ? l.length - x : void 0); } const R = wb(a); if (R && RE(R)) { const M = VIe(n); qh(p.inferences, BIe(M), R); } for (let M = 0; M < x; M++) { const J = l[M]; if (J.kind !== 229 && !(u & 32 && wie(J))) { const $ = sp(a, M); if (RE($)) { const he = W2(J, $, p, u); qh(p.inferences, he, $); } } } if (g && RE(g)) { const M = bae(l, x, l.length, g, p, u); qh(p.inferences, M, g); } return Mie(p); } function GIe(n) { return n.flags & 1048576 ? Xs(n, GIe) : n.flags & 1 || wU(Uu(n) || n) ? n : Oo(n) ? Dp(_s(n), n.target.elementFlags, !1, n.target.labeledElementDeclarations) : Dp([n], [8]); } function bae(n, a, l, u, p, g) { if (a >= l - 1) { const $ = n[l - 1]; if (oV($)) return GIe($.kind === 234 ? $.type : W2($.expression, u, p, g)); } const x = [], R = [], M = [], J = c4(u); for (let $ = a; $ < l; $++) { const he = n[$]; if (oV(he)) { const De = he.kind === 234 ? he.type : ma(he.expression); A0(De) ? (x.push(De), R.push(8)) : (x.push(cv(33, De, je, he.kind === 227 ? he.expression : he)), R.push(4)); } else { const De = Dd(u, Rp($ - a), 256), ke = W2(he, De, p, g), ft = J || fl(De, 406978556); x.push(ft ? _d(ke) : Bb(ke)), R.push(1); } he.kind === 234 && he.tupleNameSource && M.push(he.tupleNameSource); } return Dp(x, R, J, Ne(M) === Ne(x) ? M : void 0); } function Eae(n, a, l, u) { const p = dr(n.declaration), g = n.typeParameters, x = tv(rn(a, ci), g, um(g), p); let R; for (let M = 0; M < a.length; M++) { D.assert(g[M] !== void 0, "Should not call checkTypeArguments with too many type arguments"); const J = bu(g[M]); if (J) { const $ = l && u ? () => Da(void 0, _.Type_0_does_not_satisfy_the_constraint_1) : void 0, he = u || _.Type_0_does_not_satisfy_the_constraint_1; R || (R = pd(g, x)); const De = x[M]; if (!Qu(De, Of(qi(J, R), De), l ? a[M] : void 0, he, $)) return; } } return x; } function UIe(n) { if (LL(n.tagName)) return 2; const a = Vu(ma(n.tagName)); return Ne(Ha(a, 1)) ? 0 : Ne(Ha(a, 0)) ? 1 : 2; } function Ztt(n, a, l, u, p, g, x) { const R = QU(a, n), M = W2(n.attributes, R, void 0, u); return J() && iie(M, R, l, p ? n.tagName : void 0, n.attributes, void 0, g, x); function J() { var $; if (iae(n)) return !0; const he = xh(n) || xx(n) && !LL(n.tagName) ? ma(n.tagName) : void 0; if (!he) return !0; const De = Ha(he, 0); if (!Ne(De)) return !0; const ke = zwe(n); if (!ke) return !0; const ft = wl(ke, 111551, !0, !1, n); if (!ft) return !0; const Bt = ar(ft), Mn = Ha(Bt, 0); if (!Ne(Mn)) return !0; let An = !1, Xn = 0; for (const xn of Mn) { const gr = sp(xn, 0), an = Ha(gr, 0); if (Ne(an)) for (const Gn of an) { if (An = !0, hm(Gn)) return !0; const Jn = Xd(Gn); Jn > Xn && (Xn = Jn); } } if (!An) return !0; let mn = 1 / 0; for (const xn of De) { const gr = mm(xn); gr < mn && (mn = gr); } if (mn <= Xn) return !0; if (p) { const xn = Dr(n.tagName, _.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3, vf(n.tagName), mn, vf(ke), Xn), gr = ($ = A_(n.tagName)) == null ? void 0 : $.valueDeclaration; gr && qo(xn, Dr(gr, _._0_is_declared_here, vf(n.tagName))), x && x.skipLogging && (x.errors || (x.errors = [])).push(xn), x.skipLogging || Xo.add(xn); } return !1; } } function z4(n, a, l, u, p, g, x) { const R = { errors: void 0, skipLogging: !0 }; if (qu(n)) return Ztt(n, l, u, p, g, x, R) ? void 0 : (D.assert(!g || !!R.errors, "jsx should have errors when reporting errors"), R.errors || nt); const M = wb(l); if (M && M !== Rt && !(I1(n) || eo(n) && ad(n.expression))) { const ke = VIe(n), ft = BIe(ke), Bt = g ? ke || n : void 0, Mn = _.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1; if (!t_(ft, M, u, Bt, Mn, x, R)) return D.assert(!g || !!R.errors, "this parameter should have errors when reporting errors"), R.errors || nt; } const J = _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1, $ = xD(l), he = $ ? Math.min(Xd(l) - 1, a.length) : a.length; for (let ke = 0; ke < he; ke++) { const ft = a[ke]; if (ft.kind !== 229) { const Bt = sp(l, ke), Mn = W2(ft, Bt, void 0, p), An = p & 4 ? k4(Mn) : Mn; if (!iie(An, Bt, u, g ? ft : void 0, ft, J, x, R)) return D.assert(!g || !!R.errors, "parameter should have errors when reporting errors"), De(ft, An, Bt), R.errors || nt; } } if ($) { const ke = bae(a, he, a.length, $, void 0, p), ft = a.length - he, Bt = g ? ft === 0 ? n : ft === 1 ? a[he] : Mm(q4(n, ke), a[he].pos, a[a.length - 1].end) : void 0; if (!t_(ke, $, u, Bt, J, void 0, R)) return D.assert(!g || !!R.errors, "rest parameter should have errors when reporting errors"), De(Bt, ke, $), R.errors || nt; } return; function De(ke, ft, Bt) { if (ke && g && R.errors && R.errors.length) { if (kD(Bt)) return; const Mn = kD(ft); Mn && _m(Mn, Bt, u) && qo(R.errors[0], Dr(ke, _.Did_you_forget_to_use_await)); } } } function VIe(n) { const a = n.kind === 210 ? n.expression : n.kind === 212 ? n.tag : void 0; if (a) { const l = pu(a); if (ol(l)) return l.expression; } } function q4(n, a, l, u) { const p = jm.createSyntheticExpression(a, l, u); return mt(p, n), Bo(p, n), p; } function Tae(n) { if (n.kind === 212) { const u = n.template, p = [q4(u, WYe())]; return u.kind === 225 && Ye(u.templateSpans, (g) => { p.push(g.expression); }), p; } if (n.kind === 167) return ent(n); if (qu(n)) return n.attributes.properties.length > 0 || xh(n) && n.parent.children.length > 0 ? [n.attributes] : nt; const a = n.arguments || nt, l = sV(a); if (l >= 0) { const u = a.slice(0, l); for (let p = l; p < a.length; p++) { const g = a[p], x = g.kind === 227 && (Wn ? ma(g.expression) : Kl(g.expression)); x && Oo(x) ? Ye(_s(x), (R, M) => { var J; const $ = x.target.elementFlags[M], he = q4(g, $ & 4 ? Tu(R) : R, !!($ & 12), (J = x.target.labeledElementDeclarations) == null ? void 0 : J[M]); u.push(he); }) : u.push(g); } return u; } return a; } function ent(n) { const a = n.expression, l = Rae(n); if (l) { const u = []; for (const p of l.parameters) { const g = ar(p); u.push(q4(a, g)); } return u; } return D.fail(); } function jIe(n, a) { return Y.experimentalDecorators ? tnt(n, a) : 2; } function tnt(n, a) { switch (n.parent.kind) { case 260: case 228: return 1; case 169: return Nm(n.parent) ? 3 : 2; case 171: case 174: case 175: return P === 0 || a.parameters.length <= 2 ? 2 : 3; case 166: return 3; default: return D.fail(); } } function HIe(n, a) { let l, u; const p = Zn(n); if (Pr(n.expression)) { const g = p1(p, n.expression.name); l = g.start, u = a ? g.length : n.end - l; } else { const g = p1(p, n.expression); l = g.start, u = a ? g.length : n.end - l; } return { start: l, length: u, sourceFile: p }; } function ED(n, a, l, u, p, g) { if (eo(n)) { const { sourceFile: x, start: R, length: M } = HIe(n); return "message" in a ? Lc(x, R, M, a, l, u, p, g) : FW(x, a); } else return "message" in a ? Dr(n, a, l, u, p, g) : rg(Zn(n), n, a); } function nnt(n) { if (!eo(n) || !Ve(n.expression)) return !1; const a = dl(n.expression, n.expression.escapedText, 111551, void 0, void 0, !1), l = a == null ? void 0 : a.valueDeclaration; if (!l || !Ma(l) || !ZA(l.parent) || !I1(l.parent.parent) || !Ve(l.parent.parent.expression)) return !1; const u = Rre(!1); return u ? A_(l.parent.parent.expression, !0) === u : !1; } function WIe(n, a, l, u) { var p; const g = sV(l); if (g > -1) return Dr(l[g], _.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter); let x = Number.POSITIVE_INFINITY, R = Number.NEGATIVE_INFINITY, M = Number.NEGATIVE_INFINITY, J = Number.POSITIVE_INFINITY, $; for (const Bt of a) { const Mn = mm(Bt), An = Xd(Bt); Mn < x && (x = Mn, $ = Bt), R = Math.max(R, An), Mn < l.length && Mn > M && (M = Mn), l.length < An && An < J && (J = An); } const he = kt(a, hm), De = he ? x : x < R ? x + "-" + R : x, ke = !he && De === 1 && l.length === 0 && nnt(n); if (ke && dr(n)) return ED(n, _.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments); const ft = Du(n) ? he ? _.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0 : _.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0 : he ? _.Expected_at_least_0_arguments_but_got_1 : ke ? _.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise : _.Expected_0_arguments_but_got_1; if (x < l.length && l.length < R) { if (u) { let Bt = Da(void 0, _.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments, l.length, M, J); return Bt = Da(Bt, u), ED(n, Bt); } return ED(n, _.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments, l.length, M, J); } else if (l.length < x) { let Bt; if (u) { let An = Da(void 0, ft, De, l.length); An = Da(An, u), Bt = ED(n, An); } else Bt = ED(n, ft, De, l.length); const Mn = (p = $ == null ? void 0 : $.declaration) == null ? void 0 : p.parameters[$.thisParameter ? l.length + 1 : l.length]; if (Mn) { const An = Dr(Mn, Ja(Mn.name) ? _.An_argument_matching_this_binding_pattern_was_not_provided : fh(Mn) ? _.Arguments_for_the_rest_parameter_0_were_not_provided : _.An_argument_for_0_was_not_provided, Mn.name ? Ja(Mn.name) ? void 0 : Or(Ef(Mn.name)) : l.length); return qo(Bt, An); } return Bt; } else { const Bt = N.createNodeArray(l.slice(R)), Mn = ss(Bt).pos; let An = Ho(Bt).end; if (An === Mn && An++, Mm(Bt, Mn, An), u) { let Xn = Da(void 0, ft, De, l.length); return Xn = Da(Xn, u), YR(Zn(n), Bt, Xn); } return CA(Zn(n), Bt, ft, De, l.length); } } function rnt(n, a, l, u) { const p = l.length; if (a.length === 1) { const R = a[0], M = um(R.typeParameters), J = Ne(R.typeParameters); if (u) { let $ = Da(void 0, _.Expected_0_type_arguments_but_got_1, M < J ? M + "-" + J : M, p); return $ = Da($, u), YR(Zn(n), l, $); } return CA(Zn(n), l, _.Expected_0_type_arguments_but_got_1, M < J ? M + "-" + J : M, p); } let g = -1 / 0, x = 1 / 0; for (const R of a) { const M = um(R.typeParameters), J = Ne(R.typeParameters); M > p ? x = Math.min(x, M) : J < p && (g = Math.max(g, J)); } if (g !== -1 / 0 && x !== 1 / 0) { if (u) { let R = Da(void 0, _.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments, p, g, x); return R = Da(R, u), YR(Zn(n), l, R); } return CA(Zn(n), l, _.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments, p, g, x); } if (u) { let R = Da(void 0, _.Expected_0_type_arguments_but_got_1, g === -1 / 0 ? x : g, p); return R = Da(R, u), YR(Zn(n), l, R); } return CA(Zn(n), l, _.Expected_0_type_arguments_but_got_1, g === -1 / 0 ? x : g, p); } function kL(n, a, l, u, p, g) { const x = n.kind === 212, R = n.kind === 167, M = qu(n), J = !j && !l; let $; !R && !LA(n) && ($ = n.typeArguments, (x || M || n.expression.kind !== 106) && Ye($, po)); const he = l || []; if (Ytt(a, he, p), !he.length) return J && Xo.add(ED(n, _.Call_target_does_not_contain_any_signatures)), pm(n); const De = Tae(n), ke = he.length === 1 && !he[0].typeParameters; let ft = !R && !ke && kt(De, S_) ? 4 : 0; ft |= u & 32; let Bt, Mn, An, Xn; const mn = !!(u & 16) && n.kind === 210 && n.arguments.hasTrailingComma; if (he.length > 1 && (Xn = gr(he, qm, ke, mn)), Xn || (Xn = gr(he, xd, ke, mn)), Xn) return Xn; if (Xn = int(n, he, De, !!l, u), Wr(n).resolvedSignature = Xn, J) if (Bt) if (Bt.length === 1 || Bt.length > 3) { const an = Bt[Bt.length - 1]; let Gn; Bt.length > 3 && (Gn = Da(Gn, _.The_last_overload_gave_the_following_error), Gn = Da(Gn, _.No_overload_matches_this_call)), g && (Gn = Da(Gn, g)); const Jn = z4(n, De, an, xd, 0, !0, () => Gn); if (Jn) for (const Yr of Jn) an.declaration && Bt.length > 3 && qo(Yr, Dr(an.declaration, _.The_last_overload_is_declared_here)), xn(an, Yr), Xo.add(Yr); else D.fail("No error for last overload signature"); } else { const an = []; let Gn = 0, Jn = Number.MAX_VALUE, Yr = 0, ei = 0; for (const mf of Bt) { const Un = z4(n, De, mf, xd, 0, !0, () => Da(void 0, _.Overload_0_of_1_2_gave_the_following_error, ei + 1, he.length, se(mf))); Un ? (Un.length <= Jn && (Jn = Un.length, Yr = ei), Gn = Math.max(Gn, Un.length), an.push(Un)) : D.fail("No error for 3 or fewer overload signatures"), ei++; } const fa = Gn > 1 ? an[Yr] : nd(an); D.assert(fa.length > 0, "No errors reported for 3 or fewer overload signatures"); let Ya = Da(rn(fa, Fce), _.No_overload_matches_this_call); g && (Ya = Da(Ya, g)); const gc = [...Mo(fa, (mf) => mf.relatedInformation)]; let Bf; if (Vn(fa, (mf) => mf.start === fa[0].start && mf.length === fa[0].length && mf.file === fa[0].file)) { const { file: mf, start: ia, length: Un } = fa[0]; Bf = { file: mf, start: ia, length: Un, code: Ya.code, category: Ya.category, messageText: Ya, relatedInformation: gc }; } else Bf = rg(Zn(n), n, Ya, gc); xn(Bt[0], Bf), Xo.add(Bf); } else if (Mn) Xo.add(WIe(n, [Mn], De, g)); else if (An) Eae(An, n.typeArguments, !0, g); else { const an = yn(a, (Gn) => yae(Gn, $)); an.length === 0 ? Xo.add(rnt(n, a, $, g)) : Xo.add(WIe(n, an, De, g)); } return Xn; function xn(an, Gn) { var Jn, Yr; const ei = Bt, fa = Mn, Ya = An, gc = ((Yr = (Jn = an.declaration) == null ? void 0 : Jn.symbol) == null ? void 0 : Yr.declarations) || nt, mf = gc.length > 1 ? un(gc, (ia) => Ys(ia) && s_(ia.body)) : void 0; if (mf) { const ia = wp(mf), Un = !ia.typeParameters; gr([ia], xd, Un) && qo(Gn, Dr(mf, _.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible)); } Bt = ei, Mn = fa, An = Ya; } function gr(an, Gn, Jn, Yr = !1) { if (Bt = void 0, Mn = void 0, An = void 0, Jn) { const ei = an[0]; if (kt($) || !lV(n, De, ei, Yr)) return; if (z4(n, De, ei, Gn, 0, !1, void 0)) { Bt = [ei]; return; } return ei; } for (let ei = 0; ei < an.length; ei++) { const fa = an[ei]; if (!yae(fa, $) || !lV(n, De, fa, Yr)) continue; let Ya, gc; if (fa.typeParameters) { let Bf; if (kt($)) { if (Bf = Eae(fa, $, !1), !Bf) { An = fa; continue; } } else gc = fD(fa.typeParameters, fa, dr(n) ? 2 : 0), Bf = vae(n, fa, De, ft | 8, gc), ft |= gc.flags & 4 ? 8 : 0; if (Ya = Zw(fa, Bf, dr(fa.declaration), gc && gc.inferredTypeParameters), xD(fa) && !lV(n, De, Ya, Yr)) { Mn = Ya; continue; } } else Ya = fa; if (z4(n, De, Ya, Gn, ft, !1, void 0)) { (Bt || (Bt = [])).push(Ya); continue; } if (ft) { if (ft = u & 32, gc) { const Bf = vae(n, fa, De, ft, gc); if (Ya = Zw(fa, Bf, dr(fa.declaration), gc.inferredTypeParameters), xD(fa) && !lV(n, De, Ya, Yr)) { Mn = Ya; continue; } } if (z4(n, De, Ya, Gn, ft, !1, void 0)) { (Bt || (Bt = [])).push(Ya); continue; } } return an[ei] = Ya, Ya; } } } function int(n, a, l, u, p) { return D.assert(a.length > 0), GL(n), u || a.length === 1 || a.some((g) => !!g.typeParameters) ? snt(n, a, l, p) : ant(a); } function ant(n) { const a = _a(n, (M) => M.thisParameter); let l; a.length && (l = zIe(a, a.map(K4))); const { min: u, max: p } = Sde(n, ont), g = []; for (let M = 0; M < p; M++) { const J = _a(n, ($) => mu($) ? M < $.parameters.length - 1 ? $.parameters[M] : Ho($.parameters) : M < $.parameters.length ? $.parameters[M] : void 0); D.assert(J.length !== 0), g.push(zIe(J, _a(n, ($) => BE($, M)))); } const x = _a(n, (M) => mu(M) ? Ho(M.parameters) : void 0); let R = 0; if (x.length !== 0) { const M = Tu(Xr(_a(n, IAe), 2)); g.push(qIe(x, M)), R |= 1; } return n.some(RK) && (R |= 2), th(n[0].declaration, void 0, l, g, Lo(n.map(hs)), void 0, u, R); } function ont(n) { const a = n.parameters.length; return mu(n) ? a - 1 : a; } function zIe(n, a) { return qIe(n, Xr(a, 2)); } function qIe(n, a) { return DE(ss(n), a); } function snt(n, a, l, u) { const p = unt(a, et === void 0 ? l.length : et), g = a[p], { typeParameters: x } = g; if (!x) return g; const R = OIe(n) ? n.typeArguments : void 0, M = R ? rU(g, lnt(R, x, dr(n))) : cnt(n, x, g, l, u); return a[p] = M, M; } function lnt(n, a, l) { const u = n.map(SS); for (; u.length > a.length; ) u.pop(); for (; u.length < a.length; ) u.push(AE(a[u.length]) || bu(a[u.length]) || Pie(l)); return u; } function cnt(n, a, l, u, p) { const g = fD(a, l, dr(n) ? 2 : 0), x = vae(n, l, u, p | 4 | 8, g); return rU(l, x); } function unt(n, a) { let l = -1, u = -1; for (let p = 0; p < n.length; p++) { const g = n[p], x = Xd(g); if (hm(g) || x >= a) return p; x > u && (u = x, l = p); } return l; } function dnt(n, a, l) { if (n.expression.kind === 106) { const M = qie(n.expression); if (Es(M)) { for (const J of n.arguments) ma(J); return qs; } if (!Zo(M)) { const J = Wp(Ec(n)); if (J) { const $ = Br(M, J.typeArguments, J); return kL(n, $, a, l, 0); } } return H2(n); } let u, p = ma(n.expression); if (YE(n)) { const M = uD(p, n.expression); u = M === p ? 0 : pI(n) ? 16 : 8, p = M; } else u = 0; if (p = vIe(p, n.expression, ktt), p === dt) return yu; const g = Vu(p); if (Zo(g)) return pm(n); const x = Ha(g, 0), R = Ha(g, 1).length; if (cV(p, g, x.length, R)) return !Zo(p) && n.typeArguments && qe(n, _.Untyped_function_calls_may_not_accept_type_arguments), H2(n); if (!x.length) { if (R) qe(n, _.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, Le(p)); else { let M; if (n.arguments.length === 1) { const J = Zn(n).text; uu(J.charCodeAt(zo(J, n.expression.end, !0) - 1)) && (M = Dr(n.expression, _.Are_you_missing_a_semicolon)); } xae(n.expression, g, 0, M); } return pm(n); } return l & 8 && !n.typeArguments && x.some(fnt) ? (Cke(n, l), Gl) : x.some((M) => dr(M.declaration) && !!WH(M.declaration)) ? (qe(n, _.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, Le(p)), pm(n)) : kL(n, x, a, l, u); } function fnt(n) { return !!(n.typeParameters && doe(hs(n))); } function cV(n, a, l, u) { return Es(n) || Es(a) && !!(n.flags & 262144) || !l && !u && !(a.flags & 1048576) && !(ap(a).flags & 131072) && Eo(n, cl); } function _nt(n, a, l) { if (n.arguments && P < 1) { const x = sV(n.arguments); x >= 0 && qe(n.arguments[x], _.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher); } let u = IL(n.expression); if (u === dt) return yu; if (u = Vu(u), Zo(u)) return pm(n); if (Es(u)) return n.typeArguments && qe(n, _.Untyped_function_calls_may_not_accept_type_arguments), H2(n); const p = Ha(u, 1); if (p.length) { if (!pnt(n, p[0])) return pm(n); if (JIe(p, (R) => !!(R.flags & 4))) return qe(n, _.Cannot_create_an_instance_of_an_abstract_class), pm(n); const x = u.symbol && cg(u.symbol); return x && Jr(x, 256) ? (qe(n, _.Cannot_create_an_instance_of_an_abstract_class), pm(n)) : kL(n, p, a, l, 0); } const g = Ha(u, 0); if (g.length) { const x = kL(n, g, a, l, 0); return Te || (x.declaration && !Op(x.declaration) && hs(x) !== Rt && qe(n, _.Only_a_void_function_can_be_called_with_the_new_keyword), wb(x) === Rt && qe(n, _.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)), x; } return xae(n.expression, u, 1), pm(n); } function JIe(n, a) { return Ga(n) ? kt(n, (l) => JIe(l, a)) : n.compositeKind === 1048576 ? kt(n.compositeSignatures, a) : a(n); } function Sae(n, a) { const l = No(a); if (!Ne(l)) return !1; const u = l[0]; if (u.flags & 2097152) { const p = u.types, g = pAe(p); let x = 0; for (const R of u.types) { if (!g[x] && Qr(R) & 3 && (R.symbol === n || Sae(n, R))) return !0; x++; } return !1; } return u.symbol === n ? !0 : Sae(n, u); } function pnt(n, a) { if (!a || !a.declaration) return !0; const l = a.declaration, u = rx(l, 24); if (!u || l.kind !== 173) return !0; const p = cg(l.parent.symbol), g = Bs(l.parent.symbol); if (!loe(n, p)) { const x = Ec(n); if (x && u & 16) { const R = SS(x); if (Sae(l.parent.symbol, R)) return !0; } return u & 8 && qe(n, _.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, Le(g)), u & 16 && qe(n, _.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, Le(g)), !1; } return !0; } function KIe(n, a, l) { let u; const p = l === 0, g = UE(a), x = g && Ha(g, l).length > 0; if (a.flags & 1048576) { const M = a.types; let J = !1; for (const $ of M) if (Ha($, l).length !== 0) { if (J = !0, u) break; } else if (u || (u = Da(u, p ? _.Type_0_has_no_call_signatures : _.Type_0_has_no_construct_signatures, Le($)), u = Da(u, p ? _.Not_all_constituents_of_type_0_are_callable : _.Not_all_constituents_of_type_0_are_constructable, Le(a))), J) break; J || (u = Da(void 0, p ? _.No_constituent_of_type_0_is_callable : _.No_constituent_of_type_0_is_constructable, Le(a))), u || (u = Da(u, p ? _.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other : _.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other, Le(a))); } else u = Da(u, p ? _.Type_0_has_no_call_signatures : _.Type_0_has_no_construct_signatures, Le(a)); let R = p ? _.This_expression_is_not_callable : _.This_expression_is_not_constructable; if (eo(n.parent) && n.parent.arguments.length === 0) { const { resolvedSymbol: M } = Wr(n); M && M.flags & 32768 && (R = _.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without); } return { messageChain: Da(u, R), relatedMessage: x ? _.Did_you_forget_to_use_await : void 0 }; } function xae(n, a, l, u) { const { messageChain: p, relatedMessage: g } = KIe(n, a, l), x = rg(Zn(n), n, p); if (g && qo(x, Dr(n, g)), eo(n.parent)) { const { start: R, length: M } = HIe(n.parent, !0); x.start = R, x.length = M; } Xo.add(x), XIe(a, l, u ? qo(x, u) : x); } function XIe(n, a, l) { if (!n.symbol) return; const u = Ui(n.symbol).originatingImport; if (u && !tf(u)) { const p = Ha(ar(Ui(n.symbol).target), a); if (!p || !p.length) return; qo(l, Dr(u, _.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 mnt(n, a, l) { const u = ma(n.tag), p = Vu(u); if (Zo(p)) return pm(n); const g = Ha(p, 0), x = Ha(p, 1).length; if (cV(u, p, g.length, x)) return H2(n); if (!g.length) { if (Ru(n.parent)) { const R = Dr(n.tag, _.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 Xo.add(R), pm(n); } return xae(n.tag, p, 0), pm(n); } return kL(n, g, a, l, 0); } function hnt(n) { switch (n.parent.kind) { case 260: case 228: return _.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression; case 166: return _.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression; case 169: return _.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression; case 171: case 174: case 175: return _.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression; default: return D.fail(); } } function gnt(n, a, l) { const u = ma(n.expression), p = Vu(u); if (Zo(p)) return pm(n); const g = Ha(p, 0), x = Ha(p, 1).length; if (cV(u, p, g.length, x)) return H2(n); if (vnt(n, g) && !Pd(n.expression)) { const M = bc(n.expression, !1); return qe(n, _._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, M), pm(n); } const R = hnt(n); if (!g.length) { const M = KIe(n.expression, p, 0), J = Da(M.messageChain, R), $ = rg(Zn(n.expression), n.expression, J); return M.relatedMessage && qo($, Dr(n.expression, M.relatedMessage)), Xo.add($), XIe(p, 0, $), pm(n); } return kL(n, g, a, l, 0, R); } function uV(n, a) { const l = j2(n), u = l && uf(l), p = u && Hd(u, Sf.Element, 788968), g = p && Ke.symbolToEntityName(p, 788968, n), x = N.createFunctionTypeNode(void 0, [N.createParameterDeclaration(void 0, void 0, "props", void 0, Ke.typeToTypeNode(a, n))], g ? N.createTypeReferenceNode(g, void 0) : N.createKeywordTypeNode(131)), R = Qo(1, "props"); return R.links.type = a, th(x, void 0, void 0, [R], p ? Bs(p) : xe, void 0, 1, 0); } function ynt(n, a, l) { if (LL(n.tagName)) { const x = pIe(n), R = uV(n, x); return ov(W2(n.attributes, QU(R, n), void 0, 0), x, n.tagName, n.attributes), Ne(n.typeArguments) && (Ye(n.typeArguments, po), Xo.add(CA(Zn(n), n.typeArguments, _.Expected_0_type_arguments_but_got_1, 0, Ne(n.typeArguments)))), R; } const u = ma(n.tagName), p = Vu(u); if (Zo(p)) return pm(n); const g = fIe(u, n); return cV(u, p, g.length, 0) ? H2(n) : g.length === 0 ? (qe(n.tagName, _.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, bc(n.tagName)), pm(n)) : kL(n, g, a, l, 0); } function vnt(n, a) { return a.length && Vn(a, (l) => l.minArgumentCount === 0 && !mu(l) && l.parameters.length < jIe(n, l)); } function bnt(n, a, l) { switch (n.kind) { case 210: return dnt(n, a, l); case 211: return _nt(n, a, l); case 212: return mnt(n, a, l); case 167: return gnt(n, a, l); case 283: case 282: return ynt(n, a, l); } throw D.assertNever(n, "Branch in 'resolveSignature' should be unreachable."); } function wL(n, a, l) { const u = Wr(n), p = u.resolvedSignature; if (p && p !== Gl && !a) return p; u.resolvedSignature = Gl; const g = bnt(n, a, l || 0); return g !== Gl && (u.resolvedSignature = Tn === Wn ? g : p), g; } function Op(n) { var a; if (!n || !dr(n)) return !1; const l = pc(n) || Ms(n) ? n : (Wi(n) || Uc(n)) && n.initializer && Ms(n.initializer) ? n.initializer : void 0; if (l) { if (WH(n)) return !0; if (Uc(Cv(l.parent))) return !1; const u = Lr(l); return !!((a = u == null ? void 0 : u.members) != null && a.size); } return !1; } function Aae(n, a) { var l, u; if (a) { const p = Ui(a); if (!p.inferredClassSymbol || !p.inferredClassSymbol.has(go(n))) { const g = km(n) ? n : mb(n); return g.exports = g.exports || ao(), g.members = g.members || ao(), g.flags |= a.flags & 32, (l = a.exports) != null && l.size && Dc(g.exports, a.exports), (u = a.members) != null && u.size && Dc(g.members, a.members), (p.inferredClassSymbol || (p.inferredClassSymbol = /* @__PURE__ */ new Map())).set(go(g), g), g; } return p.inferredClassSymbol.get(go(n)); } } function Ent(n) { var a; const l = n && dV(n, !0), u = (a = l == null ? void 0 : l.exports) == null ? void 0 : a.get("prototype"), p = (u == null ? void 0 : u.valueDeclaration) && Tnt(u.valueDeclaration); return p ? Lr(p) : void 0; } function dV(n, a) { if (!n.parent) return; let l, u; if (Wi(n.parent) && n.parent.initializer === n) { if (!dr(n) && !(ig(n.parent) && Ys(n))) return; l = n.parent.name, u = n.parent; } else if (vr(n.parent)) { const p = n.parent, g = n.parent.operatorToken.kind; if (g === 63 && (a || p.right === n)) l = p.left, u = l; else if ((g === 56 || g === 60) && (Wi(p.parent) && p.parent.initializer === p ? (l = p.parent.name, u = p.parent) : vr(p.parent) && p.parent.operatorToken.kind === 63 && (a || p.parent.right === p) && (l = p.parent.left, u = l), !l || !XS(l) || !NA(l, p.left))) return; } else a && pc(n) && (l = n.name, u = n); if (!(!u || !l || !a && !U0(n, W0(l)))) return Wd(u); } function Tnt(n) { if (!n.parent) return !1; let a = n.parent; for (; a && a.kind === 208; ) a = a.parent; if (a && vr(a) && W0(a.left) && a.operatorToken.kind === 63) { const l = QW(a); return As(l) && l; } } function Snt(n, a) { var l, u, p; _P(n, n.typeArguments); const g = wL(n, void 0, a); if (g === Gl) return dt; if (fV(g, n), n.expression.kind === 106) return Rt; if (n.kind === 211) { const R = g.declaration; if (R && R.kind !== 173 && R.kind !== 177 && R.kind !== 182 && !(R1(R) && ((u = (l = RI(R)) == null ? void 0 : l.parent) == null ? void 0 : u.kind) === 173) && !MA(R) && !Op(R)) return Te && qe(n, _.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type), Ie; } if (dr(n) && gl(Y) !== 100 && eke(n)) return CAe(n.arguments[0]); const x = hs(g); if (x.flags & 12288 && YIe(n)) return Yre(Cv(n.parent)); if (n.kind === 210 && !n.questionDotToken && n.parent.kind === 241 && x.flags & 16384 && Zf(g)) { if (!HI(n.expression)) qe(n.expression, _.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name); else if (!WU(n)) { const R = qe(n.expression, _.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation); O4(n.expression, R); } } if (dr(n)) { const R = dV(n, !1); if ((p = R == null ? void 0 : R.exports) != null && p.size) { const M = Ds(R, R.exports, nt, nt, nt); return M.objectFlags |= 4096, Lo([x, M]); } } return x; } function fV(n, a) { if (n.declaration && n.declaration.flags & 268435456) { const l = J4(a), u = FN(qM(a)); nS(l, n.declaration, u, se(n)); } } function J4(n) { switch (n = Us(n), n.kind) { case 210: case 167: case 211: return J4(n.expression); case 212: return J4(n.tag); case 283: case 282: return J4(n.tagName); case 209: return n.argumentExpression; case 208: return n.name; case 180: const a = n; return Ed(a.typeName) ? a.typeName.right : a; default: return n; } } function YIe(n) { if (!eo(n)) return !1; let a = n.expression; if (Pr(a) && a.name.escapedText === "for" && (a = a.expression), !Ve(a) || a.escapedText !== "Symbol") return !1; const l = qAe(!1); return l ? l === dl(a, "Symbol", 111551, void 0, void 0, !1) : !1; } function xnt(n) { if (Gst(n), n.arguments.length === 0) return $4(n, Ie); const a = n.arguments[0], l = Kl(a), u = n.arguments.length > 1 ? Kl(n.arguments[1]) : void 0; for (let g = 2; g < n.arguments.length; ++g) Kl(n.arguments[g]); if ((l.flags & 32768 || l.flags & 65536 || !Eo(l, ce)) && qe(a, _.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, Le(l)), u) { const g = zAe(!0); g !== da && Qu(u, NU(g, 32768), n.arguments[1]); } const p = au(n, a); if (p) { const g = Cb(p, a, !0, !1); if (g) return $4(n, QIe(ar(g), g, p, a) || ZIe(ar(g), g, p, a)); } return $4(n, Ie); } function $Ie(n, a, l) { const u = ao(), p = Qo(2097152, "default"); return p.parent = a, p.links.nameType = Mf("default"), p.links.aliasTarget = ql(n), u.set("default", p), Ds(l, u, nt, nt, nt); } function QIe(n, a, l, u) { if (ws(u) && n && !Zo(n)) { const g = n; if (!g.defaultOnlyType) { const x = $Ie(a, l); g.defaultOnlyType = x; } return g.defaultOnlyType; } } function ZIe(n, a, l, u) { var p; if (ie && n && !Zo(n)) { const g = n; if (!g.syntheticType) { const x = (p = l.declarations) == null ? void 0 : p.find(ji); if (Oy(x, l, !1, u)) { const M = Qo(2048, "__type"), J = $Ie(a, l, M); M.links.type = J, g.syntheticType = U4(n) ? Ob(n, J, M, 0, !1) : J; } else g.syntheticType = n; } return g.syntheticType; } return n; } function eke(n) { if (!vd(n, !0)) return !1; if (!Ve(n.expression)) return D.fail(); const a = dl(n.expression, n.expression.escapedText, 111551, void 0, void 0, !0); if (a === bt) return !0; if (a.flags & 2097152) return !1; const l = a.flags & 16 ? 259 : a.flags & 3 ? 257 : 0; if (l !== 0) { const u = Tl(a, l); return !!u && !!(u.flags & 16777216); } return !1; } function Ant(n) { ust(n) || _P(n, n.typeArguments), P < 2 && dc(n, 262144); const a = wL(n); return fV(a, n), hs(a); } function Cnt(n) { if (n.kind === 213) { const a = Zn(n); a && vc(a.fileName, [".cts", ".mts"]) && bn(n, _.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead); } return tke(n, n.type, n.expression); } function Cae(n) { switch (n.kind) { case 10: case 14: case 8: case 9: case 110: case 95: case 206: case 207: case 225: return !0; case 214: return Cae(n.expression); case 221: const a = n.operator, l = n.operand; return a === 40 && (l.kind === 8 || l.kind === 9) || a === 39 && l.kind === 8; case 208: case 209: const u = Us(n.expression), p = Vl(u) ? wl(u, 111551, !0) : void 0; return !!(p && p.flags & 384); } return !1; } function tke(n, a, l, u) { let p = ma(l, u); if (tg(a)) return Cae(l) || qe(l, _.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals), _d(p); po(a), p = k4(sv(p)); const g = ci(a); return Zo(g) || i(() => { const x = Kd(p); xU(g, x) || HCe(p, g, n, _.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); }), g; } function Lnt(n) { const a = ma(n.expression), l = uD(a, n.expression); return OU(Jg(l), n, l !== a); } function Int(n) { return n.flags & 32 ? Lnt(n) : Jg(ma(n.expression)); } function nke(n) { Kwe(n), Ye(n.typeArguments, po); const a = n.kind === 230 ? ma(n.expression) : _T(n.exprName) ? F4(n.exprName) : ma(n.exprName); return rke(a, n); } function rke(n, a) { const l = a.typeArguments; if (n === dt || Zo(n) || !kt(l)) return n; let u = !1, p; const g = R(n), x = u ? p : n; return x && Xo.add(CA(Zn(a), l, _.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable, Le(x))), g; function R(J) { let $ = !1, he = !1; const De = ke(J); return u || (u = he), $ && !he && (p ?? (p = J)), De; function ke(ft) { if (ft.flags & 524288) { const Bt = ip(ft), Mn = M(Bt.callSignatures), An = M(Bt.constructSignatures); if ($ || ($ = Bt.callSignatures.length !== 0 || Bt.constructSignatures.length !== 0), he || (he = Mn.length !== 0 || An.length !== 0), Mn !== Bt.callSignatures || An !== Bt.constructSignatures) { const Xn = Ds(void 0, Bt.members, Mn, An, Bt.indexInfos); return Xn.objectFlags |= 8388608, Xn.node = a, Xn; } } else if (ft.flags & 58982400) { const Bt = Uu(ft); if (Bt) { const Mn = ke(Bt); if (Mn !== Bt) return Mn; } } else { if (ft.flags & 1048576) return Xs(ft, R); if (ft.flags & 2097152) return Lo(Xl(ft.types, ke)); } return ft; } } function M(J) { const $ = yn(J, (he) => !!he.typeParameters && yae(he, l)); return Xl($, (he) => { const De = Eae(he, l, !0); return De ? Zw(he, De, dr(he.declaration)) : he; }); } } function knt(n) { return po(n.type), Lae(n.expression, n.type); } function Lae(n, a, l) { const u = ma(n, l), p = ci(a); return Zo(p) ? p : (ov(u, p, a, n, _.Type_0_does_not_satisfy_the_expected_type_1), u); } function wnt(n) { return Cst(n), n.keywordToken === 103 ? Iae(n) : n.keywordToken === 100 ? Dnt(n) : D.assertNever(n.keywordToken); } function ike(n) { switch (n.keywordToken) { case 100: return WAe(); case 103: const a = Iae(n); return Zo(a) ? xe : Xnt(a); default: D.assertNever(n.keywordToken); } } function Iae(n) { const a = Xce(n); if (a) if (a.kind === 173) { const l = Lr(a.parent); return ar(l); } else { const l = Lr(a); return ar(l); } else return qe(n, _.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"), xe; } function Dnt(n) { ue === 100 || ue === 199 ? Zn(n).impliedNodeFormat !== 99 && qe(n, _.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output) : ue < 6 && ue !== 4 && qe(n, _.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext); const a = Zn(n); return D.assert(!!(a.flags & 4194304), "Containing file is missing import meta node flag."), n.name.escapedText === "meta" ? HAe() : xe; } function K4(n) { const a = ar(n); if (H) { const l = n.valueDeclaration; if (l && xv(l)) return qg(a); } return a; } function _V(n) { return D.assert(Ve(n.name)), n.name.escapedText; } function DL(n, a, l) { const u = n.parameters.length - (mu(n) ? 1 : 0); if (a < u) return n.parameters[a].escapedName; const p = n.parameters[u] || en, g = l || ar(p); if (Oo(g)) { const x = g.target.labeledElementDeclarations, R = a - u; return x && _V(x[R]) || p.escapedName + "_" + R; } return p.escapedName; } function Rnt(n, a) { var l; if (((l = n.declaration) == null ? void 0 : l.kind) === 320) return; const u = n.parameters.length - (mu(n) ? 1 : 0); if (a < u) { const x = n.parameters[a]; return ake(x) ? [x.escapedName, !1] : void 0; } const p = n.parameters[u] || en; if (!ake(p)) return; const g = ar(p); if (Oo(g)) { const x = g.target.labeledElementDeclarations, R = a - u, M = x == null ? void 0 : x[R], J = !!(M != null && M.dotDotDotToken); return M ? [ _V(M), J ] : void 0; } if (a === u) return [p.escapedName, !0]; } function ake(n) { return n.valueDeclaration && Ma(n.valueDeclaration) && Ve(n.valueDeclaration.name); } function oke(n) { return n.kind === 199 || Ma(n) && n.name && Ve(n.name); } function Nnt(n, a) { const l = n.parameters.length - (mu(n) ? 1 : 0); if (a < l) { const g = n.parameters[a].valueDeclaration; return g && oke(g) ? g : void 0; } const u = n.parameters[l] || en, p = ar(u); if (Oo(p)) { const g = p.target.labeledElementDeclarations, x = a - l; return g && g[x]; } return u.valueDeclaration && oke(u.valueDeclaration) ? u.valueDeclaration : void 0; } function sp(n, a) { return BE(n, a) || Ie; } function BE(n, a) { const l = n.parameters.length - (mu(n) ? 1 : 0); if (a < l) return K4(n.parameters[a]); if (mu(n)) { const u = ar(n.parameters[l]), p = a - l; if (!Oo(u) || u.target.hasRestElement || p < u.target.fixedLength) return Dd(u, Rp(p)); } } function TD(n, a) { const l = Xd(n), u = mm(n), p = SD(n); if (p && a >= l - 1) return a === l - 1 ? p : Tu(Dd(p, pt)); const g = [], x = [], R = []; for (let M = a; M < l; M++) { !p || M < l - 1 ? (g.push(sp(n, M)), x.push(M < u ? 1 : 2)) : (g.push(p), x.push(8)); const J = Nnt(n, M); J && R.push(J); } return Dp(g, x, !1, Ne(R) === Ne(g) ? R : void 0); } function Xd(n) { const a = n.parameters.length; if (mu(n)) { const l = ar(n.parameters[a - 1]); if (Oo(l)) return a + l.target.fixedLength - (l.target.hasRestElement ? 0 : 1); } return a; } function mm(n, a) { const l = a & 1, u = a & 2; if (u || n.resolvedMinArgumentCount === void 0) { let p; if (mu(n)) { const g = ar(n.parameters[n.parameters.length - 1]); if (Oo(g)) { const x = $i(g.target.elementFlags, (M) => !(M & 1)), R = x < 0 ? g.target.fixedLength : x; R > 0 && (p = n.parameters.length - 1 + R); } } if (p === void 0) { if (!l && n.flags & 32) return 0; p = n.minArgumentCount; } if (u) return p; for (let g = p - 1; g >= 0; g--) { const x = sp(n, g); if (uc(x, PIe).flags & 131072) break; p = g; } n.resolvedMinArgumentCount = p; } return n.resolvedMinArgumentCount; } function hm(n) { if (mu(n)) { const a = ar(n.parameters[n.parameters.length - 1]); return !Oo(a) || a.target.hasRestElement; } return !1; } function SD(n) { if (mu(n)) { const a = ar(n.parameters[n.parameters.length - 1]); if (!Oo(a)) return a; if (a.target.hasRestElement) return mL(a, a.target.fixedLength); } } function xD(n) { const a = SD(n); return a && !Ff(a) && !Es(a) && !(ap(a).flags & 131072) ? a : void 0; } function kae(n) { return wae(n, ht); } function wae(n, a) { return n.parameters.length > 0 ? sp(n, 0) : a; } function Ont(n, a, l) { const u = n.parameters.length - (mu(n) ? 1 : 0); for (let p = 0; p < u; p++) { const g = n.parameters[p].valueDeclaration; if (g.type) { const x = Jc(g); x && qh(l.inferences, ci(x), sp(a, p)); } } } function Pnt(n, a) { if (a.typeParameters) if (!n.typeParameters) n.typeParameters = a.typeParameters; else return; if (a.thisParameter) { const u = n.thisParameter; (!u || u.valueDeclaration && !u.valueDeclaration.type) && (u || (n.thisParameter = DE(a.thisParameter, void 0)), X4(n.thisParameter, ar(a.thisParameter))); } const l = n.parameters.length - (mu(n) ? 1 : 0); for (let u = 0; u < l; u++) { const p = n.parameters[u]; if (!Jc(p.valueDeclaration)) { const g = BE(a, u); X4(p, g); } } if (mu(n)) { const u = Ho(n.parameters); if (u.valueDeclaration ? !Jc(u.valueDeclaration) : Al(u) & 65536) { const p = TD(a, l); X4(u, p); } } } function Mnt(n) { n.thisParameter && X4(n.thisParameter); for (const a of n.parameters) X4(a); } function X4(n, a) { const l = Ui(n); if (l.type) a && D.assertEqual(l.type, a, "Parameter symbol already has a cached type which differs from newly assigned type"); else { const u = n.valueDeclaration; l.type = a || (u ? vl(u, !0) : ar(n)), u && u.name.kind !== 79 && (l.type === me && (l.type = Co(u.name)), ske(u.name, l.type)); } } function ske(n, a) { for (const l of n.elements) if (!Ic(l)) { const u = bi(l, a); l.name.kind === 79 ? Ui(Lr(l)).type = u : ske(l.name, u); } } function Fnt(n) { return R2(i$e(!0), [n]); } function Bnt(n, a) { return R2(a$e(!0), [n, a]); } function Gnt(n, a) { return R2(o$e(!0), [n, a]); } function Unt(n, a) { return R2(s$e(!0), [n, a]); } function Vnt(n, a) { return R2(l$e(!0), [n, a]); } function jnt(n, a) { return R2(d$e(!0), [n, a]); } function Hnt(n, a, l) { const u = `${a ? "p" : "P"}${l ? "s" : "S"}${n.id}`; let p = rr.get(u); if (!p) { const g = ao(); g.set("name", eE("name", n)), g.set("private", eE("private", a ? Oe : rt)), g.set("static", eE("static", l ? Oe : rt)), p = Ds(void 0, g, nt, nt, nt), rr.set(u, p); } return p; } function lke(n, a, l) { const u = _c(n), p = ki(n.name), g = p ? Mf(Or(n.name)) : Hg(n.name), x = nc(n) ? Bnt(a, l) : U_(n) ? Gnt(a, l) : Kf(n) ? Unt(a, l) : Qd(n) ? Vnt(a, l) : Za(n) ? jnt(a, l) : D.failBadSyntaxKind(n), R = Hnt(g, p, u); return Lo([x, R]); } function Wnt(n, a) { return R2(c$e(!0), [n, a]); } function znt(n, a) { return R2(u$e(!0), [n, a]); } function qnt(n, a) { const l = $_("this", n), u = $_("value", a); return zae(void 0, l, [u], a, void 0, 1); } function Dae(n, a, l) { const u = $_("target", n), p = $_("context", a), g = Xr([l, Rt]); return RD(void 0, void 0, [u, p], g); } function Jnt(n) { const { parent: a } = n, l = Wr(a); if (!l.decoratorSignature) switch (l.decoratorSignature = qs, a.kind) { case 260: case 228: { const p = ar(Lr(a)), g = Fnt(p); l.decoratorSignature = Dae(p, g, p); break; } case 171: case 174: case 175: { const u = a; if (!li(u.parent)) break; const p = nc(u) ? CE(wp(u)) : SS(u), g = _c(u) ? ar(Lr(u.parent)) : Gu(Lr(u.parent)), x = U_(u) ? Uke(p) : Kf(u) ? Vke(p) : p, R = lke(u, g, p), M = U_(u) ? Uke(p) : Kf(u) ? Vke(p) : p; l.decoratorSignature = Dae(x, R, M); break; } case 169: { const u = a; if (!li(u.parent)) break; const p = SS(u), g = _c(u) ? ar(Lr(u.parent)) : Gu(Lr(u.parent)), x = Nm(u) ? Wnt(g, p) : je, R = lke(u, g, p), M = Nm(u) ? znt(g, p) : qnt(g, p); l.decoratorSignature = Dae(x, R, M); break; } } return l.decoratorSignature === qs ? void 0 : l.decoratorSignature; } function Knt(n) { const { parent: a } = n, l = Wr(a); if (!l.decoratorSignature) switch (l.decoratorSignature = qs, a.kind) { case 260: case 228: { const p = ar(Lr(a)), g = $_("target", p); l.decoratorSignature = RD(void 0, void 0, [g], Xr([p, Rt])); break; } case 166: { const u = a; if (!jl(u.parent) && !(nc(u.parent) || Kf(u.parent) && li(u.parent.parent)) || b1(u.parent) === u) break; const p = b1(u.parent) ? u.parent.parameters.indexOf(u) - 1 : u.parent.parameters.indexOf(u); D.assert(p >= 0); const g = jl(u.parent) ? ar(Lr(u.parent.parent)) : Fwe(u.parent), x = jl(u.parent) ? je : Bwe(u.parent), R = Rp(p), M = $_("target", g), J = $_("propertyKey", x), $ = $_("parameterIndex", R); l.decoratorSignature = RD(void 0, void 0, [M, J, $], Rt); break; } case 171: case 174: case 175: case 169: { const u = a; if (!li(u.parent)) break; const p = Fwe(u), g = $_("target", p), x = Bwe(u), R = $_("propertyKey", x), M = Za(u) ? Rt : YAe(SS(u)); if (P !== 0 && (!Za(a) || Nm(a))) { const $ = YAe(SS(u)), he = $_("descriptor", $); l.decoratorSignature = RD(void 0, void 0, [g, R, he], Xr([M, Rt])); } else l.decoratorSignature = RD(void 0, void 0, [g, R], Xr([M, Rt])); break; } } return l.decoratorSignature === qs ? void 0 : l.decoratorSignature; } function Rae(n) { return ne ? Knt(n) : Jnt(n); } function Y4(n) { const a = p4(!0); return a !== So ? (n = Xg(OL(n)) || me, jg(a, [n])) : me; } function cke(n) { const a = KAe(!0); return a !== So ? (n = Xg(OL(n)) || me, jg(a, [n])) : me; } function $4(n, a) { const l = Y4(a); return l === me ? (qe(n, tf(n) ? _.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option : _.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option), xe) : (Rre(!0) || qe(n, tf(n) ? _.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option : _.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option), l); } function Xnt(n) { const a = Qo(0, "NewTargetExpression"), l = Qo(4, "target", 8); l.parent = a, l.links.type = n; const u = ao([l]); return a.members = u, Ds(a, u, nt, nt, nt); } function pV(n, a) { if (!n.body) return xe; const l = Mc(n), u = (l & 2) !== 0, p = (l & 1) !== 0; let g, x, R, M = Rt; if (n.body.kind !== 238) g = Kl(n.body, a && a & -9), u && (g = OL(DD(g, !1, n, _.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))); else if (p) { const J = mke(n, a); J ? J.length > 0 && (g = Xr(J, 2)) : M = ht; const { yieldTypes: $, nextTypes: he } = Ynt(n, a); x = kt($) ? Xr($, 2) : void 0, R = kt(he) ? Lo(he) : void 0; } else { const J = mke(n, a); if (!J) return l & 2 ? $4(n, ht) : ht; if (J.length === 0) return l & 2 ? $4(n, Rt) : Rt; g = Xr(J, 2); } if (g || x || R) { if (x && FU(n, x, 3), g && FU(n, g, 1), R && FU(n, R, 2), g && op(g) || x && op(x) || R && op(R)) { const J = Zie(n), $ = J ? J === wp(n) ? p ? void 0 : g : YU(hs(J), n, void 0) : void 0; p ? (x = yie(x, $, 0, u), g = yie(g, $, 1, u), R = yie(R, $, 2, u)) : g = rZe(g, $, u); } x && (x = Kd(x)), g && (g = Kd(g)), R && (R = Kd(R)); } return p ? uke(x || ht, g || M, R || $Le(2, n) || me, u) : u ? Y4(g || M) : g || M; } function uke(n, a, l, u) { const p = u ? St : _n, g = p.getGlobalGeneratorType(!1); if (n = p.resolveIterationType(n, void 0) || me, a = p.resolveIterationType(a, void 0) || me, l = p.resolveIterationType(l, void 0) || me, g === So) { const x = p.getGlobalIterableIteratorType(!1), R = x !== So ? rwe(x, p) : void 0, M = R ? R.returnType : Ie, J = R ? R.nextType : je; return Eo(a, M) && Eo(J, l) ? x !== So ? nD(x, [n]) : (p.getGlobalIterableIteratorType(!0), da) : (p.getGlobalGeneratorType(!0), da); } return nD(g, [n, a, l]); } function Ynt(n, a) { const l = [], u = [], p = (Mc(n) & 2) !== 0; return Gce(n.body, (g) => { const x = g.expression ? ma(g.expression, a) : Qe; a_(l, dke(g, x, Ie, p)); let R; if (g.asteriskToken) { const M = xV(x, p ? 19 : 17, g.expression); R = M && M.nextType; } else R = Zu(g, void 0); R && a_(u, R); }), { yieldTypes: l, nextTypes: u }; } function dke(n, a, l, u) { const p = n.expression || n, g = n.asteriskToken ? cv(u ? 19 : 17, a, l, p) : a; return u ? UE(g, p, n.asteriskToken ? _.Type_of_iterated_elements_of_a_yield_Asterisk_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) : g; } function fke(n, a, l) { let u = 0; for (let p = 0; p < l.length; p++) { const g = p < n || p >= a ? l[p] : void 0; u |= g !== void 0 ? S5.get(g) || 32768 : 0; } return u; } function _ke(n) { const a = Wr(n); if (a.isExhaustive === void 0) { a.isExhaustive = 0; const l = $nt(n); a.isExhaustive === 0 && (a.isExhaustive = l); } else a.isExhaustive === 0 && (a.isExhaustive = !1); return a.isExhaustive; } function $nt(n) { if (n.expression.kind === 218) { const u = NLe(n); if (!u) return !1; const p = ev(Kl(n.expression.expression)), g = fke(0, 0, u); return p.flags & 3 ? (556800 & g) === 556800 : !Jh(p, (x) => (xu(x) & g) === g); } const a = Kl(n.expression); if (!cD(a)) return !1; const l = VU(n); return !l.length || kt(l, eZe) ? !1 : $Ze(Xs(a, _d), l); } function pke(n) { return n.endFlowNode && P4(n.endFlowNode); } function mke(n, a) { const l = Mc(n), u = []; let p = pke(n), g = !1; if (iT(n.body, (x) => { const R = x.expression; if (R) { let M = Kl(R, a && a & -9); l & 2 && (M = OL(DD(M, !1, n, _.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))), M.flags & 131072 && (g = !0), a_(u, M); } else p = !0; }), !(u.length === 0 && !p && (g || Qnt(n)))) return H && u.length && p && !(Op(n) && u.some((x) => x.symbol === n.symbol)) && a_(u, je), u; } function Qnt(n) { switch (n.kind) { case 215: case 216: return !0; case 171: return n.parent.kind === 207; default: return !1; } } function Nae(n, a) { i(l); return; function l() { const u = Mc(n), p = a && AV(a, u); if (p && fl(p, 16385) || n.kind === 170 || Sl(n.body) || n.body.kind !== 238 || !pke(n)) return; const g = n.flags & 512, x = fp(n) || n; if (p && p.flags & 131072) qe(x, _.A_function_returning_never_cannot_have_a_reachable_end_point); else if (p && !g) qe(x, _.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value); else if (p && H && !Eo(je, p)) qe(x, _.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined); else if (Y.noImplicitReturns) { if (!p) { if (!g) return; const R = hs(wp(n)); if (uwe(n, R)) return; } qe(x, _.Not_all_code_paths_return_a_value); } } } function hke(n, a) { if (D.assert(n.kind !== 171 || N_(n)), GL(n), Ms(n) && ML(n, n.name), a && a & 4 && S_(n)) { if (!fp(n) && !D3(n)) { const u = vD(n); if (u && RE(hs(u))) { const p = Wr(n); if (p.contextFreeType) return p.contextFreeType; const g = pV(n, a), x = th(void 0, void 0, void 0, nt, g, void 0, 0, 0), R = Ds(n.symbol, te, [x], nt, nt); return R.objectFlags |= 262144, p.contextFreeType = R; } } return Aa; } return !MV(n) && n.kind === 215 && moe(n), Znt(n, a), ar(Lr(n)); } function Znt(n, a) { const l = Wr(n); if (!(l.flags & 64)) { const u = vD(n); if (!(l.flags & 64)) { l.flags |= 64; const p = Wc(Ha(ar(Lr(n)), 0)); if (!p) return; if (S_(n)) if (u) { const g = ES(n); let x; if (a && a & 2) { Ont(p, u, g); const R = SD(u); R && R.flags & 262144 && (x = B2(u, g.nonFixingMapper)); } x || (x = g ? B2(u, g.mapper) : u), Pnt(p, x); } else Mnt(p); if (u && !w2(n) && !p.resolvedReturnType) { const g = pV(n, a); p.resolvedReturnType || (p.resolvedReturnType = g); } LD(n); } } } function ert(n) { D.assert(n.kind !== 171 || N_(n)); const a = Mc(n), l = w2(n); if (Nae(n, l), n.body) if (fp(n) || hs(wp(n)), n.body.kind === 238) po(n.body); else { const u = ma(n.body), p = l && AV(l, a); if (p) if ((a & 3) === 2) { const g = DD(u, !1, n.body, _.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member); ov(g, p, n.body, n.body); } else ov(u, p, n.body, n.body); } } function mV(n, a, l, u = !1) { if (!Eo(a, fo)) { const p = u && kD(a); return e0(n, !!p && Eo(p, fo), l), !1; } return !0; } function trt(n) { if (!eo(n) || !KS(n)) return !1; const a = Kl(n.arguments[2]); if (cc(a, "value")) { const p = so(a, "writable"), g = p && ar(p); if (!g || g === rt || g === K) return !0; if (p && p.valueDeclaration && Uc(p.valueDeclaration)) { const x = p.valueDeclaration.initializer, R = ma(x); if (R === rt || R === K) return !0; } return !1; } return !so(a, "set"); } function lp(n) { return !!(Al(n) & 8 || n.flags & 4 && qf(n) & 64 || n.flags & 3 && tV(n) & 2 || n.flags & 98304 && !(n.flags & 65536) || n.flags & 8 || kt(n.declarations, trt)); } function gke(n, a, l) { var u, p; if (l === 0) return !1; if (lp(a)) { if (a.flags & 4 && ol(n) && n.expression.kind === 108) { const g = bf(n); if (!(g && (g.kind === 173 || Op(g)))) return !0; if (a.valueDeclaration) { const x = vr(a.valueDeclaration), R = g.parent === a.valueDeclaration.parent, M = g === a.valueDeclaration.parent, J = x && ((u = a.parent) == null ? void 0 : u.valueDeclaration) === g.parent, $ = x && ((p = a.parent) == null ? void 0 : p.valueDeclaration) === g; return !(R || M || J || $); } } return !0; } if (ol(n)) { const g = Us(n.expression); if (g.kind === 79) { const x = Wr(g).resolvedSymbol; if (x.flags & 2097152) { const R = ud(x); return !!R && R.kind === 271; } } } return !1; } function AD(n, a, l) { const u = pu(n, 7); return u.kind !== 79 && !ol(u) ? (qe(n, a), !1) : u.flags & 32 ? (qe(n, l), !1) : !0; } function nrt(n) { ma(n.expression); const a = Us(n.expression); if (!ol(a)) return qe(a, _.The_operand_of_a_delete_operator_must_be_a_property_reference), we; Pr(a) && ki(a.name) && qe(a, _.The_operand_of_a_delete_operator_cannot_be_a_private_identifier); const l = Wr(a), u = Lp(l.resolvedSymbol); return u && (lp(u) && qe(a, _.The_operand_of_a_delete_operator_cannot_be_a_read_only_property), rrt(a, u)), we; } function rrt(n, a) { const l = ar(a); H && !(l.flags & 131075) && !(We ? a.flags & 16777216 : xu(l) & 16777216) && qe(n, _.The_operand_of_a_delete_operator_must_be_optional); } function irt(n) { return ma(n.expression), tL; } function art(n) { return ma(n.expression), Qe; } function ort(n) { const a = HM(n); if (a && Cl(a)) qe(n, _.Await_expression_cannot_be_used_inside_a_class_static_block); else if (!(n.flags & 32768)) if (WM(n)) { const l = Zn(n); if (!Hb(l)) { let u; if (!qS(l, Y)) { u ?? (u = _y(l, n.pos)); const p = Lc(l, u.start, u.length, _.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); Xo.add(p); } switch (ue) { case 100: case 199: if (l.impliedNodeFormat === 1) { u ?? (u = _y(l, n.pos)), Xo.add(Lc(l, u.start, u.length, _.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)); break; } case 7: case 99: case 4: if (P >= 4) break; default: u ?? (u = _y(l, n.pos)), Xo.add(Lc(l, u.start, u.length, _.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher)); break; } } } else { const l = Zn(n); if (!Hb(l)) { const u = _y(l, n.pos), p = Lc(l, u.start, u.length, _.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules); if (a && a.kind !== 173 && !(Mc(a) & 2)) { const g = Dr(a, _.Did_you_mean_to_mark_this_function_as_async); qo(p, g); } Xo.add(p); } } Kie(n) && qe(n, _.await_expressions_cannot_be_used_in_a_parameter_initializer); } function srt(n) { i(() => ort(n)); const a = ma(n.expression), l = DD(a, !0, n, _.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member); return l === a && !Zo(l) && !(a.flags & 3) && Ry(!1, Dr(n, _.await_has_no_effect_on_the_type_of_this_expression)), l; } function lrt(n) { const a = ma(n.operand); if (a === dt) return dt; switch (n.operand.kind) { case 8: switch (n.operator) { case 40: return F2(Rp(-n.operand.text)); case 39: return F2(Rp(+n.operand.text)); } break; case 9: if (n.operator === 40) return F2(hU({ negative: !0, base10Value: rk(n.operand.text) })); } switch (n.operator) { case 39: case 40: case 54: return Np(a, n.operand), Q4(a, 12288) && qe(n.operand, _.The_0_operator_cannot_be_applied_to_type_symbol, mo(n.operator)), n.operator === 39 ? (Q4(a, 2112) && qe(n.operand, _.Operator_0_cannot_be_applied_to_type_1, mo(n.operator), Le(sv(a))), pt) : Oae(a); case 53: q2(n.operand); const l = xu(a) & 12582912; return l === 4194304 ? rt : l === 8388608 ? Oe : we; case 45: case 46: return mV(n.operand, Np(a, n.operand), _.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type) && AD(n.operand, _.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, _.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access), Oae(a); } return xe; } function crt(n) { const a = ma(n.operand); return a === dt ? dt : (mV(n.operand, Np(a, n.operand), _.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type) && AD(n.operand, _.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, _.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access), Oae(a)); } function Oae(n) { return fl(n, 2112) ? Rc(n, 3) || fl(n, 296) ? fo : Wt : pt; } function Q4(n, a) { if (fl(n, a)) return !0; const l = ev(n); return !!l && fl(l, a); } function fl(n, a) { if (n.flags & a) return !0; if (n.flags & 3145728) { const l = n.types; for (const u of l) if (fl(u, a)) return !0; } return !1; } function Rc(n, a, l) { return n.flags & a ? !0 : l && n.flags & 114691 ? !1 : !!(a & 296) && Eo(n, pt) || !!(a & 2112) && Eo(n, Wt) || !!(a & 402653316) && Eo(n, ce) || !!(a & 528) && Eo(n, we) || !!(a & 16384) && Eo(n, Rt) || !!(a & 131072) && Eo(n, ht) || !!(a & 65536) && Eo(n, Sn) || !!(a & 32768) && Eo(n, je) || !!(a & 4096) && Eo(n, q) || !!(a & 67108864) && Eo(n, ii); } function Z4(n, a, l) { return n.flags & 1048576 ? Vn(n.types, (u) => Z4(u, a, l)) : Rc(n, a, l); } function Pae(n) { return !!(Qr(n) & 16) && !!n.symbol && Mae(n.symbol); } function Mae(n) { return (n.flags & 128) !== 0; } function urt(n, a, l, u) { return l === dt || u === dt ? dt : (!Es(l) && Z4(l, 134348796) && qe(n, _.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter), Es(u) || RV(u) || av(u, cl) || qe(a, _.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type), we); } function drt(n) { return Jh(n, (a) => a === zl || !!(a.flags & 2097152) && zh(ev(a))); } function frt(n, a, l, u) { if (l === dt || u === dt) return dt; if (ki(n)) { if (P < 99 && dc(n, 2097152), !Wr(n).resolvedSymbol && Ec(n)) { const p = fae(n, u.symbol, !0); LIe(n, u, p); } } else Qu(Np(l, n), Si, n); return Qu(Np(u, a), ii, a) && drt(u) && qe(a, _.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, Le(u)), we; } function _rt(n, a, l) { const u = n.properties; if (H && u.length === 0) return Np(a, n); for (let p = 0; p < u.length; p++) yke(n, a, p, u, l); return a; } function yke(n, a, l, u, p = !1) { const g = n.properties, x = g[l]; if (x.kind === 299 || x.kind === 300) { const R = x.name, M = Hg(R); if (Vh(M)) { const he = lm(M), De = so(a, he); De && (W4(De, x, p), lae(x, !1, !0, a, De)); } const J = Dd(a, M, 32, R), $ = Xe(x, J); return GE(x.kind === 300 ? x : x.initializer, $); } else if (x.kind === 301) if (l < g.length - 1) qe(x, _.A_rest_element_must_be_last_in_a_destructuring_pattern); else { P < 99 && dc(x, 4); const R = []; if (u) for (const J of u) Ix(J) || R.push(J.name); const M = S2(a, R, a.symbol); return xS(u, _.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma), GE(x.expression, M); } else qe(x, _.Property_assignment_expected); } function prt(n, a, l) { const u = n.elements; P < 2 && Y.downlevelIteration && dc(n, 512); const p = cv(193, a, je, n) || xe; let g = Y.noUncheckedIndexedAccess ? void 0 : p; for (let x = 0; x < u.length; x++) { let R = p; n.elements[x].kind === 227 && (R = g = g ?? (cv(65, a, je, n) || xe)), vke(n, a, x, R, l); } return a; } function vke(n, a, l, u, p) { const g = n.elements, x = g[l]; if (x.kind !== 229) { if (x.kind !== 227) { const R = Rp(l); if (A0(a)) { const M = 32 | (CL(x) ? 16 : 0), J = rv(a, R, M, q4(x, R)) || xe, $ = CL(x) ? n_(J, 524288) : J, he = Xe(x, $); return GE(x, he, p); } return GE(x, u, p); } if (l < g.length - 1) qe(x, _.A_rest_element_must_be_last_in_a_destructuring_pattern); else { const R = x.expression; if (R.kind === 223 && R.operatorToken.kind === 63) qe(R.operatorToken, _.A_rest_element_cannot_have_an_initializer); else { xS(n.elements, _.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); const M = rh(a, Oo) ? Xs(a, (J) => mL(J, l)) : Tu(u); return GE(R, M, p); } } } } function GE(n, a, l, u) { let p; if (n.kind === 300) { const g = n; g.objectAssignmentInitializer && (H && !(xu(ma(g.objectAssignmentInitializer)) & 16777216) && (a = n_(a, 524288)), yrt(g.name, g.equalsToken, g.objectAssignmentInitializer, l)), p = n.name; } else p = n; return p.kind === 223 && p.operatorToken.kind === 63 && (Re(p, l), p = p.left, H && (a = n_(a, 524288))), p.kind === 207 ? _rt(p, a, u) : p.kind === 206 ? prt(p, a, l) : mrt(p, a, l); } function mrt(n, a, l) { const u = ma(n, l), p = n.parent.kind === 301 ? _.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : _.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access, g = n.parent.kind === 301 ? _.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; return AD(n, p, g) && ov(a, u, n, n), hA(n) && dc(n.parent, 1048576), a; } function eP(n) { switch (n = Us(n), n.kind) { case 79: case 10: case 13: case 212: case 225: case 14: case 8: case 9: case 110: case 95: case 104: case 155: case 215: case 228: case 216: case 206: case 207: case 218: case 232: case 282: case 281: return !0; case 224: return eP(n.whenTrue) && eP(n.whenFalse); case 223: return py(n.operatorToken.kind) ? !1 : eP(n.left) && eP(n.right); case 221: case 222: switch (n.operator) { case 53: case 39: case 40: case 54: return !0; } return !1; case 219: case 213: case 231: default: return !1; } } function Fae(n, a) { return (a.flags & 98304) !== 0 || xU(n, a); } function hrt() { const n = F7(a, l, u, p, g, x); return (De, ke) => { const ft = n(De, ke); return D.assertIsDefined(ft), ft; }; function a(De, ke, ft) { return ke ? (ke.stackIndex++, ke.skip = !1, J(ke, void 0), he(ke, void 0)) : ke = { checkMode: ft, skip: !1, stackIndex: 0, typeStack: [void 0, void 0] }, dr(De) && JS(De) ? (ke.skip = !0, he(ke, ma(De.right, ft)), ke) : (grt(De), De.operatorToken.kind === 63 && (De.left.kind === 207 || De.left.kind === 206) && (ke.skip = !0, he(ke, GE(De.left, ma(De.right, ft), ft, De.right.kind === 108))), ke); } function l(De, ke, ft) { if (!ke.skip) return R(ke, De); } function u(De, ke, ft) { if (!ke.skip) { const Bt = $(ke); D.assertIsDefined(Bt), J(ke, Bt), he(ke, void 0); const Mn = De.kind; if (NN(Mn)) { let An = ft.parent; for (; An.kind === 214 || ON(An); ) An = An.parent; (Mn === 55 || ET(An)) && Yae(ft.left, Bt, ET(An) ? An.thenStatement : void 0), Zke(Bt, ft.left); } } } function p(De, ke, ft) { if (!ke.skip) return R(ke, De); } function g(De, ke) { let ft; if (ke.skip) ft = $(ke); else { const Bt = M(ke); D.assertIsDefined(Bt); const Mn = $(ke); D.assertIsDefined(Mn), ft = bke(De.left, De.operatorToken, De.right, Bt, Mn, De); } return ke.skip = !1, J(ke, void 0), he(ke, void 0), ke.stackIndex--, ft; } function x(De, ke, ft) { return he(De, ke), De; } function R(De, ke) { if (vr(ke)) return ke; he(De, ma(ke, De.checkMode)); } function M(De) { return De.typeStack[De.stackIndex]; } function J(De, ke) { De.typeStack[De.stackIndex] = ke; } function $(De) { return De.typeStack[De.stackIndex + 1]; } function he(De, ke) { De.typeStack[De.stackIndex + 1] = ke; } } function grt(n) { const { left: a, operatorToken: l, right: u } = n; l.kind === 60 && (vr(a) && (a.operatorToken.kind === 56 || a.operatorToken.kind === 55) && bn(a, _._0_and_1_operations_cannot_be_mixed_without_parentheses, mo(a.operatorToken.kind), mo(l.kind)), vr(u) && (u.operatorToken.kind === 56 || u.operatorToken.kind === 55) && bn(u, _._0_and_1_operations_cannot_be_mixed_without_parentheses, mo(u.operatorToken.kind), mo(l.kind))); } function yrt(n, a, l, u, p) { const g = a.kind; if (g === 63 && (n.kind === 207 || n.kind === 206)) return GE(n, ma(l, u), u, l.kind === 108); let x; NN(g) ? x = q2(n, u) : x = ma(n, u); const R = ma(l, u); return bke(n, a, l, x, R, p); } function bke(n, a, l, u, p, g) { const x = a.kind; switch (x) { case 41: case 42: case 66: case 67: case 43: case 68: case 44: case 69: case 40: case 65: case 47: case 70: case 48: case 71: case 49: case 72: case 51: case 74: case 52: case 78: case 50: case 73: if (u === dt || p === dt) return dt; u = Np(u, n), p = Np(p, l); let mn; if (u.flags & 528 && p.flags & 528 && (mn = he(a.kind)) !== void 0) return qe(g || a, _.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, mo(a.kind), mo(mn)), pt; { const an = mV(n, u, _.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, !0), Gn = mV(l, p, _.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, !0); let Jn; if (Rc(u, 3) && Rc(p, 3) || !(fl(u, 2112) || fl(p, 2112))) Jn = pt; else if (R(u, p)) { switch (x) { case 49: case 72: Bt(); break; case 42: case 67: P < 3 && qe(g, _.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later); } Jn = Wt; } else Bt(R), Jn = xe; return an && Gn && De(Jn), Jn; } case 39: case 64: if (u === dt || p === dt) return dt; !Rc(u, 402653316) && !Rc(p, 402653316) && (u = Np(u, n), p = Np(p, l)); let xn; return Rc(u, 296, !0) && Rc(p, 296, !0) ? xn = pt : Rc(u, 2112, !0) && Rc(p, 2112, !0) ? xn = Wt : Rc(u, 402653316, !0) || Rc(p, 402653316, !0) ? xn = ce : (Es(u) || Es(p)) && (xn = Zo(u) || Zo(p) ? xe : Ie), xn && !$(x) ? xn : xn ? (x === 64 && De(xn), xn) : (Bt((Gn, Jn) => Rc(Gn, 402655727) && Rc(Jn, 402655727)), Ie); case 29: case 31: case 32: case 33: return $(x) && (u = hie(Np(u, n)), p = hie(Np(p, l)), ft((an, Gn) => { if (Es(an) || Es(Gn)) return !0; const Jn = Eo(an, fo), Yr = Eo(Gn, fo); return Jn && Yr || !Jn && !Yr && E4(an, Gn); })), we; case 34: case 35: case 36: case 37: if (eW(n) || eW(l)) { const an = x === 34 || x === 36; qe(g, _.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, an ? "false" : "true"); } return An(g, x, n, l), ft((an, Gn) => Fae(an, Gn) || Fae(Gn, an)), we; case 102: return urt(n, l, u, p); case 101: return frt(n, l, u, p); case 55: case 76: { const an = xu(u) & 4194304 ? Xr([oZe(H ? u : sv(p)), p]) : u; return x === 76 && De(p), an; } case 56: case 75: { const an = xu(u) & 8388608 ? Xr([Jg(iLe(u)), p], 2) : u; return x === 75 && De(p), an; } case 60: case 77: { const an = xu(u) & 262144 ? Xr([Jg(u), p], 2) : u; return x === 77 && De(p), an; } case 63: const gr = vr(n.parent) ? xl(n.parent) : 0; return M(gr, p), ke(gr) ? ((!(p.flags & 524288) || gr !== 2 && gr !== 6 && !Wh(p) && !Bie(p) && !(Qr(p) & 1)) && De(p), u) : (De(p), p); case 27: if (!Y.allowUnreachableCode && eP(n) && !J(n.parent)) { const an = Zn(n), Gn = an.text, Jn = zo(Gn, n.pos); an.parseDiagnostics.some((ei) => ei.code !== _.JSX_expressions_must_have_one_parent_element.code ? !1 : GH(ei, Jn)) || qe(n, _.Left_side_of_comma_operator_is_unused_and_has_no_side_effects); } return p; default: return D.fail(); } function R(mn, xn) { return Rc(mn, 2112) && Rc(xn, 2112); } function M(mn, xn) { if (mn === 2) for (const gr of Zy(xn)) { const an = ar(gr); if (an.symbol && an.symbol.flags & 32) { const Gn = gr.escapedName, Jn = dl(gr.valueDeclaration, Gn, 788968, void 0, Gn, !1); Jn != null && Jn.declarations && Jn.declarations.some(fJ) && (hb(Jn, _.Duplicate_identifier_0, Zi(Gn), gr), hb(gr, _.Duplicate_identifier_0, Zi(Gn), Jn)); } } } function J(mn) { return mn.parent.kind === 214 && __(mn.left) && mn.left.text === "0" && (eo(mn.parent.parent) && mn.parent.parent.expression === mn.parent || mn.parent.parent.kind === 212) && (ol(mn.right) || Ve(mn.right) && mn.right.escapedText === "eval"); } function $(mn) { const xn = Q4(u, 12288) ? n : Q4(p, 12288) ? l : void 0; return xn ? (qe(xn, _.The_0_operator_cannot_be_applied_to_type_symbol, mo(mn)), !1) : !0; } function he(mn) { switch (mn) { case 51: case 74: return 56; case 52: case 78: return 37; case 50: case 73: return 55; default: return; } } function De(mn) { py(x) && i(xn); function xn() { if (AD(n, _.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access, _.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)) { let gr; if (We && Pr(n) && fl(mn, 32768)) { const an = cc(Au(n.expression), n.name.escapedText); CU(mn, an) && (gr = _.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target); } ov(mn, u, n, l, gr); } } } function ke(mn) { var xn; switch (mn) { case 2: return !0; case 1: case 5: case 6: case 3: case 4: const gr = Wd(n), an = JS(l); return !!an && As(an) && !!((xn = gr == null ? void 0 : gr.exports) != null && xn.size); default: return !1; } } function ft(mn) { return mn(u, p) ? !1 : (Bt(mn), !0); } function Bt(mn) { let xn = !1; const gr = g || a; if (mn) { const ei = Xg(u), fa = Xg(p); xn = !(ei === u && fa === p) && !!(ei && fa) && mn(ei, fa); } let an = u, Gn = p; !xn && mn && ([an, Gn] = vrt(u, p, mn)); const [Jn, Yr] = tn(an, Gn); Mn(gr, xn, Jn, Yr) || e0(gr, xn, _.Operator_0_cannot_be_applied_to_types_1_and_2, mo(a.kind), Jn, Yr); } function Mn(mn, xn, gr, an) { switch (a.kind) { case 36: case 34: case 37: case 35: return e0(mn, xn, _.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap, gr, an); default: return; } } function An(mn, xn, gr, an) { const Gn = Xn(Us(gr)), Jn = Xn(Us(an)); if (Gn || Jn) { const Yr = qe(mn, _.This_condition_will_always_return_0, mo(xn === 36 || xn === 34 ? 95 : 110)); if (Gn && Jn) return; const ei = xn === 37 || xn === 35 ? mo(53) : "", fa = Gn ? an : gr, Ya = Us(fa); qo(Yr, Dr(fa, _.Did_you_mean_0, `${ei}Number.isNaN(${Vl(Ya) ? vf(Ya) : "..."})`)); } } function Xn(mn) { if (Ve(mn) && mn.escapedText === "NaN") { const xn = f$e(); return !!xn && xn === x_(mn); } return !1; } } function vrt(n, a, l) { let u = n, p = a; const g = sv(n), x = sv(a); return l(g, x) || (u = g, p = x), [u, p]; } function brt(n) { i(De); const a = bf(n); if (!a) return Ie; const l = Mc(a); if (!(l & 1)) return Ie; const u = (l & 2) !== 0; n.asteriskToken && (u && P < 99 && dc(n, 26624), !u && P < 2 && Y.downlevelIteration && dc(n, 256)); const p = w2(a), g = p && cwe(p, u), x = g && g.yieldType || Ie, R = g && g.nextType || Ie, M = u ? UE(R) || Ie : R, J = n.expression ? ma(n.expression) : Qe, $ = dke(n, J, M, u); if (p && $ && ov($, x, n.expression || n, n.expression), n.asteriskToken) return Qae(u ? 19 : 17, 1, J, n.expression) || Ie; if (p) return jb(2, p, u) || Ie; let he = $Le(2, a); return he || (he = Ie, i(() => { if (Te && !Ide(n)) { const ke = Zu(n, void 0); (!ke || Es(ke)) && qe(n, _.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation); } })), he; function De() { n.flags & 8192 || Nc(n, _.A_yield_expression_is_only_allowed_in_a_generator_body), Kie(n) && qe(n, _.yield_expressions_cannot_be_used_in_a_parameter_initializer); } } function Ert(n, a) { const l = q2(n.condition); Yae(n.condition, l, n.whenTrue); const u = ma(n.whenTrue, a), p = ma(n.whenFalse, a); return Xr([u, p], 2); } function Eke(n) { const a = n.parent; return Pd(a) && Eke(a) || sl(a) && a.argumentExpression === n; } function Trt(n) { const a = [n.head.text], l = []; for (const u of n.templateSpans) { const p = ma(u.expression); Q4(p, 12288) && qe(u.expression, _.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String), a.push(u.literal.text), l.push(Eo(p, vo) ? p : ce); } return RL(n) || Eke(n) || Jh(Zu(n, void 0) || me, Srt) ? LE(a, l) : ce; } function Srt(n) { return !!(n.flags & 134217856 || n.flags & 58982400 && fl(Uu(n) || me, 402653316)); } function xrt(n) { return w1(n) && !xx(n.parent) ? n.parent.parent : n; } function W2(n, a, l, u) { const p = xrt(n); G4(p, a, !1), Xet(p, l); const g = ma(n, u | 1 | (l ? 2 : 0)); l && l.intraExpressionInferenceSites && (l.intraExpressionInferenceSites = void 0); const x = fl(g, 2944) && hV(g, YU(a, n, void 0)) ? _d(g) : g; return Yet(), yD(), x; } function Kl(n, a) { if (a) return ma(n, a); const l = Wr(n); if (!l.resolvedType) { const u = Tn, p = Ta; Tn = Wn, Ta = void 0, l.resolvedType = ma(n, a), Ta = p, Tn = u; } return l.resolvedType; } function Tke(n) { return n = Us(n, !0), n.kind === 213 || n.kind === 231 || Dk(n); } function CD(n, a, l) { const u = iN(n); if (dr(n)) { const g = N3(n); if (g) return Lae(u, g, a); } const p = Uae(u) || (l ? W2(u, l, void 0, a || 0) : Kl(u, a)); return Ma(n) && n.name.kind === 204 && Oo(p) && !p.target.hasRestElement && v0(p) < n.name.elements.length ? Art(p, n.name) : p; } function Art(n, a) { const l = a.elements, u = _s(n).slice(), p = n.target.elementFlags.slice(); for (let g = v0(n); g < l.length; g++) { const x = l[g]; (g < l.length - 1 || !(x.kind === 205 && x.dotDotDotToken)) && (u.push(!Ic(x) && CL(x) ? Ky(x, !1, !1) : Ie), p.push(2), !Ic(x) && !CL(x) && C0(x, Ie)); } return Dp(u, p, n.target.readonly); } function Bae(n, a) { const l = up(n) & 2 || PM(n) ? a : Bb(a); if (dr(n)) { if (ZCe(l)) return C0(n, Ie), Ie; if (DU(l)) return C0(n, Dt), Dt; } return l; } function hV(n, a) { if (a) { if (a.flags & 3145728) { const l = a.types; return kt(l, (u) => hV(n, u)); } if (a.flags & 58982400) { const l = Uu(a) || me; return fl(l, 4) && fl(n, 128) || fl(l, 8) && fl(n, 256) || fl(l, 64) && fl(n, 2048) || fl(l, 4096) && fl(n, 8192) || hV(n, l); } return !!(a.flags & 406847616 && fl(n, 128) || a.flags & 256 && fl(n, 256) || a.flags & 2048 && fl(n, 2048) || a.flags & 512 && fl(n, 512) || a.flags & 8192 && fl(n, 8192)); } return !1; } function RL(n) { const a = n.parent; return ZE(a) && tg(a.type) || Dk(a) && tg(N7(a)) || Cae(n) && Crt(n) || (Pd(a) || Ru(a) || Th(a)) && RL(a) || (Uc(a) || Xf(a) || Sk(a)) && RL(a.parent); } function Crt(n) { const a = Zu(n, 0); return !!a && Jh(a, c4); } function NL(n, a, l) { const u = ma(n, a, l); return RL(n) || jce(n) ? _d(u) : Tke(n) ? u : gie(u, YU(Zu(n, void 0), n, void 0)); } function Ske(n, a) { return n.name.kind === 164 && Kg(n.name), NL(n.initializer, a); } function xke(n, a) { $we(n), n.name.kind === 164 && Kg(n.name); const l = hke(n, a); return Ake(n, l, a); } function Ake(n, a, l) { if (l && l & 10) { const u = bD(a, 0, !0), p = bD(a, 1, !0), g = u || p; if (g && g.typeParameters) { const x = Ub(n, 2); if (x) { const R = bD(Jg(x), u ? 0 : 1, !1); if (R && !R.typeParameters) { if (l & 8) return Cke(n, l), Aa; const M = ES(n), J = M.signature && hs(M.signature), $ = J && MIe(J); if ($ && !$.typeParameters && !Vn(M.inferences, z2)) { const he = wrt(M, g.typeParameters), De = Sre(g, he), ke = rn(M.inferences, (ft) => Aie(ft.typeParameter)); if (Tie(De, R, (ft, Bt) => { qh(ke, ft, Bt, 0, !0); }), kt(ke, z2) && (Sie(De, R, (ft, Bt) => { qh(ke, ft, Bt); }), !Irt(M.inferences, ke))) return krt(M.inferences, ke), M.inferredTypeParameters = ha(M.inferredTypeParameters, he), CE(De); } return CE(FIe(g, R, M)); } } } } return a; } function Cke(n, a) { if (a & 2) { const l = ES(n); l.flags |= 4; } } function z2(n) { return !!(n.candidates || n.contraCandidates); } function Lrt(n) { return !!(n.candidates || n.contraCandidates || EAe(n.typeParameter)); } function Irt(n, a) { for (let l = 0; l < n.length; l++) if (z2(n[l]) && z2(a[l])) return !0; return !1; } function krt(n, a) { for (let l = 0; l < n.length; l++) !z2(n[l]) && z2(a[l]) && (n[l] = a[l]); } function wrt(n, a) { const l = []; let u, p; for (const g of a) { const x = g.symbol.escapedName; if (Gae(n.inferredTypeParameters, x) || Gae(l, x)) { const R = Drt(ha(n.inferredTypeParameters, l), x), M = Qo(262144, R), J = Id(M); J.target = g, u = Fn(u, g), p = Fn(p, J), l.push(J); } else l.push(g); } if (p) { const g = pd(u, p); for (const x of p) x.mapper = g; } return l; } function Gae(n, a) { return kt(n, (l) => l.symbol.escapedName === a); } function Drt(n, a) { let l = a.length; for (; l > 1 && a.charCodeAt(l - 1) >= 48 && a.charCodeAt(l - 1) <= 57; ) l--; const u = a.slice(0, l); for (let p = 1; ; p++) { const g = u + p; if (!Gae(n, g)) return g; } } function Lke(n) { const a = TS(n); if (a && !a.typeParameters) return hs(a); } function Rrt(n) { const a = ma(n.expression), l = uD(a, n.expression), u = Lke(a); return u && OU(u, n, l !== a); } function Au(n) { const a = Uae(n); if (a) return a; if (n.flags & 134217728 && Ta) { const p = Ta[ds(n)]; if (p) return p; } const l = tr, u = ma(n); if (tr !== l) { const p = Ta || (Ta = []); p[ds(n)] = u, Lde(n, n.flags | 134217728); } return u; } function Uae(n) { let a = Us(n, !0); if (Dk(a)) { const l = N7(a); if (!tg(l)) return ci(l); } if (a = Us(n), _C(a)) { const l = Uae(a.expression); return l ? UE(l) : void 0; } if (eo(a) && a.expression.kind !== 106 && !vd(a, !0) && !YIe(a)) return YE(a) ? Rrt(a) : Lke(IL(a.expression)); if (ZE(a) && !tg(a.type)) return ci(a.type); if ($E(n) || Xle(n)) return ma(n); } function tP(n) { const a = Wr(n); if (a.contextFreeType) return a.contextFreeType; G4(n, Ie, !1); const l = a.contextFreeType = ma(n, 4); return yD(), l; } function ma(n, a, l) { var u, p; (u = hi) == null || u.push(hi.Phase.Check, "checkExpression", { kind: n.kind, pos: n.pos, end: n.end, path: n.tracingPath }); const g = B; B = n, I = 0; const x = Prt(n, a, l), R = Ake(n, x, a); return Pae(R) && Nrt(n, R), B = g, (p = hi) == null || p.pop(), R; } function Nrt(n, a) { n.parent.kind === 208 && n.parent.expression === n || n.parent.kind === 209 && n.parent.expression === n || (n.kind === 79 || n.kind === 163) && wV(n) || n.parent.kind === 183 && n.parent.exprName === n || n.parent.kind === 278 || qe(n, _.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), F_(Y) && (D.assert(!!(a.symbol.flags & 128)), a.symbol.valueDeclaration.flags & 16777216 && qe(n, _.Cannot_access_ambient_const_enums_when_0_is_enabled, Vt)); } function Ort(n, a) { if (yf(n)) { if (uq(n)) return Lae(n.expression, dq(n), a); if (Dk(n)) { const l = N7(n); return tke(l, l, n.expression, a); } } return ma(n.expression, a); } function Prt(n, a, l) { const u = n.kind; if (o) switch (u) { case 228: case 215: case 216: o.throwIfCancellationRequested(); } switch (u) { case 79: return get(n, a); case 80: return Rtt(n); case 108: return F4(n); case 106: return qie(n); case 104: return br; case 14: case 10: return F2(Mf(n.text)); case 8: return voe(n), F2(Rp(+n.text)); case 9: return Pst(n), F2(hU({ negative: !1, base10Value: rk(n.text) })); case 110: return Oe; case 95: return rt; case 225: return Trt(n); case 13: return Lf; case 206: return oIe(n, a, l); case 207: return ftt(n, a); case 208: return EIe(n, a); case 163: return TIe(n, a); case 209: return Ktt(n, a); case 210: if (n.expression.kind === 100) return xnt(n); case 211: return Snt(n, a); case 212: return Ant(n); case 214: return Ort(n, a); case 228: return Eat(n); case 215: case 216: return hke(n, a); case 218: return irt(n); case 213: case 231: return Cnt(n); case 232: return Int(n); case 230: return nke(n); case 235: return knt(n); case 233: return wnt(n); case 217: return nrt(n); case 219: return art(n); case 220: return srt(n); case 221: return lrt(n); case 222: return crt(n); case 223: return Re(n, a); case 224: return Ert(n, a); case 227: return stt(n, a); case 229: return Qe; case 226: return brt(n); case 234: return ltt(n); case 291: return Att(n, a); case 281: return htt(n); case 282: return ptt(n); case 285: return gtt(n); case 289: return vtt(n, a); case 283: D.fail("Shouldn't ever directly check a JsxOpeningElement"); } return xe; } function Ike(n) { ah(n), n.expression && Nc(n.expression, _.Type_expected), po(n.constraint), po(n.default); const a = SE(Lr(n)); Uu(a), EYe(a) || qe(n.default, _.Type_parameter_0_has_a_circular_default, Le(a)); const l = bu(a), u = AE(a); l && u && Qu(u, Of(qi(l, Mb(a, u)), u), n.default, _.Type_0_does_not_satisfy_the_constraint_1), GL(n), i(() => FL(n.name, _.Type_parameter_name_cannot_be_0)); } function Mrt(n) { var a, l; if (Yu(n.parent) || li(n.parent) || Xp(n.parent)) { const u = SE(Lr(n)), p = die(u) & 98304; if (p) { const g = Lr(n.parent); if (Xp(n.parent) && !(Qr(Bs(g)) & 48)) qe(n, _.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types); else if (p === 32768 || p === 65536) { (a = hi) == null || a.push(hi.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: Su(Bs(g)), id: Su(u) }); const x = x4(g, u, p === 65536 ? pl : ks), R = x4(g, u, p === 65536 ? ks : pl), M = u; U = u, Qu(x, R, n, _.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation), U = M, (l = hi) == null || l.pop(); } } } } function kke(n) { ah(n), sP(n); const a = bf(n); Jr(n, 16476) && (a.kind === 173 && s_(a.body) || qe(n, _.A_parameter_property_is_only_allowed_in_a_constructor_implementation), a.kind === 173 && Ve(n.name) && n.name.escapedText === "constructor" && qe(n.name, _.constructor_cannot_be_used_as_a_parameter_property_name)), !n.initializer && cq(n) && Ja(n.name) && a.body && qe(n, _.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature), n.name && Ve(n.name) && (n.name.escapedText === "this" || n.name.escapedText === "new") && (a.parameters.indexOf(n) !== 0 && qe(n, _.A_0_parameter_must_be_the_first_parameter, n.name.escapedText), (a.kind === 173 || a.kind === 177 || a.kind === 182) && qe(n, _.A_constructor_cannot_have_a_this_parameter), a.kind === 216 && qe(n, _.An_arrow_function_cannot_have_a_this_parameter), (a.kind === 174 || a.kind === 175) && qe(n, _.get_and_set_accessors_cannot_declare_this_parameters)), n.dotDotDotToken && !Ja(n.name) && !Eo(ap(ar(n.symbol)), zi) && qe(n, _.A_rest_parameter_must_be_of_an_array_type); } function Frt(n) { const a = Brt(n); if (!a) { qe(n, _.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); return; } const l = wp(a), u = Zf(l); if (!u) return; po(n.type); const { parameterName: p } = n; if (u.kind === 0 || u.kind === 2) gU(p); else if (u.parameterIndex >= 0) { if (mu(l) && u.parameterIndex === l.parameters.length - 1) qe(p, _.A_type_predicate_cannot_reference_a_rest_parameter); else if (u.type) { const g = () => Da(void 0, _.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type); Qu(u.type, ar(l.parameters[u.parameterIndex]), n.type, void 0, g); } } else if (p) { let g = !1; for (const { name: x } of a.parameters) if (Ja(x) && wke(x, p, u.parameterName)) { g = !0; break; } g || qe(n.parameterName, _.Cannot_find_parameter_0, u.parameterName); } } function Brt(n) { switch (n.parent.kind) { case 216: case 176: case 259: case 215: case 181: case 171: case 170: const a = n.parent; if (n === a.type) return a; } } function wke(n, a, l) { for (const u of n.elements) { if (Ic(u)) continue; const p = u.name; if (p.kind === 79 && p.escapedText === l) return qe(a, _.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern, l), !0; if ((p.kind === 204 || p.kind === 203) && wke(p, a, l)) return !0; } } function LD(n) { n.kind === 178 ? lst(n) : (n.kind === 181 || n.kind === 259 || n.kind === 182 || n.kind === 176 || n.kind === 173 || n.kind === 177) && MV(n); const a = Mc(n); a & 4 || ((a & 3) === 3 && P < 99 && dc(n, 6144), (a & 3) === 2 && P < 4 && dc(n, 64), a & 3 && P < 2 && dc(n, 128)), cP(bv(n)), yat(n), Ye(n.parameters, kke), n.type && po(n.type), i(l); function l() { Pit(n); const u = fp(n); if (Te && !u) switch (n.kind) { case 177: qe(n, _.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; case 176: qe(n, _.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; } if (u) { const p = Mc(n); if ((p & 5) === 1) { const g = ci(u); if (g === Rt) qe(u, _.A_generator_cannot_have_a_void_type_annotation); else { const x = jb(0, g, (p & 2) !== 0) || Ie, R = jb(1, g, (p & 2) !== 0) || x, M = jb(2, g, (p & 2) !== 0) || me, J = uke(x, R, M, !!(p & 2)); Qu(J, g, u); } } else (p & 3) === 2 && mit(n, u); } n.kind !== 178 && n.kind !== 320 && lv(n); } } function Grt(n) { const a = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(); for (const g of n.members) if (g.kind === 173) for (const x of g.parameters) Yd(x, g) && !Ja(x.name) && p(a, x.name, x.name.escapedText, 3); else { const x = za(g), R = g.name; if (!R) continue; const M = ki(R), J = M && x ? 16 : 0, $ = M ? u : x ? l : a, he = R && v1(R); if (he) switch (g.kind) { case 174: p($, R, he, 1 | J); break; case 175: p($, R, he, 2 | J); break; case 169: p($, R, he, 3 | J); break; case 171: p($, R, he, 8 | J); break; } } function p(g, x, R, M) { const J = g.get(R); if (J) if ((J & 16) !== (M & 16)) qe(x, _.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, bc(x)); else { const $ = !!(J & 8), he = !!(M & 8); $ || he ? $ !== he && qe(x, _.Duplicate_identifier_0, bc(x)) : J & M & -17 ? qe(x, _.Duplicate_identifier_0, bc(x)) : g.set(R, J | M); } else g.set(R, M); } } function Urt(n) { for (const a of n.members) { const l = a.name; if (za(a) && l) { const p = v1(l); switch (p) { case "name": case "length": case "caller": case "arguments": case "prototype": const g = _.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1, x = zy(Lr(n)); qe(l, g, p, x); break; } } } } function Dke(n) { const a = /* @__PURE__ */ new Map(); for (const l of n.members) if (l.kind === 168) { let u; const p = l.name; switch (p.kind) { case 10: case 8: u = p.text; break; case 79: u = Or(p); break; default: continue; } a.get(u) ? (qe(La(l.symbol.valueDeclaration), _.Duplicate_identifier_0, u), qe(l.name, _.Duplicate_identifier_0, u)) : a.set(u, !0); } } function Vae(n) { if (n.kind === 261) { const l = Lr(n); if (l.declarations && l.declarations.length > 0 && l.declarations[0] !== n) return; } const a = kAe(Lr(n)); if (a != null && a.declarations) { const l = /* @__PURE__ */ new Map(); for (const u of a.declarations) u.parameters.length === 1 && u.parameters[0].type && PE(ci(u.parameters[0].type), (p) => { const g = l.get(Su(p)); g ? g.declarations.push(u) : l.set(Su(p), { type: p, declarations: [u] }); }); l.forEach((u) => { if (u.declarations.length > 1) for (const p of u.declarations) qe(p, _.Duplicate_index_signature_for_type_0, Le(u.type)); }); } } function Rke(n) { !ah(n) && !wst(n) && FV(n.name), sP(n), jae(n), Jr(n, 256) && n.kind === 169 && n.initializer && qe(n, _.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, Is(n.name)); } function Vrt(n) { return ki(n.name) && qe(n, _.Private_identifiers_are_not_allowed_outside_class_bodies), Rke(n); } function jrt(n) { $we(n) || FV(n.name), nc(n) && n.asteriskToken && Ve(n.name) && Or(n.name) === "constructor" && qe(n.name, _.Class_constructor_may_not_be_a_generator), zke(n), Jr(n, 256) && n.kind === 171 && n.body && qe(n, _.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, Is(n.name)), ki(n.name) && !Ec(n) && qe(n, _.Private_identifiers_are_not_allowed_outside_class_bodies), jae(n); } function jae(n) { if (ki(n.name) && P < 99) { for (let a = Dm(n); a; a = Dm(a)) Wr(a).flags |= 4194304; if (Nu(n.parent)) { const a = Hie(n.parent); a && (Wr(n.name).flags |= 32768, Wr(a).flags |= 4096); } } } function Hrt(n) { ah(n), Oa(n, po); } function Wrt(n) { LD(n), Ist(n) || kst(n), po(n.body); const a = Lr(n), l = Tl(a, n.kind); if (n === l && vV(a), Sl(n.body)) return; i(p); return; function u(g) { return zu(g) ? !0 : g.kind === 169 && !za(g) && !!g.initializer; } function p() { const g = n.parent; if (y1(g)) { Wie(n.parent, g); const x = zLe(g), R = WLe(n.body); if (R) { if (x && qe(R, _.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null), ($o(Y) !== 99 || !ge) && (kt(n.parent.members, u) || kt(n.parameters, (J) => Jr(J, 16476)))) if (!zrt(R, n.body)) qe(R, _.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 J; for (const $ of n.body.statements) { if (eu($) && LA(pu($.expression))) { J = $; break; } if (Nke($)) break; } J === void 0 && qe(n, _.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 x || qe(n, _.Constructors_for_derived_classes_must_contain_a_super_call); } } } function zrt(n, a) { const l = Cv(n.parent); return eu(l) && l.parent === a; } function Nke(n) { return n.kind === 106 || n.kind === 108 ? !0 : Kce(n) ? !1 : !!Oa(n, Nke); } function Oke(n) { Ve(n.name) && Or(n.name) === "constructor" && qe(n.name, _.Class_constructor_may_not_be_an_accessor), i(a), po(n.body), jae(n); function a() { if (!MV(n) && !gst(n) && FV(n.name), rP(n), LD(n), n.kind === 174 && !(n.flags & 16777216) && s_(n.body) && n.flags & 256 && (n.flags & 512 || qe(n.name, _.A_get_accessor_must_return_a_value)), n.name.kind === 164 && Kg(n.name), L2(n)) { const u = Lr(n), p = Tl(u, 174), g = Tl(u, 175); if (p && g && !(K2(p) & 1)) { Wr(p).flags |= 1; const x = wu(p), R = wu(g); (x & 256) !== (R & 256) && (qe(p.name, _.Accessors_must_both_be_abstract_or_non_abstract), qe(g.name, _.Accessors_must_both_be_abstract_or_non_abstract)), (x & 16 && !(R & 24) || x & 8 && !(R & 8)) && (qe(p.name, _.A_get_accessor_must_be_at_least_as_accessible_as_the_setter), qe(g.name, _.A_get_accessor_must_be_at_least_as_accessible_as_the_setter)); const M = oe(p), J = oe(g); M && J && Qu(M, J, p, _.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type); } } const l = Fr(Lr(n)); n.kind === 174 && Nae(n, l); } } function qrt(n) { rP(n); } function Jrt(n, a, l) { return n.typeArguments && l < n.typeArguments.length ? ci(n.typeArguments[l]) : gV(n, a)[l]; } function gV(n, a) { return tv(rn(n.typeArguments, ci), a, um(a), dr(n)); } function Pke(n, a) { let l, u, p = !0; for (let g = 0; g < a.length; g++) { const x = bu(a[g]); x && (l || (l = gV(n, a), u = pd(a, l)), p = p && Qu(l[g], qi(x, u), n.typeArguments[g], _.Type_0_does_not_satisfy_the_constraint_1)); } return p; } function Krt(n, a) { if (!Zo(n)) return a.flags & 524288 && Ui(a).typeParameters || (Qr(n) & 4 ? n.target.localTypeParameters : void 0); } function Hae(n) { const a = ci(n); if (!Zo(a)) { const l = Wr(n).resolvedSymbol; if (l) return Krt(a, l); } } function Wae(n) { if (_P(n, n.typeArguments), n.kind === 180 && !dr(n) && !nN(n) && n.typeArguments && n.typeName.end !== n.typeArguments.pos) { const a = Zn(n); Bce(a, n.typeName.end) === 24 && Wb(n, zo(a.text, n.typeName.end), 1, _.JSDoc_types_can_only_be_used_inside_documentation_comments); } Ye(n.typeArguments, po), Mke(n); } function Mke(n) { const a = ci(n); if (!Zo(a)) { n.typeArguments && i(() => { const u = Hae(n); u && Pke(n, u); }); const l = Wr(n).resolvedSymbol; l && kt(l.declarations, (u) => eC(u) && !!(u.flags & 268435456)) && xg(J4(n), l.declarations, l.escapedName); } } function Xrt(n) { const a = ri(n.parent, xM); if (!a) return; const l = Hae(a); if (!l) return; const u = bu(l[a.typeArguments.indexOf(n)]); return u && qi(u, pd(l, gV(a, l))); } function Yrt(n) { UAe(n); } function $rt(n) { Ye(n.members, po), i(a); function a() { const l = LCe(n); CV(l, l.symbol), Vae(n), Dke(n); } } function Qrt(n) { po(n.elementType); } function Zrt(n) { const a = n.elements; let l = !1, u = !1; const p = kt(a, vk); for (const g of a) { if (g.kind !== 199 && p) { bn(g, _.Tuple_members_must_all_have_names_or_all_not_have_names); break; } const x = Pre(g); if (x & 8) { const R = ci(g.type); if (!A0(R)) { qe(g, _.A_rest_element_type_must_be_an_array_type); break; } (Ff(R) || Oo(R) && R.target.combinedFlags & 4) && (u = !0); } else if (x & 4) { if (u) { bn(g, _.A_rest_element_cannot_follow_another_rest_element); break; } u = !0; } else if (x & 2) { if (u) { bn(g, _.An_optional_element_cannot_follow_a_rest_element); break; } l = !0; } else if (l) { bn(g, _.A_required_element_cannot_follow_an_optional_element); break; } } Ye(n.elements, po), ci(n); } function eit(n) { Ye(n.types, po), ci(n); } function Fke(n, a) { if (!(n.flags & 8388608)) return n; const l = n.objectType, u = n.indexType; if (Eo(u, fm(l, !1))) return a.kind === 209 && mh(a) && Qr(l) & 32 && cm(l) & 1 && qe(a, _.Index_signature_in_type_0_only_permits_reading, Le(l)), n; const p = Vu(l); if (nh(p, pt) && Rc(u, 296)) return n; if (Nb(l)) { const g = dU(u, a); if (g) { const x = PE(p, (R) => so(R, g)); if (x && qf(x) & 24) return qe(a, _.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, Zi(g)), xe; } } return qe(a, _.Type_0_cannot_be_used_to_index_type_1, Le(u), Le(l)), xe; } function tit(n) { po(n.objectType), po(n.indexType), Fke(ECe(n), n); } function nit(n) { rit(n), po(n.typeParameter), po(n.nameType), po(n.type), n.type || C0(n, Ie); const a = zre(n), l = Qy(a); if (l) Qu(l, Bi, n.nameType); else { const u = kp(a); Qu(u, Bi, mA(n.typeParameter)); } } function rit(n) { var a; if ((a = n.members) != null && a.length) return bn(n.members[0], _.A_mapped_type_may_not_declare_properties_or_methods); } function iit(n) { gU(n); } function ait(n) { vst(n), po(n.type); } function oit(n) { Oa(n, po); } function sit(n) { nr(n, (l) => l.parent && l.parent.kind === 191 && l.parent.extendsType === l) || bn(n, _.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type), po(n.typeParameter); const a = Lr(n.typeParameter); if (a.declarations && a.declarations.length > 1) { const l = Ui(a); if (!l.typeParametersChecked) { l.typeParametersChecked = !0; const u = SE(a), p = pce(a, 165); if (!_we(p, [u], (g) => [g])) { const g = S(a); for (const x of p) qe(x.name, _.All_declarations_of_0_must_have_identical_constraints, g); } } } lv(n); } function lit(n) { for (const a of n.templateSpans) { po(a.type); const l = ci(a.type); Qu(l, vo, a.type); } ci(n); } function cit(n) { po(n.argument), n.assertions && Px(n.assertions.assertClause, bn) && (wN() || bn(n.assertions.assertClause, _.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next), gl(Y) !== 3 && gl(Y) !== 99 && bn(n.assertions.assertClause, _.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)), Mke(n); } function uit(n) { n.dotDotDotToken && n.questionToken && bn(n, _.A_tuple_member_cannot_be_both_optional_and_rest), n.type.kind === 187 && bn(n.type, _.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.type.kind === 188 && bn(n.type, _.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type), po(n.type), ci(n); } function nP(n) { return (Nd(n, 8) || zu(n)) && !!(n.flags & 16777216); } function yV(n, a) { let l = cy(n); return n.parent.kind !== 261 && n.parent.kind !== 260 && n.parent.kind !== 228 && n.flags & 16777216 && (!(l & 2) && !(Yp(n.parent) && Hl(n.parent.parent) && Hp(n.parent.parent)) && (l |= 1), l |= 2), l & a; } function vV(n) { i(() => dit(n)); } function dit(n) { function a(xn, gr) { return gr !== void 0 && gr.parent === xn[0].parent ? gr : xn[0]; } function l(xn, gr, an, Gn, Jn) { if ((Gn ^ Jn) !== 0) { const ei = yV(a(xn, gr), an); Ye(xn, (fa) => { const Ya = yV(fa, an) ^ ei; Ya & 1 ? qe(La(fa), _.Overload_signatures_must_all_be_exported_or_non_exported) : Ya & 2 ? qe(La(fa), _.Overload_signatures_must_all_be_ambient_or_non_ambient) : Ya & 24 ? qe(La(fa) || fa, _.Overload_signatures_must_all_be_public_private_or_protected) : Ya & 256 && qe(La(fa), _.Overload_signatures_must_all_be_abstract_or_non_abstract); }); } } function u(xn, gr, an, Gn) { if (an !== Gn) { const Jn = $S(a(xn, gr)); Ye(xn, (Yr) => { $S(Yr) !== Jn && qe(La(Yr), _.Overload_signatures_must_all_be_optional_or_required); }); } } const p = 283; let g = 0, x = p, R = !1, M = !0, J = !1, $, he, De; const ke = n.declarations, ft = (n.flags & 16384) !== 0; function Bt(xn) { if (xn.name && Sl(xn.name)) return; let gr = !1; const an = Oa(xn.parent, (Jn) => { if (gr) return Jn; gr = Jn === xn; }); if (an && an.pos === xn.end && an.kind === xn.kind) { const Jn = an.name || an, Yr = an.name; if (xn.name && Yr && (ki(xn.name) && ki(Yr) && xn.name.escapedText === Yr.escapedText || Ss(xn.name) && Ss(Yr) || O_(xn.name) && O_(Yr) && PI(xn.name) === PI(Yr))) { if ((xn.kind === 171 || xn.kind === 170) && za(xn) !== za(an)) { const fa = za(xn) ? _.Function_overload_must_be_static : _.Function_overload_must_not_be_static; qe(Jn, fa); } return; } if (s_(an.body)) { qe(Jn, _.Function_implementation_name_must_be_0, Is(xn.name)); return; } } const Gn = xn.name || xn; ft ? qe(Gn, _.Constructor_implementation_is_missing) : Jr(xn, 256) ? qe(Gn, _.All_declarations_of_an_abstract_method_must_be_consecutive) : qe(Gn, _.Function_implementation_is_missing_or_not_immediately_following_the_declaration); } let Mn = !1, An = !1, Xn = !1; const mn = []; if (ke) for (const xn of ke) { const gr = xn, an = gr.flags & 16777216, Gn = gr.parent && (gr.parent.kind === 261 || gr.parent.kind === 184) || an; if (Gn && (De = void 0), (gr.kind === 260 || gr.kind === 228) && !an && (Xn = !0), gr.kind === 259 || gr.kind === 171 || gr.kind === 170 || gr.kind === 173) { mn.push(gr); const Jn = yV(gr, p); g |= Jn, x &= Jn, R = R || $S(gr), M = M && $S(gr); const Yr = s_(gr.body); Yr && $ ? ft ? An = !0 : Mn = !0 : (De == null ? void 0 : De.parent) === gr.parent && De.end !== gr.pos && Bt(De), Yr ? $ || ($ = gr) : J = !0, De = gr, Gn || (he = gr); } if (dr(xn) && qa(xn) && xn.jsDoc) { for (const Jn of xn.jsDoc) if (Jn.tags) for (const Yr of Jn.tags) Ik(Yr) && (J = !0); } } if (An && Ye(mn, (xn) => { qe(xn, _.Multiple_constructor_implementations_are_not_allowed); }), Mn && Ye(mn, (xn) => { qe(La(xn) || xn, _.Duplicate_function_implementation); }), Xn && !ft && n.flags & 16 && ke) { const xn = yn(ke, (gr) => gr.kind === 260).map((gr) => Dr(gr, _.Consider_adding_a_declare_modifier_to_this_class)); Ye(ke, (gr) => { const an = gr.kind === 260 ? _.Class_declaration_cannot_implement_overload_list_for_0 : gr.kind === 259 ? _.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; an && qo(qe(La(gr) || gr, an, Nl(n)), ...xn); }); } if (he && !he.body && !Jr(he, 256) && !he.questionToken && Bt(he), J && (ke && (l(ke, $, p, g, x), u(ke, $, R, M)), $)) { const xn = kb(n), gr = wp($); for (const an of xn) if (!MQe(gr, an)) { const Gn = an.declaration && R1(an.declaration) ? an.declaration.parent.tagName : an.declaration; qo(qe(Gn, _.This_overload_signature_is_not_compatible_with_its_implementation_signature), Dr($, _.The_implementation_signature_is_declared_here)); break; } } } function ID(n) { i(() => fit(n)); } function fit(n) { let a = n.localSymbol; if (!a && (a = Lr(n), !a.exportSymbol) || Tl(a, n.kind) !== n) return; let l = 0, u = 0, p = 0; for (const J of a.declarations) { const $ = M(J), he = yV(J, 1025); he & 1 ? he & 1024 ? p |= $ : l |= $ : u |= $; } const g = l | u, x = l & u, R = p & g; if (x || R) for (const J of a.declarations) { const $ = M(J), he = La(J); $ & R ? qe(he, _.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, Is(he)) : $ & x && qe(he, _.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, Is(he)); } function M(J) { let $ = J; switch ($.kind) { case 261: case 262: case 349: case 341: case 343: return 2; case 264: return ku($) || _g($) !== 0 ? 5 : 4; case 260: case 263: case 302: return 3; case 308: return 7; case 274: case 223: const he = $, De = Pl(he) ? he.expression : he.right; if (!Vl(De)) return 1; $ = De; case 268: case 271: case 270: let ke = 0; const ft = Zl(Lr($)); return Ye(ft.declarations, (Bt) => { ke |= M(Bt); }), ke; case 257: case 205: case 259: case 273: case 79: return 1; case 170: case 168: return 2; default: return D.failBadSyntaxKind($); } } } function kD(n, a, l, u) { const p = wD(n, a); return p && UE(p, a, l, u); } function wD(n, a, l) { if (Es(n)) return; const u = n; if (u.promisedTypeOfPromise) return u.promisedTypeOfPromise; if (g0(n, p4(!1))) return u.promisedTypeOfPromise = _s(n)[0]; if (Z4(ev(n), 134479868)) return; const p = cc(n, "then"); if (Es(p)) return; const g = p ? Ha(p, 0) : nt; if (g.length === 0) { a && qe(a, _.A_promise_must_have_a_then_method); return; } let x, R; for (const $ of g) { const he = wb($); he && he !== Rt && !_m(n, he, qm) ? x = he : R = Fn(R, $); } if (!R) { D.assertIsDefined(x), l && (l.value = x), a && qe(a, _.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, Le(n), Le(x)); return; } const M = n_(Xr(rn(R, kae)), 2097152); if (Es(M)) return; const J = Ha(M, 0); if (J.length === 0) { a && qe(a, _.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback); return; } return u.promisedTypeOfPromise = Xr(rn(J, kae), 2); } function DD(n, a, l, u, p) { return (a ? UE(n, l, u, p) : Xg(n, l, u, p)) || xe; } function Bke(n) { if (Z4(ev(n), 134479868)) return !1; const a = cc(n, "then"); return !!a && Ha(n_(a, 2097152), 0).length > 0; } function bV(n) { var a; if (n.flags & 16777216) { const l = Ore(!1); return !!l && n.aliasSymbol === l && ((a = n.aliasTypeArguments) == null ? void 0 : a.length) === 1; } return !1; } function OL(n) { return n.flags & 1048576 ? Xs(n, OL) : bV(n) ? n.aliasTypeArguments[0] : n; } function Gke(n) { if (Es(n) || bV(n)) return !1; if (Nb(n)) { const a = Uu(n); if (a ? a.flags & 3 || Wh(a) || Jh(a, Bke) : fl(n, 8650752)) return !0; } return !1; } function _it(n) { const a = Ore(!0); if (a) return N2(a, [OL(n)]); } function pit(n) { if (Gke(n)) { const a = _it(n); if (a) return a; } return D.assert(bV(n) || wD(n) === void 0, "type provided should not be a non-generic 'promise'-like."), n; } function UE(n, a, l, u) { const p = Xg(n, a, l, u); return p && pit(p); } function Xg(n, a, l, u) { if (Es(n) || bV(n)) return n; const p = n; if (p.awaitedTypeOfType) return p.awaitedTypeOfType; if (n.flags & 1048576) { if (Eg.lastIndexOf(n.id) >= 0) { a && qe(a, _.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); return; } const R = a ? (J) => Xg(J, a, l, u) : Xg; Eg.push(n.id); const M = Xs(n, R); return Eg.pop(), p.awaitedTypeOfType = M; } if (Gke(n)) return p.awaitedTypeOfType = n; const g = { value: void 0 }, x = wD(n, void 0, g); if (x) { if (n.id === x.id || Eg.lastIndexOf(x.id) >= 0) { a && qe(a, _.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); return; } Eg.push(n.id); const R = Xg(x, a, l, u); return Eg.pop(), R ? p.awaitedTypeOfType = R : void 0; } if (Bke(n)) { if (a) { D.assertIsDefined(l); let R; g.value && (R = Da(R, _.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, Le(n), Le(g.value))), R = Da(R, l, u), Xo.add(rg(Zn(a), a, R)); } return; } return p.awaitedTypeOfType = n; } function mit(n, a) { const l = ci(a); if (P >= 2) { if (Zo(l)) return; const u = p4(!0); if (u !== So && !g0(l, u)) { qe(a, _.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, Le(Xg(l) || Rt)); return; } } else { if (git(a), Zo(l)) return; const u = eN(a); if (u === void 0) { qe(a, _.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, Le(l)); return; } const p = wl(u, 111551, !0), g = p ? ar(p) : xe; if (Zo(g)) { u.kind === 79 && u.escapedText === "Promise" && C2(l) === p4(!1) ? qe(a, _.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option) : qe(a, _.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, vf(u)); return; } const x = qYe(!0); if (x === da) { qe(a, _.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, vf(u)); return; } if (!Qu(g, x, a, _.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value)) return; const R = u && Ef(u), M = Hd(n.locals, R.escapedText, 111551); if (M) { qe(M.valueDeclaration, _.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions, Or(R), vf(u)); return; } } DD(l, !1, n, _.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member); } function hit(n) { const a = wL(n); fV(a, n); const l = hs(a); if (l.flags & 1) return; const u = Rae(n); if (!(u != null && u.resolvedReturnType)) return; let p; const g = u.resolvedReturnType; switch (n.parent.kind) { case 260: case 228: p = _.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; case 169: if (!ne) { p = _.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; } case 166: p = _.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any; break; case 171: case 174: case 175: p = _.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; default: return D.failBadSyntaxKind(n.parent); } Qu(l, g, n.expression, p); } function RD(n, a, l, u, p, g = l.length, x = 0) { const R = N.createFunctionTypeNode(void 0, nt, N.createKeywordTypeNode(131)); return th(R, n, a, l, u, p, g, x); } function zae(n, a, l, u, p, g, x) { const R = RD(n, a, l, u, p, g, x); return CE(R); } function Uke(n) { return zae(void 0, void 0, nt, n); } function Vke(n) { const a = $_("value", n); return zae(void 0, void 0, [a], Rt); } function git(n) { jke(n && eN(n), !1); } function jke(n, a) { if (!n) return; const l = Ef(n), u = (n.kind === 79 ? 788968 : 1920) | 2097152, p = dl(l, l.escapedText, u, void 0, void 0, !0); if (p && p.flags & 2097152) { if (!Y.verbatimModuleSyntax && Ng(p) && !PD(Zl(p)) && !Ld(p)) Sb(p); else if (a && F_(Y) && Zc(Y) >= 5 && !Ng(p) && !kt(p.declarations, u1)) { const g = qe(n, _.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled), x = un(p.declarations || nt, Ig); x && qo(g, Dr(x, _._0_was_imported_here, Or(l))); } } } function PL(n) { const a = qae(n); a && $d(a) && jke(a, !0); } function qae(n) { if (n) switch (n.kind) { case 190: case 189: return Hke(n.types); case 191: return Hke([n.trueType, n.falseType]); case 193: case 199: return qae(n.type); case 180: return n.typeName; } } function Hke(n) { let a; for (let l of n) { for (; l.kind === 193 || l.kind === 199; ) l = l.type; if (l.kind === 144 || !H && (l.kind === 198 && l.literal.kind === 104 || l.kind === 155)) continue; const u = qae(l); if (!u) return; if (a) { if (!Ve(a) || !Ve(u) || a.escapedText !== u.escapedText) return; } else a = u; } return a; } function EV(n) { const a = Jc(n); return fh(n) ? jW(a) : a; } function rP(n) { if (!wx(n) || !zf(n) || !n.modifiers || !JM(ne, n, n.parent, n.parent.parent)) return; const a = un(n.modifiers, Du); if (a) { if (ne ? (dc(a, 8), n.kind === 166 && dc(a, 32)) : P < 99 && (dc(a, 8), kc(n) ? n.name ? pwe(n) && dc(a, 8388608) : dc(a, 8388608) : Nu(n) || (ki(n.name) && (nc(n) || F0(n) || Qd(n)) && dc(a, 8388608), Ss(n.name) && dc(a, 16777216))), Y.emitDecoratorMetadata) switch (dc(a, 16), n.kind) { case 260: const l = hh(n); if (l) for (const x of l.parameters) PL(EV(x)); break; case 174: case 175: const u = n.kind === 174 ? 175 : 174, p = Tl(Lr(n), u); PL(F(n) || p && F(p)); break; case 171: for (const x of n.parameters) PL(EV(x)); PL(fp(n)); break; case 169: PL(Jc(n)); break; case 166: PL(EV(n)); const g = n.parent; for (const x of g.parameters) PL(EV(x)); break; } for (const l of n.modifiers) Du(l) && hit(l); } } function yit(n) { i(a); function a() { zke(n), moe(n), ML(n, n.name); } } function vit(n) { n.typeExpression || qe(n.name, _.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags), n.name && FL(n.name, _.Type_alias_name_cannot_be_0), po(n.typeExpression), cP(bv(n)); } function bit(n) { po(n.constraint); for (const a of n.typeParameters) po(a); } function Eit(n) { po(n.typeExpression); } function Tit(n) { po(n.typeExpression); const a = BA(n); if (a) { const l = KH(a, w7); if (Ne(l) > 1) for (let u = 1; u < Ne(l); u++) { const p = l[u].tagName; qe(p, _._0_tag_already_specified, Or(p)); } } } function Sit(n) { n.name && dP(n.name, !0); } function xit(n) { po(n.typeExpression); } function Ait(n) { po(n.typeExpression); } function Cit(n) { i(a), LD(n); function a() { !n.type && !MA(n) && C0(n, Ie); } } function Lit(n) { const a = BA(n); (!a || !kc(a) && !Nu(a)) && qe(a, _.JSDoc_0_is_not_attached_to_a_class, Or(n.tagName)); } function Iit(n) { const a = BA(n); if (!a || !kc(a) && !Nu(a)) { qe(a, _.JSDoc_0_is_not_attached_to_a_class, Or(n.tagName)); return; } const l = l1(a).filter(yC); D.assert(l.length > 0), l.length > 1 && qe(l[1], _.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag); const u = Wke(n.class.expression), p = y1(a); if (p) { const g = Wke(p.expression); g && u.escapedText !== g.escapedText && qe(u, _.JSDoc_0_1_does_not_match_the_extends_2_clause, Or(n.tagName), Or(u), Or(g)); } } function kit(n) { const a = QS(n); a && zu(a) && qe(n, _.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); } function Wke(n) { switch (n.kind) { case 79: return n; case 208: return n.name; default: return; } } function zke(n) { var a; rP(n), LD(n); const l = Mc(n); if (n.name && n.name.kind === 164 && Kg(n.name), L2(n)) { const g = Lr(n), x = n.localSymbol || g, R = (a = x.declarations) == null ? void 0 : a.find((M) => M.kind === n.kind && !(M.flags & 262144)); n === R && vV(x), g.parent && vV(g); } const u = n.kind === 170 ? void 0 : n.body; if (po(u), Nae(n, w2(n)), i(p), dr(n)) { const g = s1(n); g && g.typeExpression && !Qie(ci(g.typeExpression), n) && qe(g.typeExpression.type, _.The_type_of_a_function_declaration_must_match_the_function_s_signature); } function p() { fp(n) || (Sl(u) && !nP(n) && C0(n, Ie), l & 1 && s_(u) && hs(wp(n))); } } function lv(n) { i(a); function a() { const l = Zn(n); let u = vn.get(l.path); u || (u = [], vn.set(l.path, u)), u.push(n); } } function qke(n, a) { for (const l of n) switch (l.kind) { case 260: case 228: wit(l, a), Jae(l, a); break; case 308: case 264: case 238: case 266: case 245: case 246: case 247: Xke(l, a); break; case 173: case 215: case 259: case 216: case 171: case 174: case 175: l.body && Xke(l, a), Jae(l, a); break; case 170: case 176: case 177: case 181: case 182: case 262: case 261: Jae(l, a); break; case 192: Dit(l, a); break; default: D.assertNever(l, "Node should not have been registered for unused identifiers check"); } } function Jke(n, a, l) { const u = La(n) || n, p = eC(n) ? _._0_is_declared_but_never_used : _._0_is_declared_but_its_value_is_never_read; l(n, 0, Dr(u, p, a)); } function iP(n) { return Ve(n) && Or(n).charCodeAt(0) === 95; } function wit(n, a) { for (const l of n.members) switch (l.kind) { case 171: case 169: case 174: case 175: if (l.kind === 175 && l.symbol.flags & 32768) break; const u = Lr(l); !u.isReferenced && (Nd(l, 8) || du(l) && ki(l.name)) && !(l.flags & 16777216) && a(l, 0, Dr(l.name, _._0_is_declared_but_its_value_is_never_read, S(u))); break; case 173: for (const p of l.parameters) !p.symbol.isReferenced && Jr(p, 8) && a(p, 0, Dr(p.name, _.Property_0_is_declared_but_its_value_is_never_read, Nl(p.symbol))); break; case 178: case 237: case 172: break; default: D.fail("Unexpected class member"); } } function Dit(n, a) { const { typeParameter: l } = n; Kae(l) && a(n, 1, Dr(n, _._0_is_declared_but_its_value_is_never_read, Or(l.name))); } function Jae(n, a) { const l = Lr(n).declarations; if (!l || Ho(l) !== n) return; const u = bv(n), p = /* @__PURE__ */ new Set(); for (const g of u) { if (!Kae(g)) continue; const x = Or(g.name), { parent: R } = g; if (R.kind !== 192 && R.typeParameters.every(Kae)) { if (Yb(p, R)) { const M = Zn(R), J = mp(R) ? tq(R) : nq(M, R.typeParameters), $ = R.typeParameters.length === 1, he = $ ? _._0_is_declared_but_its_value_is_never_read : _.All_type_parameters_are_unused, De = $ ? x : void 0; a(g, 1, Lc(M, J.pos, J.end - J.pos, he, De)); } } else a(g, 1, Dr(g, _._0_is_declared_but_its_value_is_never_read, x)); } } function Kae(n) { return !(ns(n.symbol).isReferenced & 262144) && !iP(n.name); } function aP(n, a, l, u) { const p = String(u(a)), g = n.get(p); g ? g[1].push(l) : n.set(p, [a, [l]]); } function Kke(n) { return ri(Rm(n), Ma); } function Rit(n) { return us(n) ? Bm(n.parent) ? !!(n.propertyName && iP(n.name)) : iP(n.name) : ku(n) || (Wi(n) && bA(n.parent.parent) || Yke(n)) && iP(n.name); } function Xke(n, a) { const l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(); n.locals.forEach((g) => { if (!(g.flags & 262144 ? !(g.flags & 3 && !(g.isReferenced & 3)) : g.isReferenced || g.exportSymbol) && g.declarations) { for (const x of g.declarations) if (!Rit(x)) if (Yke(x)) aP(l, Oit(x), x, ds); else if (us(x) && Bm(x.parent)) { const R = Ho(x.parent.elements); (x === R || !Ho(x.parent.elements).dotDotDotToken) && aP(u, x.parent, x, ds); } else if (Wi(x)) aP(p, x.parent, x, ds); else { const R = g.valueDeclaration && Kke(g.valueDeclaration), M = g.valueDeclaration && La(g.valueDeclaration); R && M ? !Yd(R, R.parent) && !E1(R) && !iP(M) && (us(x) && dC(x.parent) ? aP(u, x.parent, x, ds) : a(R, 1, Dr(M, _._0_is_declared_but_its_value_is_never_read, Nl(g)))) : Jke(x, Nl(g), a); } } }), l.forEach(([g, x]) => { const R = g.parent; if ((g.name ? 1 : 0) + (g.namedBindings ? g.namedBindings.kind === 271 ? 1 : g.namedBindings.elements.length : 0) === x.length) a(R, 0, x.length === 1 ? Dr(R, _._0_is_declared_but_its_value_is_never_read, Or(ss(x).name)) : Dr(R, _.All_imports_in_import_declaration_are_unused)); else for (const J of x) Jke(J, Or(J.name), a); }), u.forEach(([g, x]) => { const R = Kke(g.parent) ? 1 : 0; if (g.elements.length === x.length) x.length === 1 && g.parent.kind === 257 && g.parent.parent.kind === 258 ? aP(p, g.parent.parent, g.parent, ds) : a(g, R, x.length === 1 ? Dr(g, _._0_is_declared_but_its_value_is_never_read, oP(ss(x).name)) : Dr(g, _.All_destructured_elements_are_unused)); else for (const M of x) a(M, R, Dr(M, _._0_is_declared_but_its_value_is_never_read, oP(M.name))); }), p.forEach(([g, x]) => { if (g.declarations.length === x.length) a(g, 0, x.length === 1 ? Dr(ss(x).name, _._0_is_declared_but_its_value_is_never_read, oP(ss(x).name)) : Dr(g.parent.kind === 240 ? g.parent : g, _.All_variables_are_unused)); else for (const R of x) a(R, 0, Dr(R, _._0_is_declared_but_its_value_is_never_read, oP(R.name))); }); } function Nit() { var n; for (const a of eS) if (!((n = Lr(a)) != null && n.isReferenced)) { const l = pA(a); D.assert(dT(l), "Only parameter declaration should be checked here"); const u = Dr(a.name, _._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation, Is(a.name), Is(a.propertyName)); l.type || qo(u, Lc(Zn(l), l.end, 1, _.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here, Is(a.propertyName))), Xo.add(u); } } function oP(n) { switch (n.kind) { case 79: return Or(n); case 204: case 203: return oP(ro(ss(n.elements), us).name); default: return D.assertNever(n); } } function Yke(n) { return n.kind === 270 || n.kind === 273 || n.kind === 271; } function Oit(n) { return n.kind === 270 ? n : n.kind === 271 ? n.parent : n.parent.parent; } function TV(n) { if (n.kind === 238 && Kh(n), iW(n)) { const a = Hi; Ye(n.statements, po), Hi = a; } else Ye(n.statements, po); n.locals && lv(n); } function Pit(n) { P >= 2 || !mW(n) || n.flags & 16777216 || Sl(n.body) || Ye(n.parameters, (a) => { a.name && !Ja(a.name) && a.name.escapedText === At.escapedName && Zv("noEmit", a, _.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters); }); } function ND(n, a, l) { if ((a == null ? void 0 : a.escapedText) !== l || n.kind === 169 || n.kind === 168 || n.kind === 171 || n.kind === 170 || n.kind === 174 || n.kind === 175 || n.kind === 299 || n.flags & 16777216 || (Gm(n) || tu(n) || Td(n)) && u1(n)) return !1; const u = Rm(n); return !(Ma(u) && Sl(u.parent.body)); } function Mit(n) { nr(n, (a) => K2(a) & 4 ? (n.kind !== 79 ? qe(La(n), _.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference) : qe(n, _.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference), !0) : !1); } function Fit(n) { nr(n, (a) => K2(a) & 8 ? (n.kind !== 79 ? qe(La(n), _.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference) : qe(n, _.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference), !0) : !1); } function Bit(n, a) { if (ue >= 5 && !(ue >= 100 && Zn(n).impliedNodeFormat === 1) || !a || !ND(n, a, "require") && !ND(n, a, "exports") || Hl(n) && _g(n) !== 1) return; const l = bE(n); l.kind === 308 && ef(l) && Zv("noEmit", a, _.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module, Is(a), Is(a)); } function Git(n, a) { if (!a || P >= 4 || !ND(n, a, "Promise") || Hl(n) && _g(n) !== 1) return; const l = bE(n); l.kind === 308 && ef(l) && l.flags & 2048 && Zv("noEmit", a, _.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions, Is(a), Is(a)); } function Uit(n, a) { P <= 8 && (ND(n, a, "WeakMap") || ND(n, a, "WeakSet")) && lb.push(n); } function Vit(n) { const a = Dm(n); K2(a) & 4194304 && (D.assert(du(n) && Ve(n.name) && typeof n.name.escapedText == "string", "The target of a WeakMap/WeakSet collision check should be an identifier"), Zv("noEmit", n, _.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, n.name.escapedText)); } function jit(n, a) { a && P >= 2 && P <= 8 && ND(n, a, "Reflect") && Qv.push(n); } function Hit(n) { let a = !1; if (Nu(n)) { for (const l of n.members) if (K2(l) & 8388608) { a = !0; break; } } else if (Ms(n)) K2(n) & 8388608 && (a = !0); else { const l = Dm(n); l && K2(l) & 8388608 && (a = !0); } a && (D.assert(du(n) && Ve(n.name), "The target of a Reflect collision check should be an identifier"), Zv("noEmit", n, _.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers, Is(n.name), "Reflect")); } function ML(n, a) { a && (Bit(n, a), Git(n, a), Uit(n, a), jit(n, a), li(n) ? (FL(a, _.Class_name_cannot_be_0), n.flags & 16777216 || gat(a)) : Y0(n) && FL(a, _.Enum_name_cannot_be_0)); } function Wit(n) { if (up(n) & 3 || dT(n) || n.kind === 257 && !n.initializer) return; const a = Lr(n); if (a.flags & 1) { if (!Ve(n.name)) return D.fail(); const l = dl(n, n.name.escapedText, 3, void 0, void 0, !1); if (l && l !== a && l.flags & 2 && tV(l) & 3) { const u = j0(l.valueDeclaration, 258), p = u.parent.kind === 240 && u.parent.parent ? u.parent.parent : void 0; if (!(p && (p.kind === 238 && qa(p.parent) || p.kind === 265 || p.kind === 264 || p.kind === 308))) { const x = S(l); qe(n, _.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, x, x); } } } } function OD(n) { return n === gt ? Ie : n === Nn ? Dt : n; } function sP(n) { var a; if (rP(n), us(n) || po(n.type), !n.name) return; if (n.name.kind === 164 && (Kg(n.name), eT(n) && n.initializer && Kl(n.initializer)), us(n)) { if (n.propertyName && Ve(n.name) && dT(n) && Sl(bf(n).body)) { eS.push(n); return; } Bm(n.parent) && n.dotDotDotToken && P < 5 && dc(n, 4), n.propertyName && n.propertyName.kind === 164 && Kg(n.propertyName); const p = n.parent.parent, g = n.dotDotDotToken ? 64 : 0, x = T2(p, g), R = n.propertyName || n.name; if (x && !Ja(R)) { const M = Hg(R); if (Vh(M)) { const J = lm(M), $ = so(x, J); $ && (W4($, void 0, !1), lae(n, !!p.initializer && p.initializer.kind === 106, !1, x, $)); } } } if (Ja(n.name) && (n.name.kind === 204 && P < 2 && Y.downlevelIteration && dc(n, 512), Ye(n.name.elements, po)), Ma(n) && n.initializer && Sl(bf(n).body)) { qe(n, _.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); return; } if (Ja(n.name)) { const p = eT(n) && n.initializer && n.parent.parent.kind !== 246, g = !kt(n.name.elements, kP(Ic)); if (p || g) { const x = vl(n); if (p) { const R = Kl(n.initializer); H && g ? bIe(R, n) : ov(R, vl(n), n, n.initializer); } g && (dC(n.name) ? cv(65, x, je, n) : H && bIe(x, n)); } return; } const l = Lr(n); if (l.flags & 2097152 && (g1(n) || Qce(n))) { LV(n); return; } const u = OD(ar(l)); if (n === l.valueDeclaration) { const p = eT(n) && iN(n); p && !(dr(n) && As(p) && (p.properties.length === 0 || W0(n.name)) && ((a = l.exports) != null && a.size)) && n.parent.parent.kind !== 246 && ov(Kl(p), u, n, p, void 0), l.declarations && l.declarations.length > 1 && kt(l.declarations, (g) => g !== n && kA(g) && !Qke(g, n)) && qe(n.name, _.All_declarations_of_0_must_have_identical_modifiers, Is(n.name)); } else { const p = OD(vl(n)); !Zo(u) && !Zo(p) && !Hh(u, p) && !(l.flags & 67108864) && $ke(l.valueDeclaration, u, n, p), eT(n) && n.initializer && ov(Kl(n.initializer), p, n, n.initializer, void 0), l.valueDeclaration && !Qke(n, l.valueDeclaration) && qe(n.name, _.All_declarations_of_0_must_have_identical_modifiers, Is(n.name)); } n.kind !== 169 && n.kind !== 168 && (ID(n), (n.kind === 257 || n.kind === 205) && Wit(n), ML(n, n.name)); } function $ke(n, a, l, u) { const p = La(l), g = l.kind === 169 || l.kind === 168 ? _.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : _.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2, x = Is(p), R = qe(p, g, x, Le(a), Le(u)); n && qo(R, Dr(n, _._0_was_also_declared_here, x)); } function Qke(n, a) { if (n.kind === 166 && a.kind === 257 || n.kind === 257 && a.kind === 166) return !0; if ($S(n) !== $S(a)) return !1; const l = 888; return rx(n, l) === rx(a, l); } function Xae(n) { var a, l; (a = hi) == null || a.push(hi.Phase.Check, "checkVariableDeclaration", { kind: n.kind, pos: n.pos, end: n.end, path: n.tracingPath }), xst(n), sP(n), (l = hi) == null || l.pop(); } function zit(n) { return Est(n), sP(n); } function qit(n) { !ah(n) && !yoe(n.declarationList) && Ast(n), Ye(n.declarationList.declarations, po); } function Jit(n) { Kh(n), ma(n.expression); } function Kit(n) { Kh(n); const a = q2(n.expression); Yae(n.expression, a, n.thenStatement), po(n.thenStatement), n.thenStatement.kind === 239 && qe(n.thenStatement, _.The_body_of_an_if_statement_cannot_be_the_empty_statement), po(n.elseStatement); } function Yae(n, a, l) { if (!H) return; u(n, l); function u(g, x) { for (g = Us(g), p(g, x); vr(g) && (g.operatorToken.kind === 56 || g.operatorToken.kind === 60); ) g = Us(g.left), p(g, x); } function p(g, x) { const R = ON(g) ? Us(g.right) : g; if (ph(R)) return; if (ON(R)) { u(R, x); return; } const M = R === g ? a : q2(R), J = Pr(R) && Tke(R.expression); if (!(xu(M) & 4194304) || J) return; const $ = Ha(M, 0), he = !!kD(M); if ($.length === 0 && !he) return; const De = Ve(R) ? R : Pr(R) ? R.name : void 0, ke = De && A_(De); if (!ke && !he) return; ke && vr(g.parent) && Yit(g.parent, ke) || ke && x && Xit(g, x, De, ke) || (he ? e0(R, !0, _.This_condition_will_always_return_true_since_this_0_is_always_defined, Ar(M)) : qe(R, _.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead)); } } function Xit(n, a, l, u) { return !!Oa(a, function p(g) { if (Ve(g)) { const x = A_(g); if (x && x === u) { if (Ve(n) || Ve(l) && vr(l.parent)) return !0; let R = l.parent, M = g.parent; for (; R && M; ) { if (Ve(R) && Ve(M) || R.kind === 108 && M.kind === 108) return A_(R) === A_(M); if (Pr(R) && Pr(M)) { if (A_(R.name) !== A_(M.name)) return !1; M = M.expression, R = R.expression; } else if (eo(R) && eo(M)) M = M.expression, R = R.expression; else return !1; } } } return Oa(g, p); }); } function Yit(n, a) { for (; vr(n) && n.operatorToken.kind === 55; ) { if (Oa(n.right, function u(p) { if (Ve(p)) { const g = A_(p); if (g && g === a) return !0; } return Oa(p, u); })) return !0; n = n.parent; } return !1; } function $it(n) { Kh(n), po(n.statement), q2(n.expression); } function Qit(n) { Kh(n), q2(n.expression), po(n.statement); } function Zke(n, a) { return n.flags & 16384 && qe(a, _.An_expression_of_type_void_cannot_be_tested_for_truthiness), n; } function q2(n, a) { return Zke(ma(n, a), n); } function Zit(n) { Kh(n) || n.initializer && n.initializer.kind === 258 && yoe(n.initializer), n.initializer && (n.initializer.kind === 258 ? Ye(n.initializer.declarations, Xae) : ma(n.initializer)), n.condition && q2(n.condition), n.incrementor && ma(n.incrementor), po(n.statement), n.locals && lv(n); } function eat(n) { Ywe(n); const a = HM(n); if (n.awaitModifier ? a && Cl(a) ? bn(n.awaitModifier, _.For_await_loops_cannot_be_used_inside_a_class_static_block) : (Mc(a) & 6) === 2 && P < 99 && dc(n, 16384) : Y.downlevelIteration && P < 2 && dc(n, 256), n.initializer.kind === 258) ewe(n); else { const l = n.initializer, u = lP(n); if (l.kind === 206 || l.kind === 207) GE(l, u || xe); else { const p = ma(l); AD(l, _.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access, _.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access), u && ov(u, p, l, n.expression); } } po(n.statement), n.locals && lv(n); } function tat(n) { Ywe(n); const a = cae(ma(n.expression)); if (n.initializer.kind === 258) { const l = n.initializer.declarations[0]; l && Ja(l.name) && qe(l.name, _.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern), ewe(n); } else { const l = n.initializer, u = ma(l); l.kind === 206 || l.kind === 207 ? qe(l, _.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern) : Eo(U$e(a), u) ? AD(l, _.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access, _.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access) : qe(l, _.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); } (a === ht || !Rc(a, 126091264)) && qe(n.expression, _.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, Le(a)), po(n.statement), n.locals && lv(n); } function ewe(n) { const a = n.initializer; if (a.declarations.length >= 1) { const l = a.declarations[0]; Xae(l); } } function lP(n) { const a = n.awaitModifier ? 15 : 13; return cv(a, IL(n.expression), je, n.expression); } function cv(n, a, l, u) { return Es(a) ? a : $ae(n, a, l, u, !0) || Ie; } function $ae(n, a, l, u, p) { const g = (n & 2) !== 0; if (a === ht) { noe(u, a, g); return; } const x = P >= 2, R = !x && Y.downlevelIteration, M = Y.noUncheckedIndexedAccess && !!(n & 128); if (x || R || g) { const ft = xV(a, n, x ? u : void 0); if (p && ft) { const Bt = n & 8 ? _.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0 : n & 32 ? _.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0 : n & 64 ? _.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0 : n & 16 ? _.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; Bt && Qu(l, ft.nextType, u, Bt); } if (ft || x) return M ? mD(ft && ft.yieldType) : ft && ft.yieldType; } let J = a, $ = !1, he = !1; if (n & 4) { if (J.flags & 1048576) { const ft = a.types, Bt = yn(ft, (Mn) => !(Mn.flags & 402653316)); Bt !== ft && (J = Xr(Bt, 2)); } else J.flags & 402653316 && (J = ht); if (he = J !== a, he && (P < 1 && u && (qe(u, _.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher), $ = !0), J.flags & 131072)) return M ? mD(ce) : ce; } if (!A0(J)) { if (u && !$) { const ft = !!(n & 4) && !he, [Bt, Mn] = ke(ft, R); e0(u, Mn && !!kD(J), Bt, Le(J)); } return he ? M ? mD(ce) : ce : void 0; } const De = Vg(J, pt); if (he && De) return De.flags & 402653316 && !Y.noUncheckedIndexedAccess ? ce : Xr(M ? [De, ce, je] : [De, ce], 2); return n & 128 ? mD(De) : De; function ke(ft, Bt) { var Mn; return Bt ? ft ? [_.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, !0] : [_.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, !0] : Qae(n, 0, a, void 0) ? [_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, !1] : nat((Mn = a.symbol) == null ? void 0 : Mn.escapedName) ? [_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, !0] : ft ? [_.Type_0_is_not_an_array_type_or_a_string_type, !0] : [_.Type_0_is_not_an_array_type, !0]; } } function nat(n) { switch (n) { 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 Qae(n, a, l, u) { if (Es(l)) return; const p = xV(l, n, u); return p && p[Eme(a)]; } function Yg(n = ht, a = ht, l = me) { if (n.flags & 67359327 && a.flags & 180227 && l.flags & 180227) { const u = e_([n, a, l]); let p = de.get(u); return p || (p = { yieldType: n, returnType: a, nextType: l }, de.set(u, p)), p; } return { yieldType: n, returnType: a, nextType: l }; } function twe(n) { let a, l, u; for (const p of n) if (!(p === void 0 || p === It)) { if (p === jt) return jt; a = Fn(a, p.yieldType), l = Fn(l, p.returnType), u = Fn(u, p.nextType); } return a || l || u ? Yg(a && Xr(a), l && Xr(l), u && Lo(u)) : It; } function SV(n, a) { return n[a]; } function ih(n, a, l) { return n[a] = l; } function xV(n, a, l) { var u, p; if (Es(n)) return jt; if (!(n.flags & 1048576)) { const J = l ? { errors: void 0 } : void 0, $ = nwe(n, a, l, J); if ($ === It) { if (l) { const he = noe(l, n, !!(a & 2)); J != null && J.errors && qo(he, ...J.errors); } return; } else if ((u = J == null ? void 0 : J.errors) != null && u.length) for (const he of J.errors) Xo.add(he); return $; } const g = a & 2 ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable", x = SV(n, g); if (x) return x === It ? void 0 : x; let R; for (const J of n.types) { const $ = l ? { errors: void 0 } : void 0, he = nwe(J, a, l, $); if (he === It) { if (l) { const De = noe(l, n, !!(a & 2)); $ != null && $.errors && qo(De, ...$.errors); } ih(n, g, It); return; } else if ((p = $ == null ? void 0 : $.errors) != null && p.length) for (const De of $.errors) Xo.add(De); R = Fn(R, he); } const M = R ? twe(R) : It; return ih(n, g, M), M === It ? void 0 : M; } function Zae(n, a) { if (n === It) return It; if (n === jt) return jt; const { yieldType: l, returnType: u, nextType: p } = n; return a && Ore(!0), Yg(UE(l, a) || Ie, UE(u, a) || Ie, p); } function nwe(n, a, l, u) { if (Es(n)) return jt; let p = !1; if (a & 2) { const g = eoe(n, St) || iwe(n, St); if (g) if (g === It && l) p = !0; else return a & 8 ? Zae(g, l) : g; } if (a & 1) { let g = eoe(n, _n) || iwe(n, _n); if (g) if (g === It && l) p = !0; else if (a & 2) { if (g !== It) return g = Zae(g, l), p ? g : ih(n, "iterationTypesOfAsyncIterable", g); } else return g; } if (a & 2) { const g = toe(n, St, l, u, p); if (g !== It) return g; } if (a & 1) { let g = toe(n, _n, l, u, p); if (g !== It) return a & 2 ? (g = Zae(g, l), p ? g : ih(n, "iterationTypesOfAsyncIterable", g)) : g; } return It; } function eoe(n, a) { return SV(n, a.iterableCacheKey); } function rwe(n, a) { const l = eoe(n, a) || toe(n, a, void 0, void 0, !1); return l === It ? at : l; } function iwe(n, a) { let l; if (g0(n, l = a.getGlobalIterableType(!1)) || g0(n, l = a.getGlobalIterableIteratorType(!1))) { const [u] = _s(n), { returnType: p, nextType: g } = rwe(l, a); return ih(n, a.iterableCacheKey, Yg(a.resolveIterationType(u, void 0) || u, a.resolveIterationType(p, void 0) || p, g)); } if (g0(n, a.getGlobalGeneratorType(!1))) { const [u, p, g] = _s(n); return ih(n, a.iterableCacheKey, Yg(a.resolveIterationType(u, void 0) || u, a.resolveIterationType(p, void 0) || p, g)); } } function rat(n) { const a = qAe(!1), l = a && cc(ar(a), al(n)); return l && Vh(l) ? lm(l) : `__@${n}`; } function toe(n, a, l, u, p) { var g; const x = so(n, rat(a.iteratorSymbolName)), R = x && !(x.flags & 16777216) ? ar(x) : void 0; if (Es(R)) return p ? jt : ih(n, a.iterableCacheKey, jt); const M = R ? Ha(R, 0) : void 0; if (!kt(M)) return p ? It : ih(n, a.iterableCacheKey, It); const J = Lo(rn(M, hs)), $ = (g = awe(J, a, l, u, p)) != null ? g : It; return p ? $ : ih(n, a.iterableCacheKey, $); } function noe(n, a, l) { const u = l ? _.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator : _.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator, p = !!kD(a) || !l && EO(n.parent) && n.parent.expression === n && uU(!1) !== So && Eo(a, uU(!1)); return e0(n, p, u, Le(a)); } function iat(n, a, l, u) { return awe(n, a, l, u, !1); } function awe(n, a, l, u, p) { if (Es(n)) return jt; let g = owe(n, a) || aat(n, a); return g === It && l && (g = void 0, p = !0), g ?? (g = lwe(n, a, l, u, p)), g === It ? void 0 : g; } function owe(n, a) { return SV(n, a.iteratorCacheKey); } function aat(n, a) { const l = a.getGlobalIterableIteratorType(!1); if (g0(n, l)) { const [u] = _s(n), p = owe(l, a) || lwe(l, a, void 0, void 0, !1), { returnType: g, nextType: x } = p === It ? at : p; return ih(n, a.iteratorCacheKey, Yg(u, g, x)); } if (g0(n, a.getGlobalIteratorType(!1)) || g0(n, a.getGlobalGeneratorType(!1))) { const [u, p, g] = _s(n); return ih(n, a.iteratorCacheKey, Yg(u, p, g)); } } function swe(n, a) { const l = cc(n, "done") || rt; return Eo(a === 0 ? rt : Oe, l); } function oat(n) { return swe(n, 0); } function sat(n) { return swe(n, 1); } function lat(n) { if (Es(n)) return jt; const a = SV(n, "iterationTypesOfIteratorResult"); if (a) return a; if (g0(n, ZYe(!1))) { const x = _s(n)[0]; return ih(n, "iterationTypesOfIteratorResult", Yg(x, void 0, void 0)); } if (g0(n, e$e(!1))) { const x = _s(n)[0]; return ih(n, "iterationTypesOfIteratorResult", Yg(void 0, x, void 0)); } const l = uc(n, oat), u = l !== ht ? cc(l, "value") : void 0, p = uc(n, sat), g = p !== ht ? cc(p, "value") : void 0; return !u && !g ? ih(n, "iterationTypesOfIteratorResult", It) : ih(n, "iterationTypesOfIteratorResult", Yg(u, g || Rt, void 0)); } function roe(n, a, l, u, p) { var g, x, R, M, J, $; const he = so(n, l); if (!he && l !== "next") return; const De = he && !(l === "next" && he.flags & 16777216) ? l === "next" ? ar(he) : n_(ar(he), 2097152) : void 0; if (Es(De)) return l === "next" ? jt : Q; const ke = De ? Ha(De, 0) : nt; if (ke.length === 0) { if (u) { const an = l === "next" ? a.mustHaveANextMethodDiagnostic : a.mustBeAMethodDiagnostic; p ? ((g = p.errors) != null || (p.errors = []), p.errors.push(Dr(u, an, l))) : qe(u, an, l); } return l === "next" ? It : void 0; } if (De != null && De.symbol && ke.length === 1) { const an = a.getGlobalGeneratorType(!1), Gn = a.getGlobalIteratorType(!1), Jn = ((R = (x = an.symbol) == null ? void 0 : x.members) == null ? void 0 : R.get(l)) === De.symbol, Yr = !Jn && ((J = (M = Gn.symbol) == null ? void 0 : M.members) == null ? void 0 : J.get(l)) === De.symbol; if (Jn || Yr) { const ei = Jn ? an : Gn, { mapper: fa } = De; return Yg(S0(ei.typeParameters[0], fa), S0(ei.typeParameters[1], fa), l === "next" ? S0(ei.typeParameters[2], fa) : void 0); } } let ft, Bt; for (const an of ke) l !== "throw" && kt(an.parameters) && (ft = Fn(ft, sp(an, 0))), Bt = Fn(Bt, hs(an)); let Mn, An; if (l !== "throw") { const an = ft ? Xr(ft) : me; if (l === "next") An = an; else if (l === "return") { const Gn = a.resolveIterationType(an, u) || Ie; Mn = Fn(Mn, Gn); } } let Xn; const mn = Bt ? Lo(Bt) : ht, xn = a.resolveIterationType(mn, u) || Ie, gr = lat(xn); return gr === It ? (u && (p ? (($ = p.errors) != null || (p.errors = []), p.errors.push(Dr(u, a.mustHaveAValueDiagnostic, l))) : qe(u, a.mustHaveAValueDiagnostic, l)), Xn = Ie, Mn = Fn(Mn, Ie)) : (Xn = gr.yieldType, Mn = Fn(Mn, gr.returnType)), Yg(Xn, Xr(Mn), An); } function lwe(n, a, l, u, p) { const g = twe([ roe(n, a, "next", l, u), roe(n, a, "return", l, u), roe(n, a, "throw", l, u) ]); return p ? g : ih(n, a.iteratorCacheKey, g); } function jb(n, a, l) { if (Es(a)) return; const u = cwe(a, l); return u && u[Eme(n)]; } function cwe(n, a) { if (Es(n)) return jt; const l = a ? 2 : 1, u = a ? St : _n; return xV(n, l, void 0) || iat(n, u, void 0, void 0); } function cat(n) { Kh(n) || bst(n); } function AV(n, a) { const l = !!(a & 1), u = !!(a & 2); if (l) { const p = jb(1, n, u); return p ? u ? Xg(OL(p)) : p : xe; } return u ? Xg(n) || xe : n; } function uwe(n, a) { const l = AV(a, Mc(n)); return !!l && fl(l, 16387); } function uat(n) { var a; if (Kh(n)) return; const l = HM(n); if (l && Cl(l)) { Nc(n, _.A_return_statement_cannot_be_used_inside_a_class_static_block); return; } if (!l) { Nc(n, _.A_return_statement_can_only_be_used_within_a_function_body); return; } const u = wp(l), p = hs(u), g = Mc(l); if (H || n.expression || p.flags & 131072) { const x = n.expression ? Kl(n.expression) : je; if (l.kind === 175) n.expression && qe(n, _.Setters_cannot_return_a_value); else if (l.kind === 173) n.expression && !ov(x, p, n, n.expression) && qe(n, _.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); else if (w2(l)) { const R = (a = AV(p, g)) != null ? a : p, M = g & 2 ? DD(x, !1, n, _.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member) : x; R && ov(M, R, n, n.expression); } } else l.kind !== 173 && Y.noImplicitReturns && !uwe(l, p) && qe(n, _.Not_all_code_paths_return_a_value); } function dat(n) { Kh(n) || n.flags & 32768 && Nc(n, _.with_statements_are_not_allowed_in_an_async_function_block), ma(n.expression); const a = Zn(n); if (!Hb(a)) { const l = _y(a, n.pos).start, u = n.statement.pos; Wb(a, l, u - l, _.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any); } } function fat(n) { Kh(n); let a, l = !1; const u = ma(n.expression); Ye(n.caseBlock.clauses, (p) => { p.kind === 293 && !l && (a === void 0 ? a = p : (bn(p, _.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement), l = !0)), p.kind === 292 && i(g(p)), Ye(p.statements, po), Y.noFallthroughCasesInSwitch && p.fallthroughFlowNode && P4(p.fallthroughFlowNode) && qe(p, _.Fallthrough_case_in_switch); function g(x) { return () => { const R = ma(x.expression); Fae(u, R) || HCe(R, u, x.expression, void 0); }; } }), n.caseBlock.locals && lv(n.caseBlock); } function _at(n) { Kh(n) || nr(n.parent, (a) => qa(a) ? "quit" : a.kind === 253 && a.label.escapedText === n.label.escapedText ? (bn(n.label, _.Duplicate_label_0, bc(n.label)), !0) : !1), po(n.statement); } function pat(n) { Kh(n) || Ve(n.expression) && !n.expression.escapedText && Mst(n, _.Line_break_not_permitted_here), n.expression && ma(n.expression); } function mat(n) { Kh(n), TV(n.tryBlock); const a = n.catchClause; if (a) { if (a.variableDeclaration) { const l = a.variableDeclaration; sP(l); const u = Jc(l); if (u) { const p = ci(u); p && !(p.flags & 3) && Nc(u, _.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified); } else if (l.initializer) Nc(l.initializer, _.Catch_clause_variable_cannot_have_an_initializer); else { const p = a.block.locals; p && EI(a.locals, (g) => { const x = p.get(g); x != null && x.valueDeclaration && x.flags & 2 && bn(x.valueDeclaration, _.Cannot_redeclare_identifier_0_in_catch_clause, g); }); } } TV(a.block); } n.finallyBlock && TV(n.finallyBlock); } function CV(n, a, l) { const u = Eu(n); if (u.length === 0) return; for (const g of Zy(n)) l && g.flags & 4194304 || dwe(n, g, hL(g, 8576, !0), h0(g)); const p = a.valueDeclaration; if (p && li(p)) { for (const g of p.members) if (!za(g) && !L2(g)) { const x = Lr(g); dwe(n, x, Au(g.name.expression), h0(x)); } } if (u.length > 1) for (const g of u) hat(n, g); } function dwe(n, a, l, u) { const p = a.valueDeclaration, g = La(p); if (g && ki(g)) return; const x = yre(n, l), R = Qr(n) & 2 ? Tl(n.symbol, 261) : void 0, M = p && p.kind === 223 || g && g.kind === 164 ? p : void 0, J = fd(a) === n.symbol ? p : void 0; for (const $ of x) { const he = $.declaration && fd(Lr($.declaration)) === n.symbol ? $.declaration : void 0, De = J || he || (R && !kt(No(n), (ke) => !!Ib(ke, a.escapedName) && !!Vg(ke, $.keyType)) ? R : void 0); if (De && !Eo(u, $.type)) { const ke = Z1(De, _.Property_0_of_type_1_is_not_assignable_to_2_index_type_3, S(a), Le(u), Le($.keyType), Le($.type)); M && De !== M && qo(ke, Dr(M, _._0_is_declared_here, S(a))), Xo.add(ke); } } } function hat(n, a) { const l = a.declaration, u = yre(n, a.keyType), p = Qr(n) & 2 ? Tl(n.symbol, 261) : void 0, g = l && fd(Lr(l)) === n.symbol ? l : void 0; for (const x of u) { if (x === a) continue; const R = x.declaration && fd(Lr(x.declaration)) === n.symbol ? x.declaration : void 0, M = g || R || (p && !kt(No(n), (J) => !!nh(J, a.keyType) && !!Vg(J, x.keyType)) ? p : void 0); M && !Eo(a.type, x.type) && qe(M, _._0_index_type_1_is_not_assignable_to_2_index_type_3, Le(a.keyType), Le(a.type), Le(x.keyType), Le(x.type)); } } function FL(n, a) { switch (n.escapedText) { case "any": case "unknown": case "never": case "number": case "bigint": case "boolean": case "string": case "symbol": case "void": case "object": qe(n, a, n.escapedText); } } function gat(n) { P >= 1 && n.escapedText === "Object" && (ue < 5 || Zn(n).impliedNodeFormat === 1) && qe(n, _.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, KP[ue]); } function yat(n) { const a = yn(l1(n), Qp); if (!Ne(a)) return; const l = dr(n), u = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set(); if (Ye(n.parameters, ({ name: x }, R) => { Ve(x) && u.add(x.escapedText), Ja(x) && p.add(R); }), Ere(n)) { const x = a.length - 1, R = a[x]; l && R && Ve(R.name) && R.typeExpression && R.typeExpression.type && !u.has(R.name.escapedText) && !p.has(x) && !Ff(ci(R.typeExpression.type)) && qe(R.name, _.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, Or(R.name)); } else Ye(a, ({ name: x, isNameFirst: R }, M) => { p.has(M) || Ve(x) && u.has(x.escapedText) || (Ed(x) ? l && qe(x, _.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, vf(x), vf(x.left)) : R || tm(l, x, _.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name, Or(x))); }); } function cP(n) { let a = !1; if (n) for (let u = 0; u < n.length; u++) { const p = n[u]; Ike(p), i(l(p, u)); } function l(u, p) { return () => { u.default ? (a = !0, vat(u.default, n, p)) : a && qe(u, _.Required_type_parameters_may_not_follow_optional_type_parameters); for (let g = 0; g < p; g++) n[g].symbol === u.symbol && qe(u.name, _.Duplicate_identifier_0, Is(u.name)); }; } } function vat(n, a, l) { u(n); function u(p) { if (p.kind === 180) { const g = wre(p); if (g.flags & 262144) for (let x = l; x < a.length; x++) g.symbol === Lr(a[x]) && qe(p, _.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters); } Oa(p, u); } } function fwe(n) { if (n.declarations && n.declarations.length === 1) return; const a = Ui(n); if (!a.typeParametersChecked) { a.typeParametersChecked = !0; const l = Lat(n); if (!l || l.length <= 1) return; const u = Bs(n); if (!_we(l, u.localTypeParameters, bv)) { const p = S(n); for (const g of l) qe(g.name, _.All_declarations_of_0_must_have_identical_type_parameters, p); } } } function _we(n, a, l) { const u = Ne(a), p = um(a); for (const g of n) { const x = l(g), R = x.length; if (R < p || R > u) return !1; for (let M = 0; M < R; M++) { const J = x[M], $ = a[M]; if (J.name.escapedText !== $.symbol.escapedName) return !1; const he = mA(J), De = he && ci(he), ke = bu($); if (De && ke && !Hh(De, ke)) return !1; const ft = J.default && ci(J.default), Bt = AE($); if (ft && Bt && !Hh(ft, Bt)) return !1; } } return !0; } function pwe(n) { var a; const l = !ne && P < 99 && h1(!1, n), u = P <= 9, p = !ge || P < 9; if (l || u) for (const g of n.members) { if (l && WW(!1, g, n)) return (a = Wc(yv(n))) != null ? a : n; if (u) { if (Cl(g)) return g; if (za(g) && (zu(g) || p && m8(g))) return g; } } } function bat(n) { var a; if (n.name) return; const l = qfe(n); if (!oz(l)) return; const u = !ne && P < 99; let p; u && h1(!1, n) ? p = (a = Wc(yv(n))) != null ? a : n : p = pwe(n), p && (dc(p, 8388608), (Uc(l) || Za(l) || us(l)) && Ss(l.name) && dc(p, 16777216)); } function Eat(n) { return mwe(n), GL(n), bat(n), ar(Lr(n)); } function Tat(n) { Ye(n.members, po), lv(n); } function Sat(n) { const a = un(n.modifiers, Du); ne && a && kt(n.members, (l) => _c(l) && zu(l)) && bn(a, _.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator), !n.name && !Jr(n, 1024) && Nc(n, _.A_class_declaration_without_the_default_modifier_must_have_a_name), mwe(n), Ye(n.members, po), lv(n); } function mwe(n) { ast(n), rP(n), ML(n, n.name), cP(bv(n)), ID(n); const a = Lr(n), l = Bs(a), u = Of(l), p = ar(a); fwe(a), vV(a), Grt(n), !!(n.flags & 16777216) || Urt(n); const x = Wp(n); if (x) { Ye(x.typeArguments, po), P < 2 && dc(x.parent, 1); const J = y1(n); J && J !== x && ma(J.expression); const $ = No(l); $.length && i(() => { const he = $[0], De = ti(l), ke = Vu(De); if (Aat(ke, x), po(x.expression), kt(x.typeArguments)) { Ye(x.typeArguments, po); for (const Bt of zr(ke, x.typeArguments, x)) if (!Pke(x, Bt.typeParameters)) break; } const ft = Of(he, l.thisType); if (Qu(u, ft, void 0) ? Qu(p, MCe(ke), n.name || n, _.Class_static_side_0_incorrectly_extends_base_class_static_side_1) : ywe(n, u, ft, _.Class_0_incorrectly_extends_base_class_1), De.flags & 8650752 && (r4(p) ? Ha(De, 1).some((Mn) => Mn.flags & 4) && !Jr(n, 256) && qe(n.name || n, _.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract) : qe(n.name || n, _.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)), !(ke.symbol && ke.symbol.flags & 32) && !(De.flags & 8650752)) { const Bt = Br(ke, x.typeArguments, x); Ye(Bt, (Mn) => !Op(Mn.declaration) && !Hh(hs(Mn), he)) && qe(x.expression, _.Base_constructors_must_all_have_the_same_return_type); } Iat(l, he); }); } xat(n, l, u, p); const R = UA(n); if (R) for (const J of R) (!Vl(J.expression) || fu(J.expression)) && qe(J.expression, _.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments), Wae(J), i(M(J)); i(() => { CV(l, a), CV(p, a, !0), Vae(n), Dat(n); }); function M(J) { return () => { const $ = ap(ci(J)); if (!Zo($)) if (eh($)) { const he = $.symbol && $.symbol.flags & 32 ? _.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass : _.Class_0_incorrectly_implements_interface_1, De = Of($, l.thisType); Qu(u, De, void 0) || ywe(n, u, De, he); } else qe(J, _.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members); }; } } function xat(n, a, l, u) { const g = Wp(n) && No(a), x = g != null && g.length ? Of(ss(g), a.thisType) : void 0, R = ti(a); for (const M of n.members) xz(M) || (jl(M) && Ye(M.parameters, (J) => { Yd(J, M) && hwe(n, u, R, x, a, l, J, !0); }), hwe(n, u, R, x, a, l, M, !1)); } function hwe(n, a, l, u, p, g, x, R, M = !0) { const J = x.name && A_(x.name) || A_(x); return J ? gwe(n, a, l, u, p, g, Sz(x), T1(x), za(x), R, Nl(J), M ? x : void 0) : 0; } function gwe(n, a, l, u, p, g, x, R, M, J, $, he) { const De = dr(n), ke = !!(n.flags & 16777216); if (u && (x || Y.noImplicitOverride)) { const ft = al($), Bt = M ? a : g, Mn = M ? l : u, An = so(Bt, ft), Xn = so(Mn, ft), mn = Le(u); if (An && !Xn && x) { if (he) { const xn = kIe($, Mn); xn ? qe(he, De ? _.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 : _.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, mn, S(xn)) : qe(he, De ? _.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_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, mn); } return 2; } else if (An && (Xn != null && Xn.declarations) && Y.noImplicitOverride && !ke) { const xn = kt(Xn.declarations, T1); if (x) return 0; if (xn) { if (R && xn) return he && qe(he, _.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, mn), 1; } else { if (he) { const gr = J ? De ? _.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_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 : De ? _.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : _.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0; qe(he, gr, mn); } return 1; } } } else if (x) { if (he) { const ft = Le(p); qe(he, De ? _.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_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, ft); } return 2; } return 0; } function ywe(n, a, l, u) { let p = !1; for (const g of n.members) { if (za(g)) continue; const x = g.name && A_(g.name) || A_(g); if (x) { const R = so(a, x.escapedName), M = so(l, x.escapedName); if (R && M) { const J = () => Da(void 0, _.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2, S(x), Le(a), Le(l)); Qu(ar(R), ar(M), g.name || g, void 0, J) || (p = !0); } } } p || Qu(a, l, n.name || n, u); } function Aat(n, a) { const l = Ha(n, 1); if (l.length) { const u = l[0].declaration; if (u && Nd(u, 8)) { const p = cg(n.symbol); loe(a, p) || qe(a, _.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, Rh(n.symbol)); } } } function Cat(n, a, l) { if (!a.name) return 0; const u = Lr(n), p = Bs(u), g = Of(p), x = ar(u), M = Wp(n) && No(p), J = M != null && M.length ? Of(ss(M), p.thisType) : void 0, $ = ti(p), he = a.parent ? Sz(a) : Jr(a, 16384); return gwe(n, x, $, J, p, g, he, T1(a), za(a), !1, Nl(l)); } function J2(n) { return Al(n) & 1 ? n.links.target : n; } function Lat(n) { return yn(n.declarations, (a) => a.kind === 260 || a.kind === 261); } function Iat(n, a) { var l, u, p, g; const x = fs(a); e: for (const R of x) { const M = J2(R); if (M.flags & 4194304) continue; const J = Ib(n, M.escapedName); if (!J) continue; const $ = J2(J), he = qf(M); if (D.assert(!!$, "derived should point to something, even if it is the base class' declaration."), $ === M) { const De = cg(n.symbol); if (he & 256 && (!De || !Jr(De, 256))) { for (const ke of No(n)) { if (ke === a) continue; const ft = Ib(ke, M.escapedName), Bt = ft && J2(ft); if (Bt && Bt !== M) continue e; } De.kind === 228 ? qe(De, _.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1, S(R), Le(a)) : qe(De, _.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2, Le(n), S(R), Le(a)); } } else { const De = qf($); if (he & 8 || De & 8) continue; let ke; const ft = M.flags & 98308, Bt = $.flags & 98308; if (ft && Bt) { if ((Al(M) & 6 ? (l = M.declarations) != null && l.some((Xn) => vwe(Xn, he)) : (u = M.declarations) != null && u.every((Xn) => vwe(Xn, he))) || Al(M) & 262144 || $.valueDeclaration && vr($.valueDeclaration)) continue; const Mn = ft !== 4 && Bt === 4; if (Mn || ft === 4 && Bt !== 4) { const Xn = Mn ? _._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; qe(La($.valueDeclaration) || $.valueDeclaration, Xn, S(M), Le(a), Le(n)); } else if (ge) { const Xn = (p = $.declarations) == null ? void 0 : p.find((mn) => mn.kind === 169 && !mn.initializer); if (Xn && !($.flags & 33554432) && !(he & 256) && !(De & 256) && !((g = $.declarations) != null && g.some((mn) => !!(mn.flags & 16777216)))) { const mn = c0(cg(n.symbol)), xn = Xn.name; if (Xn.exclamationToken || !mn || !Ve(xn) || !H || !Ewe(xn, n, mn)) { const gr = _.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; qe(La($.valueDeclaration) || $.valueDeclaration, gr, S(M), Le(a)); } } } continue; } else if (sae(M)) { if (sae($) || $.flags & 4) continue; D.assert(!!($.flags & 98304)), ke = _.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor; } else M.flags & 98304 ? ke = _.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function : ke = _.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function; qe(La($.valueDeclaration) || $.valueDeclaration, ke, Le(a), S(M), Le(n)); } } } function vwe(n, a) { return a & 256 && (!Za(n) || !n.initializer) || Yu(n.parent); } function kat(n, a, l) { if (!Ne(a)) return l; const u = /* @__PURE__ */ new Map(); Ye(l, (p) => { u.set(p.escapedName, p); }); for (const p of a) { const g = fs(Of(p, n.thisType)); for (const x of g) { const R = u.get(x.escapedName); R && x.parent === R.parent && u.delete(x.escapedName); } } return ko(u.values()); } function wat(n, a) { const l = No(n); if (l.length < 2) return !0; const u = /* @__PURE__ */ new Map(); Ye(Zne(n).declaredProperties, (g) => { u.set(g.escapedName, { prop: g, containingType: n }); }); let p = !0; for (const g of l) { const x = fs(Of(g, n.thisType)); for (const R of x) { const M = u.get(R.escapedName); if (!M) u.set(R.escapedName, { prop: R, containingType: g }); else if (M.containingType !== n && !JQe(M.prop, R)) { p = !1; const $ = Le(M.containingType), he = Le(g); let De = Da(void 0, _.Named_property_0_of_types_1_and_2_are_not_identical, S(R), $, he); De = Da(De, _.Interface_0_cannot_simultaneously_extend_types_1_and_2, Le(n), $, he), Xo.add(rg(Zn(a), a, De)); } } } return p; } function Dat(n) { if (!H || !ye || n.flags & 16777216) return; const a = c0(n); for (const l of n.members) if (!(wu(l) & 2) && !za(l) && bwe(l)) { const u = l.name; if (Ve(u) || ki(u) || Ss(u)) { const p = ar(Lr(l)); p.flags & 3 || yL(p) || (!a || !Ewe(u, p, a)) && qe(l.name, _.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, Is(u)); } } } function bwe(n) { return n.kind === 169 && !T1(n) && !n.exclamationToken && !n.initializer; } function Rat(n, a, l, u, p) { for (const g of l) if (g.pos >= u && g.pos <= p) { const x = N.createPropertyAccessExpression(N.createThis(), n); Bo(x.expression, x), Bo(x, g), x.flowNode = g.returnFlowNode; const R = I0(x, a, qg(a)); if (!yL(R)) return !0; } return !1; } function Ewe(n, a, l) { const u = Ss(n) ? N.createElementAccessExpression(N.createThis(), n.expression) : N.createPropertyAccessExpression(N.createThis(), n); Bo(u.expression, u), Bo(u, l), u.flowNode = l.returnFlowNode; const p = I0(u, a, qg(a)); return !yL(p); } function Nat(n) { ah(n) || fst(n), cP(n.typeParameters), i(() => { FL(n.name, _.Interface_name_cannot_be_0), ID(n); const a = Lr(n); fwe(a); const l = Tl(a, 261); if (n === l) { const u = Bs(a), p = Of(u); if (wat(u, n.name)) { for (const g of No(u)) Qu(p, Of(g, u.thisType), n.name, _.Interface_0_incorrectly_extends_interface_1); CV(u, a); } } Dke(n); }), Ye(OI(n), (a) => { (!Vl(a.expression) || fu(a.expression)) && qe(a.expression, _.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments), Wae(a); }), Ye(n.members, po), i(() => { Vae(n), lv(n); }); } function Oat(n) { ah(n), FL(n.name, _.Type_alias_name_cannot_be_0), ID(n), cP(n.typeParameters), n.type.kind === 139 ? (!d8.has(n.name.escapedText) || Ne(n.typeParameters) !== 1) && qe(n.type, _.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types) : (po(n.type), lv(n)); } function Twe(n) { const a = Wr(n); if (!(a.flags & 1024)) { a.flags |= 1024; let l = 0; for (const u of n.members) { const p = Pat(u, l); Wr(u).enumMemberValue = p, l = typeof p == "number" ? p + 1 : void 0; } } } function Pat(n, a) { if (XR(n.name)) qe(n.name, _.Computed_property_names_are_not_allowed_in_enums); else { const l = AA(n.name); vh(l) && !sk(l) && qe(n.name, _.An_enum_member_cannot_have_a_numeric_name); } if (n.initializer) return Mat(n); if (!(n.parent.flags & 16777216 && !m1(n.parent))) { if (a !== void 0) return a; qe(n.name, _.Enum_member_must_have_initializer); } } function Mat(n) { const a = m1(n.parent), l = n.initializer, u = BL(l, n); return u !== void 0 ? a && typeof u == "number" && !isFinite(u) && qe(l, isNaN(u) ? _.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : _.const_enum_member_initializer_was_evaluated_to_a_non_finite_value) : a ? qe(l, _.const_enum_member_initializers_must_be_constant_expressions) : n.parent.flags & 16777216 ? qe(l, _.In_ambient_enum_declarations_member_initializer_must_be_constant_expression) : Qu(ma(l), pt, l, _.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values), u; } function BL(n, a) { switch (n.kind) { case 221: const l = BL(n.operand, a); if (typeof l == "number") switch (n.operator) { case 39: return l; case 40: return -l; case 54: return ~l; } break; case 223: const u = BL(n.left, a), p = BL(n.right, a); if (typeof u == "number" && typeof p == "number") switch (n.operatorToken.kind) { case 51: return u | p; case 50: return u & p; case 48: return u >> p; case 49: return u >>> p; case 47: return u << p; case 52: return u ^ p; case 41: return u * p; case 43: return u / p; case 39: return u + p; case 40: return u - p; case 44: return u % p; case 42: return u ** p; } else if ((typeof u == "string" || typeof u == "number") && (typeof p == "string" || typeof p == "number") && n.operatorToken.kind === 39) return "" + u + p; break; case 10: case 14: return n.text; case 225: return Fat(n, a); case 8: return voe(n), +n.text; case 214: return BL(n.expression, a); case 79: if (sk(n.escapedText)) return +n.escapedText; case 208: if (Vl(n)) { const x = wl(n, 111551, !0); if (x) { if (x.flags & 8) return Swe(n, x, a); if (AL(x)) { const R = x.valueDeclaration; if (R && !R.type && R.initializer && R !== a && Cg(R, a)) return BL(R.initializer, R); } } } break; case 209: const g = n.expression; if (Vl(g) && Ts(n.argumentExpression)) { const x = wl(g, 111551, !0); if (x && x.flags & 384) { const R = al(n.argumentExpression.text), M = x.exports.get(R); if (M) return Swe(n, M, a); } } break; } } function Swe(n, a, l) { const u = a.valueDeclaration; if (!u || u === l) { qe(n, _.Property_0_is_used_before_being_assigned, S(a)); return; } return Cg(u, l) ? PV(u) : (qe(n, _.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums), 0); } function Fat(n, a) { let l = n.head.text; for (const u of n.templateSpans) { const p = BL(u.expression, a); if (p === void 0) return; l += p, l += u.literal.text; } return l; } function Bat(n) { i(() => Gat(n)); } function Gat(n) { ah(n), ML(n, n.name), ID(n), n.members.forEach(Uat), Twe(n); const a = Lr(n), l = Tl(a, n.kind); if (n === l) { if (a.declarations && a.declarations.length > 1) { const p = m1(n); Ye(a.declarations, (g) => { Y0(g) && m1(g) !== p && qe(La(g), _.Enum_declarations_must_all_be_const_or_non_const); }); } let u = !1; Ye(a.declarations, (p) => { if (p.kind !== 263) return !1; const g = p; if (!g.members.length) return !1; const x = g.members[0]; x.initializer || (u ? qe(x.name, _.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element) : u = !0); }); } } function Uat(n) { ki(n.name) && qe(n, _.An_enum_member_cannot_be_named_with_a_private_identifier), n.initializer && ma(n.initializer); } function Vat(n) { const a = n.declarations; if (a) { for (const l of a) if ((l.kind === 260 || l.kind === 259 && s_(l.body)) && !(l.flags & 16777216)) return l; } } function jat(n, a) { const l = Dm(n), u = Dm(a); return Jm(l) ? Jm(u) : Jm(u) ? !1 : l === u; } function Hat(n) { n.body && (po(n.body), Hp(n) || lv(n)), i(a); function a() { var l, u; const p = Hp(n), g = n.flags & 16777216; p && !g && qe(n.name, _.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context); const x = ku(n), R = x ? _.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; if (uP(n, R)) return; ah(n) || !g && n.name.kind === 10 && bn(n.name, _.Only_ambient_modules_can_use_quoted_names), Ve(n.name) && ML(n, n.name), ID(n); const M = Lr(n); if (M.flags & 512 && !g && DK(n, S1(Y))) { if (F_(Y) && !Zn(n).externalModuleIndicator && qe(n.name, _.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, Vt), ((l = M.declarations) == null ? void 0 : l.length) > 1) { const J = Vat(M); J && (Zn(n) !== Zn(J) ? qe(n.name, _.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged) : n.pos < J.pos && qe(n.name, _.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged)); const $ = Tl(M, 260); $ && jat(n, $) && (Wr(n).flags |= 2048); } if (Y.verbatimModuleSyntax && n.parent.kind === 308 && (ue === 1 || n.parent.impliedNodeFormat === 1)) { const J = (u = n.modifiers) == null ? void 0 : u.find(($) => $.kind === 93); J && qe(J, _.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } } if (x) if (_1(n)) { if ((p || Lr(n).flags & 33554432) && n.body) for (const $ of n.body.statements) ioe($, p); } else Jm(n.parent) ? p ? qe(n.name, _.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations) : Oc(P_(n.name)) && qe(n.name, _.Ambient_module_declaration_cannot_specify_relative_module_name) : p ? qe(n.name, _.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations) : qe(n.name, _.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces); } } function ioe(n, a) { switch (n.kind) { case 240: for (const u of n.declarationList.declarations) ioe(u, a); break; case 274: case 275: Nc(n, _.Exports_and_export_assignments_are_not_permitted_in_module_augmentations); break; case 268: case 269: Nc(n, _.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module); break; case 205: case 257: const l = n.name; if (Ja(l)) { for (const u of l.elements) ioe(u, a); break; } case 260: case 263: case 259: case 261: case 264: case 262: if (a) return; break; } } function Wat(n) { switch (n.kind) { case 79: return n; case 163: do n = n.left; while (n.kind !== 79); return n; case 208: do { if (ph(n.expression) && !ki(n.name)) return n.name; n = n.expression; } while (n.kind !== 79); return n; } } function aoe(n) { const a = OA(n); if (!a || Sl(a)) return !1; if (!Go(a)) return qe(a, _.String_literal_expected), !1; const l = n.parent.kind === 265 && ku(n.parent.parent); if (n.parent.kind !== 308 && !l) return qe(a, n.kind === 275 ? _.Export_declarations_are_not_permitted_in_a_namespace : _.Import_declarations_in_a_namespace_cannot_reference_a_module), !1; if (l && Oc(a.text) && !Jd(n)) return qe(n, _.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name), !1; if (!tu(n) && n.assertClause) { let u = !1; for (const p of n.assertClause.elements) Go(p.value) || (u = !0, qe(p.value, _.Import_assertion_values_must_be_string_literal_expressions)); return !u; } return !0; } function LV(n) { var a, l, u, p, g; let x = Lr(n); const R = Zl(x); if (R !== en) { if (x = ns(x.exportSymbol || x), dr(n) && !(R.flags & 111551) && !u1(n)) { const $ = VS(n) ? n.propertyName || n.name : du(n) ? n.name : n; if (D.assert(n.kind !== 277), n.kind === 278) { const he = qe($, _.Types_cannot_appear_in_export_declarations_in_JavaScript_files), De = (l = (a = Zn(n).symbol) == null ? void 0 : a.exports) == null ? void 0 : l.get((n.propertyName || n.name).escapedText); if (De === R) { const ke = (u = De.declarations) == null ? void 0 : u.find(EA); ke && qo(he, Dr(ke, _._0_is_automatically_exported_here, Zi(De.escapedName))); } } else { D.assert(n.kind !== 257); const he = nr(n, Sm(Gc, tu)), De = (g = he && ((p = fN(he)) == null ? void 0 : p.text)) != null ? g : "...", ke = Zi(Ve($) ? $.escapedText : x.escapedName); qe($, _._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, ke, `import("${De}").${ke}`); } return; } const M = iu(R), J = (x.flags & 1160127 ? 111551 : 0) | (x.flags & 788968 ? 788968 : 0) | (x.flags & 1920 ? 1920 : 0); if (M & J) { const $ = n.kind === 278 ? _.Export_declaration_conflicts_with_exported_declaration_of_0 : _.Import_declaration_conflicts_with_local_declaration_of_0; qe(n, $, S(x)); } if (F_(Y) && !u1(n) && !(n.flags & 16777216)) { const $ = Ld(x), he = !(M & 111551); if (he || $) switch (n.kind) { case 270: case 273: case 268: { if (Y.preserveValueImports || Y.verbatimModuleSyntax) { D.assertIsDefined(n.name, "An ImportClause with a symbol should have a name"); const De = Y.verbatimModuleSyntax && RA(n) ? _.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled : he ? Y.verbatimModuleSyntax ? _._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : _._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled : Y.verbatimModuleSyntax ? _._0_resolves_to_a_type_only_declaration_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_preserveValueImports_and_isolatedModules_are_both_enabled, ke = Or(n.kind === 273 && n.propertyName || n.name); iS(qe(n, De, ke), he ? void 0 : $, ke); } he && n.kind === 268 && Nd(n, 1) && qe(n, _.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled, Vt); break; } case 278: if (Y.verbatimModuleSyntax || Zn($) !== Zn(n)) { const De = Or(n.propertyName || n.name), ke = he ? qe(n, _.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, Vt) : qe(n, _._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, De, Vt); iS(ke, he ? void 0 : $, De); break; } } Y.verbatimModuleSyntax && n.kind !== 268 && !dr(n) && (ue === 1 || Zn(n).impliedNodeFormat === 1) && qe(n, _.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } if (Td(n)) { const $ = Awe(x, n); xwe($) && $.declarations && xg(n, $.declarations, $.escapedName); } } } function xwe(n) { return !!n.declarations && Vn(n.declarations, (a) => !!(up(a) & 268435456)); } function Awe(n, a) { if (!(n.flags & 2097152)) return n; const l = Zl(n); if (l === en) return l; for (; n.flags & 2097152; ) { const u = tae(n); if (u) { if (u === l) break; if (u.declarations && Ne(u.declarations)) if (xwe(u)) { xg(a, u.declarations, u.escapedName); break; } else { if (n === l) break; n = u; } } else break; } return l; } function IV(n) { ML(n, n.name), LV(n), n.kind === 273 && Or(n.propertyName || n.name) === "default" && B_(Y) && ue !== 4 && (ue < 5 || Zn(n).impliedNodeFormat === 1) && dc(n, 131072); } function Cwe(n) { var a; if (n.assertClause) { const l = AX(n), u = Px(n.assertClause, l ? bn : void 0); if (l && u) return wN() || bn(n.assertClause, _.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next), gl(Y) !== 3 && gl(Y) !== 99 ? bn(n.assertClause, _.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext) : void 0; if ((ue === 199 && n.moduleSpecifier && Ny(n.moduleSpecifier)) !== 99 && ue !== 99) return bn(n.assertClause, ue === 199 ? _.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls : _.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext); if (Gc(n) ? (a = n.importClause) != null && a.isTypeOnly : n.isTypeOnly) return bn(n.assertClause, _.Import_assertions_cannot_be_used_with_type_only_imports_or_exports); if (u) return bn(n.assertClause, _.resolution_mode_can_only_be_set_for_type_only_imports); } } function zat(n) { if (!uP(n, dr(n) ? _.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module : _.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)) { if (!ah(n) && _3(n) && Nc(n, _.An_import_declaration_cannot_have_modifiers), aoe(n)) { const a = n.importClause; a && !Bst(a) && (a.name && IV(a), a.namedBindings && (a.namedBindings.kind === 271 ? (IV(a.namedBindings), ue !== 4 && (ue < 5 || Zn(n).impliedNodeFormat === 1) && B_(Y) && dc(n, 65536)) : au(n, n.moduleSpecifier) && Ye(a.namedBindings.elements, IV))); } Cwe(n); } } function qat(n) { if (!uP(n, dr(n) ? _.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module : _.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module) && (ah(n), RA(n) || aoe(n))) if (IV(n), Jr(n, 1) && aE(n), n.moduleReference.kind !== 280) { const a = Zl(Lr(n)); if (a !== en) { const l = iu(a); if (l & 111551) { const u = Ef(n.moduleReference); wl(u, 112575).flags & 1920 || qe(u, _.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, Is(u)); } l & 788968 && FL(n.name, _.Import_name_cannot_be_0); } n.isTypeOnly && bn(n, _.An_import_alias_cannot_use_import_type); } else ue >= 5 && Zn(n).impliedNodeFormat === void 0 && !n.isTypeOnly && !(n.flags & 16777216) && bn(n, _.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 Jat(n) { if (!uP(n, dr(n) ? _.An_export_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_namespace_or_module)) { if (!ah(n) && Nue(n) && Nc(n, _.An_export_declaration_cannot_have_modifiers), n.moduleSpecifier && n.exportClause && j_(n.exportClause) && Ne(n.exportClause.elements) && P === 0 && dc(n, 4194304), Kat(n), !n.moduleSpecifier || aoe(n)) if (n.exportClause && !Sh(n.exportClause)) { Ye(n.exportClause.elements, eot); const a = n.parent.kind === 265 && ku(n.parent.parent), l = !a && n.parent.kind === 265 && !n.moduleSpecifier && n.flags & 16777216; n.parent.kind !== 308 && !a && !l && qe(n, _.Export_declarations_are_not_permitted_in_a_namespace); } else { const a = au(n, n.moduleSpecifier); a && lE(a) ? qe(n.moduleSpecifier, _.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, S(a)) : n.exportClause && LV(n.exportClause), ue !== 4 && (ue < 5 || Zn(n).impliedNodeFormat === 1) && (n.exportClause ? B_(Y) && dc(n, 65536) : dc(n, 32768)); } Cwe(n); } } function Kat(n) { var a; return n.isTypeOnly && ((a = n.exportClause) == null ? void 0 : a.kind) === 276 ? rDe(n.exportClause) : !1; } function uP(n, a) { const l = n.parent.kind === 308 || n.parent.kind === 265 || n.parent.kind === 264; return l || Nc(n, a), !l; } function Xat(n) { return n3(n, (a) => !!Lr(a).isReferenced); } function Yat(n) { return n3(n, (a) => !!Ui(Lr(a)).constEnumReferenced); } function $at(n) { return Gc(n) && n.importClause && !n.importClause.isTypeOnly && Xat(n.importClause) && !OV(n.importClause, !0) && !Yat(n.importClause); } function Qat(n) { return tu(n) && Um(n.moduleReference) && !n.isTypeOnly && Lr(n).isReferenced && !OV(n, !1) && !Ui(Lr(n)).constEnumReferenced; } function Zat(n) { for (const a of n.statements) ($at(a) || Qat(a)) && qe(a, _.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error); } function eot(n) { if (LV(n), G_(Y) && vE(n.propertyName || n.name, !0), n.parent.parent.moduleSpecifier) B_(Y) && ue !== 4 && (ue < 5 || Zn(n).impliedNodeFormat === 1) && Or(n.propertyName || n.name) === "default" && dc(n, 131072); else { const a = n.propertyName || n.name, l = dl(a, a.escapedText, 2998271, void 0, void 0, !0); if (l && (l === Me || l === ot || l.declarations && Jm(bE(l.declarations[0])))) qe(a, _.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, Or(a)); else { !n.isTypeOnly && !n.parent.parent.isTypeOnly && aE(n); const u = l && (l.flags & 2097152 ? Zl(l) : l); (!u || iu(u) & 111551) && Kl(n.propertyName || n.name); } } } function tot(n) { const a = n.isExportEquals ? _.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration : _.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration; if (uP(n, a)) return; const l = n.parent.kind === 308 ? n.parent : n.parent.parent; if (l.kind === 264 && !ku(l)) { n.isExportEquals ? qe(n, _.An_export_assignment_cannot_be_used_in_a_namespace) : qe(n, _.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); return; } !ah(n) && _3(n) && Nc(n, _.An_export_assignment_cannot_have_modifiers); const u = Jc(n); u && Qu(Kl(n.expression), ci(u), n.expression); const p = !n.isExportEquals && !(n.flags & 16777216) && Y.verbatimModuleSyntax && (ue === 1 || Zn(n).impliedNodeFormat === 1); if (n.expression.kind === 79) { const g = n.expression, x = Lp(wl(g, 67108863, !0, !0, n)); x ? (KU(x, g), iu(x) & 111551 ? (Kl(g), !p && Y.verbatimModuleSyntax && Ld(x, 111551) && qe(g, n.isExportEquals ? _.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_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration, Or(g))) : !p && Y.verbatimModuleSyntax && qe(g, n.isExportEquals ? _.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type : _.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type, Or(g))) : Kl(g), G_(Y) && vE(g, !0); } else Kl(n.expression); p && qe(n, _.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled), Lwe(l), n.flags & 16777216 && !Vl(n.expression) && bn(n.expression, _.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context), n.isExportEquals && (ue >= 5 && (n.flags & 16777216 && Zn(n).impliedNodeFormat === 99 || !(n.flags & 16777216) && Zn(n).impliedNodeFormat !== 1) ? bn(n, _.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead) : ue === 4 && !(n.flags & 16777216) && bn(n, _.Export_assignment_is_not_supported_when_module_flag_is_system)); } function not(n) { return Zd(n.exports, (a, l) => l !== "export="); } function Lwe(n) { const a = Lr(n), l = Ui(a); if (!l.exportsChecked) { const u = a.exports.get("export="); if (u && not(a)) { const g = ud(u) || u.valueDeclaration; g && !Jd(g) && !dr(g) && qe(g, _.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements); } const p = Mh(a); p && p.forEach(({ declarations: g, flags: x }, R) => { if (R === "__export" || x & 1920) return; const M = xa(g, IP(Tme, kP(Yu))); if (!(x & 524288 && M <= 2) && M > 1 && !kV(g)) for (const J of g) vme(J) && Xo.add(Dr(J, _.Cannot_redeclare_exported_variable_0, Zi(R))); }), l.exportsChecked = !0; } } function kV(n) { return n && n.length > 1 && n.every((a) => dr(a) && ol(a) && (sT(a.expression) || ph(a.expression))); } function po(n) { if (n) { const a = B; B = n, I = 0, rot(n), B = a; } } function rot(n) { gN(n) && Ye(n.jsDoc, ({ comment: l, tags: u }) => { Iwe(l), Ye(u, (p) => { Iwe(p.comment), dr(n) && po(p); }); }); const a = n.kind; if (o) switch (a) { case 264: case 260: case 261: case 259: o.throwIfCancellationRequested(); } switch (a >= 240 && a <= 256 && hN(n) && n.flowNode && !P4(n.flowNode) && tm(Y.allowUnreachableCode === !1, n, _.Unreachable_code_detected), a) { case 165: return Ike(n); case 166: return kke(n); case 169: return Rke(n); case 168: return Vrt(n); case 182: case 181: case 176: case 177: case 178: return LD(n); case 171: case 170: return jrt(n); case 172: return Hrt(n); case 173: return Wrt(n); case 174: case 175: return Oke(n); case 180: return Wae(n); case 179: return Frt(n); case 183: return Yrt(n); case 184: return $rt(n); case 185: return Qrt(n); case 186: return Zrt(n); case 189: case 190: return eit(n); case 193: case 187: case 188: return po(n.type); case 194: return iit(n); case 195: return ait(n); case 191: return oit(n); case 192: return sit(n); case 200: return lit(n); case 202: return cit(n); case 199: return uit(n); case 331: return Iit(n); case 332: return Lit(n); case 349: case 341: case 343: return vit(n); case 348: return bit(n); case 347: return Eit(n); case 327: case 328: case 329: return Sit(n); case 344: return xit(n); case 351: return Ait(n); case 320: Cit(n); case 318: case 317: case 315: case 316: case 325: kwe(n), Oa(n, po); return; case 321: iot(n); return; case 312: return po(n.type); case 336: case 338: case 337: return kit(n); case 353: return Tit(n); case 196: return tit(n); case 197: return nit(n); case 259: return yit(n); case 238: case 265: return TV(n); case 240: return qit(n); case 241: return Jit(n); case 242: return Kit(n); case 243: return $it(n); case 244: return Qit(n); case 245: return Zit(n); case 246: return tat(n); case 247: return eat(n); case 248: case 249: return cat(n); case 250: return uat(n); case 251: return dat(n); case 252: return fat(n); case 253: return _at(n); case 254: return pat(n); case 255: return mat(n); case 257: return Xae(n); case 205: return zit(n); case 260: return Sat(n); case 261: return Nat(n); case 262: return Oat(n); case 263: return Bat(n); case 264: return Hat(n); case 269: return zat(n); case 268: return qat(n); case 275: return Jat(n); case 274: return tot(n); case 239: case 256: Kh(n); return; case 279: return qrt(n); } } function Iwe(n) { Ga(n) && Ye(n, (a) => { zS(a) && po(a); }); } function kwe(n) { if (!dr(n)) if (C7(n) || hC(n)) { const a = mo(C7(n) ? 53 : 57), l = n.postfix ? _._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, u = n.type, p = ci(u); bn(n, l, a, Le(hC(n) && !(p === ht || p === Rt) ? Xr(Fn([p, je], n.postfix ? void 0 : Sn)) : p)); } else bn(n, _.JSDoc_types_can_only_be_used_inside_documentation_comments); } function iot(n) { kwe(n), po(n.type); const { parent: a } = n; if (Ma(a) && gC(a.parent)) { Ho(a.parent.parameters) !== a && qe(n, _.A_rest_parameter_must_be_last_in_a_parameter_list); return; } AT(a) || qe(n, _.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); const l = n.parent.parent; if (!Qp(l)) { qe(n, _.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); return; } const u = yN(l); if (!u) return; const p = V0(l); (!p || Ho(p.parameters).symbol !== u) && qe(n, _.A_rest_parameter_must_be_last_in_a_parameter_list); } function aot(n) { const a = ci(n.type), { parent: l } = n, u = n.parent.parent; if (AT(n.parent) && Qp(u)) { const p = V0(u), g = oJ(u.parent.parent); if (p || g) { const x = Zs(g ? u.parent.parent.typeExpression.parameters : p.parameters), R = yN(u); if (!x || R && x.symbol === R && fh(x)) return Tu(a); } } return Ma(l) && gC(l.parent) ? Tu(a) : Ao(a); } function GL(n) { const a = Zn(n), l = Wr(a); l.flags & 1 ? D.assert(!l.deferredNodes, "A type-checked file should have no deferred nodes.") : (l.deferredNodes || (l.deferredNodes = /* @__PURE__ */ new Set()), l.deferredNodes.add(n)); } function oot(n) { const a = Wr(n); a.deferredNodes && a.deferredNodes.forEach(sot), a.deferredNodes = void 0; } function sot(n) { var a, l; (a = hi) == null || a.push(hi.Phase.Check, "checkDeferredNode", { kind: n.kind, pos: n.pos, end: n.end, path: n.tracingPath }); const u = B; switch (B = n, I = 0, n.kind) { case 210: case 211: case 212: case 167: case 283: H2(n); break; case 215: case 216: case 171: case 170: ert(n); break; case 174: case 175: Oke(n); break; case 228: Tat(n); break; case 165: Mrt(n); break; case 282: _tt(n); break; case 281: mtt(n); break; } B = u, (l = hi) == null || l.pop(); } function lot(n) { var a, l; (a = hi) == null || a.push(hi.Phase.Check, "checkSourceFile", { path: n.path }, !0), rl("beforeCheck"), cot(n), rl("afterCheck"), Vf("Check", "beforeCheck", "afterCheck"), (l = hi) == null || l.pop(); } function wwe(n, a) { if (a) return !1; switch (n) { case 0: return !!Y.noUnusedLocals; case 1: return !!Y.noUnusedParameters; default: return D.assertNever(n); } } function Dwe(n) { return vn.get(n.path) || nt; } function cot(n) { const a = Wr(n); if (!(a.flags & 1)) { if (nk(n, Y, e)) return; Nst(n), ms($1), ms($v), ms(lb), ms(Qv), ms(eS), Ye(n.statements, po), po(n.endOfFileToken), oot(n), ef(n) && lv(n), i(() => { !n.isDeclarationFile && (Y.noUnusedLocals || Y.noUnusedParameters) && qke(Dwe(n), (l, u, p) => { !qR(l) && wwe(u, !!(l.flags & 16777216)) && Xo.add(p); }), n.isDeclarationFile || Nit(); }), Y.importsNotUsedAsValues === 2 && !n.isDeclarationFile && Yl(n) && Zat(n), ef(n) && Lwe(n), $1.length && (Ye($1, Mit), ms($1)), $v.length && (Ye($v, Fit), ms($v)), lb.length && (Ye(lb, Vit), ms(lb)), Qv.length && (Ye(Qv, Hit), ms(Qv)), a.flags |= 1; } } function Rwe(n, a) { try { return o = a, uot(n); } finally { o = void 0; } } function ooe() { for (const n of r) n(); r = []; } function soe(n) { ooe(); const a = i; i = (l) => l(), lot(n), i = a; } function uot(n) { if (n) { ooe(); const a = Xo.getGlobalDiagnostics(), l = a.length; soe(n); const u = Xo.getDiagnostics(n.fileName), p = Xo.getGlobalDiagnostics(); if (p !== a) { const g = tse(a, p, QI); return ha(g, u); } else if (l === 0 && p.length > 0) return ha(p, u); return u; } return Ye(e.getSourceFiles(), soe), Xo.getDiagnostics(); } function dot() { return ooe(), Xo.getGlobalDiagnostics(); } function fot(n, a) { if (n.flags & 33554432) return []; const l = ao(); let u = !1; return p(), l.delete("this"), vre(l); function p() { for (; n; ) { switch (Im(n) && n.locals && !Jm(n) && x(n.locals, a), n.kind) { case 308: if (!Yl(n)) break; case 264: R(Lr(n).exports, a & 2623475); break; case 263: x(Lr(n).exports, a & 8); break; case 228: n.name && g(n.symbol, a); case 260: case 261: u || x($y(Lr(n)), a & 788968); break; case 215: n.name && g(n.symbol, a); break; } Wce(n) && g(At, a), u = za(n), n = n.parent; } x(He, a); } function g(M, J) { if (KI(M) & J) { const $ = M.escapedName; l.has($) || l.set($, M); } } function x(M, J) { J && M.forEach(($) => { g($, J); }); } function R(M, J) { J && M.forEach(($) => { !Tl($, 278) && !Tl($, 277) && g($, J); }); } } function _ot(n) { return n.kind === 79 && eC(n.parent) && La(n.parent) === n; } function Nwe(n) { for (; n.parent.kind === 163; ) n = n.parent; return n.parent.kind === 180; } function pot(n) { for (; n.parent.kind === 208; ) n = n.parent; return n.parent.kind === 230; } function Owe(n, a) { let l, u = Ec(n); for (; u && !(l = a(u)); ) u = Ec(u); return l; } function mot(n) { return !!nr(n, (a) => jl(a) && s_(a.body) || Za(a) ? !0 : li(a) || Ys(a) ? "quit" : !1); } function loe(n, a) { return !!Owe(n, (l) => l === a); } function hot(n) { for (; n.parent.kind === 163; ) n = n.parent; if (n.parent.kind === 268) return n.parent.moduleReference === n ? n.parent : void 0; if (n.parent.kind === 274) return n.parent.expression === n ? n.parent : void 0; } function wV(n) { return hot(n) !== void 0; } function got(n) { switch (xl(n.parent.parent)) { case 1: case 3: return Wd(n.parent); case 4: case 2: case 5: return Lr(n.parent.parent); } } function yot(n) { let a = n.parent; for (; Ed(a); ) n = a, a = a.parent; if (a && a.kind === 202 && a.qualifier === n) return a; } function Pwe(n) { if (sg(n)) return Wd(n.parent); if (dr(n) && n.parent.kind === 208 && n.parent === n.parent.parent.left && !ki(n) && !$0(n)) { const a = got(n); if (a) return a; } if (n.parent.kind === 274 && Vl(n)) { const a = wl(n, 2998271, !0); if (a && a !== en) return a; } else if ($d(n) && wV(n)) { const a = j0(n, 268); return D.assert(a !== void 0), Cp(n, !0); } if ($d(n)) { const a = yot(n); if (a) { ci(a); const l = Wr(n).resolvedSymbol; return l === en ? void 0 : l; } } for (; Vue(n); ) n = n.parent; if (pot(n)) { let a = 0; n.parent.kind === 230 ? (a = _h(n) ? 788968 : 111551, PN(n.parent) && (a |= 111551)) : a = 1920, a |= 2097152; const l = Vl(n) ? wl(n, a) : void 0; if (l) return l; } if (n.parent.kind === 344) return yN(n.parent); if (n.parent.kind === 165 && n.parent.parent.kind === 348) { D.assert(!dr(n)); const a = sue(n.parent); return a && a.symbol; } if (ag(n)) { if (Sl(n)) return; const a = nr(n, Sm(zS, Ck, $0)), l = a ? 901119 : 111551; if (n.kind === 79) { if (kI(n) && LL(n)) { const p = rae(n.parent); return p === en ? void 0 : p; } const u = wl(n, l, !1, !0, V0(n)); if (!u && a) { const p = nr(n, Sm(li, Yu)); if (p) return dP(n, !1, Lr(p)); } if (u && a) { const p = QS(n); if (p && D1(p) && p === u.valueDeclaration) return wl(n, l, !0, !0, Zn(p)) || u; } return u; } else { if (ki(n)) return iV(n); if (n.kind === 208 || n.kind === 163) { const u = Wr(n); if (u.resolvedSymbol) return u.resolvedSymbol; if (n.kind === 208) { if (EIe(n, 0), !u.resolvedSymbol) { const p = Kl(n.expression), g = yre(p, Hg(n.name)); if (g.length && p.members) { const R = ip(p).members.get("__index"); if (g === Eu(p)) u.resolvedSymbol = R; else if (R) { const M = Ui(R), J = _a(g, (he) => he.declaration), $ = rn(J, ds).join(","); if (M.filteredIndexSymbolCache || (M.filteredIndexSymbolCache = /* @__PURE__ */ new Map()), M.filteredIndexSymbolCache.has($)) u.resolvedSymbol = M.filteredIndexSymbolCache.get($); else { const he = Qo(131072, "__index"); he.declarations = _a(g, (De) => De.declaration), he.parent = p.aliasSymbol ? p.aliasSymbol : p.symbol ? p.symbol : A_(he.declarations[0].parent), M.filteredIndexSymbolCache.set($, he), u.resolvedSymbol = M.filteredIndexSymbolCache.get($); } } } } } else TIe(n, 0); return !u.resolvedSymbol && a && Ed(n) ? dP(n) : u.resolvedSymbol; } else if ($0(n)) return dP(n); } } else if (Nwe(n)) { const a = n.parent.kind === 180 ? 788968 : 1920, l = wl(n, a, !1, !0); return l && l !== en ? l : oU(n); } if (n.parent.kind === 179) return wl(n, 1); } function dP(n, a, l) { if ($d(n)) { let x = wl(n, 901119, a, !0, V0(n)); if (!x && Ve(n) && l && (x = ns(Hd(uf(l), n.escapedText, 901119))), x) return x; } const u = Ve(n) ? l : dP(n.left, a, l), p = Ve(n) ? n.escapedText : n.right.escapedText; if (u) { const g = u.flags & 111551 && so(ar(u), "prototype"), x = g ? ar(g) : Bs(u); return so(x, p); } } function A_(n, a) { if (ji(n)) return Yl(n) ? ns(n.symbol) : void 0; const { parent: l } = n, u = l.parent; if (!(n.flags & 33554432)) { if (bme(n)) { const p = Lr(l); return VS(n.parent) && n.parent.propertyName === n ? tae(p) : p; } else if (EN(n)) return Lr(l.parent); if (n.kind === 79) { if (wV(n)) return Pwe(n); if (l.kind === 205 && u.kind === 203 && n === l.propertyName) { const p = SS(u), g = so(p, n.escapedText); if (g) return g; } else if (Ek(l) && l.name === n) return l.keywordToken === 103 && Or(n) === "target" ? Iae(l).symbol : l.keywordToken === 100 && Or(n) === "meta" ? WAe().members.get("meta") : void 0; } switch (n.kind) { case 79: case 80: case 208: case 163: if (!nx(n)) return Pwe(n); case 108: const p = yd(n, !1, !1); if (qa(p)) { const R = wp(p); if (R.thisParameter) return R.thisParameter; } if (KM(n)) return ma(n).symbol; case 194: return gU(n).symbol; case 106: return ma(n).symbol; case 135: const g = n.parent; return g && g.kind === 173 ? g.parent.symbol : void 0; case 10: case 14: if (G0(n.parent.parent) && wI(n.parent.parent) === n || (n.parent.kind === 269 || n.parent.kind === 275) && n.parent.moduleSpecifier === n || dr(n) && gl(Y) !== 100 && vd(n.parent, !1) || tf(n.parent) || X0(n.parent) && B0(n.parent.parent) && n.parent.parent.argument === n.parent) return au(n, n, a); if (eo(l) && KS(l) && l.arguments[1] === n) return Lr(l); case 8: const x = sl(l) ? l.argumentExpression === n ? Au(l.expression) : void 0 : X0(l) && bx(u) ? ci(u.objectType) : void 0; return x && so(x, al(n.text)); case 88: case 98: case 38: case 84: return Wd(n.parent); case 202: return B0(n) ? A_(n.argument.literal, a) : void 0; case 93: return Pl(n.parent) ? D.checkDefined(n.parent.symbol) : void 0; case 100: case 103: return Ek(n.parent) ? ike(n.parent).symbol : void 0; case 233: return ma(n).symbol; default: return; } } } function vot(n) { if (Ve(n) && Pr(n.parent) && n.parent.name === n) { const a = Hg(n), l = Au(n.parent.expression), u = l.flags & 1048576 ? l.types : [l]; return Mo(u, (p) => yn(Eu(p), (g) => I2(a, g.keyType))); } } function bot(n) { if (n && n.kind === 300) return wl(n.name, 2208703); } function Eot(n) { return od(n) ? n.parent.parent.moduleSpecifier ? kf(n.parent.parent, n) : wl(n.propertyName || n.name, 2998271) : wl(n, 2998271); } function SS(n) { if (ji(n) && !Yl(n) || n.flags & 33554432) return xe; const a = kz(n), l = a && Gu(Lr(a.class)); if (_h(n)) { const u = ci(n); return l ? Of(u, l.thisType) : u; } if (ag(n)) return Mwe(n); if (l && !a.isImplements) { const u = Wc(No(l)); return u ? Of(u, l.thisType) : xe; } if (eC(n)) { const u = Lr(n); return Bs(u); } if (_ot(n)) { const u = A_(n); return u ? Bs(u) : xe; } if (_u(n)) { const u = Lr(n); return u ? ar(u) : xe; } if (bme(n)) { const u = A_(n); return u ? ar(u) : xe; } if (Ja(n)) return es(n.parent, !0, 0) || xe; if (wV(n)) { const u = A_(n); if (u) { const p = Bs(u); return Zo(p) ? ar(u) : p; } } return Ek(n.parent) && n.parent.keywordToken === n.kind ? ike(n.parent) : xe; } function DV(n) { if (D.assert(n.kind === 207 || n.kind === 206), n.parent.kind === 247) { const p = lP(n.parent); return GE(n, p || xe); } if (n.parent.kind === 223) { const p = Au(n.parent.right); return GE(n, p || xe); } if (n.parent.kind === 299) { const p = ro(n.parent.parent, As), g = DV(p) || xe, x = xA(p.properties, n.parent); return yke(p, g, x); } const a = ro(n.parent, Ru), l = DV(a) || xe, u = cv(65, l, je, n.parent) || xe; return vke(a, l, a.elements.indexOf(n), u); } function Tot(n) { const a = DV(ro(n.parent.parent, yI)); return a && so(a, n.escapedText); } function Mwe(n) { return WI(n) && (n = n.parent), _d(Au(n)); } function Fwe(n) { const a = Wd(n.parent); return za(n) ? ar(a) : Bs(a); } function Bwe(n) { const a = n.name; switch (a.kind) { case 79: return Mf(Or(a)); case 8: case 10: return Mf(a.text); case 164: const l = Kg(a); return Rc(l, 12288) ? l : ce; default: return D.fail("Unsupported property name."); } } function coe(n) { n = Vu(n); const a = ao(fs(n)), l = Ha(n, 0).length ? lc : Ha(n, 1).length ? ld : void 0; return l && Ye(fs(l), (u) => { a.has(u.escapedName) || a.set(u.escapedName, u); }), jy(a); } function RV(n) { return Ha(n, 0).length !== 0 || Ha(n, 1).length !== 0; } function Gwe(n) { const a = Sot(n); return a ? Mo(a, Gwe) : [n]; } function Sot(n) { if (Al(n) & 6) return _a(Ui(n).containingType.types, (a) => so(a, n.escapedName)); if (n.flags & 33554432) { const { links: { leftSpread: a, rightSpread: l, syntheticOrigin: u } } = n; return a ? [a, l] : u ? [u] : WE(xot(n)); } } function xot(n) { let a, l = n; for (; l = Ui(l).target; ) a = l; return a; } function Aot(n) { if (El(n)) return !1; const a = ya(n, Ve); if (!a) return !1; const l = a.parent; return l ? !((Pr(l) || Uc(l)) && l.name === a) && fP(a) === At : !1; } function Cot(n) { let a = au(n.parent, n); if (!a || AI(a)) return !0; const l = lE(a); a = dd(a); const u = Ui(a); return u.exportsSomeValue === void 0 && (u.exportsSomeValue = l ? !!(a.flags & 111551) : Zd(Mh(a), p)), u.exportsSomeValue; function p(g) { return g = ql(g), g && !!(iu(g) & 111551); } } function Lot(n) { return VR(n.parent) && n === n.parent.name; } function Iot(n, a) { var l; const u = ya(n, Ve); if (u) { let p = fP(u, Lot(u)); if (p) { if (p.flags & 1048576) { const x = ns(p.exportSymbol); if (!a && x.flags & 944 && !(x.flags & 3)) return; p = x; } const g = fd(p); if (g) { if (g.flags & 512 && ((l = g.valueDeclaration) == null ? void 0 : l.kind) === 308) { const x = g.valueDeclaration, R = Zn(u); return x !== R ? void 0 : x; } return nr(u.parent, (x) => VR(x) && Lr(x) === g); } } } } function kot(n) { const a = ufe(n); if (a) return a; const l = ya(n, Ve); if (l) { const u = jot(l); if (Fy(u, 111551) && !Ld(u, 111551)) return ud(u); } } function wot(n) { return n.valueDeclaration && us(n.valueDeclaration) && pA(n.valueDeclaration).parent.kind === 295; } function Uwe(n) { if (n.flags & 418 && n.valueDeclaration && !ji(n.valueDeclaration)) { const a = Ui(n); if (a.isDeclarationWithCollidingName === void 0) { const l = Dm(n.valueDeclaration); if (Tce(l) || wot(n)) { const u = Wr(n.valueDeclaration); if (dl(l.parent, n.escapedName, 111551, void 0, void 0, !1)) a.isDeclarationWithCollidingName = !0; else if (u.flags & 16384) { const p = u.flags & 32768, g = Tv(l, !1), x = l.kind === 238 && Tv(l.parent, !1); a.isDeclarationWithCollidingName = !Rce(l) && (!p || !g && !x); } else a.isDeclarationWithCollidingName = !1; } } return a.isDeclarationWithCollidingName; } return !1; } function Dot(n) { if (!El(n)) { const a = ya(n, Ve); if (a) { const l = fP(a); if (l && Uwe(l)) return l.valueDeclaration; } } } function Rot(n) { const a = ya(n, _u); if (a) { const l = Lr(a); if (l) return Uwe(l); } return !1; } function Vwe(n) { switch (D.assert(!Y.verbatimModuleSyntax), n.kind) { case 268: return NV(Lr(n)); case 270: case 271: case 273: case 278: const a = Lr(n); return !!a && NV(a) && !Ld(a, 111551); case 275: const l = n.exportClause; return !!l && (Sh(l) || kt(l.elements, Vwe)); case 274: return n.expression && n.expression.kind === 79 ? NV(Lr(n)) : !0; } return !1; } function Not(n) { const a = ya(n, tu); return a === void 0 || a.parent.kind !== 308 || !RA(a) ? !1 : NV(Lr(a)) && a.moduleReference && !Sl(a.moduleReference); } function NV(n) { var a; if (!n) return !1; const l = Lp(Zl(n)); return l === en ? !0 : !!(((a = iu(l)) != null ? a : -1) & 111551) && (S1(Y) || !PD(l)); } function PD(n) { return Mae(n) || !!n.constEnumOnlyModule; } function OV(n, a) { if (D.assert(!Y.verbatimModuleSyntax), Ig(n)) { const l = Lr(n), u = l && Ui(l); if (u != null && u.referenced) return !0; const p = Ui(l).aliasTarget; if (p && wu(n) & 1 && iu(p) & 111551 && (S1(Y) || !PD(p))) return !0; } return a ? !!Oa(n, (l) => OV(l, a)) : !1; } function jwe(n) { if (s_(n.body)) { if (Sv(n) || fy(n)) return !1; const a = Lr(n), l = kb(a); return l.length > 1 || l.length === 1 && l[0].declaration !== n; } return !1; } function Hwe(n) { return !!H && !$w(n) && !Qp(n) && !!n.initializer && !Jr(n, 16476); } function Oot(n) { return H && $w(n) && !n.initializer && Jr(n, 16476); } function Pot(n) { const a = ya(n, pc); if (!a) return !1; const l = Lr(a); return !l || !(l.flags & 16) ? !1 : !!Zd(uf(l), (u) => u.flags & 111551 && u.valueDeclaration && Pr(u.valueDeclaration)); } function Mot(n) { const a = ya(n, pc); if (!a) return nt; const l = Lr(a); return l && fs(ar(l)) || nt; } function K2(n) { var a; const l = n.id || 0; return l < 0 || l >= sb.length ? 0 : ((a = sb[l]) == null ? void 0 : a.flags) || 0; } function PV(n) { return Twe(n.parent), Wr(n).enumMemberValue; } function Wwe(n) { switch (n.kind) { case 302: case 208: case 209: return !0; } return !1; } function uoe(n) { if (n.kind === 302) return PV(n); const a = Wr(n).resolvedSymbol; if (a && a.flags & 8) { const l = a.valueDeclaration; if (m1(l.parent)) return PV(l); } } function doe(n) { return !!(n.flags & 524288) && Ha(n, 0).length > 0; } function Fot(n, a) { var l; const u = ya(n, $d); if (!u || a && (a = ya(a), !a)) return 0; let p = !1; if (Ed(u)) { const J = wl(Ef(u), 111551, !0, !0, a); p = !!((l = J == null ? void 0 : J.declarations) != null && l.every(u1)); } const g = wl(u, 111551, !0, !0, a), x = g && g.flags & 2097152 ? Zl(g) : g; p || (p = !!(g && Ld(g, 111551))); const R = wl(u, 788968, !0, !1, a); if (x && x === R) { const J = Rre(!1); if (J && x === J) return 9; const $ = ar(x); if ($ && y0($)) return p ? 10 : 1; } if (!R) return p ? 11 : 0; const M = Bs(R); return Zo(M) ? p ? 11 : 0 : M.flags & 3 ? 11 : Rc(M, 245760) ? 2 : Rc(M, 528) ? 6 : Rc(M, 296) ? 3 : Rc(M, 2112) ? 4 : Rc(M, 402653316) ? 5 : Oo(M) ? 7 : Rc(M, 12288) ? 8 : doe(M) ? 10 : Ff(M) ? 7 : 11; } function Bot(n, a, l, u, p) { const g = ya(n, Vce); if (!g) return N.createToken(131); const x = Lr(g); let R = x && !(x.flags & 133120) ? Bb(ar(x)) : xe; return R.flags & 8192 && R.symbol === x && (l |= 1048576), p && (R = qg(R)), Ke.typeToTypeNode(R, a, l | 1024, u); } function Got(n, a, l, u) { const p = ya(n, qa); if (!p) return N.createToken(131); const g = wp(p); return Ke.typeToTypeNode(hs(g), a, l | 1024, u); } function Uot(n, a, l, u) { const p = ya(n, yt); if (!p) return N.createToken(131); const g = Kd(Mwe(p)); return Ke.typeToTypeNode(g, a, l | 1024, u); } function Vot(n) { return He.has(al(n)); } function fP(n, a) { const l = Wr(n).resolvedSymbol; if (l) return l; let u = n; if (a) { const p = n.parent; _u(p) && n === p.name && (u = bE(p)); } return dl(u, n.escapedText, 3257279, void 0, void 0, !0); } function jot(n) { const a = Wr(n).resolvedSymbol; return a && a !== en ? a : dl(n, n.escapedText, 3257279, void 0, void 0, !0, void 0, void 0); } function Hot(n) { if (!El(n)) { const a = ya(n, Ve); if (a) { const l = fP(a); if (l) return Lp(l).valueDeclaration; } } } function Wot(n) { return PM(n) || Wi(n) && ig(n) ? Pb(ar(Lr(n))) : !1; } function zot(n, a, l) { const u = n.flags & 1056 ? Ke.symbolToExpression(n.symbol, 111551, a, void 0, l) : n === Oe ? N.createTrue() : n === rt && N.createFalse(); if (u) return u; const p = n.value; return typeof p == "object" ? N.createBigIntLiteral(p) : typeof p == "number" ? N.createNumericLiteral(p) : N.createStringLiteral(p); } function qot(n, a) { const l = ar(Lr(n)); return zot(l, n, a); } function zwe(n) { return n ? (fb(n), Zn(n).localJsxFactory || Tg) : Tg; } function foe(n) { if (n) { const a = Zn(n); if (a) { if (a.localJsxFragmentFactory) return a.localJsxFragmentFactory; const l = a.pragmas.get("jsxfrag"), u = Ga(l) ? l[0] : l; if (u) return a.localJsxFragmentFactory = Rx(u.arguments.factory, P), a.localJsxFragmentFactory; } } if (Y.jsxFragmentFactory) return Rx(Y.jsxFragmentFactory, P); } function Jot() { const n = e.getResolvedTypeReferenceDirectives(); let a; return n && (a = /* @__PURE__ */ new Map(), n.forEach(({ resolvedTypeReferenceDirective: M }, J, $) => { if (!(M != null && M.resolvedFileName)) return; const he = e.getSourceFile(M.resolvedFileName); he && R(he, J, $); })), { getReferencedExportContainer: Iot, getReferencedImportDeclaration: kot, getReferencedDeclarationWithCollidingName: Dot, isDeclarationWithCollidingName: Rot, isValueAliasDeclaration: (M) => { const J = ya(M); return J ? Vwe(J) : !0; }, hasGlobalName: Vot, isReferencedAliasDeclaration: (M, J) => { const $ = ya(M); return $ ? OV($, J) : !0; }, getNodeCheckFlags: (M) => { const J = ya(M); return J ? K2(J) : 0; }, isTopLevelValueImportEqualsWithEntityName: Not, isDeclarationVisible: E_, isImplementationOfOverload: jwe, isRequiredInitializedParameter: Hwe, isOptionalUninitializedParameterProperty: Oot, isExpandoFunctionDeclaration: Pot, getPropertiesOfContainerFunction: Mot, createTypeOfDeclaration: Bot, createReturnTypeOfSignatureDeclaration: Got, createTypeOfExpression: Uot, createLiteralConstValue: qot, isSymbolAccessible: Hy, isEntityNameVisible: E2, getConstantValue: (M) => { const J = ya(M, Wwe); return J ? uoe(J) : void 0; }, collectLinkedAliases: vE, getReferencedValueDeclaration: Hot, getTypeReferenceSerializationKind: Fot, isOptionalParameter: $w, moduleExportsSomeValue: Cot, isArgumentsLocalBinding: Aot, getExternalModuleFileFromDeclaration: (M) => { const J = ya(M, Oce); return J && _oe(J); }, getTypeReferenceDirectivesForEntityName: p, getTypeReferenceDirectivesForSymbol: g, isLiteralConstDeclaration: Wot, isLateBound: (M) => { const J = ya(M, _u), $ = J && Lr(J); return !!($ && Al($) & 4096); }, getJsxFactoryEntity: zwe, getJsxFragmentFactoryEntity: foe, getAllAccessorDeclarations(M) { M = ya(M, fM); const J = M.kind === 175 ? 174 : 175, $ = Tl(Lr(M), J), he = $ && $.pos < M.pos ? $ : M, De = $ && $.pos < M.pos ? M : $, ke = M.kind === 175 ? M : $, ft = M.kind === 174 ? M : $; return { firstAccessor: he, secondAccessor: De, setAccessor: ke, getAccessor: ft }; }, getSymbolOfExternalModuleSpecifier: (M) => Oh(M, M, void 0), isBindingCapturedByNode: (M, J) => { const $ = ya(M), he = ya(J); return !!$ && !!he && (Wi(he) || us(he)) && xet($, he); }, getDeclarationStatementsForSourceFile: (M, J, $, he) => { const De = ya(M); D.assert(De && De.kind === 308, "Non-sourcefile node passed into getDeclarationsForSourceFile"); const ke = Lr(M); return ke ? ke.exports ? Ke.symbolTableToDeclarationStatements(ke.exports, M, J, $, he) : [] : M.locals ? Ke.symbolTableToDeclarationStatements(M.locals, M, J, $, he) : []; }, isImportRequiredByAugmentation: l }; function l(M) { const J = Zn(M); if (!J.symbol) return !1; const $ = _oe(M); if (!$ || $ === J) return !1; const he = Mh(J.symbol); for (const De of ko(he.values())) if (De.mergeId) { const ke = ns(De); if (ke.declarations) { for (const ft of ke.declarations) if (Zn(ft) === $) return !0; } } return !1; } function u(M) { return M.parent && M.parent.kind === 230 && M.parent.parent && M.parent.parent.kind === 294; } function p(M) { if (!a) return; let J; M.parent.kind === 164 ? J = 1160127 : (J = 790504, (M.kind === 79 && SL(M) || M.kind === 208 && !u(M)) && (J = 1160127)); const $ = wl(M, J, !0); return $ && $ !== en ? g($, J) : void 0; } function g(M, J) { if (!a || !x(M)) return; let $; for (const he of M.declarations) if (he.symbol && he.symbol.flags & J) { const De = Zn(he), ke = a.get(De.path); if (ke) ($ || ($ = [])).push(ke); else return; } return $; } function x(M) { if (!M.declarations) return !1; let J = M; for (; ; ) { const $ = fd(J); if ($) J = $; else break; } if (J.valueDeclaration && J.valueDeclaration.kind === 308 && J.flags & 512) return !1; for (const $ of M.declarations) { const he = Zn($); if (a.has(he.path)) return !0; } return !1; } function R(M, J, $) { if (!a.has(M.path)) { a.set(M.path, [J, $]); for (const { fileName: he, resolutionMode: De } of M.referencedFiles) { const ke = j5(he, M.fileName), ft = e.getSourceFile(ke); ft && R(ft, J, De || M.impliedNodeFormat); } } } } function _oe(n) { const a = n.kind === 264 ? ri(n.name, Go) : OA(n), l = Oh(a, a, void 0); if (l) return Tl(l, 308); } function Kot() { for (const a of e.getSourceFiles()) $pe(a, Y); kr = /* @__PURE__ */ new Map(); let n; for (const a of e.getSourceFiles()) if (!a.redirectInfo) { if (!ef(a)) { const l = a.locals.get("globalThis"); if (l != null && l.declarations) for (const u of l.declarations) Xo.add(Dr(u, _.Declaration_name_conflicts_with_built_in_global_identifier_0, "globalThis")); Dc(He, a.locals); } a.jsGlobalAugmentations && Dc(He, a.jsGlobalAugmentations), a.patternAmbientModules && a.patternAmbientModules.length && (_o = ha(_o, a.patternAmbientModules)), a.moduleAugmentations.length && (n || (n = [])).push(a.moduleAugmentations), a.symbol && a.symbol.globalExports && a.symbol.globalExports.forEach((u, p) => { He.has(p) || He.set(p, u); }); } if (n) for (const a of n) for (const l of a) Hp(l.parent) && rS(l); if (rL(He, ub, _.Declaration_name_conflicts_with_built_in_global_identifier_0), Ui(Me).type = Qe, Ui(At).type = ac("IArguments", 0, !0), Ui(en).type = xe, Ui(ot).type = df(16, ot), vs = ac("Array", 1, !0), Ka = ac("Object", 0, !0), cl = ac("Function", 0, !0), lc = pe && ac("CallableFunction", 0, !0) || cl, ld = pe && ac("NewableFunction", 0, !0) || cl, ul = ac("String", 0, !0), Vd = ac("Number", 0, !0), Ul = ac("Boolean", 0, !0), Lf = ac("RegExp", 0, !0), Dt = Tu(Ie), Nn = Tu(gt), Nn === da && (Nn = Ds(void 0, te, nt, nt, nt)), ls = XAe("ReadonlyArray", 1) || vs, zi = ls ? nD(ls, [Ie]) : Dt, Se = XAe("ThisType", 1), n) for (const a of n) for (const l of a) Hp(l.parent) || rS(l); kr.forEach(({ firstFile: a, secondFile: l, conflictingSymbols: u }) => { if (u.size < 8) u.forEach(({ isBlockScoped: p, firstFileLocations: g, secondFileLocations: x }, R) => { const M = p ? _.Cannot_redeclare_block_scoped_variable_0 : _.Duplicate_identifier_0; for (const J of g) ru(J, M, R, x); for (const J of x) ru(J, M, R, g); }); else { const p = ko(u.keys()).join(", "); Xo.add(qo(Dr(a, _.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, p), Dr(l, _.Conflicts_are_in_this_file))), Xo.add(qo(Dr(l, _.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, p), Dr(a, _.Conflicts_are_in_this_file))); } }), kr = void 0; } function dc(n, a) { if ((c & a) !== a && Y.importHelpers) { const l = Zn(n); if (qS(l, Y) && !(n.flags & 16777216)) { const u = Yot(l, n); if (u !== en) { const p = a & ~c; for (let g = 1; g <= 16777216; g <<= 1) if (p & g) for (const x of Xot(g)) { if (s.has(x)) continue; s.add(x); const R = Hd(u.exports, al(x), 111551); R ? g & 524288 ? kt(kb(R), (M) => Xd(M) > 3) || qe(n, _.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, J0, x, 4) : g & 1048576 ? kt(kb(R), (M) => Xd(M) > 4) || qe(n, _.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, J0, x, 5) : g & 1024 && (kt(kb(R), (M) => Xd(M) > 2) || qe(n, _.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, J0, x, 3)) : qe(n, _.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, J0, x); } } c |= a; } } } function Xot(n) { switch (n) { case 1: return ["__extends"]; case 2: return ["__assign"]; case 4: return ["__rest"]; case 8: return ne ? ["__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 ["__createBinding"]; case 8388608: return ["__setFunctionName"]; case 16777216: return ["__propKey"]; default: return D.fail("Unrecognized helper"); } } function Yot(n, a) { return f || (f = hc(n, J0, _.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found, a) || en), f; } function ah(n) { const a = Zot(n) || $ot(n); if (a !== void 0) return a; if (Ma(n) && E1(n)) return Nc(n, _.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters); let l, u, p, g, x, R = 0, M = !1, J = !1; for (const $ of n.modifiers) if (Du($)) { if (JM(ne, n, n.parent, n.parent.parent)) { if (ne && (n.kind === 174 || n.kind === 175)) { const he = pT(n.parent.members, n); if (zf(he.firstAccessor) && n === he.secondAccessor) return Nc(n, _.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); } } else return n.kind === 171 && !s_(n.body) ? Nc(n, _.A_decorator_can_only_decorate_a_method_implementation_not_an_overload) : Nc(n, _.Decorators_are_not_valid_here); if (R & -132098) return bn($, _.Decorators_are_not_valid_here); if (J && R & 126975) { D.assertIsDefined(x); const he = Zn($); return Hb(he) ? !1 : (qo(qe($, _.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), Dr(x, _.Decorator_used_before_export_here)), !0); } R |= 131072, R & 126975 ? R & 1 && (M = !0) : J = !0, x ?? (x = $); } else { if ($.kind !== 146) { if (n.kind === 168 || n.kind === 170) return bn($, _._0_modifier_cannot_appear_on_a_type_member, mo($.kind)); if (n.kind === 178 && ($.kind !== 124 || !li(n.parent))) return bn($, _._0_modifier_cannot_appear_on_an_index_signature, mo($.kind)); } if ($.kind !== 101 && $.kind !== 145 && $.kind !== 85 && n.kind === 165) return bn($, _._0_modifier_cannot_appear_on_a_type_parameter, mo($.kind)); switch ($.kind) { case 85: if (n.kind !== 263 && n.kind !== 165) return bn(n, _.A_class_member_cannot_have_the_0_keyword, mo(85)); const he = n.parent; if (n.kind === 165 && !(Ys(he) || li(he) || Eh(he) || gk(he) || sC(he) || yO(he) || bh(he))) return bn($, _._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class, mo($.kind)); break; case 161: if (R & 16384) return bn($, _._0_modifier_already_seen, "override"); if (R & 2) return bn($, _._0_modifier_cannot_be_used_with_1_modifier, "override", "declare"); if (R & 64) return bn($, _._0_modifier_must_precede_1_modifier, "override", "readonly"); if (R & 128) return bn($, _._0_modifier_must_precede_1_modifier, "override", "accessor"); if (R & 512) return bn($, _._0_modifier_must_precede_1_modifier, "override", "async"); R |= 16384, g = $; break; case 123: case 122: case 121: const De = ff(ix($.kind)); if (R & 28) return bn($, _.Accessibility_modifier_already_seen); if (R & 16384) return bn($, _._0_modifier_must_precede_1_modifier, De, "override"); if (R & 32) return bn($, _._0_modifier_must_precede_1_modifier, De, "static"); if (R & 128) return bn($, _._0_modifier_must_precede_1_modifier, De, "accessor"); if (R & 64) return bn($, _._0_modifier_must_precede_1_modifier, De, "readonly"); if (R & 512) return bn($, _._0_modifier_must_precede_1_modifier, De, "async"); if (n.parent.kind === 265 || n.parent.kind === 308) return bn($, _._0_modifier_cannot_appear_on_a_module_or_namespace_element, De); if (R & 256) return $.kind === 121 ? bn($, _._0_modifier_cannot_be_used_with_1_modifier, De, "abstract") : bn($, _._0_modifier_must_precede_1_modifier, De, "abstract"); if (zu(n)) return bn($, _.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); R |= ix($.kind); break; case 124: if (R & 32) return bn($, _._0_modifier_already_seen, "static"); if (R & 64) return bn($, _._0_modifier_must_precede_1_modifier, "static", "readonly"); if (R & 512) return bn($, _._0_modifier_must_precede_1_modifier, "static", "async"); if (R & 128) return bn($, _._0_modifier_must_precede_1_modifier, "static", "accessor"); if (n.parent.kind === 265 || n.parent.kind === 308) return bn($, _._0_modifier_cannot_appear_on_a_module_or_namespace_element, "static"); if (n.kind === 166) return bn($, _._0_modifier_cannot_appear_on_a_parameter, "static"); if (R & 256) return bn($, _._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); if (R & 16384) return bn($, _._0_modifier_must_precede_1_modifier, "static", "override"); R |= 32, l = $; break; case 127: if (R & 128) return bn($, _._0_modifier_already_seen, "accessor"); if (R & 64) return bn($, _._0_modifier_cannot_be_used_with_1_modifier, "accessor", "readonly"); if (R & 2) return bn($, _._0_modifier_cannot_be_used_with_1_modifier, "accessor", "declare"); if (n.kind !== 169) return bn($, _.accessor_modifier_can_only_appear_on_a_property_declaration); R |= 128; break; case 146: if (R & 64) return bn($, _._0_modifier_already_seen, "readonly"); if (n.kind !== 169 && n.kind !== 168 && n.kind !== 178 && n.kind !== 166) return bn($, _.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature); if (R & 128) return bn($, _._0_modifier_cannot_be_used_with_1_modifier, "readonly", "accessor"); R |= 64; break; case 93: if (Y.verbatimModuleSyntax && !(n.flags & 16777216) && n.kind !== 262 && n.kind !== 261 && n.kind !== 264 && n.parent.kind === 308 && (ue === 1 || Zn(n).impliedNodeFormat === 1)) return bn($, _.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); if (R & 1) return bn($, _._0_modifier_already_seen, "export"); if (R & 2) return bn($, _._0_modifier_must_precede_1_modifier, "export", "declare"); if (R & 256) return bn($, _._0_modifier_must_precede_1_modifier, "export", "abstract"); if (R & 512) return bn($, _._0_modifier_must_precede_1_modifier, "export", "async"); if (li(n.parent)) return bn($, _._0_modifier_cannot_appear_on_class_elements_of_this_kind, "export"); if (n.kind === 166) return bn($, _._0_modifier_cannot_appear_on_a_parameter, "export"); R |= 1; break; case 88: const ke = n.parent.kind === 308 ? n.parent : n.parent.parent; if (ke.kind === 264 && !ku(ke)) return bn($, _.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); if (R & 1) { if (M) return bn(x, _.Decorators_are_not_valid_here); } else return bn($, _._0_modifier_must_precede_1_modifier, "export", "default"); R |= 1024; break; case 136: if (R & 2) return bn($, _._0_modifier_already_seen, "declare"); if (R & 512) return bn($, _._0_modifier_cannot_be_used_in_an_ambient_context, "async"); if (R & 16384) return bn($, _._0_modifier_cannot_be_used_in_an_ambient_context, "override"); if (li(n.parent) && !Za(n)) return bn($, _._0_modifier_cannot_appear_on_class_elements_of_this_kind, "declare"); if (n.kind === 166) return bn($, _._0_modifier_cannot_appear_on_a_parameter, "declare"); if (n.parent.flags & 16777216 && n.parent.kind === 265) return bn($, _.A_declare_modifier_cannot_be_used_in_an_already_ambient_context); if (zu(n)) return bn($, _._0_modifier_cannot_be_used_with_a_private_identifier, "declare"); if (R & 128) return bn($, _._0_modifier_cannot_be_used_with_1_modifier, "declare", "accessor"); R |= 2, u = $; break; case 126: if (R & 256) return bn($, _._0_modifier_already_seen, "abstract"); if (n.kind !== 260 && n.kind !== 182) { if (n.kind !== 171 && n.kind !== 169 && n.kind !== 174 && n.kind !== 175) return bn($, _.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration); if (!(n.parent.kind === 260 && Jr(n.parent, 256))) return bn($, _.Abstract_methods_can_only_appear_within_an_abstract_class); if (R & 32) return bn($, _._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); if (R & 8) return bn($, _._0_modifier_cannot_be_used_with_1_modifier, "private", "abstract"); if (R & 512 && p) return bn(p, _._0_modifier_cannot_be_used_with_1_modifier, "async", "abstract"); if (R & 16384) return bn($, _._0_modifier_must_precede_1_modifier, "abstract", "override"); if (R & 128) return bn($, _._0_modifier_must_precede_1_modifier, "abstract", "accessor"); } if (du(n) && n.name.kind === 80) return bn($, _._0_modifier_cannot_be_used_with_a_private_identifier, "abstract"); R |= 256; break; case 132: if (R & 512) return bn($, _._0_modifier_already_seen, "async"); if (R & 2 || n.parent.flags & 16777216) return bn($, _._0_modifier_cannot_be_used_in_an_ambient_context, "async"); if (n.kind === 166) return bn($, _._0_modifier_cannot_appear_on_a_parameter, "async"); if (R & 256) return bn($, _._0_modifier_cannot_be_used_with_1_modifier, "async", "abstract"); R |= 512, p = $; break; case 101: case 145: const ft = $.kind === 101 ? 32768 : 65536, Bt = $.kind === 101 ? "in" : "out"; if (n.kind !== 165 || !(Yu(n.parent) || li(n.parent) || Xp(n.parent))) return bn($, _._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias, Bt); if (R & ft) return bn($, _._0_modifier_already_seen, Bt); if (ft & 32768 && R & 65536) return bn($, _._0_modifier_must_precede_1_modifier, "in", "out"); R |= ft; break; } } return n.kind === 173 ? R & 32 ? bn(l, _._0_modifier_cannot_appear_on_a_constructor_declaration, "static") : R & 16384 ? bn(g, _._0_modifier_cannot_appear_on_a_constructor_declaration, "override") : R & 512 ? bn(p, _._0_modifier_cannot_appear_on_a_constructor_declaration, "async") : !1 : (n.kind === 269 || n.kind === 268) && R & 2 ? bn(u, _.A_0_modifier_cannot_be_used_with_an_import_declaration, "declare") : n.kind === 166 && R & 16476 && Ja(n.name) ? bn(n, _.A_parameter_property_may_not_be_declared_using_a_binding_pattern) : n.kind === 166 && R & 16476 && n.dotDotDotToken ? bn(n, _.A_parameter_property_cannot_be_declared_using_a_rest_parameter) : R & 512 ? tst(n, p) : !1; } function $ot(n) { if (!n.modifiers) return !1; const a = Qot(n); return a && Nc(a, _.Modifiers_cannot_appear_here); } function poe(n, a) { const l = un(n.modifiers, lo); return l && l.kind !== a ? l : void 0; } function Qot(n) { switch (n.kind) { case 174: case 175: case 173: case 169: case 168: case 171: case 170: case 178: case 264: case 269: case 268: case 275: case 274: case 215: case 216: case 166: case 165: return; case 172: case 299: case 300: case 267: case 279: return un(n.modifiers, lo); default: if (n.parent.kind === 265 || n.parent.kind === 308) return; switch (n.kind) { case 259: return poe(n, 132); case 260: case 182: return poe(n, 126); case 228: case 261: case 240: case 262: return un(n.modifiers, lo); case 263: return poe(n, 85); default: D.assertNever(n); } } } function Zot(n) { const a = est(n); return a && Nc(a, _.Decorators_are_not_valid_here); } function est(n) { return xJ(n) ? un(n.modifiers, Du) : void 0; } function tst(n, a) { switch (n.kind) { case 171: case 259: case 215: case 216: return !1; } return bn(a, _._0_modifier_cannot_be_used_here, "async"); } function xS(n, a = _.Trailing_comma_not_allowed) { return n && n.hasTrailingComma ? Wb(n[0], n.end - 1, 1, a) : !1; } function qwe(n, a) { if (n && n.length === 0) { const l = n.pos - 1, u = zo(a.text, n.end) + 1; return Wb(a, l, u - l, _.Type_parameter_list_cannot_be_empty); } return !1; } function nst(n) { let a = !1; const l = n.length; for (let u = 0; u < l; u++) { const p = n[u]; if (p.dotDotDotToken) { if (u !== l - 1) return bn(p.dotDotDotToken, _.A_rest_parameter_must_be_last_in_a_parameter_list); if (p.flags & 16777216 || xS(n, _.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma), p.questionToken) return bn(p.questionToken, _.A_rest_parameter_cannot_be_optional); if (p.initializer) return bn(p.name, _.A_rest_parameter_cannot_have_an_initializer); } else if ($w(p)) { if (a = !0, p.questionToken && p.initializer) return bn(p.name, _.Parameter_cannot_have_question_mark_and_initializer); } else if (a && !p.initializer) return bn(p.name, _.A_required_parameter_cannot_follow_an_optional_parameter); } } function rst(n) { return yn(n, (a) => !!a.initializer || Ja(a.name) || fh(a)); } function ist(n) { if (P >= 3) { const a = n.body && oo(n.body) && bJ(n.body.statements); if (a) { const l = rst(n.parameters); if (Ne(l)) { Ye(l, (p) => { qo(qe(p, _.This_parameter_is_not_allowed_with_use_strict_directive), Dr(a, _.use_strict_directive_used_here)); }); const u = l.map((p, g) => g === 0 ? Dr(p, _.Non_simple_parameter_declared_here) : Dr(p, _.and_here)); return qo(qe(a, _.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...u), !0; } } } return !1; } function MV(n) { const a = Zn(n); return ah(n) || qwe(n.typeParameters, a) || nst(n.parameters) || ost(n, a) || Ys(n) && ist(n); } function ast(n) { const a = Zn(n); return dst(n) || qwe(n.typeParameters, a); } function ost(n, a) { if (!zs(n)) return !1; n.typeParameters && !(Ne(n.typeParameters) > 1 || n.typeParameters.hasTrailingComma || n.typeParameters[0].constraint) && a && vc(a.fileName, [".mts", ".cts"]) && bn(n.typeParameters[0], _.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint); const { equalsGreaterThanToken: l } = n, u = il(a, l.pos).line, p = il(a, l.end).line; return u !== p && bn(l, _.Line_terminator_not_permitted_before_arrow); } function sst(n) { const a = n.parameters[0]; if (n.parameters.length !== 1) return bn(a ? a.name : n, _.An_index_signature_must_have_exactly_one_parameter); if (xS(n.parameters, _.An_index_signature_cannot_have_a_trailing_comma), a.dotDotDotToken) return bn(a.dotDotDotToken, _.An_index_signature_cannot_have_a_rest_parameter); if (_3(a)) return bn(a.name, _.An_index_signature_parameter_cannot_have_an_accessibility_modifier); if (a.questionToken) return bn(a.questionToken, _.An_index_signature_parameter_cannot_have_a_question_mark); if (a.initializer) return bn(a.name, _.An_index_signature_parameter_cannot_have_an_initializer); if (!a.type) return bn(a.name, _.An_index_signature_parameter_must_have_a_type_annotation); const l = ci(a.type); return Jh(l, (u) => !!(u.flags & 8576)) || gL(l) ? bn(a.name, _.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead) : rh(l, iU) ? n.type ? !1 : bn(n, _.An_index_signature_must_have_a_type_annotation) : bn(a.name, _.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type); } function lst(n) { return ah(n) || sst(n); } function cst(n, a) { if (a && a.length === 0) { const l = Zn(n), u = a.pos - 1, p = zo(l.text, a.end) + 1; return Wb(l, u, p - u, _.Type_argument_list_cannot_be_empty); } return !1; } function _P(n, a) { return xS(a) || cst(n, a); } function ust(n) { return n.questionDotToken || n.flags & 32 ? bn(n.template, _.Tagged_template_expressions_are_not_permitted_in_an_optional_chain) : !1; } function Jwe(n) { const a = n.types; if (xS(a)) return !0; if (a && a.length === 0) { const l = mo(n.token); return Wb(n, a.pos, 0, _._0_list_cannot_be_empty, l); } return kt(a, Kwe); } function Kwe(n) { return vy(n) && hk(n.expression) && n.typeArguments ? bn(n, _.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments) : _P(n, n.typeArguments); } function dst(n) { let a = !1, l = !1; if (!ah(n) && n.heritageClauses) for (const u of n.heritageClauses) { if (u.token === 94) { if (a) return Nc(u, _.extends_clause_already_seen); if (l) return Nc(u, _.extends_clause_must_precede_implements_clause); if (u.types.length > 1) return Nc(u.types[1], _.Classes_can_only_extend_a_single_class); a = !0; } else { if (D.assert(u.token === 117), l) return Nc(u, _.implements_clause_already_seen); l = !0; } Jwe(u); } } function fst(n) { let a = !1; if (n.heritageClauses) for (const l of n.heritageClauses) { if (l.token === 94) { if (a) return Nc(l, _.extends_clause_already_seen); a = !0; } else return D.assert(l.token === 117), Nc(l, _.Interface_declaration_cannot_have_implements_clause); Jwe(l); } return !1; } function FV(n) { if (n.kind !== 164) return !1; const a = n; return a.expression.kind === 223 && a.expression.operatorToken.kind === 27 ? bn(a.expression, _.A_comma_expression_is_not_allowed_in_a_computed_property_name) : !1; } function moe(n) { if (n.asteriskToken) { if (D.assert(n.kind === 259 || n.kind === 215 || n.kind === 171), n.flags & 16777216) return bn(n.asteriskToken, _.Generators_are_not_allowed_in_an_ambient_context); if (!n.body) return bn(n.asteriskToken, _.An_overload_signature_cannot_be_declared_as_a_generator); } } function hoe(n, a) { return !!n && bn(n, a); } function Xwe(n, a) { return !!n && bn(n, a); } function _st(n, a) { const l = /* @__PURE__ */ new Map(); for (const u of n.properties) { if (u.kind === 301) { if (a) { const x = Us(u.expression); if (Ru(x) || As(x)) return bn(u.expression, _.A_rest_element_cannot_contain_a_binding_pattern); } continue; } const p = u.name; if (p.kind === 164 && FV(p), u.kind === 300 && !a && u.objectAssignmentInitializer && bn(u.equalsToken, _.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), p.kind === 80 && bn(p, _.Private_identifiers_are_not_allowed_outside_class_bodies), H_(u) && u.modifiers) for (const x of u.modifiers) lo(x) && (x.kind !== 132 || u.kind !== 171) && bn(x, _._0_modifier_cannot_be_used_here, bc(x)); else if ($fe(u) && u.modifiers) for (const x of u.modifiers) lo(x) && bn(x, _._0_modifier_cannot_be_used_here, bc(x)); let g; switch (u.kind) { case 300: case 299: Xwe(u.exclamationToken, _.A_definite_assignment_assertion_is_not_permitted_in_this_context), hoe(u.questionToken, _.An_object_member_cannot_be_declared_optional), p.kind === 8 && voe(p), g = 4; break; case 171: g = 8; break; case 174: g = 1; break; case 175: g = 2; break; default: throw D.assertNever(u, "Unexpected syntax kind:" + u.kind); } if (!a) { const x = v1(p); if (x === void 0) continue; const R = l.get(x); if (!R) l.set(x, g); else if (g & 8 && R & 8) bn(p, _.Duplicate_identifier_0, bc(p)); else if (g & 4 && R & 4) bn(p, _.An_object_literal_cannot_have_multiple_properties_with_the_same_name, bc(p)); else if (g & 3 && R & 3) if (R !== 3 && g !== R) l.set(x, g | R); else return bn(p, _.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name); else return bn(p, _.An_object_literal_cannot_have_property_and_accessor_with_the_same_name); } } } function pst(n) { mst(n.tagName), _P(n, n.typeArguments); const a = /* @__PURE__ */ new Map(); for (const l of n.attributes.properties) { if (l.kind === 290) continue; const { name: u, initializer: p } = l; if (!a.get(u.escapedText)) a.set(u.escapedText, !0); else return bn(u, _.JSX_elements_cannot_have_multiple_attributes_with_the_same_name); if (p && p.kind === 291 && !p.expression) return bn(p, _.JSX_attributes_must_only_be_assigned_a_non_empty_expression); } } function mst(n) { if (Pr(n)) { let l = n; do { const p = a(l.name); if (p) return p; l = l.expression; } while (Pr(l)); const u = a(l); if (u) return u; } function a(l) { if (Ve(l) && Or(l).indexOf(":") !== -1) return bn(l, _.JSX_property_access_expressions_cannot_include_JSX_namespace_names); } } function hst(n) { if (n.expression && wk(n.expression)) return bn(n.expression, _.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array); } function Ywe(n) { if (Kh(n)) return !0; if (n.kind === 247 && n.awaitModifier && !(n.flags & 32768)) { const a = Zn(n); if (WM(n)) { if (!Hb(a)) switch (qS(a, Y) || Xo.add(Dr(n.awaitModifier, _.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)), ue) { case 100: case 199: if (a.impliedNodeFormat === 1) { Xo.add(Dr(n.awaitModifier, _.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)); break; } case 7: case 99: case 4: if (P >= 4) break; default: Xo.add(Dr(n.awaitModifier, _.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher)); break; } } else if (!Hb(a)) { const l = Dr(n.awaitModifier, _.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules), u = bf(n); if (u && u.kind !== 173) { D.assert((Mc(u) & 2) === 0, "Enclosing function should never be an async function."); const p = Dr(u, _.Did_you_mean_to_mark_this_function_as_async); qo(l, p); } return Xo.add(l), !0; } return !1; } if (EO(n) && !(n.flags & 32768) && Ve(n.initializer) && n.initializer.escapedText === "async") return bn(n.initializer, _.The_left_hand_side_of_a_for_of_statement_may_not_be_async), !1; if (n.initializer.kind === 258) { const a = n.initializer; if (!yoe(a)) { const l = a.declarations; if (!l.length) return !1; if (l.length > 1) { const p = n.kind === 246 ? _.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : _.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; return Nc(a.declarations[1], p); } const u = l[0]; if (u.initializer) { const p = n.kind === 246 ? _.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : _.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; return bn(u.name, p); } if (u.type) { const p = n.kind === 246 ? _.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : _.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; return bn(u, p); } } } return !1; } function gst(n) { if (!(n.flags & 16777216) && n.parent.kind !== 184 && n.parent.kind !== 261) { if (P < 1) return bn(n.name, _.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher); if (P < 2 && ki(n.name)) return bn(n.name, _.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); if (n.body === void 0 && !Jr(n, 256)) return Wb(n, n.end - 1, 1, _._0_expected, "{"); } if (n.body) { if (Jr(n, 256)) return bn(n, _.An_abstract_accessor_cannot_have_an_implementation); if (n.parent.kind === 184 || n.parent.kind === 261) return bn(n.body, _.An_implementation_cannot_be_declared_in_ambient_contexts); } if (n.typeParameters) return bn(n.name, _.An_accessor_cannot_have_type_parameters); if (!yst(n)) return bn(n.name, n.kind === 174 ? _.A_get_accessor_cannot_have_parameters : _.A_set_accessor_must_have_exactly_one_parameter); if (n.kind === 175) { if (n.type) return bn(n.name, _.A_set_accessor_cannot_have_a_return_type_annotation); const a = D.checkDefined(UI(n), "Return value does not match parameter count assertion."); if (a.dotDotDotToken) return bn(a.dotDotDotToken, _.A_set_accessor_cannot_have_rest_parameter); if (a.questionToken) return bn(a.questionToken, _.A_set_accessor_cannot_have_an_optional_parameter); if (a.initializer) return bn(n.name, _.A_set_accessor_parameter_cannot_have_an_initializer); } return !1; } function yst(n) { return goe(n) || n.parameters.length === (n.kind === 174 ? 0 : 1); } function goe(n) { if (n.parameters.length === (n.kind === 174 ? 1 : 2)) return b1(n); } function vst(n) { if (n.operator === 156) { if (n.type.kind !== 153) return bn(n.type, _._0_expected, mo(153)); let a = vN(n.parent); if (dr(a) && AT(a)) { const l = QS(a); l && (a = FA(l) || l); } switch (a.kind) { case 257: const l = a; if (l.name.kind !== 79) return bn(n, _.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name); if (!GM(l)) return bn(n, _.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement); if (!(l.parent.flags & 2)) return bn(a.name, _.A_variable_whose_type_is_a_unique_symbol_type_must_be_const); break; case 169: if (!za(a) || !VI(a)) return bn(a.name, _.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly); break; case 168: if (!Jr(a, 64)) return bn(a.name, _.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly); break; default: return bn(n, _.unique_symbol_types_are_not_allowed_here); } } else if (n.operator === 146 && n.type.kind !== 185 && n.type.kind !== 186) return Nc(n, _.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types, mo(153)); } function UL(n, a) { if (JXe(n)) return bn(n, a); } function $we(n) { if (MV(n)) return !0; if (n.kind === 171) { if (n.parent.kind === 207) { if (n.modifiers && !(n.modifiers.length === 1 && ss(n.modifiers).kind === 132)) return Nc(n, _.Modifiers_cannot_appear_here); if (hoe(n.questionToken, _.An_object_member_cannot_be_declared_optional)) return !0; if (Xwe(n.exclamationToken, _.A_definite_assignment_assertion_is_not_permitted_in_this_context)) return !0; if (n.body === void 0) return Wb(n, n.end - 1, 1, _._0_expected, "{"); } if (moe(n)) return !0; } if (li(n.parent)) { if (P < 2 && ki(n.name)) return bn(n.name, _.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); if (n.flags & 16777216) return UL(n.name, _.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 (n.kind === 171 && !n.body) return UL(n.name, _.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 (n.parent.kind === 261) return UL(n.name, _.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); if (n.parent.kind === 184) return UL(n.name, _.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 bst(n) { let a = n; for (; a; ) { if (gA(a)) return bn(n, _.Jump_target_cannot_cross_function_boundary); switch (a.kind) { case 253: if (n.label && a.label.escapedText === n.label.escapedText) return n.kind === 248 && !Tv(a.statement, !0) ? bn(n, _.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement) : !1; break; case 252: if (n.kind === 249 && !n.label) return !1; break; default: if (Tv(a, !1) && !n.label) return !1; break; } a = a.parent; } if (n.label) { const l = n.kind === 249 ? _.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : _.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; return bn(n, l); } else { const l = n.kind === 249 ? _.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : _.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; return bn(n, l); } } function Est(n) { if (n.dotDotDotToken) { const a = n.parent.elements; if (n !== Ho(a)) return bn(n, _.A_rest_element_must_be_last_in_a_destructuring_pattern); if (xS(a, _.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma), n.propertyName) return bn(n.name, _.A_rest_element_cannot_have_a_property_name); } if (n.dotDotDotToken && n.initializer) return Wb(n, n.initializer.pos - 1, 1, _.A_rest_element_cannot_have_an_initializer); } function Qwe(n) { return Hf(n) || n.kind === 221 && n.operator === 40 && n.operand.kind === 8; } function Tst(n) { return n.kind === 9 || n.kind === 221 && n.operator === 40 && n.operand.kind === 9; } function Sst(n) { if ((Pr(n) || sl(n) && Qwe(n.argumentExpression)) && Vl(n.expression)) return !!(Kl(n).flags & 1056); } function Zwe(n) { const a = n.initializer; if (a) { const l = !(Qwe(a) || Sst(a) || a.kind === 110 || a.kind === 95 || Tst(a)); if ((PM(n) || Wi(n) && ig(n)) && !n.type) { if (l) return bn(a, _.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference); } else return bn(a, _.Initializers_are_not_allowed_in_ambient_contexts); } } function xst(n) { if (n.parent.parent.kind !== 246 && n.parent.parent.kind !== 247) { if (n.flags & 16777216) Zwe(n); else if (!n.initializer) { if (Ja(n.name) && !Ja(n.parent)) return bn(n, _.A_destructuring_declaration_must_have_an_initializer); if (ig(n)) return bn(n, _.const_declarations_must_be_initialized); } } if (n.exclamationToken && (n.parent.parent.kind !== 240 || !n.type || n.initializer || n.flags & 16777216)) { const l = n.initializer ? _.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : n.type ? _.A_definite_assignment_assertion_is_not_permitted_in_this_context : _.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations; return bn(n.exclamationToken, l); } return (ue < 5 || Zn(n).impliedNodeFormat === 1) && ue !== 4 && !(n.parent.parent.flags & 16777216) && Jr(n.parent.parent, 1) && eDe(n.name), (CI(n) || ig(n)) && tDe(n.name); } function eDe(n) { if (n.kind === 79) { if (Or(n) === "__esModule") return Lst("noEmit", n, _.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules); } else { const a = n.elements; for (const l of a) if (!Ic(l)) return eDe(l.name); } return !1; } function tDe(n) { if (n.kind === 79) { if (n.escapedText === "let") return bn(n, _.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations); } else { const a = n.elements; for (const l of a) Ic(l) || tDe(l.name); } return !1; } function yoe(n) { const a = n.declarations; return xS(n.declarations) ? !0 : n.declarations.length ? !1 : Wb(n, a.pos, a.end - a.pos, _.Variable_declaration_list_cannot_be_empty); } function nDe(n) { switch (n.kind) { case 242: case 243: case 244: case 251: case 245: case 246: case 247: return !1; case 253: return nDe(n.parent); } return !0; } function Ast(n) { if (!nDe(n.parent)) { if (CI(n.declarationList)) return bn(n, _.let_declarations_can_only_be_declared_inside_a_block); if (ig(n.declarationList)) return bn(n, _.const_declarations_can_only_be_declared_inside_a_block); } } function Cst(n) { const a = n.name.escapedText; switch (n.keywordToken) { case 103: if (a !== "target") return bn(n.name, _._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, n.name.escapedText, mo(n.keywordToken), "target"); break; case 100: if (a !== "meta") return bn(n.name, _._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, n.name.escapedText, mo(n.keywordToken), "meta"); break; } } function Hb(n) { return n.parseDiagnostics.length > 0; } function Nc(n, a, l, u, p) { const g = Zn(n); if (!Hb(g)) { const x = _y(g, n.pos); return Xo.add(Lc(g, x.start, x.length, a, l, u, p)), !0; } return !1; } function Wb(n, a, l, u, p, g, x) { const R = Zn(n); return Hb(R) ? !1 : (Xo.add(Lc(R, a, l, u, p, g, x)), !0); } function Lst(n, a, l, u, p, g) { const x = Zn(a); return Hb(x) ? !1 : (Zv(n, a, l, u, p, g), !0); } function bn(n, a, l, u, p) { const g = Zn(n); return Hb(g) ? !1 : (Xo.add(Dr(n, a, l, u, p)), !0); } function Ist(n) { const a = dr(n) ? f3(n) : void 0, l = n.typeParameters || a && Wc(a); if (l) { const u = l.pos === l.end ? l.pos : zo(Zn(n).text, l.pos); return Wb(n, u, l.end - u, _.Type_parameters_cannot_appear_on_a_constructor_declaration); } } function kst(n) { const a = n.type || fp(n); if (a) return bn(a, _.Type_annotation_cannot_appear_on_a_constructor_declaration); } function wst(n) { if (Ss(n.name) && vr(n.name.expression) && n.name.expression.operatorToken.kind === 101) return bn(n.parent.members[0], _.A_mapped_type_may_not_declare_properties_or_methods); if (li(n.parent)) { if (Go(n.name) && n.name.text === "constructor") return bn(n.name, _.Classes_may_not_have_a_field_named_constructor); if (UL(n.name, _.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type)) return !0; if (P < 2 && ki(n.name)) return bn(n.name, _.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); if (P < 2 && Qd(n)) return bn(n.name, _.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher); if (Qd(n) && hoe(n.questionToken, _.An_accessor_property_cannot_be_declared_optional)) return !0; } else if (n.parent.kind === 261) { if (UL(n.name, _.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 (D.assertNode(n, Tf), n.initializer) return bn(n.initializer, _.An_interface_property_cannot_have_an_initializer); } else if (rf(n.parent)) { if (UL(n.name, _.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 (D.assertNode(n, Tf), n.initializer) return bn(n.initializer, _.A_type_literal_property_cannot_have_an_initializer); } if (n.flags & 16777216 && Zwe(n), Za(n) && n.exclamationToken && (!li(n.parent) || !n.type || n.initializer || n.flags & 16777216 || za(n) || T1(n))) { const a = n.initializer ? _.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : n.type ? _.A_definite_assignment_assertion_is_not_permitted_in_this_context : _.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations; return bn(n.exclamationToken, a); } } function Dst(n) { return n.kind === 261 || n.kind === 262 || n.kind === 269 || n.kind === 268 || n.kind === 275 || n.kind === 274 || n.kind === 267 || Jr(n, 1027) ? !1 : Nc(n, _.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier); } function Rst(n) { for (const a of n.statements) if ((_u(a) || a.kind === 240) && Dst(a)) return !0; return !1; } function Nst(n) { return !!(n.flags & 16777216) && Rst(n); } function Kh(n) { if (n.flags & 16777216) { if (!Wr(n).hasReportedStatementInAmbientContext && (qa(n.parent) || F0(n.parent))) return Wr(n).hasReportedStatementInAmbientContext = Nc(n, _.An_implementation_cannot_be_declared_in_ambient_contexts); if (n.parent.kind === 238 || n.parent.kind === 265 || n.parent.kind === 308) { const l = Wr(n.parent); if (!l.hasReportedStatementInAmbientContext) return l.hasReportedStatementInAmbientContext = Nc(n, _.Statements_are_not_allowed_in_ambient_contexts); } } return !1; } function voe(n) { if (n.numericLiteralFlags & 32) { let a; if (P >= 1 ? a = _.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0 : VW(n, 198) ? a = _.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0 : VW(n, 302) && (a = _.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0), a) { const l = Nv(n.parent) && n.parent.operator === 40, u = (l ? "-" : "") + "0o" + n.text; return bn(l ? n.parent : n, a, u); } } return Ost(n), !1; } function Ost(n) { const a = bc(n).indexOf(".") !== -1, l = n.numericLiteralFlags & 16; a || l || +n.text <= 2 ** 53 - 1 || Ry(!1, Dr(n, _.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers)); } function Pst(n) { return !!(!(X0(n.parent) || Nv(n.parent) && X0(n.parent.parent)) && P < 7 && bn(n, _.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)); } function Mst(n, a, l, u, p) { const g = Zn(n); if (!Hb(g)) { const x = _y(g, n.pos); return Xo.add(Lc(g, Qc(x), 0, a, l, u, p)), !0; } return !1; } function Fst() { return as || (as = [], He.forEach((n, a) => { E5.test(a) && as.push(n); })), as; } function Bst(n) { var a; return n.isTypeOnly && n.name && n.namedBindings ? bn(n, _.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both) : n.isTypeOnly && ((a = n.namedBindings) == null ? void 0 : a.kind) === 272 ? rDe(n.namedBindings) : !1; } function rDe(n) { return !!Ye(n.elements, (a) => { if (a.isTypeOnly) return Nc(a, a.kind === 273 ? _.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); }); } function Gst(n) { if (Y.verbatimModuleSyntax && ue === 1) return bn(n, _.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); if (ue === 5) return bn(n, _.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext); if (n.typeArguments) return bn(n, _.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments); const a = n.arguments; if (ue !== 99 && ue !== 199 && ue !== 100 && (xS(a), a.length > 1)) { const u = a[1]; return bn(u, _.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext); } if (a.length === 0 || a.length > 2) return bn(n, _.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments); const l = un(a, Th); return l ? bn(l, _.Argument_of_dynamic_import_cannot_be_spread_element) : !1; } function Ust(n, a) { const l = Qr(n); if (l & 20 && a.flags & 1048576) return un(a.types, (u) => { if (u.flags & 524288) { const p = l & Qr(u); if (p & 4) return n.target === u.target; if (p & 16) return !!n.aliasSymbol && n.aliasSymbol === u.aliasSymbol; } return !1; }); } function Vst(n, a) { if (Qr(n) & 128 && Jh(a, A0)) return un(a.types, (l) => !A0(l)); } function jst(n, a) { let l = 0; if (Ha(n, l).length > 0 || (l = 1, Ha(n, l).length > 0)) return un(a.types, (p) => Ha(p, l).length > 0); } function Hst(n, a) { let l; if (!(n.flags & 406978556)) { let u = 0; for (const p of a.types) if (!(p.flags & 406978556)) { const g = Lo([fm(n), fm(p)]); if (g.flags & 4194304) return p; if (op(g) || g.flags & 1048576) { const x = g.flags & 1048576 ? xa(g.types, op) : 1; x >= u && (l = p, u = x); } } } return l; } function Wst(n) { if (fl(n, 67108864)) { const a = uc(n, (l) => !(l.flags & 134348796)); if (!(a.flags & 131072)) return a; } return n; } function iDe(n, a, l, u) { if (a.flags & 1048576 && n.flags & 2621440) { const p = TLe(a, n); if (p) return p; const g = fs(n); if (g) { const x = ELe(g, a); if (x) return cie(a, rn(x, (R) => [() => ar(R), R.escapedName]), l, void 0, u); } } } } function qPe(e) { return !F0(e); } function vme(e) { return e.kind !== 259 && e.kind !== 171 || !!e.body; } function bme(e) { switch (e.parent.kind) { case 273: case 278: return Ve(e); default: return sg(e); } } function Eme(e) { switch (e) { case 0: return "yieldType"; case 1: return "returnType"; case 2: return "nextType"; } } function mu(e) { return !!(e.flags & 1); } function RK(e) { return !!(e.flags & 2); } function JPe(e) { return { getCommonSourceDirectory: e.getCommonSourceDirectory ? () => e.getCommonSourceDirectory() : () => "", getCurrentDirectory: () => e.getCurrentDirectory(), getSymlinkCache: Fo(e, e.getSymlinkCache), getPackageJsonInfoCache: () => { var t; return (t = e.getPackageJsonInfoCache) == null ? void 0 : t.call(e); }, useCaseSensitiveFileNames: Fo(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 E5, u8, NK, OK, PK, MK, T5, S5, x5, A5, Tme, d8, FK, Sf, f8, KPe = L({ "src/compiler/checker.ts"() { Ra(), wK(), i1(), E5 = /^".+"$/, u8 = "(anonymous)", NK = 1, OK = 1, PK = 1, MK = 1, T5 = /* @__PURE__ */ ((e) => (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))(T5 || {}), S5 = new Map(Object.entries({ string: 256, number: 512, bigint: 1024, boolean: 2048, symbol: 4096, undefined: 524288, object: 8192, function: 16384 })), x5 = /* @__PURE__ */ ((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.IsForStringLiteralArgumentCompletions = 32] = "IsForStringLiteralArgumentCompletions", e[e.RestBindingElement = 64] = "RestBindingElement", e))(x5 || {}), A5 = /* @__PURE__ */ ((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))(A5 || {}), Tme = IP(vme, qPe), d8 = new Map(Object.entries({ Uppercase: 0, Lowercase: 1, Capitalize: 2, Uncapitalize: 3 })), FK = class { }, ((e) => { e.JSX = "JSX", e.IntrinsicElements = "IntrinsicElements", e.ElementClass = "ElementClass", e.ElementAttributesPropertyNameContainer = "ElementAttributesProperty", e.ElementChildrenAttributeNameContainer = "ElementChildrenAttribute", e.Element = "Element", e.IntrinsicAttributes = "IntrinsicAttributes", e.IntrinsicClassAttributes = "IntrinsicClassAttributes", e.LibraryManagedAttributes = "LibraryManagedAttributes"; })(Sf || (Sf = {})), f8 = class { constructor(e, t, r) { this.moduleResolverHost = void 0, this.inner = void 0, this.disableTrackSymbol = !1; for (var i; t instanceof f8; ) t = t.inner; this.inner = t, this.moduleResolverHost = r, this.context = e, this.canTrackSymbol = !!((i = this.inner) != null && i.trackSymbol); } trackSymbol(e, t, r) { var i; return (i = this.inner) != null && i.trackSymbol && !this.disableTrackSymbol && this.inner.trackSymbol(e, t, r) ? (this.onDiagnosticReported(), !0) : !1; } reportInaccessibleThisError() { var e; (e = this.inner) != null && e.reportInaccessibleThisError && (this.onDiagnosticReported(), this.inner.reportInaccessibleThisError()); } reportPrivateInBaseOfClassExpression(e) { var t; (t = this.inner) != null && t.reportPrivateInBaseOfClassExpression && (this.onDiagnosticReported(), this.inner.reportPrivateInBaseOfClassExpression(e)); } reportInaccessibleUniqueSymbolError() { var e; (e = this.inner) != null && e.reportInaccessibleUniqueSymbolError && (this.onDiagnosticReported(), this.inner.reportInaccessibleUniqueSymbolError()); } reportCyclicStructureError() { var e; (e = this.inner) != null && e.reportCyclicStructureError && (this.onDiagnosticReported(), this.inner.reportCyclicStructureError()); } reportLikelyUnsafeImportRequiredError(e) { var t; (t = this.inner) != null && t.reportLikelyUnsafeImportRequiredError && (this.onDiagnosticReported(), this.inner.reportLikelyUnsafeImportRequiredError(e)); } reportTruncationError() { var e; (e = this.inner) != null && e.reportTruncationError && (this.onDiagnosticReported(), this.inner.reportTruncationError()); } trackReferencedAmbientModule(e, t) { var r; (r = this.inner) != null && r.trackReferencedAmbientModule && (this.onDiagnosticReported(), this.inner.trackReferencedAmbientModule(e, t)); } trackExternalModuleSymbolOfImportTypeNode(e) { var t; (t = this.inner) != null && t.trackExternalModuleSymbolOfImportTypeNode && (this.onDiagnosticReported(), this.inner.trackExternalModuleSymbolOfImportTypeNode(e)); } reportNonlocalAugmentation(e, t, r) { var i; (i = this.inner) != null && i.reportNonlocalAugmentation && (this.onDiagnosticReported(), this.inner.reportNonlocalAugmentation(e, t, r)); } reportNonSerializableProperty(e) { var t; (t = this.inner) != null && t.reportNonSerializableProperty && (this.onDiagnosticReported(), this.inner.reportNonSerializableProperty(e)); } reportImportTypeNodeResolutionModeOverride() { var e; (e = this.inner) != null && e.reportImportTypeNodeResolutionModeOverride && (this.onDiagnosticReported(), this.inner.reportImportTypeNodeResolutionModeOverride()); } onDiagnosticReported() { this.context.reportedDiagnostic = !0; } }; } }); function st(e, t, r, i) { if (e === void 0) return e; const o = t(e); let s; if (o !== void 0) return Ga(o) ? s = (i || ZPe)(o) : s = o, D.assertNode(s, r), s; } function Kn(e, t, r, i, o) { if (e === void 0) return e; const s = e.length; (i === void 0 || i < 0) && (i = 0), (o === void 0 || o > s - i) && (o = s - i); let c, f = -1, d = -1; i > 0 || o < s ? c = e.hasTrailingComma && i + o === s : (f = e.pos, d = e.end, c = e.hasTrailingComma); const y = Sme(e, t, r, i, o); if (y !== e) { const m = N.createNodeArray(y, c); return Mm(m, f, d), m; } return e; } function BK(e, t, r, i, o) { if (e === void 0) return e; const s = e.length; return (i === void 0 || i < 0) && (i = 0), (o === void 0 || o > s - i) && (o = s - i), Sme(e, t, r, i, o); } function Sme(e, t, r, i, o) { let s; const c = e.length; (i > 0 || o < c) && (s = []); for (let f = 0; f < o; f++) { const d = e[f + i], y = d !== void 0 ? t ? t(d) : d : void 0; if ((s !== void 0 || y === void 0 || y !== d) && (s === void 0 && (s = e.slice(0, f), D.assertEachNode(s, r)), y)) if (Ga(y)) for (const m of y) D.assertNode(m, r), s.push(m); else D.assertNode(y, r), s.push(y); } return s || (D.assertEachNode(e, r), e); } function C5(e, t, r, i, o, s = Kn) { return r.startLexicalEnvironment(), e = s(e, t, Ia, i), o && (e = r.factory.ensureUseStrict(e)), N.mergeLexicalEnvironment(e, r.endLexicalEnvironment()); } function Wl(e, t, r, i = Kn) { let o; return r.startLexicalEnvironment(), e && (r.setLexicalEnvironmentFlags(1, !0), o = i(e, t, Ma), r.getLexicalEnvironmentFlags() & 2 && $o(r.getCompilerOptions()) >= 2 && (o = XPe(o, r)), r.setLexicalEnvironmentFlags(1, !1)), r.suspendLexicalEnvironment(), o; } function XPe(e, t) { let r; for (let i = 0; i < e.length; i++) { const o = e[i], s = YPe(o, t); (r || s !== o) && (r || (r = e.slice(0, i)), r[i] = s); } return r ? mt(t.factory.createNodeArray(r, e.hasTrailingComma), e) : e; } function YPe(e, t) { return e.dotDotDotToken ? e : Ja(e.name) ? $Pe(e, t) : e.initializer ? QPe(e, e.name, e.initializer, t) : e; } function $Pe(e, t) { const { factory: r } = t; return t.addInitializationStatement(r.createVariableStatement(void 0, r.createVariableDeclarationList([ r.createVariableDeclaration(e.name, void 0, e.type, e.initializer ? r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e), r.createVoidZero()), void 0, e.initializer, void 0, r.getGeneratedNameForNode(e)) : r.getGeneratedNameForNode(e)) ]))), r.updateParameterDeclaration(e, e.modifiers, e.dotDotDotToken, r.getGeneratedNameForNode(e), e.questionToken, e.type, void 0); } function QPe(e, t, r, i) { const o = i.factory; return i.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t), "undefined"), or(mt(o.createBlock([ o.createExpressionStatement(or(mt(o.createAssignment(or(o.cloneNode(t), 96), or(r, 96 | ho(r) | 3072)), e), 3072)) ]), e), 3905))), o.updateParameterDeclaration(e, e.modifiers, e.dotDotDotToken, e.name, e.questionToken, e.type, void 0); } function xf(e, t, r, i = st) { r.resumeLexicalEnvironment(); const o = i(e, t, EM), s = r.endLexicalEnvironment(); if (kt(s)) { if (!o) return r.factory.createBlock(s); const c = r.factory.converters.convertToFunctionBlock(o), f = N.mergeLexicalEnvironment(c.statements, s); return r.factory.updateBlock(c, f); } return o; } function p_(e, t, r, i = st) { r.startBlockScope(); const o = i(e, t, Ia, r.factory.liftToBlock); D.assert(o); const s = r.endBlockScope(); return kt(s) ? oo(o) ? (s.push(...o.statements), r.factory.updateBlock(o, s)) : (s.push(o), r.factory.createBlock(s)) : o; } function _8(e, t, r = t) { if (r === t || e.length <= 1) return Kn(e, t, yt); let i = 0; const o = e.length; return Kn(e, (s) => { const c = i < o - 1; return i++, c ? r(s) : t(s); }, yt); } function Bn(e, t, r, i = Kn, o, s = st) { if (e === void 0) return; const c = xme[e.kind]; return c === void 0 ? e : c(e, t, r, i, s, o); } function ZPe(e) { return D.assert(e.length <= 1, "Too many nodes written to output."), bm(e); } var xme, eMe = L({ "src/compiler/visitorPublic.ts"() { Ra(), xme = { [163]: function(t, r, i, o, s, c) { return i.factory.updateQualifiedName(t, D.checkDefined(s(t.left, r, $d)), D.checkDefined(s(t.right, r, Ve))); }, [164]: function(t, r, i, o, s, c) { return i.factory.updateComputedPropertyName(t, D.checkDefined(s(t.expression, r, yt))); }, [165]: function(t, r, i, o, s, c) { return i.factory.updateTypeParameterDeclaration(t, o(t.modifiers, r, lo), D.checkDefined(s(t.name, r, Ve)), s(t.constraint, r, Pi), s(t.default, r, Pi)); }, [166]: function(t, r, i, o, s, c) { return i.factory.updateParameterDeclaration(t, o(t.modifiers, r, el), c ? s(t.dotDotDotToken, c, g7) : t.dotDotDotToken, D.checkDefined(s(t.name, r, dh)), c ? s(t.questionToken, c, Rv) : t.questionToken, s(t.type, r, Pi), s(t.initializer, r, yt)); }, [167]: function(t, r, i, o, s, c) { return i.factory.updateDecorator(t, D.checkDefined(s(t.expression, r, yt))); }, [168]: function(t, r, i, o, s, c) { return i.factory.updatePropertySignature(t, o(t.modifiers, r, lo), D.checkDefined(s(t.name, r, hl)), c ? s(t.questionToken, c, Rv) : t.questionToken, s(t.type, r, Pi)); }, [169]: function(t, r, i, o, s, c) { var f, d; return i.factory.updatePropertyDeclaration(t, o(t.modifiers, r, el), D.checkDefined(s(t.name, r, hl)), c ? s((f = t.questionToken) != null ? f : t.exclamationToken, c, Qfe) : (d = t.questionToken) != null ? d : t.exclamationToken, s(t.type, r, Pi), s(t.initializer, r, yt)); }, [170]: function(t, r, i, o, s, c) { return i.factory.updateMethodSignature(t, o(t.modifiers, r, lo), D.checkDefined(s(t.name, r, hl)), c ? s(t.questionToken, c, Rv) : t.questionToken, o(t.typeParameters, r, Ol), o(t.parameters, r, Ma), s(t.type, r, Pi)); }, [171]: function(t, r, i, o, s, c) { return i.factory.updateMethodDeclaration(t, o(t.modifiers, r, el), c ? s(t.asteriskToken, c, hO) : t.asteriskToken, D.checkDefined(s(t.name, r, hl)), c ? s(t.questionToken, c, Rv) : t.questionToken, o(t.typeParameters, r, Ol), Wl(t.parameters, r, i, o), s(t.type, r, Pi), xf(t.body, r, i, s)); }, [173]: function(t, r, i, o, s, c) { return i.factory.updateConstructorDeclaration(t, o(t.modifiers, r, el), Wl(t.parameters, r, i, o), xf(t.body, r, i, s)); }, [174]: function(t, r, i, o, s, c) { return i.factory.updateGetAccessorDeclaration(t, o(t.modifiers, r, el), D.checkDefined(s(t.name, r, hl)), Wl(t.parameters, r, i, o), s(t.type, r, Pi), xf(t.body, r, i, s)); }, [175]: function(t, r, i, o, s, c) { return i.factory.updateSetAccessorDeclaration(t, o(t.modifiers, r, el), D.checkDefined(s(t.name, r, hl)), Wl(t.parameters, r, i, o), xf(t.body, r, i, s)); }, [172]: function(t, r, i, o, s, c) { return i.startLexicalEnvironment(), i.suspendLexicalEnvironment(), i.factory.updateClassStaticBlockDeclaration(t, xf(t.body, r, i, s)); }, [176]: function(t, r, i, o, s, c) { return i.factory.updateCallSignature(t, o(t.typeParameters, r, Ol), o(t.parameters, r, Ma), s(t.type, r, Pi)); }, [177]: function(t, r, i, o, s, c) { return i.factory.updateConstructSignature(t, o(t.typeParameters, r, Ol), o(t.parameters, r, Ma), s(t.type, r, Pi)); }, [178]: function(t, r, i, o, s, c) { return i.factory.updateIndexSignature(t, o(t.modifiers, r, el), o(t.parameters, r, Ma), D.checkDefined(s(t.type, r, Pi))); }, [179]: function(t, r, i, o, s, c) { return i.factory.updateTypePredicateNode(t, s(t.assertsModifier, r, vfe), D.checkDefined(s(t.parameterName, r, Zfe)), s(t.type, r, Pi)); }, [180]: function(t, r, i, o, s, c) { return i.factory.updateTypeReferenceNode(t, D.checkDefined(s(t.typeName, r, $d)), o(t.typeArguments, r, Pi)); }, [181]: function(t, r, i, o, s, c) { return i.factory.updateFunctionTypeNode(t, o(t.typeParameters, r, Ol), o(t.parameters, r, Ma), D.checkDefined(s(t.type, r, Pi))); }, [182]: function(t, r, i, o, s, c) { return i.factory.updateConstructorTypeNode(t, o(t.modifiers, r, lo), o(t.typeParameters, r, Ol), o(t.parameters, r, Ma), D.checkDefined(s(t.type, r, Pi))); }, [183]: function(t, r, i, o, s, c) { return i.factory.updateTypeQueryNode(t, D.checkDefined(s(t.exprName, r, $d)), o(t.typeArguments, r, Pi)); }, [184]: function(t, r, i, o, s, c) { return i.factory.updateTypeLiteralNode(t, o(t.members, r, QE)); }, [185]: function(t, r, i, o, s, c) { return i.factory.updateArrayTypeNode(t, D.checkDefined(s(t.elementType, r, Pi))); }, [186]: function(t, r, i, o, s, c) { return i.factory.updateTupleTypeNode(t, o(t.elements, r, Pi)); }, [187]: function(t, r, i, o, s, c) { return i.factory.updateOptionalTypeNode(t, D.checkDefined(s(t.type, r, Pi))); }, [188]: function(t, r, i, o, s, c) { return i.factory.updateRestTypeNode(t, D.checkDefined(s(t.type, r, Pi))); }, [189]: function(t, r, i, o, s, c) { return i.factory.updateUnionTypeNode(t, o(t.types, r, Pi)); }, [190]: function(t, r, i, o, s, c) { return i.factory.updateIntersectionTypeNode(t, o(t.types, r, Pi)); }, [191]: function(t, r, i, o, s, c) { return i.factory.updateConditionalTypeNode(t, D.checkDefined(s(t.checkType, r, Pi)), D.checkDefined(s(t.extendsType, r, Pi)), D.checkDefined(s(t.trueType, r, Pi)), D.checkDefined(s(t.falseType, r, Pi))); }, [192]: function(t, r, i, o, s, c) { return i.factory.updateInferTypeNode(t, D.checkDefined(s(t.typeParameter, r, Ol))); }, [202]: function(t, r, i, o, s, c) { return i.factory.updateImportTypeNode(t, D.checkDefined(s(t.argument, r, Pi)), s(t.assertions, r, wfe), s(t.qualifier, r, $d), o(t.typeArguments, r, Pi), t.isTypeOf); }, [298]: function(t, r, i, o, s, c) { return i.factory.updateImportTypeAssertionContainer(t, D.checkDefined(s(t.assertClause, r, A7)), t.multiLine); }, [199]: function(t, r, i, o, s, c) { return i.factory.updateNamedTupleMember(t, c ? s(t.dotDotDotToken, c, g7) : t.dotDotDotToken, D.checkDefined(s(t.name, r, Ve)), c ? s(t.questionToken, c, Rv) : t.questionToken, D.checkDefined(s(t.type, r, Pi))); }, [193]: function(t, r, i, o, s, c) { return i.factory.updateParenthesizedType(t, D.checkDefined(s(t.type, r, Pi))); }, [195]: function(t, r, i, o, s, c) { return i.factory.updateTypeOperatorNode(t, D.checkDefined(s(t.type, r, Pi))); }, [196]: function(t, r, i, o, s, c) { return i.factory.updateIndexedAccessTypeNode(t, D.checkDefined(s(t.objectType, r, Pi)), D.checkDefined(s(t.indexType, r, Pi))); }, [197]: function(t, r, i, o, s, c) { return i.factory.updateMappedTypeNode(t, c ? s(t.readonlyToken, c, e_e) : t.readonlyToken, D.checkDefined(s(t.typeParameter, r, Ol)), s(t.nameType, r, Pi), c ? s(t.questionToken, c, t_e) : t.questionToken, s(t.type, r, Pi), o(t.members, r, QE)); }, [198]: function(t, r, i, o, s, c) { return i.factory.updateLiteralTypeNode(t, D.checkDefined(s(t.literal, r, ace))); }, [200]: function(t, r, i, o, s, c) { return i.factory.updateTemplateLiteralType(t, D.checkDefined(s(t.head, r, oC)), o(t.templateSpans, r, Afe)); }, [201]: function(t, r, i, o, s, c) { return i.factory.updateTemplateLiteralTypeSpan(t, D.checkDefined(s(t.type, r, Pi)), D.checkDefined(s(t.literal, r, gM))); }, [203]: function(t, r, i, o, s, c) { return i.factory.updateObjectBindingPattern(t, o(t.elements, r, us)); }, [204]: function(t, r, i, o, s, c) { return i.factory.updateArrayBindingPattern(t, o(t.elements, r, vM)); }, [205]: function(t, r, i, o, s, c) { return i.factory.updateBindingElement(t, c ? s(t.dotDotDotToken, c, g7) : t.dotDotDotToken, s(t.propertyName, r, hl), D.checkDefined(s(t.name, r, dh)), s(t.initializer, r, yt)); }, [206]: function(t, r, i, o, s, c) { return i.factory.updateArrayLiteralExpression(t, o(t.elements, r, yt)); }, [207]: function(t, r, i, o, s, c) { return i.factory.updateObjectLiteralExpression(t, o(t.properties, r, dy)); }, [208]: function(t, r, i, o, s, c) { return _M(t) ? i.factory.updatePropertyAccessChain(t, D.checkDefined(s(t.expression, r, yt)), c ? s(t.questionDotToken, c, y7) : t.questionDotToken, D.checkDefined(s(t.name, r, eg))) : i.factory.updatePropertyAccessExpression(t, D.checkDefined(s(t.expression, r, yt)), D.checkDefined(s(t.name, r, eg))); }, [209]: function(t, r, i, o, s, c) { return XH(t) ? i.factory.updateElementAccessChain(t, D.checkDefined(s(t.expression, r, yt)), c ? s(t.questionDotToken, c, y7) : t.questionDotToken, D.checkDefined(s(t.argumentExpression, r, yt))) : i.factory.updateElementAccessExpression(t, D.checkDefined(s(t.expression, r, yt)), D.checkDefined(s(t.argumentExpression, r, yt))); }, [210]: function(t, r, i, o, s, c) { return YE(t) ? i.factory.updateCallChain(t, D.checkDefined(s(t.expression, r, yt)), c ? s(t.questionDotToken, c, y7) : t.questionDotToken, o(t.typeArguments, r, Pi), o(t.arguments, r, yt)) : i.factory.updateCallExpression(t, D.checkDefined(s(t.expression, r, yt)), o(t.typeArguments, r, Pi), o(t.arguments, r, yt)); }, [211]: function(t, r, i, o, s, c) { return i.factory.updateNewExpression(t, D.checkDefined(s(t.expression, r, yt)), o(t.typeArguments, r, Pi), o(t.arguments, r, yt)); }, [212]: function(t, r, i, o, s, c) { return i.factory.updateTaggedTemplateExpression(t, D.checkDefined(s(t.tag, r, yt)), o(t.typeArguments, r, Pi), D.checkDefined(s(t.template, r, vA))); }, [213]: function(t, r, i, o, s, c) { return i.factory.updateTypeAssertion(t, D.checkDefined(s(t.type, r, Pi)), D.checkDefined(s(t.expression, r, yt))); }, [214]: function(t, r, i, o, s, c) { return i.factory.updateParenthesizedExpression(t, D.checkDefined(s(t.expression, r, yt))); }, [215]: function(t, r, i, o, s, c) { return i.factory.updateFunctionExpression(t, o(t.modifiers, r, lo), c ? s(t.asteriskToken, c, hO) : t.asteriskToken, s(t.name, r, Ve), o(t.typeParameters, r, Ol), Wl(t.parameters, r, i, o), s(t.type, r, Pi), xf(t.body, r, i, s)); }, [216]: function(t, r, i, o, s, c) { return i.factory.updateArrowFunction(t, o(t.modifiers, r, lo), o(t.typeParameters, r, Ol), Wl(t.parameters, r, i, o), s(t.type, r, Pi), c ? D.checkDefined(s(t.equalsGreaterThanToken, c, gfe)) : t.equalsGreaterThanToken, xf(t.body, r, i, s)); }, [217]: function(t, r, i, o, s, c) { return i.factory.updateDeleteExpression(t, D.checkDefined(s(t.expression, r, yt))); }, [218]: function(t, r, i, o, s, c) { return i.factory.updateTypeOfExpression(t, D.checkDefined(s(t.expression, r, yt))); }, [219]: function(t, r, i, o, s, c) { return i.factory.updateVoidExpression(t, D.checkDefined(s(t.expression, r, yt))); }, [220]: function(t, r, i, o, s, c) { return i.factory.updateAwaitExpression(t, D.checkDefined(s(t.expression, r, yt))); }, [221]: function(t, r, i, o, s, c) { return i.factory.updatePrefixUnaryExpression(t, D.checkDefined(s(t.operand, r, yt))); }, [222]: function(t, r, i, o, s, c) { return i.factory.updatePostfixUnaryExpression(t, D.checkDefined(s(t.operand, r, yt))); }, [223]: function(t, r, i, o, s, c) { return i.factory.updateBinaryExpression(t, D.checkDefined(s(t.left, r, yt)), c ? D.checkDefined(s(t.operatorToken, c, r_e)) : t.operatorToken, D.checkDefined(s(t.right, r, yt))); }, [224]: function(t, r, i, o, s, c) { return i.factory.updateConditionalExpression(t, D.checkDefined(s(t.condition, r, yt)), c ? D.checkDefined(s(t.questionToken, c, Rv)) : t.questionToken, D.checkDefined(s(t.whenTrue, r, yt)), c ? D.checkDefined(s(t.colonToken, c, hfe)) : t.colonToken, D.checkDefined(s(t.whenFalse, r, yt))); }, [225]: function(t, r, i, o, s, c) { return i.factory.updateTemplateExpression(t, D.checkDefined(s(t.head, r, oC)), o(t.templateSpans, r, Sk)); }, [226]: function(t, r, i, o, s, c) { return i.factory.updateYieldExpression(t, c ? s(t.asteriskToken, c, hO) : t.asteriskToken, s(t.expression, r, yt)); }, [227]: function(t, r, i, o, s, c) { return i.factory.updateSpreadElement(t, D.checkDefined(s(t.expression, r, yt))); }, [228]: function(t, r, i, o, s, c) { return i.factory.updateClassExpression(t, o(t.modifiers, r, el), s(t.name, r, Ve), o(t.typeParameters, r, Ol), o(t.heritageClauses, r, Md), o(t.members, r, Pc)); }, [230]: function(t, r, i, o, s, c) { return i.factory.updateExpressionWithTypeArguments(t, D.checkDefined(s(t.expression, r, yt)), o(t.typeArguments, r, Pi)); }, [231]: function(t, r, i, o, s, c) { return i.factory.updateAsExpression(t, D.checkDefined(s(t.expression, r, yt)), D.checkDefined(s(t.type, r, Pi))); }, [235]: function(t, r, i, o, s, c) { return i.factory.updateSatisfiesExpression(t, D.checkDefined(s(t.expression, r, yt)), D.checkDefined(s(t.type, r, Pi))); }, [232]: function(t, r, i, o, s, c) { return fu(t) ? i.factory.updateNonNullChain(t, D.checkDefined(s(t.expression, r, yt))) : i.factory.updateNonNullExpression(t, D.checkDefined(s(t.expression, r, yt))); }, [233]: function(t, r, i, o, s, c) { return i.factory.updateMetaProperty(t, D.checkDefined(s(t.name, r, Ve))); }, [236]: function(t, r, i, o, s, c) { return i.factory.updateTemplateSpan(t, D.checkDefined(s(t.expression, r, yt)), D.checkDefined(s(t.literal, r, gM))); }, [238]: function(t, r, i, o, s, c) { return i.factory.updateBlock(t, o(t.statements, r, Ia)); }, [240]: function(t, r, i, o, s, c) { return i.factory.updateVariableStatement(t, o(t.modifiers, r, el), D.checkDefined(s(t.declarationList, r, Ou))); }, [241]: function(t, r, i, o, s, c) { return i.factory.updateExpressionStatement(t, D.checkDefined(s(t.expression, r, yt))); }, [242]: function(t, r, i, o, s, c) { return i.factory.updateIfStatement(t, D.checkDefined(s(t.expression, r, yt)), D.checkDefined(s(t.thenStatement, r, Ia, i.factory.liftToBlock)), s(t.elseStatement, r, Ia, i.factory.liftToBlock)); }, [243]: function(t, r, i, o, s, c) { return i.factory.updateDoStatement(t, p_(t.statement, r, i, s), D.checkDefined(s(t.expression, r, yt))); }, [244]: function(t, r, i, o, s, c) { return i.factory.updateWhileStatement(t, D.checkDefined(s(t.expression, r, yt)), p_(t.statement, r, i, s)); }, [245]: function(t, r, i, o, s, c) { return i.factory.updateForStatement(t, s(t.initializer, r, jp), s(t.condition, r, yt), s(t.incrementor, r, yt), p_(t.statement, r, i, s)); }, [246]: function(t, r, i, o, s, c) { return i.factory.updateForInStatement(t, D.checkDefined(s(t.initializer, r, jp)), D.checkDefined(s(t.expression, r, yt)), p_(t.statement, r, i, s)); }, [247]: function(t, r, i, o, s, c) { return i.factory.updateForOfStatement(t, c ? s(t.awaitModifier, c, Xq) : t.awaitModifier, D.checkDefined(s(t.initializer, r, jp)), D.checkDefined(s(t.expression, r, yt)), p_(t.statement, r, i, s)); }, [248]: function(t, r, i, o, s, c) { return i.factory.updateContinueStatement(t, s(t.label, r, Ve)); }, [249]: function(t, r, i, o, s, c) { return i.factory.updateBreakStatement(t, s(t.label, r, Ve)); }, [250]: function(t, r, i, o, s, c) { return i.factory.updateReturnStatement(t, s(t.expression, r, yt)); }, [251]: function(t, r, i, o, s, c) { return i.factory.updateWithStatement(t, D.checkDefined(s(t.expression, r, yt)), D.checkDefined(s(t.statement, r, Ia, i.factory.liftToBlock))); }, [252]: function(t, r, i, o, s, c) { return i.factory.updateSwitchStatement(t, D.checkDefined(s(t.expression, r, yt)), D.checkDefined(s(t.caseBlock, r, xO))); }, [253]: function(t, r, i, o, s, c) { return i.factory.updateLabeledStatement(t, D.checkDefined(s(t.label, r, Ve)), D.checkDefined(s(t.statement, r, Ia, i.factory.liftToBlock))); }, [254]: function(t, r, i, o, s, c) { return i.factory.updateThrowStatement(t, D.checkDefined(s(t.expression, r, yt))); }, [255]: function(t, r, i, o, s, c) { return i.factory.updateTryStatement(t, D.checkDefined(s(t.tryBlock, r, oo)), s(t.catchClause, r, mC), s(t.finallyBlock, r, oo)); }, [257]: function(t, r, i, o, s, c) { return i.factory.updateVariableDeclaration(t, D.checkDefined(s(t.name, r, dh)), c ? s(t.exclamationToken, c, gO) : t.exclamationToken, s(t.type, r, Pi), s(t.initializer, r, yt)); }, [258]: function(t, r, i, o, s, c) { return i.factory.updateVariableDeclarationList(t, o(t.declarations, r, Wi)); }, [259]: function(t, r, i, o, s, c) { return i.factory.updateFunctionDeclaration(t, o(t.modifiers, r, lo), c ? s(t.asteriskToken, c, hO) : t.asteriskToken, s(t.name, r, Ve), o(t.typeParameters, r, Ol), Wl(t.parameters, r, i, o), s(t.type, r, Pi), xf(t.body, r, i, s)); }, [260]: function(t, r, i, o, s, c) { return i.factory.updateClassDeclaration(t, o(t.modifiers, r, el), s(t.name, r, Ve), o(t.typeParameters, r, Ol), o(t.heritageClauses, r, Md), o(t.members, r, Pc)); }, [261]: function(t, r, i, o, s, c) { return i.factory.updateInterfaceDeclaration(t, o(t.modifiers, r, el), D.checkDefined(s(t.name, r, Ve)), o(t.typeParameters, r, Ol), o(t.heritageClauses, r, Md), o(t.members, r, QE)); }, [262]: function(t, r, i, o, s, c) { return i.factory.updateTypeAliasDeclaration(t, o(t.modifiers, r, el), D.checkDefined(s(t.name, r, Ve)), o(t.typeParameters, r, Ol), D.checkDefined(s(t.type, r, Pi))); }, [263]: function(t, r, i, o, s, c) { return i.factory.updateEnumDeclaration(t, o(t.modifiers, r, el), D.checkDefined(s(t.name, r, Ve)), o(t.members, r, D1)); }, [264]: function(t, r, i, o, s, c) { return i.factory.updateModuleDeclaration(t, o(t.modifiers, r, el), D.checkDefined(s(t.name, r, n_e)), s(t.body, r, lce)); }, [265]: function(t, r, i, o, s, c) { return i.factory.updateModuleBlock(t, o(t.statements, r, Ia)); }, [266]: function(t, r, i, o, s, c) { return i.factory.updateCaseBlock(t, o(t.clauses, r, fW)); }, [267]: function(t, r, i, o, s, c) { return i.factory.updateNamespaceExportDeclaration(t, D.checkDefined(s(t.name, r, Ve))); }, [268]: function(t, r, i, o, s, c) { return i.factory.updateImportEqualsDeclaration(t, o(t.modifiers, r, el), t.isTypeOnly, D.checkDefined(s(t.name, r, Ve)), D.checkDefined(s(t.moduleReference, r, dce))); }, [269]: function(t, r, i, o, s, c) { return i.factory.updateImportDeclaration(t, o(t.modifiers, r, el), s(t.importClause, r, Gm), D.checkDefined(s(t.moduleSpecifier, r, yt)), s(t.assertClause, r, A7)); }, [296]: function(t, r, i, o, s, c) { return i.factory.updateAssertClause(t, o(t.elements, r, Dfe), t.multiLine); }, [297]: function(t, r, i, o, s, c) { return i.factory.updateAssertEntry(t, D.checkDefined(s(t.name, r, Kle)), D.checkDefined(s(t.value, r, yt))); }, [270]: function(t, r, i, o, s, c) { return i.factory.updateImportClause(t, t.isTypeOnly, s(t.name, r, Ve), s(t.namedBindings, r, cW)); }, [271]: function(t, r, i, o, s, c) { return i.factory.updateNamespaceImport(t, D.checkDefined(s(t.name, r, Ve))); }, [277]: function(t, r, i, o, s, c) { return i.factory.updateNamespaceExport(t, D.checkDefined(s(t.name, r, Ve))); }, [272]: function(t, r, i, o, s, c) { return i.factory.updateNamedImports(t, o(t.elements, r, Td)); }, [273]: function(t, r, i, o, s, c) { return i.factory.updateImportSpecifier(t, t.isTypeOnly, s(t.propertyName, r, Ve), D.checkDefined(s(t.name, r, Ve))); }, [274]: function(t, r, i, o, s, c) { return i.factory.updateExportAssignment(t, o(t.modifiers, r, el), D.checkDefined(s(t.expression, r, yt))); }, [275]: function(t, r, i, o, s, c) { return i.factory.updateExportDeclaration(t, o(t.modifiers, r, el), t.isTypeOnly, s(t.exportClause, r, $H), s(t.moduleSpecifier, r, yt), s(t.assertClause, r, A7)); }, [276]: function(t, r, i, o, s, c) { return i.factory.updateNamedExports(t, o(t.elements, r, od)); }, [278]: function(t, r, i, o, s, c) { return i.factory.updateExportSpecifier(t, t.isTypeOnly, s(t.propertyName, r, Ve), D.checkDefined(s(t.name, r, Ve))); }, [280]: function(t, r, i, o, s, c) { return i.factory.updateExternalModuleReference(t, D.checkDefined(s(t.expression, r, yt))); }, [281]: function(t, r, i, o, s, c) { return i.factory.updateJsxElement(t, D.checkDefined(s(t.openingElement, r, xh)), o(t.children, r, HR), D.checkDefined(s(t.closingElement, r, Ax))); }, [282]: function(t, r, i, o, s, c) { return i.factory.updateJsxSelfClosingElement(t, D.checkDefined(s(t.tagName, r, vI)), o(t.typeArguments, r, Pi), D.checkDefined(s(t.attributes, r, w1))); }, [283]: function(t, r, i, o, s, c) { return i.factory.updateJsxOpeningElement(t, D.checkDefined(s(t.tagName, r, vI)), o(t.typeArguments, r, Pi), D.checkDefined(s(t.attributes, r, w1))); }, [284]: function(t, r, i, o, s, c) { return i.factory.updateJsxClosingElement(t, D.checkDefined(s(t.tagName, r, vI))); }, [285]: function(t, r, i, o, s, c) { return i.factory.updateJsxFragment(t, D.checkDefined(s(t.openingFragment, r, Lx)), o(t.children, r, HR), D.checkDefined(s(t.closingFragment, r, Rfe))); }, [288]: function(t, r, i, o, s, c) { return i.factory.updateJsxAttribute(t, D.checkDefined(s(t.name, r, Ve)), s(t.initializer, r, fce)); }, [289]: function(t, r, i, o, s, c) { return i.factory.updateJsxAttributes(t, o(t.properties, r, TM)); }, [290]: function(t, r, i, o, s, c) { return i.factory.updateJsxSpreadAttribute(t, D.checkDefined(s(t.expression, r, yt))); }, [291]: function(t, r, i, o, s, c) { return i.factory.updateJsxExpression(t, s(t.expression, r, yt)); }, [292]: function(t, r, i, o, s, c) { return i.factory.updateCaseClause(t, D.checkDefined(s(t.expression, r, yt)), o(t.statements, r, Ia)); }, [293]: function(t, r, i, o, s, c) { return i.factory.updateDefaultClause(t, o(t.statements, r, Ia)); }, [294]: function(t, r, i, o, s, c) { return i.factory.updateHeritageClause(t, o(t.types, r, vy)); }, [295]: function(t, r, i, o, s, c) { return i.factory.updateCatchClause(t, s(t.variableDeclaration, r, Wi), D.checkDefined(s(t.block, r, oo))); }, [299]: function(t, r, i, o, s, c) { return i.factory.updatePropertyAssignment(t, D.checkDefined(s(t.name, r, hl)), D.checkDefined(s(t.initializer, r, yt))); }, [300]: function(t, r, i, o, s, c) { return i.factory.updateShorthandPropertyAssignment(t, D.checkDefined(s(t.name, r, Ve)), s(t.objectAssignmentInitializer, r, yt)); }, [301]: function(t, r, i, o, s, c) { return i.factory.updateSpreadAssignment(t, D.checkDefined(s(t.expression, r, yt))); }, [302]: function(t, r, i, o, s, c) { return i.factory.updateEnumMember(t, D.checkDefined(s(t.name, r, hl)), s(t.initializer, r, yt)); }, [308]: function(t, r, i, o, s, c) { return i.factory.updateSourceFile(t, C5(t.statements, r, i)); }, [356]: function(t, r, i, o, s, c) { return i.factory.updatePartiallyEmittedExpression(t, D.checkDefined(s(t.expression, r, yt))); }, [357]: function(t, r, i, o, s, c) { return i.factory.updateCommaListExpression(t, o(t.elements, r, yt)); } }; } }); function Ame(e, t, r, i, o) { var { enter: s, exit: c } = o.extendedDiagnostics ? PP("Source Map", "beforeSourcemap", "afterSourcemap") : MP, f = [], d = [], y = /* @__PURE__ */ new Map(), m, b = [], A, C = [], I = "", O = 0, k = 0, B = 0, U = 0, j = 0, te = 0, X = !1, Y = 0, P = 0, ue = 0, ne = 0, ge = 0, ie = 0, H = !1, le = !1, pe = !1; return { getSources: () => f, addSource: ye, setSourceContent: Te, addName: ee, addMapping: Fe, appendSourceMap: We, toJSON: Me, toString: () => JSON.stringify(Me()) }; function ye(At) { s(); const bt = GS(i, At, e.getCurrentDirectory(), e.getCanonicalFileName, !0); let Vt = y.get(bt); return Vt === void 0 && (Vt = d.length, d.push(bt), f.push(At), y.set(bt, Vt)), c(), Vt; } function Te(At, bt) { if (s(), bt !== null) { for (m || (m = []); m.length < At; ) m.push(null); m[At] = bt; } c(); } function ee(At) { s(), A || (A = /* @__PURE__ */ new Map()); let bt = A.get(At); return bt === void 0 && (bt = b.length, b.push(At), A.set(At, bt)), c(), bt; } function $e(At, bt) { return !H || Y !== At || P !== bt; } function Ge(At, bt, Vt) { return At !== void 0 && bt !== void 0 && Vt !== void 0 && ue === At && (ne > bt || ne === bt && ge > Vt); } function Fe(At, bt, Vt, et, it, nn) { D.assert(At >= Y, "generatedLine cannot backtrack"), D.assert(bt >= 0, "generatedCharacter cannot be negative"), D.assert(Vt === void 0 || Vt >= 0, "sourceIndex cannot be negative"), D.assert(et === void 0 || et >= 0, "sourceLine cannot be negative"), D.assert(it === void 0 || it >= 0, "sourceCharacter cannot be negative"), s(), ($e(At, bt) || Ge(Vt, et, it)) && (Ke(), Y = At, P = bt, le = !1, pe = !1, H = !0), Vt !== void 0 && et !== void 0 && it !== void 0 && (ue = Vt, ne = et, ge = it, le = !0, nn !== void 0 && (ie = nn, pe = !0)), c(); } function We(At, bt, Vt, et, it, nn) { D.assert(At >= Y, "generatedLine cannot backtrack"), D.assert(bt >= 0, "generatedCharacter cannot be negative"), s(); const Xt = []; let On; const Hn = UK(Vt.mappings); for (const In of Hn) { if (nn && (In.generatedLine > nn.line || In.generatedLine === nn.line && In.generatedCharacter > nn.character)) break; if (it && (In.generatedLine < it.line || it.line === In.generatedLine && In.generatedCharacter < it.character)) continue; let Yt, fr, xi, Ji; if (In.sourceIndex !== void 0) { if (Yt = Xt[In.sourceIndex], Yt === void 0) { const Ht = Vt.sources[In.sourceIndex], ln = Vt.sourceRoot ? Oi(Vt.sourceRoot, Ht) : Ht, rr = Oi(fi(et), ln); Xt[In.sourceIndex] = Yt = ye(rr), Vt.sourcesContent && typeof Vt.sourcesContent[In.sourceIndex] == "string" && Te(Yt, Vt.sourcesContent[In.sourceIndex]); } fr = In.sourceLine, xi = In.sourceCharacter, Vt.names && In.nameIndex !== void 0 && (On || (On = []), Ji = On[In.nameIndex], Ji === void 0 && (On[In.nameIndex] = Ji = ee(Vt.names[In.nameIndex]))); } const Ki = In.generatedLine - (it ? it.line : 0), Rr = Ki + At, xt = it && it.line === In.generatedLine ? In.generatedCharacter - it.character : In.generatedCharacter, gn = Ki === 0 ? xt + bt : xt; Fe(Rr, gn, Yt, fr, xi, Ji); } c(); } function Re() { return !X || O !== Y || k !== P || B !== ue || U !== ne || j !== ge || te !== ie; } function Pe(At) { C.push(At), C.length >= 1024 && He(); } function Ke() { if (!(!H || !Re())) { if (s(), O < Y) { do Pe(59), O++; while (O < Y); k = 0; } else D.assertEqual(O, Y, "generatedLine cannot backtrack"), X && Pe(44); ot(P - k), k = P, le && (ot(ue - B), B = ue, ot(ne - U), U = ne, ot(ge - j), j = ge, pe && (ot(ie - te), te = ie)), X = !0, c(); } } function He() { C.length > 0 && (I += String.fromCharCode.apply(void 0, C), C.length = 0); } function Me() { return Ke(), He(), { version: 3, file: t, sourceRoot: r, sources: d, names: b, mappings: I, sourcesContent: m }; } function ot(At) { At < 0 ? At = (-At << 1) + 1 : At = At << 1; do { let bt = At & 31; At = At >> 5, At > 0 && (bt = bt | 32), Pe(rMe(bt)); } while (At > 0); } } function Cme(e, t) { return { getLineCount: () => t.length, getLineText: (r) => e.substring(t[r], t[r + 1]) }; } function Lme(e) { for (let t = e.getLineCount() - 1; t >= 0; t--) { const r = e.getLineText(t), i = L5.exec(r); if (i) return aR(i[1]); if (!r.match(I5)) break; } } function tMe(e) { return typeof e == "string" || e === null; } function Ime(e) { return e !== null && typeof e == "object" && e.version === 3 && typeof e.file == "string" && typeof e.mappings == "string" && Ga(e.sources) && Vn(e.sources, Va) && (e.sourceRoot === void 0 || e.sourceRoot === null || typeof e.sourceRoot == "string") && (e.sourcesContent === void 0 || e.sourcesContent === null || Ga(e.sourcesContent) && Vn(e.sourcesContent, tMe)) && (e.names === void 0 || e.names === null || Ga(e.names) && Vn(e.names, Va)); } function GK(e) { try { const t = JSON.parse(e); if (Ime(t)) return t; } catch { } } function UK(e) { let t = !1, r = 0, i = 0, o = 0, s = 0, c = 0, f = 0, d = 0, y; return { get pos() { return r; }, get error() { return y; }, get state() { return m(!0, !0); }, next() { for (; !t && r < e.length; ) { const B = e.charCodeAt(r); if (B === 59) { i++, o = 0, r++; continue; } if (B === 44) { r++; continue; } let U = !1, j = !1; if (o += k(), I()) return b(); if (o < 0) return C("Invalid generatedCharacter found"); if (!O()) { if (U = !0, s += k(), I()) return b(); if (s < 0) return C("Invalid sourceIndex found"); if (O()) return C("Unsupported Format: No entries after sourceIndex"); if (c += k(), I()) return b(); if (c < 0) return C("Invalid sourceLine found"); if (O()) return C("Unsupported Format: No entries after sourceLine"); if (f += k(), I()) return b(); if (f < 0) return C("Invalid sourceCharacter found"); if (!O()) { if (j = !0, d += k(), I()) return b(); if (d < 0) return C("Invalid nameIndex found"); if (!O()) return C("Unsupported Error Format: Entries after nameIndex"); } } return { value: m(U, j), done: t }; } return b(); }, [Symbol.iterator]() { return this; } }; function m(B, U) { return { generatedLine: i, generatedCharacter: o, sourceIndex: B ? s : void 0, sourceLine: B ? c : void 0, sourceCharacter: B ? f : void 0, nameIndex: U ? d : void 0 }; } function b() { return t = !0, { value: void 0, done: !0 }; } function A(B) { y === void 0 && (y = B); } function C(B) { return A(B), b(); } function I() { return y !== void 0; } function O() { return r === e.length || e.charCodeAt(r) === 44 || e.charCodeAt(r) === 59; } function k() { let B = !0, U = 0, j = 0; for (; B; r++) { if (r >= e.length) return A("Error in decoding base64VLQFormatDecode, past the mapping string"), -1; const te = iMe(e.charCodeAt(r)); if (te === -1) return A("Invalid character in VLQ"), -1; B = (te & 32) !== 0, j = j | (te & 31) << U, U += 5; } return j & 1 ? (j = j >> 1, j = -j) : j = j >> 1, j; } } function nMe(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 kme(e) { return e.sourceIndex !== void 0 && e.sourceLine !== void 0 && e.sourceCharacter !== void 0; } function rMe(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 : D.fail(`${e}: not a base64 value`); } function iMe(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 wme(e) { return e.sourceIndex !== void 0 && e.sourcePosition !== void 0; } function Dme(e, t) { return e.generatedPosition === t.generatedPosition && e.sourceIndex === t.sourceIndex && e.sourcePosition === t.sourcePosition; } function aMe(e, t) { return D.assert(e.sourceIndex === t.sourceIndex), js(e.sourcePosition, t.sourcePosition); } function oMe(e, t) { return js(e.generatedPosition, t.generatedPosition); } function sMe(e) { return e.sourcePosition; } function lMe(e) { return e.generatedPosition; } function Rme(e, t, r) { const i = fi(r), o = t.sourceRoot ? Na(t.sourceRoot, i) : i, s = Na(t.file, i), c = e.getSourceFileLike(s), f = t.sources.map((U) => Na(U, o)), d = new Map(f.map((U, j) => [e.getCanonicalFileName(U), j])); let y, m, b; return { getSourcePosition: B, getGeneratedPosition: k }; function A(U) { const j = c !== void 0 ? AR(c, U.generatedLine, U.generatedCharacter, !0) : -1; let te, X; if (kme(U)) { const Y = e.getSourceFileLike(f[U.sourceIndex]); te = t.sources[U.sourceIndex], X = Y !== void 0 ? AR(Y, U.sourceLine, U.sourceCharacter, !0) : -1; } return { generatedPosition: j, source: te, sourceIndex: U.sourceIndex, sourcePosition: X, nameIndex: U.nameIndex }; } function C() { if (y === void 0) { const U = UK(t.mappings), j = ko(U, A); U.error !== void 0 ? (e.log && e.log(`Encountered error while decoding sourcemap: ${U.error}`), y = nt) : y = j; } return y; } function I(U) { if (b === void 0) { const j = []; for (const te of C()) { if (!wme(te)) continue; let X = j[te.sourceIndex]; X || (j[te.sourceIndex] = X = []), X.push(te); } b = j.map((te) => $D(te, aMe, Dme)); } return b[U]; } function O() { if (m === void 0) { const U = []; for (const j of C()) U.push(j); m = $D(U, oMe, Dme); } return m; } function k(U) { const j = d.get(e.getCanonicalFileName(U.fileName)); if (j === void 0) return U; const te = I(j); if (!kt(te)) return U; let X = kS(te, U.pos, sMe, js); X < 0 && (X = ~X); const Y = te[X]; return Y === void 0 || Y.sourceIndex !== j ? U : { fileName: s, pos: Y.generatedPosition }; } function B(U) { const j = O(); if (!kt(j)) return U; let te = kS(j, U.pos, lMe, js); te < 0 && (te = ~te); const X = j[te]; return X === void 0 || !wme(X) ? U : { fileName: f[X.sourceIndex], pos: X.sourcePosition }; } } var VK, L5, I5, k5, cMe = L({ "src/compiler/sourcemap.ts"() { Ra(), i1(), VK = /\/\/[@#] source[M]appingURL=(.+)\r?\n?$/, L5 = /^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/, I5 = /^\s*(\/\/[@#] .*)?$/, k5 = { getSourcePosition: _l, getGeneratedPosition: _l }; } }); function Ll(e) { return e = bl(e), e ? ds(e) : 0; } function uMe(e) { return !e || !by(e) ? !1 : kt(e.elements, Nme); } function Nme(e) { return e.propertyName !== void 0 && e.propertyName.escapedText === "default"; } function W_(e, t) { return r; function r(o) { return o.kind === 308 ? t(o) : i(o); } function i(o) { return e.factory.createBundle(rn(o.sourceFiles, t), o.prepends); } } function Ome(e) { return !!PA(e); } function w5(e) { if (PA(e)) return !0; const t = e.importClause && e.importClause.namedBindings; if (!t || !by(t)) return !1; let r = 0; for (const i of t.elements) Nme(i) && r++; return r > 0 && r !== t.elements.length || !!(t.elements.length - r) && YS(e); } function jK(e) { return !w5(e) && (YS(e) || !!e.importClause && by(e.importClause.namedBindings) && uMe(e.importClause.namedBindings)); } function HK(e, t, r, i) { const o = [], s = o_(), c = [], f = /* @__PURE__ */ new Map(); let d, y = !1, m, b = !1, A = !1, C = !1; for (const k of t.statements) switch (k.kind) { case 269: o.push(k), !A && w5(k) && (A = !0), !C && jK(k) && (C = !0); break; case 268: k.moduleReference.kind === 280 && o.push(k); break; case 275: if (k.moduleSpecifier) if (!k.exportClause) o.push(k), b = !0; else if (o.push(k), j_(k.exportClause)) O(k); else { const B = k.exportClause.name; f.get(Or(B)) || (jk(c, Ll(k), B), f.set(Or(B), !0), d = Fn(d, B)), A = !0; } else O(k); break; case 274: k.isExportEquals && !m && (m = k); break; case 240: if (Jr(k, 1)) for (const B of k.declarationList.declarations) d = Pme(B, f, d); break; case 259: if (Jr(k, 1)) if (Jr(k, 1024)) y || (jk(c, Ll(k), e.factory.getDeclarationName(k)), y = !0); else { const B = k.name; f.get(Or(B)) || (jk(c, Ll(k), B), f.set(Or(B), !0), d = Fn(d, B)); } break; case 260: if (Jr(k, 1)) if (Jr(k, 1024)) y || (jk(c, Ll(k), e.factory.getDeclarationName(k)), y = !0); else { const B = k.name; B && !f.get(Or(B)) && (jk(c, Ll(k), B), f.set(Or(B), !0), d = Fn(d, B)); } break; } const I = EJ(e.factory, e.getEmitHelperFactory(), t, i, b, A, C); return I && o.unshift(I), { externalImports: o, exportSpecifiers: s, exportEquals: m, hasExportStarsToExportValues: b, exportedBindings: c, exportedNames: d, externalHelpersImportDeclaration: I }; function O(k) { for (const B of ro(k.exportClause, j_).elements) if (!f.get(Or(B.name))) { const U = B.propertyName || B.name; k.moduleSpecifier || s.add(Or(U), B); const j = r.getReferencedImportDeclaration(U) || r.getReferencedValueDeclaration(U); j && jk(c, Ll(j), B.name), f.set(Or(B.name), !0), d = Fn(d, B.name); } } } function Pme(e, t, r) { if (Ja(e.name)) for (const i of e.name.elements) Ic(i) || (r = Pme(i, t, r)); else if (!El(e.name)) { const i = Or(e.name); t.get(i) || (t.set(i, !0), r = Fn(r, e.name)); } return r; } function jk(e, t, r) { let i = e[t]; return i ? i.push(r) : e[t] = i = [r], i; } function M1(e) { return Ts(e) || e.kind === 8 || bd(e.kind) || Ve(e); } function Zp(e) { return !Ve(e) && M1(e); } function p8(e) { return e >= 64 && e <= 78; } function Hk(e) { switch (e) { case 64: return 39; case 65: return 40; case 66: return 41; case 67: return 42; case 68: return 43; case 69: return 44; case 70: return 47; case 71: return 48; case 72: return 49; case 73: return 50; case 74: return 51; case 78: return 52; case 75: return 56; case 76: return 55; case 77: return 60; } } function WK(e) { if (!eu(e)) return; const t = Us(e.expression); return LA(t) ? t : void 0; } function D5(e, t) { for (let r = t; r < e.length; r += 1) { const i = e[r]; if (WK(i)) return r; } return -1; } function zK(e, t, r) { return yn(e.members, (i) => fMe(i, t, r)); } function dMe(e) { return _Me(e) || Cl(e); } function R5(e) { return yn(e.members, dMe); } function fMe(e, t, r) { return Za(e) && (!!e.initializer || !t) && _c(e) === r; } function _Me(e) { return Za(e) && _c(e); } function m8(e) { return e.kind === 169 && e.initializer !== void 0; } function Mme(e) { return !za(e) && (yA(e) || Qd(e)) && ki(e.name); } function qK(e) { let t; if (e) { const r = e.parameters, i = r.length > 0 && E1(r[0]), o = i ? 1 : 0, s = i ? r.length - 1 : r.length; for (let c = 0; c < s; c++) { const f = r[c + o]; (t || zf(f)) && (t || (t = new Array(s)), t[c] = yv(f)); } } return t; } function JK(e) { const t = yv(e), r = qK(hh(e)); if (!(!kt(t) && !kt(r))) return { decorators: t, parameters: r }; } function N5(e, t, r) { switch (e.kind) { case 174: case 175: return r ? pMe(e, t) : Fme(e); case 171: return Fme(e); case 169: return mMe(e); default: return; } } function pMe(e, t) { if (!e.body) return; const { firstAccessor: r, secondAccessor: i, getAccessor: o, setAccessor: s } = pT(t.members, e), c = zf(r) ? r : i && zf(i) ? i : void 0; if (!c || e !== c) return; const f = yv(c), d = qK(s); if (!(!kt(f) && !kt(d))) return { decorators: f, parameters: d, getDecorators: o && yv(o), setDecorators: s && yv(s) }; } function Fme(e) { if (!e.body) return; const t = yv(e), r = qK(e); if (!(!kt(t) && !kt(r))) return { decorators: t, parameters: r }; } function mMe(e) { const t = yv(e); if (kt(t)) return { decorators: t }; } function Bme(e, t) { for (; e; ) { const r = t(e); if (r !== void 0) return r; e = e.previous; } } function Gme(e) { return { data: e }; } function KK(e, t) { var r, i; return jS(t) ? (r = e == null ? void 0 : e.generatedIdentifiers) == null ? void 0 : r.get(B7(t)) : (i = e == null ? void 0 : e.identifiers) == null ? void 0 : i.get(t.escapedText); } function DT(e, t, r) { var i, o; jS(t) ? ((i = e.generatedIdentifiers) != null || (e.generatedIdentifiers = /* @__PURE__ */ new Map()), e.generatedIdentifiers.set(B7(t), r)) : ((o = e.identifiers) != null || (e.identifiers = /* @__PURE__ */ new Map()), e.identifiers.set(t.escapedText, r)); } function Ume(e, t) { return Bme(e, (r) => KK(r.privateEnv, t)); } var hMe = L({ "src/compiler/transformers/utilities.ts"() { Ra(); } }); function RT(e, t, r, i, o, s) { let c = e, f; if (my(e)) for (f = e.right; jue(e.left) || wz(e.left); ) if (my(f)) c = e = f, f = e.right; else return D.checkDefined(st(f, t, yt)); let d; const y = { context: r, level: i, downlevelIteration: !!r.getCompilerOptions().downlevelIteration, hoistTempVariables: !0, emitExpression: m, emitBindingOrAssignment: b, createArrayBindingOrAssignmentPattern: (A) => xMe(r.factory, A), createObjectBindingOrAssignmentPattern: (A) => CMe(r.factory, A), createArrayBindingOrAssignmentElement: IMe, visitor: t }; if (f && (f = st(f, t, yt), D.assert(f), Ve(f) && XK(e, f.escapedText) || YK(e) ? f = NT(y, f, !1, c) : o ? f = NT(y, f, !0, c) : $s(e) && (c = f)), wC(y, e, f, c, my(e)), f && o) { if (!kt(d)) return f; d.push(f); } return r.factory.inlineExpressions(d) || r.factory.createOmittedExpression(); function m(A) { d = Fn(d, A); } function b(A, C, I, O) { D.assertNode(A, s ? Ve : yt); const k = s ? s(A, C, I) : mt(r.factory.createAssignment(D.checkDefined(st(A, t, yt)), C), I); k.original = O, m(k); } } function XK(e, t) { const r = Mv(e); return FR(r) ? gMe(r, t) : Ve(r) ? r.escapedText === t : !1; } function gMe(e, t) { const r = EC(e); for (const i of r) if (XK(i, t)) return !0; return !1; } function YK(e) { const t = M7(e); if (t && Ss(t) && !$E(t.expression)) return !0; const r = Mv(e); return !!r && FR(r) && yMe(r); } function yMe(e) { return !!Ye(EC(e), YK); } function F1(e, t, r, i, o, s = !1, c) { let f; const d = [], y = [], m = { context: r, level: i, downlevelIteration: !!r.getCompilerOptions().downlevelIteration, hoistTempVariables: s, emitExpression: b, emitBindingOrAssignment: A, createArrayBindingOrAssignmentPattern: (C) => SMe(r.factory, C), createObjectBindingOrAssignmentPattern: (C) => AMe(r.factory, C), createArrayBindingOrAssignmentElement: (C) => LMe(r.factory, C), visitor: t }; if (Wi(e)) { let C = NO(e); C && (Ve(C) && XK(e, C.escapedText) || YK(e)) && (C = NT(m, D.checkDefined(st(C, m.visitor, yt)), !1, C), e = r.factory.updateVariableDeclaration(e, e.name, void 0, void 0, C)); } if (wC(m, e, o, e, c), f) { const C = r.factory.createTempVariable(void 0); if (s) { const I = r.factory.inlineExpressions(f); f = void 0, A(C, I, void 0, void 0); } else { r.hoistVariableDeclaration(C); const I = Ho(d); I.pendingExpressions = Fn(I.pendingExpressions, r.factory.createAssignment(C, I.value)), yi(I.pendingExpressions, f), I.value = C; } } for (const { pendingExpressions: C, name: I, value: O, location: k, original: B } of d) { const U = r.factory.createVariableDeclaration(I, void 0, void 0, C ? r.factory.inlineExpressions(Fn(C, O)) : O); U.original = B, mt(U, k), y.push(U); } return y; function b(C) { f = Fn(f, C); } function A(C, I, O, k) { D.assertNode(C, dh), f && (I = r.factory.inlineExpressions(Fn(f, I)), f = void 0), d.push({ pendingExpressions: f, name: C, value: I, location: O, original: k }); } } function wC(e, t, r, i, o) { const s = Mv(t); if (!o) { const c = st(NO(t), e.visitor, yt); c ? r ? (r = EMe(e, r, c, i), !Zp(c) && FR(s) && (r = NT(e, r, !0, i))) : r = c : r || (r = e.context.factory.createVoidZero()); } aW(s) ? vMe(e, t, s, r, i) : oW(s) ? bMe(e, t, s, r, i) : e.emitBindingOrAssignment(s, r, i, t); } function vMe(e, t, r, i, o) { const s = EC(r), c = s.length; if (c !== 1) { const y = !MR(t) || c !== 0; i = NT(e, i, y, o); } let f, d; for (let y = 0; y < c; y++) { const m = s[y]; if (P7(m)) { if (y === c - 1) { f && (e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f), i, o, r), f = void 0); const b = e.context.getEmitHelperFactory().createRestHelper(i, s, d, r); wC(e, m, b, m); } } else { const b = TJ(m); if (e.level >= 1 && !(m.transformFlags & 98304) && !(Mv(m).transformFlags & 98304) && !Ss(b)) f = Fn(f, st(m, e.visitor, Zle)); else { f && (e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f), i, o, r), f = void 0); const A = TMe(e, i, b); Ss(b) && (d = Fn(d, A.argumentExpression)), wC(e, m, A, m); } } } f && e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f), i, o, r); } function bMe(e, t, r, i, o) { const s = EC(r), c = s.length; if (e.level < 1 && e.downlevelIteration) i = NT(e, mt(e.context.getEmitHelperFactory().createReadHelper(i, c > 0 && P7(s[c - 1]) ? void 0 : c), o), !1, o); else if (c !== 1 && (e.level < 1 || c === 0) || Vn(s, Ic)) { const y = !MR(t) || c !== 0; i = NT(e, i, y, o); } let f, d; for (let y = 0; y < c; y++) { const m = s[y]; if (e.level >= 1) if (m.transformFlags & 65536 || e.hasTransformedPriorElement && !Vme(m)) { e.hasTransformedPriorElement = !0; const b = e.context.factory.createTempVariable(void 0); e.hoistTempVariables && e.context.hoistVariableDeclaration(b), d = Fn(d, [b, m]), f = Fn(f, e.createArrayBindingOrAssignmentElement(b)); } else f = Fn(f, m); else { if (Ic(m)) continue; if (P7(m)) { if (y === c - 1) { const b = e.context.factory.createArraySliceCall(i, y); wC(e, m, b, m); } } else { const b = e.context.factory.createElementAccessExpression(i, y); wC(e, m, b, m); } } } if (f && e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(f), i, o, r), d) for (const [y, m] of d) wC(e, m, y, m); } function Vme(e) { const t = Mv(e); if (!t || Ic(t)) return !0; const r = M7(e); if (r && !O_(r)) return !1; const i = NO(e); return i && !Zp(i) ? !1 : FR(t) ? Vn(EC(t), Vme) : Ve(t); } function EMe(e, t, r, i) { return t = NT(e, t, !0, i), e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t, "undefined"), void 0, r, void 0, t); } function TMe(e, t, r) { if (Ss(r)) { const i = NT(e, D.checkDefined(st(r.expression, e.visitor, yt)), !1, r); return e.context.factory.createElementAccessExpression(t, i); } else if (Hf(r)) { const i = N.cloneNode(r); return e.context.factory.createElementAccessExpression(t, i); } else { const i = e.context.factory.createIdentifier(Or(r)); return e.context.factory.createPropertyAccessExpression(t, i); } } function NT(e, t, r, i) { if (Ve(t) && r) return t; { const o = e.context.factory.createTempVariable(void 0); return e.hoistTempVariables ? (e.context.hoistVariableDeclaration(o), e.emitExpression(mt(e.context.factory.createAssignment(o, t), i))) : e.emitBindingOrAssignment(o, t, i, void 0), o; } } function SMe(e, t) { return D.assertEachNode(t, vM), e.createArrayBindingPattern(t); } function xMe(e, t) { return D.assertEachNode(t, GR), e.createArrayLiteralExpression(rn(t, e.converters.convertToArrayAssignmentElement)); } function AMe(e, t) { return D.assertEachNode(t, us), e.createObjectBindingPattern(t); } function CMe(e, t) { return D.assertEachNode(t, BR), e.createObjectLiteralExpression(rn(t, e.converters.convertToObjectAssignmentElement)); } function LMe(e, t) { return e.createBindingElement(void 0, void 0, t); } function IMe(e) { return e; } var $K, kMe = L({ "src/compiler/transformers/destructuring.ts"() { Ra(), $K = /* @__PURE__ */ ((e) => (e[e.All = 0] = "All", e[e.ObjectRest = 1] = "ObjectRest", e))($K || {}); } }); function QK(e, t, r, i, o, s) { const c = st(t.tag, r, yt); D.assert(c); const f = [void 0], d = [], y = [], m = t.template; if (s === 0 && !fz(m)) return Bn(t, r, e); if (px(m)) d.push(ZK(m)), y.push(eX(m, i)); else { d.push(ZK(m.head)), y.push(eX(m.head, i)); for (const A of m.templateSpans) d.push(ZK(A.literal)), y.push(eX(A.literal, i)), f.push(D.checkDefined(st(A.expression, r, yt))); } const b = e.getEmitHelperFactory().createTemplateObjectHelper(N.createArrayLiteralExpression(d), N.createArrayLiteralExpression(y)); if (Yl(i)) { const A = N.createUniqueName("templateObject"); o(A), f[0] = N.createLogicalOr(A, N.createAssignment(A, b)); } else f[0] = b; return N.createCallExpression(c, void 0, f); } function ZK(e) { return e.templateFlags ? N.createVoidZero() : N.createStringLiteral(e.text); } function eX(e, t) { let r = e.rawText; if (r === void 0) { D.assertIsDefined(t, "Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."), r = f1(t, e); const i = e.kind === 14 || e.kind === 17; r = r.substring(1, r.length - (i ? 1 : 2)); } return r = r.replace(/\r\n?/g, ` `), mt(N.createStringLiteral(r), e); } var tX, wMe = L({ "src/compiler/transformers/taggedTemplate.ts"() { Ra(), tX = /* @__PURE__ */ ((e) => (e[e.LiftRestriction = 0] = "LiftRestriction", e[e.All = 1] = "All", e))(tX || {}); } }); function jme(e) { const { factory: t, getEmitHelperFactory: r, startLexicalEnvironment: i, resumeLexicalEnvironment: o, endLexicalEnvironment: s, hoistVariableDeclaration: c } = e, f = e.getEmitResolver(), d = e.getCompilerOptions(), y = $o(d), m = Zc(d), b = !!d.experimentalDecorators, A = d.emitDecoratorMetadata ? zme(e) : void 0, C = e.onEmitNode, I = e.onSubstituteNode; e.onEmitNode = jc, e.onSubstituteNode = ks, e.enableSubstitution(208), e.enableSubstitution(209); let O, k, B, U, j, te, X, Y; return P; function P(Q) { return Q.kind === 309 ? ue(Q) : ne(Q); } function ue(Q) { return t.createBundle(Q.sourceFiles.map(ne), _a(Q.prepends, (at) => at.kind === 311 ? Dq(at, "js") : at)); } function ne(Q) { if (Q.isDeclarationFile) return Q; O = Q; const at = ge(Q, ot); return gy(at, e.readEmitHelpers()), O = void 0, at; } function ge(Q, at) { const St = U, _n = j, kr = te; ie(Q); const Nr = at(Q); return U !== St && (j = _n), U = St, te = kr, Nr; } function ie(Q) { switch (Q.kind) { case 308: case 266: case 265: case 238: U = Q, j = void 0; break; case 260: case 259: if (Jr(Q, 2)) break; Q.name ? we(Q) : D.assert(Q.kind === 260 || Jr(Q, 1024)); break; } } function H(Q) { return ge(Q, le); } function le(Q) { return Q.transformFlags & 1 ? Me(Q) : Q; } function pe(Q) { return ge(Q, ye); } function ye(Q) { switch (Q.kind) { case 269: case 268: case 274: case 275: return Te(Q); default: return le(Q); } } function Te(Q) { if (ya(Q) !== Q) return Q.transformFlags & 1 ? Bn(Q, H, e) : Q; switch (Q.kind) { case 269: return ii(Q); case 268: return ui(Q); case 274: return fo(Q); case 275: return vo(Q); default: D.fail("Unhandled ellided statement"); } } function ee(Q) { return ge(Q, $e); } function $e(Q) { if (!(Q.kind === 275 || Q.kind === 269 || Q.kind === 270 || Q.kind === 268 && Q.moduleReference.kind === 280)) return Q.transformFlags & 1 || Jr(Q, 1) ? Me(Q) : Q; } function Ge(Q) { return (at) => ge(at, (St) => Fe(St, Q)); } function Fe(Q, at) { switch (Q.kind) { case 173: return Di(Q); case 169: return lr(Q, at); case 174: return xr(Q, at); case 175: return Ur(Q, at); case 171: return en(Q, at); case 172: return Bn(Q, H, e); case 237: return Q; case 178: return; default: return D.failBadSyntaxKind(Q); } } function We(Q) { return (at) => ge(at, (St) => Re(St, Q)); } function Re(Q, at) { switch (Q.kind) { case 299: case 300: case 301: return H(Q); case 174: return xr(Q, at); case 175: return Ur(Q, at); case 171: return en(Q, at); default: return D.failBadSyntaxKind(Q); } } function Pe(Q) { return Du(Q) ? void 0 : H(Q); } function Ke(Q) { return lo(Q) ? void 0 : H(Q); } function He(Q) { if (!Du(Q) && !(ix(Q.kind) & 117086) && !(k && Q.kind === 93)) return Q; } function Me(Q) { if (Ia(Q) && Jr(Q, 2)) return t.createNotEmittedStatement(Q); switch (Q.kind) { case 93: case 88: return k ? void 0 : Q; case 123: case 121: case 122: case 126: case 161: case 85: case 136: case 146: case 101: case 145: case 185: case 186: case 187: case 188: case 184: case 179: case 165: case 131: case 157: case 134: case 152: case 148: case 144: case 114: case 153: case 182: case 181: case 183: case 180: case 189: case 190: case 191: case 193: case 194: case 195: case 196: case 197: case 198: case 178: return; case 262: return t.createNotEmittedStatement(Q); case 267: return; case 261: return t.createNotEmittedStatement(Q); case 260: return it(Q); case 228: return Xt(Q); case 294: return Ht(Q); case 230: return ln(Q); case 207: return At(Q); case 173: case 169: case 171: case 174: case 175: case 172: return D.fail("Class and object literal elements must be visited with their respective visitors"); case 259: return Ie(Q); case 215: return gt(Q); case 216: return Nt(Q); case 166: return xe(Q); case 214: return me(Q); case 213: case 231: return V(Q); case 235: return Qe(Q); case 210: return Je(Q); case 211: return Ut(Q); case 212: return on(Q); case 232: return je(Q); case 263: return pt(Q); case 240: return _t(Q); case 257: return re(Q); case 264: return dt(Q); case 268: return ui(Q); case 282: return Sn(Q); case 283: return br(Q); default: return Bn(Q, H, e); } } function ot(Q) { const at = f_(d, "alwaysStrict") && !(Yl(Q) && m >= 5) && !l_(Q); return t.updateSourceFile(Q, C5(Q.statements, pe, e, 0, at)); } function At(Q) { return t.updateObjectLiteralExpression(Q, Kn(Q.properties, We(Q), dy)); } function bt(Q) { let at = 0; kt(zK(Q, !0, !0)) && (at |= 1); const St = Wp(Q); return St && pu(St.expression).kind !== 104 && (at |= 64), h1(b, Q) && (at |= 2), II(b, Q) && (at |= 4), la(Q) ? at |= 8 : $l(Q) ? at |= 32 : da(Q) && (at |= 16), at; } function Vt(Q) { return !!(Q.transformFlags & 8192); } function et(Q) { return zf(Q) || kt(Q.typeParameters) || kt(Q.heritageClauses, Vt) || kt(Q.members, Vt); } function it(Q) { var at; const St = bt(Q), _n = y <= 1 && !!(St & 7); if (!et(Q) && !h1(b, Q) && !la(Q)) return t.updateClassDeclaration(Q, Kn(Q.modifiers, He, lo), Q.name, void 0, Kn(Q.heritageClauses, H, Md), Kn(Q.members, Ge(Q), Pc)); _n && e.startLexicalEnvironment(); const kr = _n || St & 8 || St & 2 && b || St & 1; let Nr = kr ? Kn(Q.modifiers, Ke, el) : Kn(Q.modifiers, H, el); St & 2 && (Nr = Hn(Nr, Q)); const as = kr && !Q.name || St & 4 || St & 1 ? (at = Q.name) != null ? at : t.getGeneratedNameForNode(Q) : Q.name, _o = t.updateClassDeclaration(Q, Nr, as, void 0, Kn(Q.heritageClauses, H, Md), On(Q)); let Uo = ho(Q); St & 1 && (Uo |= 64), or(_o, Uo); let Ka; if (_n) { const cl = [_o], lc = Rz(zo(O.text, Q.members.end), 19), ld = t.getInternalName(Q), vs = t.createPartiallyEmittedExpression(ld); $A(vs, lc.end), or(vs, 3072); const ls = t.createReturnStatement(vs); ik(ls, lc.pos), or(ls, 3840), cl.push(ls), wm(cl, e.endLexicalEnvironment()); const ul = t.createImmediatelyInvokedArrowFunction(cl); lO(ul, 1); const Vd = St & 16 ? t.createModifiersFromModifierFlags(1) : void 0, Ul = t.createVariableStatement(Vd, t.createVariableDeclarationList([ t.createVariableDeclaration(t.getLocalName(Q, !1, !1), void 0, void 0, ul) ], 1)); Vr(Ul, Q), Bc(Ul, Q), cs(Ul, kv(Q)), Pu(Ul), Ka = Ul; } else Ka = _o; if (kr) { if (St & 8) return nn(Ka, tl(Q)); if (St & 32) return nn(Ka, t.createExportDefault(t.getLocalName(Q, !1, !0))); if (St & 16 && !_n) return nn(Ka, t.createExternalModuleExport(t.getLocalName(Q, !1, !0))); } return Ka; } function nn(Q, at) { return Kp(Q, 8388608), [ Q, at, t.createEndOfDeclarationMarker(Q) ]; } function Xt(Q) { let at = Kn(Q.modifiers, Ke, el); return h1(b, Q) && (at = Hn(at, Q)), t.updateClassExpression(Q, at, Q.name, void 0, Kn(Q.heritageClauses, H, Md), On(Q)); } function On(Q) { const at = Kn(Q.members, Ge(Q), Pc); let St; const _n = hh(Q), kr = _n && yn(_n.parameters, (Nr) => Yd(Nr, _n)); if (kr) for (const Nr of kr) { const va = t.createPropertyDeclaration(void 0, Nr.name, void 0, void 0, void 0); Vr(va, Nr), St = Fn(St, va); } return St ? (St = yi(St, at), mt(t.createNodeArray(St), Q.members)) : at; } function Hn(Q, at) { const St = Yt(at, at); if (kt(St)) { const _n = []; yi(_n, wP(Q, AJ)), yi(_n, yn(Q, Du)), yi(_n, St), yi(_n, yn(Sse(Q, AJ), lo)), Q = mt(t.createNodeArray(_n), Q); } return Q; } function In(Q, at, St) { if (li(St) && WW(b, at, St)) { const _n = Yt(at, St); if (kt(_n)) { const kr = []; yi(kr, yn(Q, Du)), yi(kr, _n), yi(kr, yn(Q, lo)), Q = mt(t.createNodeArray(kr), Q); } } return Q; } function Yt(Q, at) { if (b) return Hme ? xi(Q, at) : fr(Q, at); } function fr(Q, at) { if (A) { let St; if (Ji(Q)) { const _n = r().createMetadataHelper("design:type", A.serializeTypeOfNode({ currentLexicalScope: U, currentNameScope: at }, Q)); St = Fn(St, t.createDecorator(_n)); } if (Rr(Q)) { const _n = r().createMetadataHelper("design:paramtypes", A.serializeParameterTypesOfNode({ currentLexicalScope: U, currentNameScope: at }, Q, at)); St = Fn(St, t.createDecorator(_n)); } if (Ki(Q)) { const _n = r().createMetadataHelper("design:returntype", A.serializeReturnTypeOfNode({ currentLexicalScope: U, currentNameScope: at }, Q)); St = Fn(St, t.createDecorator(_n)); } return St; } } function xi(Q, at) { if (A) { let St; if (Ji(Q)) { const _n = t.createPropertyAssignment("type", t.createArrowFunction(void 0, void 0, [], void 0, t.createToken(38), A.serializeTypeOfNode({ currentLexicalScope: U, currentNameScope: at }, Q))); St = Fn(St, _n); } if (Rr(Q)) { const _n = t.createPropertyAssignment("paramTypes", t.createArrowFunction(void 0, void 0, [], void 0, t.createToken(38), A.serializeParameterTypesOfNode({ currentLexicalScope: U, currentNameScope: at }, Q, at))); St = Fn(St, _n); } if (Ki(Q)) { const _n = t.createPropertyAssignment("returnType", t.createArrowFunction(void 0, void 0, [], void 0, t.createToken(38), A.serializeReturnTypeOfNode({ currentLexicalScope: U, currentNameScope: at }, Q))); St = Fn(St, _n); } if (St) { const _n = r().createMetadataHelper("design:typeinfo", t.createObjectLiteralExpression(St, !0)); return [t.createDecorator(_n)]; } } } function Ji(Q) { const at = Q.kind; return at === 171 || at === 174 || at === 175 || at === 169; } function Ki(Q) { return Q.kind === 171; } function Rr(Q) { switch (Q.kind) { case 260: case 228: return hh(Q) !== void 0; case 171: case 174: case 175: return !0; } return !1; } function xt(Q, at) { const St = Q.name; return ki(St) ? t.createIdentifier("") : Ss(St) ? at && !Zp(St.expression) ? t.getGeneratedNameForNode(St) : St.expression : Ve(St) ? t.createStringLiteral(Or(St)) : t.cloneNode(St); } function gn(Q) { const at = Q.name; if (Ss(at) && (!_c(Q) && te || zf(Q) && b)) { const St = st(at.expression, H, yt); D.assert(St); const _n = D_(St); if (!Zp(_n)) { const kr = t.getGeneratedNameForNode(at); return c(kr), t.updateComputedPropertyName(at, t.createAssignment(kr, St)); } } return D.checkDefined(st(at, H, hl)); } function Ht(Q) { if (Q.token !== 117) return Bn(Q, H, e); } function ln(Q) { return t.updateExpressionWithTypeArguments(Q, D.checkDefined(st(Q.expression, H, gd)), void 0); } function rr(Q) { return !Sl(Q.body); } function lr(Q, at) { const St = Q.flags & 16777216 || Jr(Q, 256); if (St && !(b && zf(Q))) return; let _n = li(at) ? St ? Kn(Q.modifiers, Ke, el) : Kn(Q.modifiers, H, el) : Kn(Q.modifiers, Pe, el); return _n = In(_n, Q, at), St ? t.updatePropertyDeclaration(Q, ha(_n, t.createModifiersFromModifierFlags(2)), D.checkDefined(st(Q.name, H, hl)), void 0, void 0, void 0) : t.updatePropertyDeclaration(Q, _n, gn(Q), void 0, void 0, st(Q.initializer, H, yt)); } function Di(Q) { if (rr(Q)) return t.updateConstructorDeclaration(Q, void 0, Wl(Q.parameters, H, e), _i(Q.body, Q)); } function _i(Q, at) { const St = at && yn(at.parameters, (Uo) => Yd(Uo, at)); if (!kt(St)) return xf(Q, H, e); let _n = []; o(); const kr = t.copyPrologue(Q.statements, _n, !1, H), Nr = D5(Q.statements, kr); Nr >= 0 && yi(_n, Kn(Q.statements, H, Ia, kr, Nr + 1 - kr)); const va = _a(St, Rn); Nr >= 0 ? yi(_n, va) : _n = [ ..._n.slice(0, kr), ...va, ..._n.slice(kr) ]; const as = Nr >= 0 ? Nr + 1 : kr; yi(_n, Kn(Q.statements, H, Ia, as)), _n = t.mergeLexicalEnvironment(_n, s()); const _o = t.createBlock(mt(t.createNodeArray(_n), Q.statements), !0); return mt(_o, Q), Vr(_o, Q), _o; } function Rn(Q) { const at = Q.name; if (!Ve(at)) return; const St = Bo(mt(t.cloneNode(at), at), at.parent); or(St, 3168); const _n = Bo(mt(t.cloneNode(at), at), at.parent); return or(_n, 3072), Pu(sO(mt(Vr(t.createExpressionStatement(t.createAssignment(mt(t.createPropertyAccessExpression(t.createThis(), St), Q.name), _n)), Q), q0(Q, -1)))); } function en(Q, at) { if (!(Q.transformFlags & 1)) return Q; if (!rr(Q)) return; let St = li(at) ? Kn(Q.modifiers, H, el) : Kn(Q.modifiers, Pe, el); return St = In(St, Q, at), t.updateMethodDeclaration(Q, St, Q.asteriskToken, gn(Q), void 0, void 0, Wl(Q.parameters, H, e), void 0, xf(Q.body, H, e)); } function Pn(Q) { return !(Sl(Q.body) && Jr(Q, 256)); } function xr(Q, at) { if (!(Q.transformFlags & 1)) return Q; if (!Pn(Q)) return; let St = li(at) ? Kn(Q.modifiers, H, el) : Kn(Q.modifiers, Pe, el); return St = In(St, Q, at), t.updateGetAccessorDeclaration(Q, St, gn(Q), Wl(Q.parameters, H, e), void 0, xf(Q.body, H, e) || t.createBlock([])); } function Ur(Q, at) { if (!(Q.transformFlags & 1)) return Q; if (!Pn(Q)) return; let St = li(at) ? Kn(Q.modifiers, H, el) : Kn(Q.modifiers, Pe, el); return St = In(St, Q, at), t.updateSetAccessorDeclaration(Q, St, gn(Q), Wl(Q.parameters, H, e), xf(Q.body, H, e) || t.createBlock([])); } function Ie(Q) { if (!rr(Q)) return t.createNotEmittedStatement(Q); const at = t.updateFunctionDeclaration(Q, Kn(Q.modifiers, He, lo), Q.asteriskToken, Q.name, void 0, Wl(Q.parameters, H, e), void 0, xf(Q.body, H, e) || t.createBlock([])); if (la(Q)) { const St = [at]; return Ml(St, Q), St; } return at; } function gt(Q) { return rr(Q) ? t.updateFunctionExpression(Q, Kn(Q.modifiers, He, lo), Q.asteriskToken, Q.name, void 0, Wl(Q.parameters, H, e), void 0, xf(Q.body, H, e) || t.createBlock([])) : t.createOmittedExpression(); } function Nt(Q) { return t.updateArrowFunction(Q, Kn(Q.modifiers, He, lo), void 0, Wl(Q.parameters, H, e), void 0, Q.equalsGreaterThanToken, xf(Q.body, H, e)); } function xe(Q) { if (E1(Q)) return; const at = t.updateParameterDeclaration(Q, Kn(Q.modifiers, (St) => Du(St) ? H(St) : void 0, el), Q.dotDotDotToken, D.checkDefined(st(Q.name, H, dh)), void 0, void 0, st(Q.initializer, H, yt)); return at !== Q && (Bc(at, Q), mt(at, qp(Q)), cs(at, qp(Q)), or(at.name, 64)), at; } function _t(Q) { if (la(Q)) { const at = JI(Q.declarationList); return at.length === 0 ? void 0 : mt(t.createExpressionStatement(t.inlineExpressions(rn(at, _e))), Q); } else return Bn(Q, H, e); } function _e(Q) { const at = Q.name; return Ja(at) ? RT(Q, H, e, 0, !1, Fl) : mt(t.createAssignment(So(at), D.checkDefined(st(Q.initializer, H, yt))), Q); } function re(Q) { const at = t.updateVariableDeclaration(Q, D.checkDefined(st(Q.name, H, dh)), void 0, void 0, st(Q.initializer, H, yt)); return Q.type && sfe(at.name, Q.type), at; } function me(Q) { const at = pu(Q.expression, -7); if (ZE(at)) { const St = st(Q.expression, H, yt); return D.assert(St), t.createPartiallyEmittedExpression(St, Q); } return Bn(Q, H, e); } function V(Q) { const at = st(Q.expression, H, yt); return D.assert(at), t.createPartiallyEmittedExpression(at, Q); } function je(Q) { const at = st(Q.expression, H, gd); return D.assert(at), t.createPartiallyEmittedExpression(at, Q); } function Qe(Q) { const at = st(Q.expression, H, yt); return D.assert(at), t.createPartiallyEmittedExpression(at, Q); } function Je(Q) { return t.updateCallExpression(Q, D.checkDefined(st(Q.expression, H, yt)), void 0, Kn(Q.arguments, H, yt)); } function Ut(Q) { return t.updateNewExpression(Q, D.checkDefined(st(Q.expression, H, yt)), void 0, Kn(Q.arguments, H, yt)); } function on(Q) { return t.updateTaggedTemplateExpression(Q, D.checkDefined(st(Q.tag, H, yt)), void 0, D.checkDefined(st(Q.template, H, vA))); } function Sn(Q) { return t.updateJsxSelfClosingElement(Q, D.checkDefined(st(Q.tagName, H, vI)), void 0, D.checkDefined(st(Q.attributes, H, w1))); } function br(Q) { return t.updateJsxOpeningElement(Q, D.checkDefined(st(Q.tagName, H, vI)), void 0, D.checkDefined(st(Q.attributes, H, w1))); } function ce(Q) { return !m1(Q) || S1(d); } function pt(Q) { if (!ce(Q)) return t.createNotEmittedStatement(Q); const at = []; let St = 4; const _n = ht(at, Q); _n && (m !== 4 || U !== O) && (St |= 1024); const kr = Aa(Q), Nr = Jo(Q), va = Jr(Q, 1) ? t.getExternalModuleOrNamespaceExportName(B, Q, !1, !0) : t.getLocalName(Q, !1, !0); let as = t.createLogicalOr(va, t.createAssignment(va, t.createObjectLiteralExpression())); if (Z(Q)) { const Uo = t.getLocalName(Q, !1, !0); as = t.createAssignment(Uo, as); } const _o = t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0, void 0, void 0, void 0, [t.createParameterDeclaration(void 0, void 0, kr)], void 0, Wt(Q, Nr)), void 0, [as])); return Vr(_o, Q), _n && (L1(_o, void 0), iC(_o, void 0)), mt(_o, Q), Kp(_o, St), at.push(_o), at.push(t.createEndOfDeclarationMarker(Q)), at; } function Wt(Q, at) { const St = B; B = at; const _n = []; i(); const kr = rn(Q.members, rt); return wm(_n, s()), yi(_n, kr), B = St, t.createBlock(mt(t.createNodeArray(_n), Q.members), !0); } function rt(Q) { const at = xt(Q, !1), St = K(Q), _n = t.createAssignment(t.createElementAccessExpression(B, at), St), kr = St.kind === 10 ? _n : t.createAssignment(t.createElementAccessExpression(B, _n), at); return mt(t.createExpressionStatement(mt(kr, Q)), Q); } function K(Q) { const at = f.getConstantValue(Q); return at !== void 0 ? typeof at == "string" ? t.createStringLiteral(at) : t.createNumericLiteral(at) : (Bl(), Q.initializer ? D.checkDefined(st(Q.initializer, H, yt)) : t.createVoidZero()); } function Oe(Q) { const at = ya(Q, Hl); return at ? DK(at, S1(d)) : !0; } function Z(Q) { return la(Q) || wn(Q) && m !== 5 && m !== 6 && m !== 7 && m !== 99 && m !== 4; } function we(Q) { j || (j = /* @__PURE__ */ new Map()); const at = Rt(Q); j.has(at) || j.set(at, Q); } function q(Q) { if (j) { const at = Rt(Q); return j.get(at) === Q; } return !0; } function Rt(Q) { return D.assertNode(Q.name, Ve), Q.name.escapedText; } function ht(Q, at) { const St = t.createVariableStatement(Kn(at.modifiers, He, lo), t.createVariableDeclarationList([ t.createVariableDeclaration(t.getLocalName(at, !1, !0)) ], U.kind === 308 ? 0 : 1)); if (Vr(St, at), we(at), q(at)) return at.kind === 263 ? cs(St.declarationList, at) : cs(St, at), Bc(St, at), Kp(St, 8390656), Q.push(St), !0; { const _n = t.createMergeDeclarationMarker(St); return or(_n, 8391680), Q.push(_n), !1; } } function dt(Q) { if (!Oe(Q)) return t.createNotEmittedStatement(Q); D.assertNode(Q.name, Ve, "A TypeScript namespace should have an Identifier name."), Xc(); const at = []; let St = 4; const _n = ht(at, Q); _n && (m !== 4 || U !== O) && (St |= 1024); const kr = Aa(Q), Nr = Jo(Q), va = Jr(Q, 1) ? t.getExternalModuleOrNamespaceExportName(B, Q, !1, !0) : t.getLocalName(Q, !1, !0); let as = t.createLogicalOr(va, t.createAssignment(va, t.createObjectLiteralExpression())); if (Z(Q)) { const Uo = t.getLocalName(Q, !1, !0); as = t.createAssignment(Uo, as); } const _o = t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0, void 0, void 0, void 0, [t.createParameterDeclaration(void 0, void 0, kr)], void 0, dn(Q, Nr)), void 0, [as])); return Vr(_o, Q), _n && (L1(_o, void 0), iC(_o, void 0)), mt(_o, Q), Kp(_o, St), at.push(_o), at.push(t.createEndOfDeclarationMarker(Q)), at; } function dn(Q, at) { const St = B, _n = k, kr = j; B = at, k = Q, j = void 0; const Nr = []; i(); let va, as; if (Q.body) if (Q.body.kind === 265) ge(Q.body, (Uo) => yi(Nr, Kn(Uo.statements, ee, Ia))), va = Q.body.statements, as = Q.body; else { const Uo = dt(Q.body); Uo && (Ga(Uo) ? yi(Nr, Uo) : Nr.push(Uo)); const Ka = $n(Q).body; va = q0(Ka.statements, -1); } wm(Nr, s()), B = St, k = _n, j = kr; const _o = t.createBlock(mt(t.createNodeArray(Nr), va), !0); return mt(_o, as), (!Q.body || Q.body.kind !== 265) && or(_o, ho(_o) | 3072), _o; } function $n(Q) { if (Q.body.kind === 264) return $n(Q.body) || Q.body; } function ii(Q) { if (!Q.importClause) return Q; if (Q.importClause.isTypeOnly) return; const at = st(Q.importClause, Ti, Gm); return at || d.importsNotUsedAsValues === 1 || d.importsNotUsedAsValues === 2 ? t.updateImportDeclaration(Q, void 0, at, Q.moduleSpecifier, Q.assertClause) : void 0; } function Ti(Q) { D.assert(!Q.isTypeOnly); const at = jt(Q) ? Q.name : void 0, St = st(Q.namedBindings, Si, cW); return at || St ? t.updateImportClause(Q, !1, at, St) : void 0; } function Si(Q) { if (Q.kind === 271) return jt(Q) ? Q : void 0; { const at = d.verbatimModuleSyntax || d.preserveValueImports && (d.importsNotUsedAsValues === 1 || d.importsNotUsedAsValues === 2), St = Kn(Q.elements, Bi, Td); return at || kt(St) ? t.updateNamedImports(Q, St) : void 0; } } function Bi(Q) { return !Q.isTypeOnly && jt(Q) ? Q : void 0; } function fo(Q) { return d.verbatimModuleSyntax || f.isValueAliasDeclaration(Q) ? Bn(Q, H, e) : void 0; } function vo(Q) { if (Q.isTypeOnly) return; if (!Q.exportClause || Sh(Q.exportClause)) return Q; const at = d.verbatimModuleSyntax || !!Q.moduleSpecifier && (d.importsNotUsedAsValues === 1 || d.importsNotUsedAsValues === 2), St = st(Q.exportClause, (_n) => Gi(_n, at), $H); return St ? t.updateExportDeclaration(Q, void 0, Q.isTypeOnly, St, Q.moduleSpecifier, Q.assertClause) : void 0; } function no(Q, at) { const St = Kn(Q.elements, qr, od); return at || kt(St) ? t.updateNamedExports(Q, St) : void 0; } function sa(Q) { return t.updateNamespaceExport(Q, D.checkDefined(st(Q.name, H, Ve))); } function Gi(Q, at) { return Sh(Q) ? sa(Q) : no(Q, at); } function qr(Q) { return !Q.isTypeOnly && (d.verbatimModuleSyntax || f.isValueAliasDeclaration(Q)) ? Q : void 0; } function is(Q) { return jt(Q) || !Yl(O) && f.isTopLevelValueImportEqualsWithEntityName(Q); } function ui(Q) { if (Q.isTypeOnly) return; if (G0(Q)) { const St = jt(Q); return !St && d.importsNotUsedAsValues === 1 ? Vr(mt(t.createImportDeclaration(void 0, void 0, Q.moduleReference.expression, void 0), Q), Q) : St ? Bn(Q, H, e) : void 0; } if (!is(Q)) return; const at = kO(t, Q.moduleReference); return or(at, 7168), da(Q) || !la(Q) ? Vr(mt(t.createVariableStatement(Kn(Q.modifiers, He, lo), t.createVariableDeclarationList([ Vr(t.createVariableDeclaration(Q.name, void 0, void 0, at), Q) ])), Q), Q) : Vr(zl(Q.name, at, Q), Q); } function la(Q) { return k !== void 0 && Jr(Q, 1); } function wn(Q) { return k === void 0 && Jr(Q, 1); } function da(Q) { return wn(Q) && !Jr(Q, 1024); } function $l(Q) { return wn(Q) && Jr(Q, 1024); } function tl(Q) { const at = t.createAssignment(t.getExternalModuleOrNamespaceExportName(B, Q, !1, !0), t.getLocalName(Q)); cs(at, u_(Q.name ? Q.name.pos : Q.pos, Q.end)); const St = t.createExpressionStatement(at); return cs(St, u_(-1, Q.end)), St; } function Ml(Q, at) { Q.push(tl(at)); } function zl(Q, at, St) { return mt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(B, Q, !1, !0), at)), St); } function Fl(Q, at, St) { return mt(t.createAssignment(So(Q), at), St); } function So(Q) { return t.getNamespaceMemberName(B, Q, !1, !0); } function Aa(Q) { const at = t.getGeneratedNameForNode(Q); return cs(at, Q.name), at; } function Jo(Q) { return t.getGeneratedNameForNode(Q); } function Bl() { X & 8 || (X |= 8, e.enableSubstitution(79)); } function Xc() { X & 2 || (X |= 2, e.enableSubstitution(79), e.enableSubstitution(300), e.enableEmitNotification(264)); } function Ud(Q) { return bl(Q).kind === 264; } function rc(Q) { return bl(Q).kind === 263; } function jc(Q, at, St) { const _n = Y, kr = O; ji(at) && (O = at), X & 2 && Ud(at) && (Y |= 2), X & 8 && rc(at) && (Y |= 8), C(Q, at, St), Y = _n, O = kr; } function ks(Q, at) { return at = I(Q, at), Q === 1 ? Qs(at) : Xf(at) ? pl(at) : at; } function pl(Q) { if (X & 2) { const at = Q.name, St = Zt(at); if (St) { if (Q.objectAssignmentInitializer) { const _n = t.createAssignment(St, Q.objectAssignmentInitializer); return mt(t.createPropertyAssignment(at, _n), Q); } return mt(t.createPropertyAssignment(at, St), Q); } } return Q; } function Qs(Q) { switch (Q.kind) { case 79: return qs(Q); case 208: return Gl(Q); case 209: return yu(Q); } return Q; } function qs(Q) { return Zt(Q) || Q; } function Zt(Q) { if (X & Y && !El(Q) && !Pv(Q)) { const at = f.getReferencedExportContainer(Q, !1); if (at && at.kind !== 308 && (Y & 2 && at.kind === 264 || Y & 8 && at.kind === 263)) return mt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(at), Q), Q); } } function Gl(Q) { return de(Q); } function yu(Q) { return de(Q); } function Bu(Q) { return Q.replace(/\*\//g, "*_/"); } function de(Q) { const at = It(Q); if (at !== void 0) { afe(Q, at); const St = typeof at == "string" ? t.createStringLiteral(at) : t.createNumericLiteral(at); if (!d.removeComments) { const _n = bl(Q, ol); H3(St, 3, ` ${Bu(bc(_n))} `); } return St; } return Q; } function It(Q) { if (!F_(d)) return Pr(Q) || sl(Q) ? f.getConstantValue(Q) : void 0; } function jt(Q) { return d.verbatimModuleSyntax || dr(Q) || (d.preserveValueImports ? f.isValueAliasDeclaration(Q) : f.isReferencedAliasDeclaration(Q)); } } var Hme, DMe = L({ "src/compiler/transformers/ts.ts"() { Ra(), Hme = !1; } }); function Wme(e) { const { factory: t, getEmitHelperFactory: r, hoistVariableDeclaration: i, endLexicalEnvironment: o, startLexicalEnvironment: s, resumeLexicalEnvironment: c, addBlockScopedVariable: f } = e, d = e.getEmitResolver(), y = e.getCompilerOptions(), m = $o(y), b = WN(y), A = !!y.experimentalDecorators, C = !b, I = b && m < 9, O = C || I, k = m < 9, B = m < 99 ? -1 : b ? 0 : 3, U = m < 9, j = U && m >= 2, te = O || k || B === -1, X = e.onSubstituteNode; e.onSubstituteNode = qs; const Y = e.onEmitNode; e.onEmitNode = Qs; let P = !1, ue, ne, ge, ie, H; const le = /* @__PURE__ */ new Map(); let pe, ye, Te = !1, ee = !1; return W_(e, $e); function $e(de) { if (de.isDeclarationFile || (H = void 0, P = !!(R_(de) & 32), !te && !P)) return de; const It = Bn(de, Fe, e); return gy(It, e.readEmitHelpers()), It; } function Ge(de) { switch (de.kind) { case 127: return lr() ? void 0 : de; default: return ri(de, lo); } } function Fe(de) { if (!(de.transformFlags & 16777216) && !(de.transformFlags & 134234112)) return de; switch (de.kind) { case 127: return D.fail("Use `modifierVisitor` instead."); case 260: return ce(de); case 228: return Wt(de, void 0); case 172: case 169: return D.fail("Use `classElementVisitor` instead."); case 299: return et(de); case 240: return it(de); case 257: return Xt(de); case 166: return On(de); case 205: return Hn(de); case 274: return In(de); case 80: return bt(de); case 208: return en(de); case 209: return Pn(de); case 221: case 222: return xr(de, !1); case 223: return re(de, !1); case 214: return V(de, !1, void 0); case 210: return Nt(de); case 241: return Ie(de); case 212: return xe(de); case 245: return Ur(de); case 259: case 215: case 173: case 171: case 174: case 175: return Rr(void 0, We, de); default: return We(de); } } function We(de) { return Bn(de, Fe, e); } function Re(de, It) { switch (de.kind) { case 356: return je(de, !1, It); case 214: return V(de, !1, It); case 228: return Wt(de, It); default: return Fe(de); } } function Pe(de) { switch (de.kind) { case 221: case 222: return xr(de, !0); case 223: return re(de, !0); case 357: return me(de, !0); case 214: return V(de, !0, void 0); default: return Fe(de); } } function Ke(de) { switch (de.kind) { case 294: return Bn(de, Ke, e); case 230: return Sn(de); default: return Fe(de); } } function He(de) { switch (de.kind) { case 207: case 206: return pl(de); default: return Fe(de); } } function Me(de) { switch (de.kind) { case 173: return xi(de); case 174: case 175: case 171: return Rr(void 0, Ki, de); case 169: return Rr(void 0, Di, de); case 172: return K(de); case 164: return fr(de); case 237: return de; default: return el(de) ? Ge(de) : Fe(de); } } function ot(de) { switch (de.kind) { case 164: return fr(de); default: return Fe(de); } } function At(de) { switch (de.kind) { case 169: return rr(de); case 174: case 175: return Me(de); default: D.assertMissingNode(de, "Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration"); break; } } function bt(de) { return !k || Ia(de.parent) ? de : Vr(t.createIdentifier(""), de); } function Vt(de) { const It = Fl(de.left); if (It) { const jt = st(de.right, Fe, yt); return Vr(r().createClassPrivateFieldInHelper(It.brandCheckIdentifier, jt), de); } return Bn(de, Fe, e); } function et(de) { if (Wf(de, _e)) { const { referencedName: It, name: jt } = Qe(de.name), Q = st(de.initializer, (at) => Re(at, It), yt); return t.updatePropertyAssignment(de, jt, Q); } return Bn(de, Fe, e); } function it(de) { const It = ie; ie = []; const jt = Bn(de, Fe, e), Q = kt(ie) ? [jt, ...ie] : jt; return ie = It, Q; } function nn(de, It) { const jt = bl(It, li); return jt && !jt.name && Jr(jt, 1024) ? t.createStringLiteral("default") : t.createStringLiteralFromNode(de); } function Xt(de) { if (Wf(de, _e)) { const It = nn(de.name, de.initializer), jt = st(de.name, Fe, dh), Q = st(de.initializer, (at) => Re(at, It), yt); return t.updateVariableDeclaration(de, jt, void 0, void 0, Q); } return Bn(de, Fe, e); } function On(de) { if (Wf(de, _e)) { const It = nn(de.name, de.initializer), jt = st(de.name, Fe, dh), Q = st(de.initializer, (at) => Re(at, It), yt); return t.updateParameterDeclaration(de, void 0, void 0, jt, void 0, void 0, Q); } return Bn(de, Fe, e); } function Hn(de) { if (Wf(de, _e)) { const It = nn(de.name, de.initializer), jt = st(de.propertyName, Fe, hl), Q = st(de.name, Fe, dh), at = st(de.initializer, (St) => Re(St, It), yt); return t.updateBindingElement(de, void 0, jt, Q, at); } return Bn(de, Fe, e); } function In(de) { if (Wf(de, _e)) { const It = t.createStringLiteral(de.isExportEquals ? "" : "default"), jt = Kn(de.modifiers, Ge, lo), Q = st(de.expression, (at) => Re(at, It), yt); return t.updateExportAssignment(de, jt, Q); } return Bn(de, Fe, e); } function Yt(de) { return kt(ge) && (Pd(de) ? (ge.push(de.expression), de = t.updateParenthesizedExpression(de, t.inlineExpressions(ge))) : (ge.push(de), de = t.inlineExpressions(ge)), ge = void 0), de; } function fr(de) { const It = st(de.expression, Fe, yt); return t.updateComputedPropertyName(de, Yt(It)); } function xi(de) { return pe ? we(de, pe) : We(de); } function Ji(de) { return !!(k || _c(de) && R_(de) & 32); } function Ki(de) { if (D.assert(!zf(de)), !zu(de) || !Ji(de)) return Bn(de, Me, e); const It = Fl(de.name); if (D.assert(It, "Undeclared private name for property declaration."), !It.isValid) return de; const jt = xt(de); jt && qr().push(t.createAssignment(jt, t.createFunctionExpression(yn(de.modifiers, (Q) => lo(Q) && !mx(Q) && !Sfe(Q)), de.asteriskToken, jt, void 0, Wl(de.parameters, Fe, e), void 0, xf(de.body, Fe, e)))); } function Rr(de, It, jt) { const Q = ye; ye = de; const at = It(jt); return ye = Q, at; } function xt(de) { D.assert(ki(de.name)); const It = Fl(de.name); if (D.assert(It, "Undeclared private name for property declaration."), It.kind === "m") return It.methodName; if (It.kind === "a") { if (Sv(de)) return It.getterName; if (fy(de)) return It.setterName; } } function gn(de) { const It = Fm(de), jt = K0(de), Q = de.name; let at = Q, St = Q; if (Ss(Q) && !Zp(Q.expression)) { const as = G7(Q); if (as) at = t.updateComputedPropertyName(Q, st(Q.expression, Fe, yt)), St = t.updateComputedPropertyName(Q, as.left); else { const _o = t.createTempVariable(i); cs(_o, Q.expression); const Uo = st(Q.expression, Fe, yt), Ka = t.createAssignment(_o, Uo); cs(Ka, Q.expression), at = t.updateComputedPropertyName(Q, Ka), St = t.updateComputedPropertyName(Q, _o); } } const _n = Kn(de.modifiers, Ge, lo), kr = CJ(t, de, _n, de.initializer); Vr(kr, de), or(kr, 3072), cs(kr, jt); const Nr = o_e(t, de, _n, at); Vr(Nr, de), Bc(Nr, It), cs(Nr, jt); const va = s_e(t, de, _n, St); return Vr(va, de), or(va, 3072), cs(va, jt), BK([kr, Nr, va], At, Pc); } function Ht(de) { if (Ji(de)) { const It = Fl(de.name); if (D.assert(It, "Undeclared private name for property declaration."), !It.isValid) return de; if (It.isStatic && !k) { const jt = ht(de, t.createThis()); if (jt) return t.createClassStaticBlockDeclaration(t.createBlock([jt], !0)); } return; } if (C && !za(de) && (H != null && H.data) && H.data.facts & 16) return t.updatePropertyDeclaration(de, Kn(de.modifiers, Fe, el), de.name, void 0, void 0, void 0); if (Wf(de, _e)) { const { referencedName: It, name: jt } = Qe(de.name); return t.updatePropertyDeclaration(de, Kn(de.modifiers, Ge, lo), jt, void 0, void 0, st(de.initializer, (Q) => Re(Q, It), yt)); } return t.updatePropertyDeclaration(de, Kn(de.modifiers, Ge, lo), st(de.name, ot, hl), void 0, void 0, st(de.initializer, Fe, yt)); } function ln(de) { if (O && !Qd(de)) { const It = fo(de.name, !!de.initializer || b, Wf(de, _e)); if (It && qr().push(...l_e(It)), za(de) && !k) { const jt = ht(de, t.createThis()); if (jt) { const Q = t.createClassStaticBlockDeclaration(t.createBlock([jt])); return Vr(Q, de), Bc(Q, de), Bc(jt, { pos: -1, end: -1 }), L1(jt, void 0), iC(jt, void 0), Q; } } return; } return t.updatePropertyDeclaration(de, Kn(de.modifiers, Ge, lo), st(de.name, ot, hl), void 0, void 0, st(de.initializer, Fe, yt)); } function rr(de) { return D.assert(!zf(de), "Decorators should already have been transformed and elided."), zu(de) ? Ht(de) : ln(de); } function lr() { return B === -1 || B === 3 && !!(H != null && H.data) && !!(H.data.facts & 16); } function Di(de) { return Qd(de) && (lr() || _c(de) && R_(de) & 32) ? gn(de) : rr(de); } function _i(de, It) { return Rn(de, st(It, Fe, yt)); } function Rn(de, It) { switch (Bc(It, q0(It, -1)), de.kind) { case "a": return r().createClassPrivateFieldGetHelper(It, de.brandCheckIdentifier, de.kind, de.getterName); case "m": return r().createClassPrivateFieldGetHelper(It, de.brandCheckIdentifier, de.kind, de.methodName); case "f": return r().createClassPrivateFieldGetHelper(It, de.brandCheckIdentifier, de.kind, de.isStatic ? de.variableName : void 0); case "untransformed": return D.fail("Access helpers should not be created for untransformed private elements"); default: D.assertNever(de, "Unknown private element type"); } } function en(de) { if (ki(de.name)) { const It = Fl(de.name); if (It) return mt(Vr(_i(It, de.expression), de), de); } if (j && ad(de) && Ve(de.name) && ye && (H != null && H.data)) { const { classConstructor: It, superClassReference: jt, facts: Q } = H.data; if (Q & 1) return Bi(de); if (It && jt) { const at = t.createReflectGetCall(jt, t.createStringLiteralFromNode(de.name), It); return Vr(at, de.expression), mt(at, de.expression), at; } } return Bn(de, Fe, e); } function Pn(de) { if (j && ad(de) && ye && (H != null && H.data)) { const { classConstructor: It, superClassReference: jt, facts: Q } = H.data; if (Q & 1) return Bi(de); if (It && jt) { const at = t.createReflectGetCall(jt, st(de.argumentExpression, Fe, yt), It); return Vr(at, de.expression), mt(at, de.expression), at; } } return Bn(de, Fe, e); } function xr(de, It) { if (de.operator === 45 || de.operator === 46) { const jt = Us(de.operand); if (hA(jt)) { let Q; if (Q = Fl(jt.name)) { const at = st(jt.expression, Fe, yt), { readExpression: St, initializeExpression: _n } = gt(at); let kr = _i(Q, St); const Nr = Nv(de) || It ? void 0 : t.createTempVariable(i); return kr = D7(t, de, kr, i, Nr), kr = Je(Q, _n || St, kr, 63), Vr(kr, de), mt(kr, de), Nr && (kr = t.createComma(kr, Nr), mt(kr, de)), kr; } } else if (j && ad(jt) && ye && (H != null && H.data)) { const { classConstructor: Q, superClassReference: at, facts: St } = H.data; if (St & 1) { const _n = Bi(jt); return Nv(de) ? t.updatePrefixUnaryExpression(de, _n) : t.updatePostfixUnaryExpression(de, _n); } if (Q && at) { let _n, kr; if (Pr(jt) ? Ve(jt.name) && (kr = _n = t.createStringLiteralFromNode(jt.name)) : Zp(jt.argumentExpression) ? kr = _n = jt.argumentExpression : (kr = t.createTempVariable(i), _n = t.createAssignment(kr, st(jt.argumentExpression, Fe, yt))), _n && kr) { let Nr = t.createReflectGetCall(at, kr, Q); mt(Nr, jt); const va = It ? void 0 : t.createTempVariable(i); return Nr = D7(t, de, Nr, i, va), Nr = t.createReflectSetCall(at, _n, Nr, Q), Vr(Nr, de), mt(Nr, de), va && (Nr = t.createComma(Nr, va), mt(Nr, de)), Nr; } } } } return Bn(de, Fe, e); } function Ur(de) { return t.updateForStatement(de, st(de.initializer, Pe, jp), st(de.condition, Fe, yt), st(de.incrementor, Pe, yt), p_(de.statement, Fe, e)); } function Ie(de) { return t.updateExpressionStatement(de, st(de.expression, Pe, yt)); } function gt(de) { const It = $s(de) ? de : t.cloneNode(de); if (Zp(de)) return { readExpression: It, initializeExpression: void 0 }; const jt = t.createTempVariable(i), Q = t.createAssignment(jt, It); return { readExpression: jt, initializeExpression: Q }; } function Nt(de) { var It; if (hA(de.expression) && Fl(de.expression.name)) { const { thisArg: jt, target: Q } = t.createCallBinding(de.expression, i, m); return YE(de) ? t.updateCallChain(de, t.createPropertyAccessChain(st(Q, Fe, yt), de.questionDotToken, "call"), void 0, void 0, [st(jt, Fe, yt), ...Kn(de.arguments, Fe, yt)]) : t.updateCallExpression(de, t.createPropertyAccessExpression(st(Q, Fe, yt), "call"), void 0, [st(jt, Fe, yt), ...Kn(de.arguments, Fe, yt)]); } if (j && ad(de.expression) && ye && ((It = H == null ? void 0 : H.data) != null && It.classConstructor)) { const jt = t.createFunctionCallCall(st(de.expression, Fe, yt), H.data.classConstructor, Kn(de.arguments, Fe, yt)); return Vr(jt, de), mt(jt, de), jt; } return Bn(de, Fe, e); } function xe(de) { var It; if (hA(de.tag) && Fl(de.tag.name)) { const { thisArg: jt, target: Q } = t.createCallBinding(de.tag, i, m); return t.updateTaggedTemplateExpression(de, t.createCallExpression(t.createPropertyAccessExpression(st(Q, Fe, yt), "bind"), void 0, [st(jt, Fe, yt)]), void 0, st(de.template, Fe, vA)); } if (j && ad(de.tag) && ye && ((It = H == null ? void 0 : H.data) != null && It.classConstructor)) { const jt = t.createFunctionBindCall(st(de.tag, Fe, yt), H.data.classConstructor, []); return Vr(jt, de), mt(jt, de), t.updateTaggedTemplateExpression(de, jt, void 0, st(de.template, Fe, vA)); } return Bn(de, Fe, e); } function _t(de) { if (H && le.set(bl(de), H), k) { s(); let It = Rr(de, (Q) => Kn(Q, Fe, Ia), de.body.statements); It = t.mergeLexicalEnvironment(It, o()); const jt = t.createImmediatelyInvokedArrowFunction(It); return Vr(jt, de), mt(jt, de), Kp(jt, 4), jt; } } function _e(de) { if (Nu(de) && !de.name) { const It = R5(de), jt = un(It, Cl); if (jt) { for (const at of jt.body.statements) if (eu(at) && _k(at.expression, "___setFunctionName")) return !1; } return (k || !!R_(de)) && kt(It, (at) => Cl(at) || zu(at) || O && m8(at)); } return !1; } function re(de, It) { if (my(de)) { const jt = ge; ge = void 0, de = t.updateBinaryExpression(de, st(de.left, He, yt), de.operatorToken, st(de.right, Fe, yt)); const Q = kt(ge) ? t.inlineExpressions(QD([...ge, de])) : de; return ge = jt, Q; } if (Ku(de)) { if (Wf(de, _e)) { const jt = nn(de.left, de.right), Q = st(de.left, Fe, yt), at = st(de.right, (St) => Re(St, jt), yt); return t.updateBinaryExpression(de, Q, de.operatorToken, at); } if (hA(de.left)) { const jt = Fl(de.left.name); if (jt) return mt(Vr(Je(jt, de.left.expression, de.right, de.operatorToken.kind), de), de); } else if (j && ad(de.left) && ye && (H != null && H.data)) { const { classConstructor: jt, superClassReference: Q, facts: at } = H.data; if (at & 1) return t.updateBinaryExpression(de, Bi(de.left), de.operatorToken, st(de.right, Fe, yt)); if (jt && Q) { let St = sl(de.left) ? st(de.left.argumentExpression, Fe, yt) : Ve(de.left.name) ? t.createStringLiteralFromNode(de.left.name) : void 0; if (St) { let _n = st(de.right, Fe, yt); if (p8(de.operatorToken.kind)) { let Nr = St; Zp(St) || (Nr = t.createTempVariable(i), St = t.createAssignment(Nr, St)); const va = t.createReflectGetCall(Q, Nr, jt); Vr(va, de.left), mt(va, de.left), _n = t.createBinaryExpression(va, Hk(de.operatorToken.kind), _n), mt(_n, de); } const kr = It ? void 0 : t.createTempVariable(i); return kr && (_n = t.createAssignment(kr, _n), mt(kr, de)), _n = t.createReflectSetCall(Q, St, _n, jt), Vr(_n, de), mt(_n, de), kr && (_n = t.createComma(_n, kr), mt(_n, de)), _n; } } } } return MMe(de) ? Vt(de) : Bn(de, Fe, e); } function me(de, It) { const jt = It ? _8(de.elements, Pe) : _8(de.elements, Fe, Pe); return t.updateCommaListExpression(de, jt); } function V(de, It, jt) { const Q = It ? Pe : jt ? (St) => Re(St, jt) : Fe, at = st(de.expression, Q, yt); return t.updateParenthesizedExpression(de, at); } function je(de, It, jt) { const Q = It ? Pe : jt ? (St) => Re(St, jt) : Fe, at = st(de.expression, Q, yt); return t.updatePartiallyEmittedExpression(de, at); } function Qe(de) { if (O_(de) || ki(de)) { const St = t.createStringLiteralFromNode(de), _n = st(de, Fe, hl); return { referencedName: St, name: _n }; } if (O_(de.expression) && !Ve(de.expression)) { const St = t.createStringLiteralFromNode(de.expression), _n = st(de, Fe, hl); return { referencedName: St, name: _n }; } const It = t.createTempVariable(i), jt = r().createPropKeyHelper(st(de.expression, Fe, yt)), Q = t.createAssignment(It, jt), at = t.updateComputedPropertyName(de, Yt(Q)); return { referencedName: It, name: at }; } function Je(de, It, jt, Q) { if (It = st(It, Fe, yt), jt = st(jt, Fe, yt), p8(Q)) { const { readExpression: at, initializeExpression: St } = gt(It); It = St || at, jt = t.createBinaryExpression(Rn(de, at), Hk(Q), jt); } switch (Bc(It, q0(It, -1)), de.kind) { case "a": return r().createClassPrivateFieldSetHelper(It, de.brandCheckIdentifier, jt, de.kind, de.setterName); case "m": return r().createClassPrivateFieldSetHelper(It, de.brandCheckIdentifier, jt, de.kind, void 0); case "f": return r().createClassPrivateFieldSetHelper(It, de.brandCheckIdentifier, jt, de.kind, de.isStatic ? de.variableName : void 0); case "untransformed": return D.fail("Access helpers should not be created for untransformed private elements"); default: D.assertNever(de, "Unknown private element type"); } } function Ut(de) { return yn(de.members, Mme); } function on(de) { let It = 0; const jt = bl(de); kc(jt) && h1(A, jt) && (It |= 1); let Q = !1, at = !1, St = !1, _n = !1; for (const Nr of de.members) za(Nr) ? (Nr.name && (ki(Nr.name) || Qd(Nr)) && k && (It |= 2), (Za(Nr) || Cl(Nr)) && (U && Nr.transformFlags & 16384 && (It |= 8, It & 1 || (It |= 2)), j && Nr.transformFlags & 134217728 && (It & 1 || (It |= 6)))) : T1(bl(Nr)) || (Qd(Nr) ? (_n = !0, St || (St = zu(Nr))) : zu(Nr) ? St = !0 : Za(Nr) && (Q = !0, at || (at = !!Nr.initializer))); return (I && Q || C && at || k && St || k && _n && B === -1) && (It |= 16), It; } function Sn(de) { var It; if ((((It = H == null ? void 0 : H.data) == null ? void 0 : It.facts) || 0) & 4) { const Q = t.createTempVariable(i, !0); return sa().superClassReference = Q, t.updateExpressionWithTypeArguments(de, t.createAssignment(Q, st(de.expression, Fe, yt)), void 0); } return Bn(de, Fe, e); } function br(de, It, jt) { const Q = pe, at = ge, St = H; pe = de, ge = void 0, vo(); const _n = R_(de) & 32; if (k || _n) { const va = La(de); va && Ve(va) && (Gi().data.className = va); } if (k) { const va = Ut(de); kt(va) && (Gi().data.weakSetName = Ml("instances", va[0].name)); } const kr = on(de); kr && (sa().facts = kr), kr & 8 && Ti(); const Nr = jt(de, kr, It); return no(), D.assert(H === St), pe = Q, ge = at, Nr; } function ce(de) { return br(de, void 0, pt); } function pt(de, It) { var jt, Q; let at; if (It & 2) { if (k && ((jt = de.emitNode) != null && jt.classThis)) sa().classConstructor = de.emitNode.classThis, at = t.createAssignment(de.emitNode.classThis, t.getInternalName(de)); else { const _o = t.createTempVariable(i, !0); sa().classConstructor = t.cloneNode(_o), at = t.createAssignment(_o, t.getInternalName(de)); } (Q = de.emitNode) != null && Q.classThis && (sa().classThis = de.emitNode.classThis); } const St = Kn(de.modifiers, Ge, lo), _n = Kn(de.heritageClauses, Ke, Md), { members: kr, prologue: Nr } = Oe(de), va = t.updateClassDeclaration(de, St, de.name, void 0, _n, kr), as = []; if (Nr && as.push(t.createExpressionStatement(Nr)), as.push(va), at && qr().unshift(at), kt(ge) && as.push(t.createExpressionStatement(t.inlineExpressions(ge))), C || k || R_(de) & 32) { const _o = R5(de); kt(_o) && Rt(as, _o, t.getInternalName(de)); } return as; } function Wt(de, It) { return br(de, It, rt); } function rt(de, It, jt) { var Q, at, St, _n, kr, Nr; const va = !!(It & 1), as = R5(de), _o = d.getNodeCheckFlags(de) & 1048576; let Uo; function Ka() { var Ul; if (k && ((Ul = de.emitNode) != null && Ul.classThis)) return sa().classConstructor = de.emitNode.classThis; const Lf = d.getNodeCheckFlags(de), Se = Lf & 1048576, Dt = Lf & 32768, Nn = t.createTempVariable(Dt ? f : i, !!Se); return sa().classConstructor = t.cloneNode(Nn), Nn; } (Q = de.emitNode) != null && Q.classThis && (sa().classThis = de.emitNode.classThis), It & 2 && (Uo ?? (Uo = Ka())); const cl = Kn(de.modifiers, Ge, lo), lc = Kn(de.heritageClauses, Ke, Md), { members: ld, prologue: vs } = Oe(de); let ls = t.updateClassExpression(de, cl, de.name, void 0, lc, ld); const ul = []; if (vs && ul.push(vs), (k || R_(de) & 32) && kt(as, (Ul) => Cl(Ul) || zu(Ul) || O && m8(Ul)) || kt(ge) || jt) if (va) { if (D.assertIsDefined(ie, "Decorated classes transformed by TypeScript are expected to be within a variable declaration."), kt(ge) && yi(ie, rn(ge, t.createExpressionStatement)), jt) if (k) { const Ul = r().createSetFunctionNameHelper((St = Uo ?? ((at = de.emitNode) == null ? void 0 : at.classThis)) != null ? St : t.getInternalName(de), jt); ie.push(t.createExpressionStatement(Ul)); } else { const Ul = r().createSetFunctionNameHelper(t.createThis(), jt); ls = t.updateClassExpression(ls, ls.modifiers, ls.name, ls.typeParameters, ls.heritageClauses, [ t.createClassStaticBlockDeclaration(t.createBlock([ t.createExpressionStatement(Ul) ])), ...ls.members ]); } kt(as) && Rt(ie, as, (kr = (_n = de.emitNode) == null ? void 0 : _n.classThis) != null ? kr : t.getInternalName(de)), Uo ? ul.push(t.createAssignment(Uo, ls)) : k && ((Nr = de.emitNode) != null && Nr.classThis) ? ul.push(t.createAssignment(de.emitNode.classThis, ls)) : ul.push(ls); } else { if (Uo ?? (Uo = Ka()), _o) { ii(); const Ul = t.cloneNode(Uo); Ul.emitNode.autoGenerate.flags &= -9, ne[Ll(de)] = Ul; } ul.push(t.createAssignment(Uo, ls)), yi(ul, ge), jt && ul.push(r().createSetFunctionNameHelper(Uo, jt)), yi(ul, dt(as, Uo)), ul.push(t.cloneNode(Uo)); } else ul.push(ls); return ul.length > 1 && (Kp(ls, 131072), ul.forEach(Pu)), t.inlineExpressions(ul); } function K(de) { if (!k) return Bn(de, Fe, e); } function Oe(de) { const It = !!(R_(de) & 32); if (k || P) { for (const _n of de.members) if (zu(_n)) if (Ji(_n)) tl(_n, _n.name, is); else { const kr = Gi(); DT(kr, _n.name, { kind: "untransformed" }); } if (k && kt(Ut(de)) && Z(), lr()) { for (const _n of de.members) if (Qd(_n)) { const kr = t.getGeneratedPrivateNameForNode(_n.name, void 0, "_accessor_storage"); if (k || It && _c(_n)) tl(_n, kr, ui); else { const Nr = Gi(); DT(Nr, kr, { kind: "untransformed" }); } } } } let jt = Kn(de.members, Me, Pc), Q; kt(jt, jl) || (Q = we(void 0, de)); let at, St; if (!k && kt(ge)) { let _n = t.createExpressionStatement(t.inlineExpressions(ge)); if (_n.transformFlags & 134234112) { const Nr = t.createTempVariable(i), va = t.createArrowFunction(void 0, void 0, [], void 0, void 0, t.createBlock([_n])); at = t.createAssignment(Nr, va), _n = t.createExpressionStatement(t.createCallExpression(Nr, void 0, [])); } const kr = t.createBlock([_n]); St = t.createClassStaticBlockDeclaration(kr), ge = void 0; } if (Q || St) { let _n; _n = Fn(_n, Q), _n = Fn(_n, St), _n = yi(_n, jt), jt = mt(t.createNodeArray(_n), de.members); } return { members: jt, prologue: at }; } function Z() { const { weakSetName: de } = Gi().data; D.assert(de, "weakSetName should be set in private identifier environment"), qr().push(t.createAssignment(de, t.createNewExpression(t.createIdentifier("WeakSet"), void 0, []))); } function we(de, It) { if (de = st(de, Fe, jl), !(H != null && H.data) || !(H.data.facts & 16)) return de; const jt = Wp(It), Q = !!(jt && pu(jt.expression).kind !== 104), at = Wl(de ? de.parameters : void 0, Fe, e), St = q(It, de, Q); return St ? de ? (D.assert(at), t.updateConstructorDeclaration(de, void 0, at, St)) : Pu(Vr(mt(t.createConstructorDeclaration(void 0, at ?? [], St), de || It), de)) : de; } function q(de, It, jt) { var Q, at; const St = zK(de, !1, !1); let _n = St; b || (_n = yn(_n, (vs) => !!vs.initializer || ki(vs.name) || Nm(vs))); const kr = Ut(de), Nr = kt(_n) || kt(kr); if (!It && !Nr) return xf(void 0, Fe, e); c(); const va = !It && jt; let as = 0, _o = 0, Uo = -1, Ka = []; (Q = It == null ? void 0 : It.body) != null && Q.statements && (_o = t.copyPrologue(It.body.statements, Ka, !1, Fe), Uo = D5(It.body.statements, _o), Uo >= 0 ? (as = Uo + 1, Ka = [ ...Ka.slice(0, _o), ...Kn(It.body.statements, Fe, Ia, _o, as - _o), ...Ka.slice(_o) ]) : _o >= 0 && (as = _o)), va && Ka.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(), void 0, [t.createSpreadElement(t.createIdentifier("arguments"))]))); let cl = 0; if (It != null && It.body) { for (let vs = as; vs < It.body.statements.length; vs++) { const ls = It.body.statements[vs]; if (Yd(bl(ls), It)) cl++; else break; } cl > 0 && (as += cl); } const lc = t.createThis(); if (Si(Ka, kr, lc), It) { const vs = yn(St, (ul) => Yd(bl(ul), It)), ls = yn(_n, (ul) => !Yd(bl(ul), It)); Rt(Ka, vs, lc), Rt(Ka, ls, lc); } else Rt(Ka, _n, lc); if (It && yi(Ka, Kn(It.body.statements, Fe, Ia, as)), Ka = t.mergeLexicalEnvironment(Ka, o()), Ka.length === 0 && !It) return; const ld = It != null && It.body && It.body.statements.length >= Ka.length && (at = It.body.multiLine) != null ? at : Ka.length > 0; return mt(t.createBlock(mt(t.createNodeArray(Ka), It ? It.body.statements : de.members), ld), It ? It.body : void 0); } function Rt(de, It, jt) { for (const Q of It) { if (za(Q) && !k) continue; const at = ht(Q, jt); at && de.push(at); } } function ht(de, It) { const jt = Cl(de) ? _t(de) : dn(de, It); if (!jt) return; const Q = t.createExpressionStatement(jt); Vr(Q, de), Kp(Q, ho(de) & 3072), Bc(Q, de); const at = bl(de); return Ma(at) ? (cs(Q, at), sO(Q)) : cs(Q, qp(de)), L1(jt, void 0), iC(jt, void 0), Nm(at) && Kp(Q, 3072), Q; } function dt(de, It) { const jt = []; for (const Q of de) { const at = Cl(Q) ? _t(Q) : dn(Q, It); at && (Pu(at), Vr(at, Q), Kp(at, ho(Q) & 3072), cs(at, qp(Q)), Bc(at, Q), jt.push(at)); } return jt; } function dn(de, It) { var jt; const Q = ye, at = $n(de, It); return at && _c(de) && ((jt = H == null ? void 0 : H.data) != null && jt.facts) && (Vr(at, de), Kp(at, 4), cs(at, K0(de.name)), le.set(bl(de), H)), ye = Q, at; } function $n(de, It) { const jt = !b; let Q; Wf(de, _e) && (O_(de.name) || ki(de.name) ? Q = t.createStringLiteralFromNode(de.name) : O_(de.name.expression) && !Ve(de.name.expression) ? Q = t.createStringLiteralFromNode(de.name.expression) : Q = t.getGeneratedNameForNode(de.name)); const at = Nm(de) ? t.getGeneratedPrivateNameForNode(de.name) : Ss(de.name) && !Zp(de.name.expression) ? t.updateComputedPropertyName(de.name, t.getGeneratedNameForNode(de.name)) : de.name; _c(de) && (ye = de); const St = Q ? (Nr) => Re(Nr, Q) : Fe; if (ki(at) && Ji(de)) { const Nr = Fl(at); if (Nr) return Nr.kind === "f" ? Nr.isStatic ? RMe(Nr.variableName, st(de.initializer, St, yt)) : NMe(It, st(de.initializer, St, yt), Nr.brandCheckIdentifier) : void 0; D.fail("Undeclared private name for property declaration."); } if ((ki(at) || _c(de)) && !de.initializer) return; const _n = bl(de); if (Jr(_n, 256)) return; let kr = st(de.initializer, St, yt); if (Yd(_n, _n.parent) && Ve(at)) { const Nr = t.cloneNode(at); kr ? (Pd(kr) && wO(kr.expression) && _k(kr.expression.left, "___runInitializers") && Ex(kr.expression.right) && __(kr.expression.right.expression) && (kr = kr.expression.left), kr = t.inlineExpressions([kr, Nr])) : kr = Nr, or(at, 3168), cs(Nr, _n.name), or(Nr, 3072); } else kr ?? (kr = t.createVoidZero()); if (jt || ki(at)) { const Nr = CT(t, It, at, at); return Kp(Nr, 1024), t.createAssignment(Nr, kr); } else { const Nr = Ss(at) ? at.expression : Ve(at) ? t.createStringLiteral(Zi(at.escapedText)) : at, va = t.createPropertyDescriptor({ value: kr, configurable: !0, writable: !0, enumerable: !0 }); return t.createObjectDefinePropertyCall(It, Nr, va); } } function ii() { ue & 1 || (ue |= 1, e.enableSubstitution(79), ne = []); } function Ti() { ue & 2 || (ue |= 2, e.enableSubstitution(108), e.enableEmitNotification(259), e.enableEmitNotification(215), e.enableEmitNotification(173), e.enableEmitNotification(174), e.enableEmitNotification(175), e.enableEmitNotification(171), e.enableEmitNotification(169), e.enableEmitNotification(164)); } function Si(de, It, jt) { if (!k || !kt(It)) return; const { weakSetName: Q } = Gi().data; D.assert(Q, "weakSetName should be set in private identifier environment"), de.push(t.createExpressionStatement(OMe(jt, Q))); } function Bi(de) { return Pr(de) ? t.updatePropertyAccessExpression(de, t.createVoidZero(), de.name) : t.updateElementAccessExpression(de, t.createVoidZero(), st(de.argumentExpression, Fe, yt)); } function fo(de, It, jt) { if (Ss(de)) { const Q = G7(de); let at = st(de.expression, Fe, yt); const St = D_(at), _n = Zp(St); if (!(!!Q || Ku(St) && El(St.left)) && !_n && It) { const Nr = t.getGeneratedNameForNode(de); return d.getNodeCheckFlags(de) & 32768 ? f(Nr) : i(Nr), jt && (at = r().createPropKeyHelper(at)), t.createAssignment(Nr, at); } return _n || Ve(St) ? void 0 : at; } } function vo() { H = { previous: H, data: void 0 }; } function no() { H = H == null ? void 0 : H.previous; } function sa() { var de; return D.assert(H), (de = H.data) != null ? de : H.data = { facts: 0, classConstructor: void 0, classThis: void 0, superClassReference: void 0 }; } function Gi() { var de; return D.assert(H), (de = H.privateEnv) != null ? de : H.privateEnv = Gme({ className: void 0, weakSetName: void 0 }); } function qr() { return ge ?? (ge = []); } function is(de, It, jt, Q, at, St, _n) { Qd(de) ? $l(de, It, jt, Q, at, St) : Za(de) ? ui(de, It, jt, Q, at, St) : nc(de) ? la(de, It, jt, Q, at, St) : U_(de) ? wn(de, It, jt, Q, at, St, _n) : Kf(de) && da(de, It, jt, Q, at, St, _n); } function ui(de, It, jt, Q, at, St, _n) { var kr; if (at) { const Nr = D.checkDefined((kr = jt.classThis) != null ? kr : jt.classConstructor, "classConstructor should be set in private identifier environment"), va = zl(It); DT(Q, It, { kind: "f", isStatic: !0, brandCheckIdentifier: Nr, variableName: va, isValid: St }); } else { const Nr = zl(It); DT(Q, It, { kind: "f", isStatic: !1, brandCheckIdentifier: Nr, isValid: St }), qr().push(t.createAssignment(Nr, t.createNewExpression(t.createIdentifier("WeakMap"), void 0, []))); } } function la(de, It, jt, Q, at, St, _n) { var kr; const Nr = zl(It), va = at ? D.checkDefined((kr = jt.classThis) != null ? kr : jt.classConstructor, "classConstructor should be set in private identifier environment") : D.checkDefined(Q.data.weakSetName, "weakSetName should be set in private identifier environment"); DT(Q, It, { kind: "m", methodName: Nr, brandCheckIdentifier: va, isStatic: at, isValid: St }); } function wn(de, It, jt, Q, at, St, _n) { var kr; const Nr = zl(It, "_get"), va = at ? D.checkDefined((kr = jt.classThis) != null ? kr : jt.classConstructor, "classConstructor should be set in private identifier environment") : D.checkDefined(Q.data.weakSetName, "weakSetName should be set in private identifier environment"); (_n == null ? void 0 : _n.kind) === "a" && _n.isStatic === at && !_n.getterName ? _n.getterName = Nr : DT(Q, It, { kind: "a", getterName: Nr, setterName: void 0, brandCheckIdentifier: va, isStatic: at, isValid: St }); } function da(de, It, jt, Q, at, St, _n) { var kr; const Nr = zl(It, "_set"), va = at ? D.checkDefined((kr = jt.classThis) != null ? kr : jt.classConstructor, "classConstructor should be set in private identifier environment") : D.checkDefined(Q.data.weakSetName, "weakSetName should be set in private identifier environment"); (_n == null ? void 0 : _n.kind) === "a" && _n.isStatic === at && !_n.setterName ? _n.setterName = Nr : DT(Q, It, { kind: "a", getterName: void 0, setterName: Nr, brandCheckIdentifier: va, isStatic: at, isValid: St }); } function $l(de, It, jt, Q, at, St, _n) { var kr; const Nr = zl(It, "_get"), va = zl(It, "_set"), as = at ? D.checkDefined((kr = jt.classThis) != null ? kr : jt.classConstructor, "classConstructor should be set in private identifier environment") : D.checkDefined(Q.data.weakSetName, "weakSetName should be set in private identifier environment"); DT(Q, It, { kind: "a", getterName: Nr, setterName: va, brandCheckIdentifier: as, isStatic: at, isValid: St }); } function tl(de, It, jt) { const Q = sa(), at = Gi(), St = KK(at, It), _n = _c(de), kr = !PMe(It) && St === void 0; jt(de, It, Q, at, _n, kr, St); } function Ml(de, It, jt) { const { className: Q } = Gi().data, at = Q ? { prefix: "_", node: Q, suffix: "_" } : "_", St = typeof de == "object" ? t.getGeneratedNameForNode(de, 24, at, jt) : typeof de == "string" ? t.createUniqueName(de, 16, at, jt) : t.createTempVariable(void 0, !0, at, jt); return d.getNodeCheckFlags(It) & 32768 ? f(St) : i(St), St; } function zl(de, It) { var jt; const Q = NM(de); return Ml((jt = Q == null ? void 0 : Q.substring(1)) != null ? jt : de, de, It); } function Fl(de) { const It = Ume(H, de); return (It == null ? void 0 : It.kind) === "untransformed" ? void 0 : It; } function So(de) { const It = t.getGeneratedNameForNode(de), jt = Fl(de.name); if (!jt) return Bn(de, Fe, e); let Q = de.expression; return (ZR(de) || ad(de) || !M1(de.expression)) && (Q = t.createTempVariable(i, !0), qr().push(t.createBinaryExpression(Q, 63, st(de.expression, Fe, yt)))), t.createAssignmentTargetWrapper(It, Je(jt, Q, It, 63)); } function Aa(de) { if (As(de) || Ru(de)) return pl(de); if (hA(de)) return So(de); if (j && ad(de) && ye && (H != null && H.data)) { const { classConstructor: It, superClassReference: jt, facts: Q } = H.data; if (Q & 1) return Bi(de); if (It && jt) { const at = sl(de) ? st(de.argumentExpression, Fe, yt) : Ve(de.name) ? t.createStringLiteralFromNode(de.name) : void 0; if (at) { const St = t.createTempVariable(void 0); return t.createAssignmentTargetWrapper(St, t.createReflectSetCall(jt, at, St, It)); } } } return Bn(de, Fe, e); } function Jo(de) { if (Wf(de, _e)) { const It = Aa(de.left), jt = nn(de.left, de.right), Q = st(de.right, (at) => Re(at, jt), yt); return t.updateBinaryExpression(de, It, de.operatorToken, Q); } if (Ku(de, !0)) { const It = Aa(de.left), jt = st(de.right, Fe, yt); return t.updateBinaryExpression(de, It, de.operatorToken, jt); } return Aa(de); } function Bl(de) { if (gd(de.expression)) { const It = Aa(de.expression); return t.updateSpreadElement(de, It); } return Bn(de, Fe, e); } function Xc(de) { return D.assertNode(de, GR), Th(de) ? Bl(de) : Ic(de) ? Bn(de, Fe, e) : Jo(de); } function Ud(de) { const It = st(de.name, Fe, hl); if (Ku(de.initializer, !0)) { const jt = Jo(de.initializer); return t.updatePropertyAssignment(de, It, jt); } if (gd(de.initializer)) { const jt = Aa(de.initializer); return t.updatePropertyAssignment(de, It, jt); } return Bn(de, Fe, e); } function rc(de) { if (Wf(de, _e)) { const It = nn(de.name, de.objectAssignmentInitializer), jt = st(de.objectAssignmentInitializer, (Q) => Re(Q, It), yt); return t.updateShorthandPropertyAssignment(de, de.name, jt); } return Bn(de, Fe, e); } function jc(de) { if (gd(de.expression)) { const It = Aa(de.expression); return t.updateSpreadAssignment(de, It); } return Bn(de, Fe, e); } function ks(de) { return D.assertNode(de, BR), Ix(de) ? jc(de) : Xf(de) ? rc(de) : Uc(de) ? Ud(de) : Bn(de, Fe, e); } function pl(de) { return Ru(de) ? t.updateArrayLiteralExpression(de, Kn(de.elements, Xc, yt)) : t.updateObjectLiteralExpression(de, Kn(de.properties, ks, dy)); } function Qs(de, It, jt) { const Q = bl(It), at = le.get(Q); if (at) { const St = H, _n = ee; H = at, ee = Te, Te = !Cl(Q) || !(R_(Q) & 32), Y(de, It, jt), Te = ee, ee = _n, H = St; return; } switch (It.kind) { case 215: if (zs(Q) || ho(It) & 524288) break; case 259: case 173: case 174: case 175: case 171: case 169: { const St = H, _n = ee; H = void 0, ee = Te, Te = !1, Y(de, It, jt), Te = ee, ee = _n, H = St; return; } case 164: { const St = H, _n = Te; H = H == null ? void 0 : H.previous, Te = ee, Y(de, It, jt), Te = _n, H = St; return; } } Y(de, It, jt); } function qs(de, It) { return It = X(de, It), de === 1 ? Zt(It) : It; } function Zt(de) { switch (de.kind) { case 79: return yu(de); case 108: return Gl(de); } return de; } function Gl(de) { if (ue & 2 && (H != null && H.data)) { const { facts: It, classConstructor: jt, classThis: Q } = H.data; if (It & 1 && A) return t.createParenthesizedExpression(t.createVoidZero()); const at = Te ? Q ?? jt : jt; if (at) return mt(Vr(t.cloneNode(at), de), de); } return de; } function yu(de) { return Bu(de) || de; } function Bu(de) { if (ue & 1 && d.getNodeCheckFlags(de) & 2097152) { const It = d.getReferencedValueDeclaration(de); if (It) { const jt = ne[It.id]; if (jt) { const Q = t.cloneNode(jt); return cs(Q, de), Bc(Q, de), Q; } } } } } function RMe(e, t) { return N.createAssignment(e, N.createObjectLiteralExpression([ N.createPropertyAssignment("value", t || N.createVoidZero()) ])); } function NMe(e, t, r) { return N.createCallExpression(N.createPropertyAccessExpression(r, "set"), void 0, [e, t || N.createVoidZero()]); } function OMe(e, t) { return N.createCallExpression(N.createPropertyAccessExpression(t, "add"), void 0, [e]); } function PMe(e) { return !jS(e) && e.escapedText === "#constructor"; } function MMe(e) { return ki(e.left) && e.operatorToken.kind === 101; } var FMe = L({ "src/compiler/transformers/classFields.ts"() { Ra(); } }); function zme(e) { const { hoistVariableDeclaration: t } = e, r = e.getEmitResolver(), i = e.getCompilerOptions(), o = $o(i), s = f_(i, "strictNullChecks"); let c, f; return { serializeTypeNode: (ne, ge) => d(ne, I, ge), serializeTypeOfNode: (ne, ge) => d(ne, m, ge), serializeParameterTypesOfNode: (ne, ge, ie) => d(ne, b, ge, ie), serializeReturnTypeOfNode: (ne, ge) => d(ne, C, ge) }; function d(ne, ge, ie, H) { const le = c, pe = f; c = ne.currentLexicalScope, f = ne.currentNameScope; const ye = H === void 0 ? ge(ie) : ge(ie, H); return c = le, f = pe, ye; } function y(ne) { const ge = r.getAllAccessorDeclarations(ne); return ge.setAccessor && xue(ge.setAccessor) || ge.getAccessor && fp(ge.getAccessor); } function m(ne) { switch (ne.kind) { case 169: case 166: return I(ne.type); case 175: case 174: return I(y(ne)); case 260: case 228: case 171: return N.createIdentifier("Function"); default: return N.createVoidZero(); } } function b(ne, ge) { const ie = li(ne) ? hh(ne) : qa(ne) && s_(ne.body) ? ne : void 0, H = []; if (ie) { const le = A(ie, ge), pe = le.length; for (let ye = 0; ye < pe; ye++) { const Te = le[ye]; ye === 0 && Ve(Te.name) && Te.name.escapedText === "this" || (Te.dotDotDotToken ? H.push(I(jW(Te.type))) : H.push(m(Te))); } } return N.createArrayLiteralExpression(H); } function A(ne, ge) { if (ge && ne.kind === 174) { const { setAccessor: ie } = pT(ge.members, ne); if (ie) return ie.parameters; } return ne.parameters; } function C(ne) { return qa(ne) && ne.type ? I(ne.type) : jA(ne) ? N.createIdentifier("Promise") : N.createVoidZero(); } function I(ne) { if (ne === void 0) return N.createIdentifier("Object"); switch (ne = nz(ne), ne.kind) { case 114: case 155: case 144: return N.createVoidZero(); case 181: case 182: return N.createIdentifier("Function"); case 185: case 186: return N.createIdentifier("Array"); case 179: return ne.assertsModifier ? N.createVoidZero() : N.createIdentifier("Boolean"); case 134: return N.createIdentifier("Boolean"); case 200: case 152: return N.createIdentifier("String"); case 149: return N.createIdentifier("Object"); case 198: return O(ne.literal); case 148: return N.createIdentifier("Number"); case 160: return ue("BigInt", 7); case 153: return ue("Symbol", 2); case 180: return U(ne); case 190: return k(ne.types, !0); case 189: return k(ne.types, !1); case 191: return k([ne.trueType, ne.falseType], !1); case 195: if (ne.operator === 146) return I(ne.type); break; case 183: case 196: case 197: case 184: case 131: case 157: case 194: case 202: break; case 315: case 316: case 320: case 321: case 322: break; case 317: case 318: case 319: return I(ne.type); default: return D.failBadSyntaxKind(ne); } return N.createIdentifier("Object"); } function O(ne) { switch (ne.kind) { case 10: case 14: return N.createIdentifier("String"); case 221: { const ge = ne.operand; switch (ge.kind) { case 8: case 9: return O(ge); default: return D.failBadSyntaxKind(ge); } } case 8: return N.createIdentifier("Number"); case 9: return ue("BigInt", 7); case 110: case 95: return N.createIdentifier("Boolean"); case 104: return N.createVoidZero(); default: return D.failBadSyntaxKind(ne); } } function k(ne, ge) { let ie; for (let H of ne) { if (H = nz(H), H.kind === 144) { if (ge) return N.createVoidZero(); continue; } if (H.kind === 157) { if (!ge) return N.createIdentifier("Object"); continue; } if (H.kind === 131) return N.createIdentifier("Object"); if (!s && (X0(H) && H.literal.kind === 104 || H.kind === 155)) continue; const le = I(H); if (Ve(le) && le.escapedText === "Object") return le; if (ie) { if (!B(ie, le)) return N.createIdentifier("Object"); } else ie = le; } return ie ?? N.createVoidZero(); } function B(ne, ge) { return El(ne) ? El(ge) : Ve(ne) ? Ve(ge) && ne.escapedText === ge.escapedText : Pr(ne) ? Pr(ge) && B(ne.expression, ge.expression) && B(ne.name, ge.name) : Ex(ne) ? Ex(ge) && __(ne.expression) && ne.expression.text === "0" && __(ge.expression) && ge.expression.text === "0" : Go(ne) ? Go(ge) && ne.text === ge.text : fC(ne) ? fC(ge) && B(ne.expression, ge.expression) : Pd(ne) ? Pd(ge) && B(ne.expression, ge.expression) : pC(ne) ? pC(ge) && B(ne.condition, ge.condition) && B(ne.whenTrue, ge.whenTrue) && B(ne.whenFalse, ge.whenFalse) : vr(ne) ? vr(ge) && ne.operatorToken.kind === ge.operatorToken.kind && B(ne.left, ge.left) && B(ne.right, ge.right) : !1; } function U(ne) { const ge = r.getTypeReferenceSerializationKind(ne.typeName, f ?? c); switch (ge) { case 0: if (nr(ne, (le) => le.parent && cC(le.parent) && (le.parent.trueType === le || le.parent.falseType === le))) return N.createIdentifier("Object"); const ie = te(ne.typeName), H = N.createTempVariable(t); return N.createConditionalExpression(N.createTypeCheck(N.createAssignment(H, ie), "function"), void 0, H, void 0, N.createIdentifier("Object")); case 1: return X(ne.typeName); case 2: return N.createVoidZero(); case 4: return ue("BigInt", 7); case 6: return N.createIdentifier("Boolean"); case 3: return N.createIdentifier("Number"); case 5: return N.createIdentifier("String"); case 7: return N.createIdentifier("Array"); case 8: return ue("Symbol", 2); case 10: return N.createIdentifier("Function"); case 9: return N.createIdentifier("Promise"); case 11: return N.createIdentifier("Object"); default: return D.assertNever(ge); } } function j(ne, ge) { return N.createLogicalAnd(N.createStrictInequality(N.createTypeOfExpression(ne), N.createStringLiteral("undefined")), ge); } function te(ne) { if (ne.kind === 79) { const H = X(ne); return j(H, H); } if (ne.left.kind === 79) return j(X(ne.left), X(ne)); const ge = te(ne.left), ie = N.createTempVariable(t); return N.createLogicalAnd(N.createLogicalAnd(ge.left, N.createStrictInequality(N.createAssignment(ie, ge.right), N.createVoidZero())), N.createPropertyAccessExpression(ie, ne.right)); } function X(ne) { switch (ne.kind) { case 79: const ge = Bo(mt(jm.cloneNode(ne), ne), ne.parent); return ge.original = void 0, Bo(ge, ya(c)), ge; case 163: return Y(ne); } } function Y(ne) { return N.createPropertyAccessExpression(X(ne.left), ne.right); } function P(ne) { return N.createConditionalExpression(N.createTypeCheck(N.createIdentifier(ne), "function"), void 0, N.createIdentifier(ne), void 0, N.createIdentifier("Object")); } function ue(ne, ge) { return o < ge ? P(ne) : N.createIdentifier(ne); } } var BMe = L({ "src/compiler/transformers/typeSerializer.ts"() { Ra(); } }); function qme(e) { const { factory: t, getEmitHelperFactory: r, hoistVariableDeclaration: i } = e, o = e.getEmitResolver(), s = e.getCompilerOptions(), c = $o(s), f = e.onSubstituteNode; e.onSubstituteNode = ot; let d; return W_(e, y); function y(et) { const it = Bn(et, b, e); return gy(it, e.readEmitHelpers()), it; } function m(et) { return Du(et) ? void 0 : et; } function b(et) { if (!(et.transformFlags & 33554432)) return et; switch (et.kind) { case 167: return; case 260: return A(et); case 228: return j(et); case 173: return te(et); case 171: return Y(et); case 175: return ue(et); case 174: return P(et); case 169: return ne(et); case 166: return ge(et); default: return Bn(et, b, e); } } function A(et) { if (!(h1(!0, et) || II(!0, et))) return Bn(et, b, e); const it = h1(!0, et) ? U(et, et.name) : B(et, et.name); return it.length > 1 && (it.push(t.createEndOfDeclarationMarker(et)), or(it[0], ho(it[0]) | 8388608)), Em(it); } function C(et) { return !!(et.transformFlags & 536870912); } function I(et) { return kt(et, C); } function O(et) { for (const it of et.members) { if (!wx(it)) continue; const nn = N5(it, et, !0); if (kt(nn == null ? void 0 : nn.decorators, C) || kt(nn == null ? void 0 : nn.parameters, I)) return !0; } return !1; } function k(et, it) { let nn = []; return le(nn, et, !1), le(nn, et, !0), O(et) && (it = mt(t.createNodeArray([ ...it, t.createClassStaticBlockDeclaration(t.createBlock(nn, !0)) ]), it), nn = void 0), { decorationStatements: nn, members: it }; } function B(et, it) { const nn = Kn(et.modifiers, m, lo), Xt = Kn(et.heritageClauses, b, Md); let On = Kn(et.members, b, Pc), Hn = []; ({ members: On, decorationStatements: Hn } = k(et, On)); const In = t.updateClassDeclaration(et, nn, it, void 0, Xt, On); return yi([In], Hn); } function U(et, it) { const nn = qp(et), Xt = Ke(et), On = c <= 2 ? t.getInternalName(et, !1, !0) : t.getLocalName(et, !1, !0), Hn = Kn(et.heritageClauses, b, Md); let In = Kn(et.members, b, Pc), Yt = []; ({ members: In, decorationStatements: Yt } = k(et, In)); const fr = t.createClassExpression(void 0, it && El(it) ? void 0 : it, void 0, Hn, In); Vr(fr, et), mt(fr, nn); const xi = t.createVariableStatement(void 0, t.createVariableDeclarationList([ t.createVariableDeclaration(On, void 0, void 0, Xt ? t.createAssignment(Xt, fr) : fr) ], 1)); Vr(xi, et), mt(xi, nn), Bc(xi, et); const Ji = [xi]; return yi(Ji, Yt), $e(Ji, et), Ji; } function j(et) { return t.updateClassExpression(et, Kn(et.modifiers, m, lo), et.name, void 0, Kn(et.heritageClauses, b, Md), Kn(et.members, b, Pc)); } function te(et) { return t.updateConstructorDeclaration(et, Kn(et.modifiers, m, lo), Kn(et.parameters, b, Ma), st(et.body, b, oo)); } function X(et, it) { return et !== it && (Bc(et, it), cs(et, qp(it))), et; } function Y(et) { return X(t.updateMethodDeclaration(et, Kn(et.modifiers, m, lo), et.asteriskToken, D.checkDefined(st(et.name, b, hl)), void 0, void 0, Kn(et.parameters, b, Ma), void 0, st(et.body, b, oo)), et); } function P(et) { return X(t.updateGetAccessorDeclaration(et, Kn(et.modifiers, m, lo), D.checkDefined(st(et.name, b, hl)), Kn(et.parameters, b, Ma), void 0, st(et.body, b, oo)), et); } function ue(et) { return X(t.updateSetAccessorDeclaration(et, Kn(et.modifiers, m, lo), D.checkDefined(st(et.name, b, hl)), Kn(et.parameters, b, Ma), st(et.body, b, oo)), et); } function ne(et) { if (!(et.flags & 16777216 || Jr(et, 2))) return X(t.updatePropertyDeclaration(et, Kn(et.modifiers, m, lo), D.checkDefined(st(et.name, b, hl)), void 0, void 0, st(et.initializer, b, yt)), et); } function ge(et) { const it = t.updateParameterDeclaration(et, a_e(t, et.modifiers), et.dotDotDotToken, D.checkDefined(st(et.name, b, dh)), void 0, void 0, st(et.initializer, b, yt)); return it !== et && (Bc(it, et), mt(it, qp(et)), cs(it, qp(et)), or(it.name, 64)), it; } function ie(et) { return _k(et.expression, "___metadata"); } function H(et) { if (!et) return; const { false: it, true: nn } = sse(et.decorators, ie), Xt = []; return yi(Xt, rn(it, Fe)), yi(Xt, Mo(et.parameters, We)), yi(Xt, rn(nn, Fe)), Xt; } function le(et, it, nn) { yi(et, rn(Te(it, nn), (Xt) => t.createExpressionStatement(Xt))); } function pe(et, it, nn) { return tN(!0, et, nn) && it === za(et); } function ye(et, it) { return yn(et.members, (nn) => pe(nn, it, et)); } function Te(et, it) { const nn = ye(et, it); let Xt; for (const On of nn) Xt = Fn(Xt, ee(et, On)); return Xt; } function ee(et, it) { const nn = N5(it, et, !0), Xt = H(nn); if (!Xt) return; const On = Me(et, it), Hn = Re(it, !Jr(it, 2)), In = c > 0 ? Za(it) && !Nm(it) ? t.createVoidZero() : t.createNull() : void 0, Yt = r().createDecorateHelper(Xt, On, Hn, In); return or(Yt, 3072), cs(Yt, qp(it)), Yt; } function $e(et, it) { const nn = Ge(it); nn && et.push(Vr(t.createExpressionStatement(nn), it)); } function Ge(et) { const it = JK(et), nn = H(it); if (!nn) return; const Xt = d && d[Ll(et)], On = c <= 2 ? t.getInternalName(et, !1, !0) : t.getLocalName(et, !1, !0), Hn = r().createDecorateHelper(nn, On), In = t.createAssignment(On, Xt ? t.createAssignment(Xt, Hn) : Hn); return or(In, 3072), cs(In, qp(et)), In; } function Fe(et) { return D.checkDefined(st(et.expression, b, yt)); } function We(et, it) { let nn; if (et) { nn = []; for (const Xt of et) { const On = r().createParamHelper(Fe(Xt), it); mt(On, Xt.expression), or(On, 3072), nn.push(On); } } return nn; } function Re(et, it) { const nn = et.name; return ki(nn) ? t.createIdentifier("") : Ss(nn) ? it && !Zp(nn.expression) ? t.getGeneratedNameForNode(nn) : nn.expression : Ve(nn) ? t.createStringLiteral(Or(nn)) : t.cloneNode(nn); } function Pe() { d || (e.enableSubstitution(79), d = []); } function Ke(et) { if (o.getNodeCheckFlags(et) & 1048576) { Pe(); const it = t.createUniqueName(et.name && !El(et.name) ? Or(et.name) : "default"); return d[Ll(et)] = it, i(it), it; } } function He(et) { return t.createPropertyAccessExpression(t.getDeclarationName(et), "prototype"); } function Me(et, it) { return za(it) ? t.getDeclarationName(et) : He(et); } function ot(et, it) { return it = f(et, it), et === 1 ? At(it) : it; } function At(et) { switch (et.kind) { case 79: return bt(et); } return et; } function bt(et) { var it; return (it = Vt(et)) != null ? it : et; } function Vt(et) { if (d && o.getNodeCheckFlags(et) & 2097152) { const it = o.getReferencedValueDeclaration(et); if (it) { const nn = d[it.id]; if (nn) { const Xt = t.cloneNode(nn); return cs(Xt, et), Bc(Xt, et), Xt; } } } } } var GMe = L({ "src/compiler/transformers/legacyDecorators.ts"() { Ra(); } }); function Jme(e) { const { factory: t, getEmitHelperFactory: r, startLexicalEnvironment: i, endLexicalEnvironment: o, hoistVariableDeclaration: s } = e; let c, f, d, y, m, b; return W_(e, A); function A(ce) { c = void 0, b = !1; const pt = Bn(ce, P, e); return gy(pt, e.readEmitHelpers()), b && (ux(pt, 32), b = !1), pt; } function C() { switch (f = void 0, d = void 0, y = void 0, c == null ? void 0 : c.kind) { case "class": f = c.classInfo; break; case "class-element": f = c.next.classInfo, d = c.classThis, y = c.classSuper; break; case "name": const ce = c.next.next.next; (ce == null ? void 0 : ce.kind) === "class-element" && (f = ce.next.classInfo, d = ce.classThis, y = ce.classSuper); break; } } function I(ce) { c = { kind: "class", next: c, classInfo: ce, savedPendingExpressions: m }, m = void 0, C(); } function O() { D.assert((c == null ? void 0 : c.kind) === "class", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class' but got '${c == null ? void 0 : c.kind}' instead.`), m = c.savedPendingExpressions, c = c.next, C(); } function k(ce) { var pt, Wt; D.assert((c == null ? void 0 : c.kind) === "class", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class' but got '${c == null ? void 0 : c.kind}' instead.`), c = { kind: "class-element", next: c }, (Cl(ce) || Za(ce) && _c(ce)) && (c.classThis = (pt = c.next.classInfo) == null ? void 0 : pt.classThis, c.classSuper = (Wt = c.next.classInfo) == null ? void 0 : Wt.classSuper), C(); } function B() { var ce; D.assert((c == null ? void 0 : c.kind) === "class-element", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class-element' but got '${c == null ? void 0 : c.kind}' instead.`), D.assert(((ce = c.next) == null ? void 0 : ce.kind) === "class", "Incorrect value for top.next.kind.", () => { var pt; return `Expected top.next.kind to be 'class' but got '${(pt = c.next) == null ? void 0 : pt.kind}' instead.`; }), c = c.next, C(); } function U() { D.assert((c == null ? void 0 : c.kind) === "class-element", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class-element' but got '${c == null ? void 0 : c.kind}' instead.`), c = { kind: "name", next: c }, C(); } function j() { D.assert((c == null ? void 0 : c.kind) === "name", "Incorrect value for top.kind.", () => `Expected top.kind to be 'name' but got '${c == null ? void 0 : c.kind}' instead.`), c = c.next, C(); } function te() { (c == null ? void 0 : c.kind) === "other" ? (D.assert(!m), c.depth++) : (c = { kind: "other", next: c, depth: 0, savedPendingExpressions: m }, m = void 0, C()); } function X() { D.assert((c == null ? void 0 : c.kind) === "other", "Incorrect value for top.kind.", () => `Expected top.kind to be 'other' but got '${c == null ? void 0 : c.kind}' instead.`), c.depth > 0 ? (D.assert(!m), c.depth--) : (m = c.savedPendingExpressions, c = c.next, C()); } function Y(ce) { return !!(ce.transformFlags & 33554432) || !!d && !!(ce.transformFlags & 16384) || !!d && !!y && !!(ce.transformFlags & 134217728); } function P(ce) { if (!Y(ce)) return ce; switch (ce.kind) { case 167: return D.fail("Use `modifierVisitor` instead."); case 260: return Fe(ce); case 228: return We(ce, void 0); case 173: case 169: case 172: return D.fail("Not supported outside of a class. Use 'classElementVisitor' instead."); case 166: return Hn(ce); case 223: return xi(ce, !1); case 299: return Ht(ce); case 257: return ln(ce); case 205: return rr(ce); case 274: return gt(ce); case 108: return et(ce); case 245: return Yt(ce); case 241: return fr(ce); case 357: return Ki(ce, !1); case 214: return Nt(ce, !1, void 0); case 356: return xe(ce, !1, void 0); case 210: return it(ce); case 212: return nn(ce); case 221: case 222: return Ji(ce, !1); case 208: return Xt(ce); case 209: return On(ce); case 164: return gn(ce); case 171: case 175: case 174: case 215: case 259: { te(); const pt = Bn(ce, ue, e); return X(), pt; } default: return Bn(ce, ue, e); } } function ue(ce) { switch (ce.kind) { case 167: return; default: return P(ce); } } function ne(ce) { switch (ce.kind) { case 167: return; default: return ce; } } function ge(ce) { switch (ce.kind) { case 173: return Pe(ce); case 171: return Me(ce); case 174: return ot(ce); case 175: return At(ce); case 169: return Vt(ce); case 172: return bt(ce); default: return P(ce); } } function ie(ce, pt) { switch (ce.kind) { case 356: return xe(ce, !1, pt); case 214: return Nt(ce, !1, pt); case 228: return We(ce, pt); default: return P(ce); } } function H(ce) { switch (ce.kind) { case 221: case 222: return Ji(ce, !0); case 223: return xi(ce, !0); case 357: return Ki(ce, !0); case 214: return Nt(ce, !0, void 0); default: return P(ce); } } function le(ce) { let pt = ce.name && Ve(ce.name) && !El(ce.name) ? Or(ce.name) : ce.name && ki(ce.name) && !El(ce.name) ? Or(ce.name).slice(1) : ce.name && Go(ce.name) && w_(ce.name.text, 99) ? ce.name.text : li(ce) ? "class" : "member"; return Sv(ce) && (pt = `get_${pt}`), fy(ce) && (pt = `set_${pt}`), ce.name && ki(ce.name) && (pt = `private_${pt}`), za(ce) && (pt = `static_${pt}`), "_" + pt; } function pe(ce, pt) { return t.createUniqueName(`${le(ce)}_${pt}`, 24); } function ye(ce, pt) { return t.createVariableStatement(void 0, t.createVariableDeclarationList([ t.createVariableDeclaration(ce, void 0, void 0, pt) ], 1)); } function Te(ce) { let pt, Wt, rt = !1, K = !1, Oe = !1; for (const Z of ce.members) if ($le(Z) && tN(!1, Z, ce) && (_c(Z) ? Wt ?? (Wt = t.createUniqueName("_staticExtraInitializers", 16)) : pt ?? (pt = t.createUniqueName("_instanceExtraInitializers", 16))), Cl(Z) ? rt = !0 : Za(Z) && (_c(Z) ? rt || (rt = !!Z.initializer || zf(Z)) : K || (K = !RW(Z))), (zu(Z) || Qd(Z)) && _c(Z) && (Oe = !0), Wt && pt && rt && K && Oe) break; return { class: ce, instanceExtraInitializersName: pt, staticExtraInitializersName: Wt, hasStaticInitializers: rt, hasNonAmbientInstanceFields: K, hasStaticPrivateClassElements: Oe }; } function ee(ce) { for (const pt of ce.members) if ((Cl(pt) || Za(pt) && _c(pt)) && pt.transformFlags & 134217728) return !0; return !1; } function $e(ce, pt) { var Wt, rt, K, Oe, Z; i(); const we = (Wt = ce.name) != null ? Wt : t.getGeneratedNameForNode(ce), q = Te(ce), Rt = []; let ht, dt, dn, $n, ii = !1; const Ti = _e(JK(ce)); if (Ti && (q.classDecoratorsName = t.createUniqueName("_classDecorators", 16), q.classDescriptorName = t.createUniqueName("_classDescriptor", 16), q.classExtraInitializersName = t.createUniqueName("_classExtraInitializers", 16), q.classThis = t.createUniqueName("_classThis", 16), Rt.push(ye(q.classDecoratorsName, t.createArrayLiteralExpression(Ti)), ye(q.classDescriptorName), ye(q.classExtraInitializersName, t.createArrayLiteralExpression()), ye(q.classThis)), q.hasStaticPrivateClassElements && (ii = !0, b = !0)), Ti && ee(ce)) { const Gi = SN(ce.heritageClauses, 94), qr = Gi && Wc(Gi.types), is = qr && st(qr.expression, P, yt); if (is) { q.classSuper = t.createUniqueName("_classSuper", 16); const ui = pu(is), la = Nu(ui) && !ui.name || Ms(ui) && !ui.name || zs(ui) ? t.createComma(t.createNumericLiteral(0), is) : is; Rt.push(ye(q.classSuper, la)); const wn = t.updateExpressionWithTypeArguments(qr, q.classSuper, void 0), da = t.updateHeritageClause(Gi, [wn]); $n = t.createNodeArray([da]); } } else $n = Kn(ce.heritageClauses, P, Md); const Si = (rt = q.classThis) != null ? rt : t.createThis(); if (!((K = bl(ce, li)) != null && K.name) && (Ti || !Go(pt) || !zW(pt))) { const Gi = r().createSetFunctionNameHelper(t.createThis(), pt); ht = Fn(ht, t.createExpressionStatement(Gi)); } I(q); let fo = Kn(ce.members, ge, Pc); if (m) { let Gi; for (let qr of m) { qr = st(qr, function ui(la) { if (!(la.transformFlags & 16384)) return la; switch (la.kind) { case 108: return Gi || (Gi = t.createUniqueName("_outerThis", 16), Rt.unshift(ye(Gi, t.createThis()))), Gi; default: return Bn(la, ui, e); } }, yt); const is = t.createExpressionStatement(qr); ht = Fn(ht, is); } m = void 0; } if (O(), q.instanceExtraInitializersName && !hh(ce)) { const Gi = Re(ce, q); if (Gi) { const qr = Wp(ce), is = !!(qr && pu(qr.expression).kind !== 104), ui = []; if (is) { const wn = t.createSpreadElement(t.createIdentifier("arguments")), da = t.createCallExpression(t.createSuper(), void 0, [wn]); ui.push(t.createExpressionStatement(da)); } yi(ui, Gi); const la = t.createBlock(ui, !0); dn = t.createConstructorDeclaration(void 0, [], la); } } if (q.staticExtraInitializersName && Rt.push(ye(q.staticExtraInitializersName, t.createArrayLiteralExpression())), q.instanceExtraInitializersName && Rt.push(ye(q.instanceExtraInitializersName, t.createArrayLiteralExpression())), q.memberInfos && Zd(q.memberInfos, (Gi, qr) => { za(qr) && (Rt.push(ye(Gi.memberDecoratorsName)), Gi.memberInitializersName && Rt.push(ye(Gi.memberInitializersName, t.createArrayLiteralExpression())), Gi.memberDescriptorName && Rt.push(ye(Gi.memberDescriptorName))); }), q.memberInfos && Zd(q.memberInfos, (Gi, qr) => { za(qr) || (Rt.push(ye(Gi.memberDecoratorsName)), Gi.memberInitializersName && Rt.push(ye(Gi.memberInitializersName, t.createArrayLiteralExpression())), Gi.memberDescriptorName && Rt.push(ye(Gi.memberDescriptorName))); }), ht = yi(ht, q.staticNonFieldDecorationStatements), ht = yi(ht, q.nonStaticNonFieldDecorationStatements), ht = yi(ht, q.staticFieldDecorationStatements), ht = yi(ht, q.nonStaticFieldDecorationStatements), q.classDescriptorName && q.classDecoratorsName && q.classExtraInitializersName && q.classThis) { ht ?? (ht = []); const Gi = t.createPropertyAssignment("value", t.createThis()), qr = t.createObjectLiteralExpression([Gi]), is = t.createAssignment(q.classDescriptorName, qr), ui = t.createPropertyAccessExpression(t.createThis(), "name"), la = r().createESDecorateHelper(t.createNull(), is, q.classDecoratorsName, { kind: "class", name: ui }, t.createNull(), q.classExtraInitializersName), wn = t.createExpressionStatement(la); cs(wn, kv(ce)), ht.push(wn); const da = t.createPropertyAccessExpression(q.classDescriptorName, "value"), $l = t.createAssignment(q.classThis, da), tl = t.createAssignment(we, $l); ht.push(t.createExpressionStatement(tl)); } if (q.staticExtraInitializersName) { const Gi = r().createRunInitializersHelper(Si, q.staticExtraInitializersName), qr = t.createExpressionStatement(Gi); cs(qr, (Oe = ce.name) != null ? Oe : kv(ce)), ht = Fn(ht, qr); } if (q.classExtraInitializersName) { const Gi = r().createRunInitializersHelper(Si, q.classExtraInitializersName), qr = t.createExpressionStatement(Gi); cs(qr, (Z = ce.name) != null ? Z : kv(ce)), dt = Fn(dt, qr); } ht && dt && !q.hasStaticInitializers && (yi(ht, dt), dt = void 0); let vo = fo; if (ht) { const Gi = t.createBlock(ht, !0), qr = t.createClassStaticBlockDeclaration(Gi); ii && lO(qr, 32), vo = [qr, ...vo]; } if (dn && (vo = [...vo, dn]), dt) { const Gi = t.createBlock(dt, !0), qr = t.createClassStaticBlockDeclaration(Gi); vo = [...vo, qr]; } vo !== fo && (fo = mt(t.createNodeArray(vo), fo)); const no = o(); let sa; if (Ti) { sa = t.createClassExpression(void 0, void 0, void 0, $n, fo); const Gi = t.createVariableDeclaration(we, void 0, void 0, sa), qr = t.createVariableDeclarationList([Gi]), is = q.classThis ? t.createAssignment(we, q.classThis) : we; Rt.push(t.createVariableStatement(void 0, qr), t.createReturnStatement(is)); } else sa = t.createClassExpression(void 0, ce.name, void 0, $n, fo), Rt.push(t.createReturnStatement(sa)); if (ii) { ux(sa, 32); for (const Gi of sa.members) (zu(Gi) || Qd(Gi)) && _c(Gi) && ux(Gi, 32); } return Vr(sa, ce), Xu(sa).classThis = q.classThis, t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(Rt, no)); } function Ge(ce) { return h1(!1, ce) || II(!1, ce); } function Fe(ce) { var pt; if (Ge(ce)) if (Jr(ce, 1) && Jr(ce, 1024)) { const Wt = (pt = bl(ce, li)) != null ? pt : ce, rt = Wt.name ? t.createStringLiteralFromNode(Wt.name) : t.createStringLiteral("default"), K = $e(ce, rt), Oe = t.createExportDefault(K); return Vr(Oe, ce), Bc(Oe, Fm(ce)), cs(Oe, kv(ce)), Oe; } else { D.assertIsDefined(ce.name, "A class declaration that is not a default export must have a name."); const Wt = $e(ce, t.createStringLiteralFromNode(ce.name)), rt = Kn(ce.modifiers, ne, lo), K = t.createVariableDeclaration(ce.name, void 0, void 0, Wt), Oe = t.createVariableDeclarationList([K], 1), Z = t.createVariableStatement(rt, Oe); return Vr(Z, ce), Bc(Z, Fm(ce)), Z; } else { const Wt = Kn(ce.modifiers, ne, lo), rt = Kn(ce.heritageClauses, P, Md); I(void 0); const K = Kn(ce.members, ge, Pc); return O(), t.updateClassDeclaration(ce, Wt, ce.name, void 0, rt, K); } } function We(ce, pt) { if (Ge(ce)) { const Wt = ce.name ? t.createStringLiteralFromNode(ce.name) : pt ?? t.createStringLiteral(""), rt = $e(ce, Wt); return Vr(rt, ce), rt; } else { const Wt = Kn(ce.modifiers, ne, lo), rt = Kn(ce.heritageClauses, P, Md); I(void 0); const K = Kn(ce.members, ge, Pc); return O(), t.updateClassExpression(ce, Wt, ce.name, void 0, rt, K); } } function Re(ce, pt) { if (pt.instanceExtraInitializersName && !pt.hasNonAmbientInstanceFields) { const Wt = []; return Wt.push(t.createExpressionStatement(r().createRunInitializersHelper(t.createThis(), pt.instanceExtraInitializersName))), Wt; } } function Pe(ce) { k(ce); const pt = Kn(ce.modifiers, ne, lo), Wt = Kn(ce.parameters, P, Ma); let rt; if (ce.body && f) { const K = Re(f.class, f); if (K) { const Oe = [], Z = t.copyPrologue(ce.body.statements, Oe, !1, P), we = D5(ce.body.statements, Z), q = we >= 0 ? we + 1 : void 0; yi(Oe, Kn(ce.body.statements, P, Ia, Z, q ? q - Z : void 0)), yi(Oe, K), yi(Oe, Kn(ce.body.statements, P, Ia, q)), rt = t.createBlock(Oe, !0), Vr(rt, ce.body), mt(rt, ce.body); } } return rt ?? (rt = st(ce.body, P, oo)), B(), t.updateConstructorDeclaration(ce, pt, Wt, rt); } function Ke(ce, pt) { return ce !== pt && (Bc(ce, pt), cs(ce, kv(pt))), ce; } function He(ce, pt, Wt, rt) { var K, Oe, Z, we, q, Rt, ht, dt; let dn, $n, ii, Ti, Si; if (!Wt) { const vo = Kn(ce.modifiers, ne, lo); return U(), pt ? { referencedName: dn, name: $n } = Rr(ce.name) : $n = xt(ce.name), j(), { modifiers: vo, referencedName: dn, name: $n, initializersName: ii, descriptorName: Si, thisArg: Ti }; } const Bi = _e(N5(ce, Wt.class, !1)), fo = Kn(ce.modifiers, ne, lo); if (Bi) { const vo = pe(ce, "decorators"), no = t.createArrayLiteralExpression(Bi), sa = t.createAssignment(vo, no), Gi = { memberDecoratorsName: vo }; (K = Wt.memberInfos) != null || (Wt.memberInfos = /* @__PURE__ */ new Map()), Wt.memberInfos.set(ce, Gi), m ?? (m = []), m.push(sa); const qr = yA(ce) || Qd(ce) ? za(ce) ? (Oe = Wt.staticNonFieldDecorationStatements) != null ? Oe : Wt.staticNonFieldDecorationStatements = [] : (Z = Wt.nonStaticNonFieldDecorationStatements) != null ? Z : Wt.nonStaticNonFieldDecorationStatements = [] : Za(ce) && !Qd(ce) ? za(ce) ? (we = Wt.staticFieldDecorationStatements) != null ? we : Wt.staticFieldDecorationStatements = [] : (q = Wt.nonStaticFieldDecorationStatements) != null ? q : Wt.nonStaticFieldDecorationStatements = [] : D.fail(), is = U_(ce) ? "getter" : Kf(ce) ? "setter" : nc(ce) ? "method" : Qd(ce) ? "accessor" : Za(ce) ? "field" : D.fail(); let ui; if (Ve(ce.name) || ki(ce.name)) ui = { computed: !1, name: ce.name }; else if (O_(ce.name)) ui = { computed: !0, name: t.createStringLiteralFromNode(ce.name) }; else { const da = ce.name.expression; O_(da) && !Ve(da) ? ui = { computed: !0, name: t.createStringLiteralFromNode(da) } : (U(), { referencedName: dn, name: $n } = Rr(ce.name), ui = { computed: !0, name: dn }, j()); } const la = { kind: is, name: ui, static: za(ce), private: ki(ce.name), access: { get: Za(ce) || U_(ce) || nc(ce), set: Za(ce) || Kf(ce) } }, wn = za(ce) ? (Rt = Wt.staticExtraInitializersName) != null ? Rt : Wt.staticExtraInitializersName = t.createUniqueName("_staticExtraInitializers", 16) : (ht = Wt.instanceExtraInitializersName) != null ? ht : Wt.instanceExtraInitializersName = t.createUniqueName("_instanceExtraInitializers", 16); if (yA(ce)) { let da; zu(ce) && rt && (da = rt(ce, Kn(fo, (Ml) => ri(Ml, pk), lo)), Gi.memberDescriptorName = Si = pe(ce, "descriptor"), da = t.createAssignment(Si, da)); const $l = r().createESDecorateHelper(t.createThis(), da ?? t.createNull(), vo, la, t.createNull(), wn), tl = t.createExpressionStatement($l); cs(tl, kv(ce)), qr.push(tl); } else if (Za(ce)) { ii = (dt = Gi.memberInitializersName) != null ? dt : Gi.memberInitializersName = pe(ce, "initializers"), za(ce) && (Ti = Wt.classThis); let da; zu(ce) && Nm(ce) && rt && (da = rt(ce, void 0), Gi.memberDescriptorName = Si = pe(ce, "descriptor"), da = t.createAssignment(Si, da)); const $l = r().createESDecorateHelper(Qd(ce) ? t.createThis() : t.createNull(), da ?? t.createNull(), vo, la, ii, wn), tl = t.createExpressionStatement($l); cs(tl, kv(ce)), qr.push(tl); } } return $n === void 0 && (U(), pt ? { referencedName: dn, name: $n } = Rr(ce.name) : $n = xt(ce.name), j()), !kt(fo) && (nc(ce) || Za(ce)) && or($n, 1024), { modifiers: fo, referencedName: dn, name: $n, initializersName: ii, descriptorName: Si, thisArg: Ti }; } function Me(ce) { k(ce); const { modifiers: pt, name: Wt, descriptorName: rt } = He(ce, !1, f, V); if (rt) return B(), Ke(Ut(pt, Wt, rt), ce); { const K = Kn(ce.parameters, P, Ma), Oe = st(ce.body, P, oo); return B(), Ke(t.updateMethodDeclaration(ce, pt, ce.asteriskToken, Wt, void 0, void 0, K, void 0, Oe), ce); } } function ot(ce) { k(ce); const { modifiers: pt, name: Wt, descriptorName: rt } = He(ce, !1, f, je); if (rt) return B(), Ke(on(pt, Wt, rt), ce); { const K = Kn(ce.parameters, P, Ma), Oe = st(ce.body, P, oo); return B(), Ke(t.updateGetAccessorDeclaration(ce, pt, Wt, K, void 0, Oe), ce); } } function At(ce) { k(ce); const { modifiers: pt, name: Wt, descriptorName: rt } = He(ce, !1, f, Qe); if (rt) return B(), Ke(Sn(pt, Wt, rt), ce); { const K = Kn(ce.parameters, P, Ma), Oe = st(ce.body, P, oo); return B(), Ke(t.updateSetAccessorDeclaration(ce, pt, Wt, K, Oe), ce); } } function bt(ce) { k(ce), f && (f.hasStaticInitializers = !0); const pt = Bn(ce, P, e); return B(), pt; } function Vt(ce) { k(ce), D.assert(!RW(ce), "Not yet implemented."); const pt = Wf(ce, In), { modifiers: Wt, name: rt, referencedName: K, initializersName: Oe, descriptorName: Z, thisArg: we } = He(ce, pt, f, Nm(ce) ? Je : void 0); i(); let q = K ? st(ce.initializer, (ht) => ie(ht, K), yt) : st(ce.initializer, P, yt); Oe && (q = r().createRunInitializersHelper(we ?? t.createThis(), Oe, q ?? t.createVoidZero())), !za(ce) && (f != null && f.instanceExtraInitializersName) && !(f != null && f.hasInjectedInstanceInitializers) && (f.hasInjectedInstanceInitializers = !0, q ?? (q = t.createVoidZero()), q = t.createParenthesizedExpression(t.createComma(r().createRunInitializersHelper(t.createThis(), f.instanceExtraInitializersName), q))), za(ce) && f && q && (f.hasStaticInitializers = !0); const Rt = o(); if (kt(Rt) && (q = t.createImmediatelyInvokedArrowFunction([ ...Rt, t.createReturnStatement(q) ])), B(), Nm(ce) && Z) { const ht = Fm(ce), dt = K0(ce), dn = ce.name; let $n = dn, ii = dn; if (Ss(dn) && !Zp(dn.expression)) { const vo = G7(dn); if (vo) $n = t.updateComputedPropertyName(dn, st(dn.expression, P, yt)), ii = t.updateComputedPropertyName(dn, vo.left); else { const no = t.createTempVariable(s); cs(no, dn.expression); const sa = st(dn.expression, P, yt), Gi = t.createAssignment(no, sa); cs(Gi, dn.expression), $n = t.updateComputedPropertyName(dn, Gi), ii = t.updateComputedPropertyName(dn, no); } } const Ti = Kn(Wt, (vo) => vo.kind !== 127 ? vo : void 0, lo), Si = CJ(t, ce, Ti, q); Vr(Si, ce), or(Si, 3072), cs(Si, dt), cs(Si.name, ce.name); const Bi = on(Ti, $n, Z); Vr(Bi, ce), Bc(Bi, ht), cs(Bi, dt); const fo = Sn(Ti, ii, Z); return Vr(fo, ce), or(fo, 3072), cs(fo, dt), [Si, Bi, fo]; } return Ke(t.updatePropertyDeclaration(ce, Wt, rt, void 0, void 0, q), ce); } function et(ce) { return d ?? ce; } function it(ce) { if (ad(ce.expression) && d) { const pt = st(ce.expression, P, yt), Wt = Kn(ce.arguments, P, yt), rt = t.createFunctionCallCall(pt, d, Wt); return Vr(rt, ce), mt(rt, ce), rt; } return Bn(ce, P, e); } function nn(ce) { if (ad(ce.tag) && d) { const pt = st(ce.tag, P, yt), Wt = t.createFunctionBindCall(pt, d, []); Vr(Wt, ce), mt(Wt, ce); const rt = st(ce.template, P, vA); return t.updateTaggedTemplateExpression(ce, Wt, void 0, rt); } return Bn(ce, P, e); } function Xt(ce) { if (ad(ce) && Ve(ce.name) && d && y) { const pt = t.createStringLiteralFromNode(ce.name), Wt = t.createReflectGetCall(y, pt, d); return Vr(Wt, ce.expression), mt(Wt, ce.expression), Wt; } return Bn(ce, P, e); } function On(ce) { if (ad(ce) && d && y) { const pt = st(ce.argumentExpression, P, yt), Wt = t.createReflectGetCall(y, pt, d); return Vr(Wt, ce.expression), mt(Wt, ce.expression), Wt; } return Bn(ce, P, e); } function Hn(ce) { let pt; if (Wf(ce, In)) { const Wt = br(ce.name, ce.initializer), rt = st(ce.name, P, dh), K = st(ce.initializer, (Oe) => ie(Oe, Wt), yt); pt = t.updateParameterDeclaration(ce, void 0, void 0, rt, void 0, void 0, K); } else pt = t.updateParameterDeclaration(ce, void 0, ce.dotDotDotToken, st(ce.name, P, dh), void 0, void 0, st(ce.initializer, P, yt)); return pt !== ce && (Bc(pt, ce), mt(pt, qp(ce)), cs(pt, qp(ce)), or(pt.name, 64)), pt; } function In(ce) { return Nu(ce) && !ce.name && Ge(ce); } function Yt(ce) { return t.updateForStatement(ce, st(ce.initializer, H, jp), st(ce.condition, P, yt), st(ce.incrementor, H, yt), p_(ce.statement, P, e)); } function fr(ce) { return Bn(ce, H, e); } function xi(ce, pt) { if (my(ce)) { const Wt = Ie(ce.left), rt = st(ce.right, P, yt); return t.updateBinaryExpression(ce, Wt, ce.operatorToken, rt); } if (Ku(ce)) { if (Wf(ce, In)) { const Wt = br(ce.left, ce.right), rt = st(ce.left, P, yt), K = st(ce.right, (Oe) => ie(Oe, Wt), yt); return t.updateBinaryExpression(ce, rt, ce.operatorToken, K); } if (ad(ce.left) && d && y) { let Wt = sl(ce.left) ? st(ce.left.argumentExpression, P, yt) : Ve(ce.left.name) ? t.createStringLiteralFromNode(ce.left.name) : void 0; if (Wt) { let rt = st(ce.right, P, yt); if (p8(ce.operatorToken.kind)) { let Oe = Wt; Zp(Wt) || (Oe = t.createTempVariable(s), Wt = t.createAssignment(Oe, Wt)); const Z = t.createReflectGetCall(y, Oe, d); Vr(Z, ce.left), mt(Z, ce.left), rt = t.createBinaryExpression(Z, Hk(ce.operatorToken.kind), rt), mt(rt, ce); } const K = pt ? void 0 : t.createTempVariable(s); return K && (rt = t.createAssignment(K, rt), mt(K, ce)), rt = t.createReflectSetCall(y, Wt, rt, d), Vr(rt, ce), mt(rt, ce), K && (rt = t.createComma(rt, K), mt(rt, ce)), rt; } } } if (ce.operatorToken.kind === 27) { const Wt = st(ce.left, H, yt), rt = st(ce.right, pt ? H : P, yt); return t.updateBinaryExpression(ce, Wt, ce.operatorToken, rt); } return Bn(ce, P, e); } function Ji(ce, pt) { if (ce.operator === 45 || ce.operator === 46) { const Wt = Us(ce.operand); if (ad(Wt) && d && y) { let rt = sl(Wt) ? st(Wt.argumentExpression, P, yt) : Ve(Wt.name) ? t.createStringLiteralFromNode(Wt.name) : void 0; if (rt) { let K = rt; Zp(rt) || (K = t.createTempVariable(s), rt = t.createAssignment(K, rt)); let Oe = t.createReflectGetCall(y, K, d); Vr(Oe, ce), mt(Oe, ce); const Z = pt ? void 0 : t.createTempVariable(s); return Oe = D7(t, ce, Oe, s, Z), Oe = t.createReflectSetCall(y, rt, Oe, d), Vr(Oe, ce), mt(Oe, ce), Z && (Oe = t.createComma(Oe, Z), mt(Oe, ce)), Oe; } } } return Bn(ce, P, e); } function Ki(ce, pt) { const Wt = pt ? _8(ce.elements, H) : _8(ce.elements, P, H); return t.updateCommaListExpression(ce, Wt); } function Rr(ce) { if (O_(ce) || ki(ce)) { const Oe = t.createStringLiteralFromNode(ce), Z = st(ce, P, hl); return { referencedName: Oe, name: Z }; } if (O_(ce.expression) && !Ve(ce.expression)) { const Oe = t.createStringLiteralFromNode(ce.expression), Z = st(ce, P, hl); return { referencedName: Oe, name: Z }; } const pt = t.getGeneratedNameForNode(ce); s(pt); const Wt = r().createPropKeyHelper(st(ce.expression, P, yt)), rt = t.createAssignment(pt, Wt), K = t.updateComputedPropertyName(ce, _t(rt)); return { referencedName: pt, name: K }; } function xt(ce) { return Ss(ce) ? gn(ce) : st(ce, P, hl); } function gn(ce) { let pt = st(ce.expression, P, yt); return Zp(pt) || (pt = _t(pt)), t.updateComputedPropertyName(ce, pt); } function Ht(ce) { if (Wf(ce, In)) { const { referencedName: pt, name: Wt } = Rr(ce.name), rt = st(ce.initializer, (K) => ie(K, pt), yt); return t.updatePropertyAssignment(ce, Wt, rt); } return Bn(ce, P, e); } function ln(ce) { if (Wf(ce, In)) { const pt = br(ce.name, ce.initializer), Wt = st(ce.name, P, dh), rt = st(ce.initializer, (K) => ie(K, pt), yt); return t.updateVariableDeclaration(ce, Wt, void 0, void 0, rt); } return Bn(ce, P, e); } function rr(ce) { if (Wf(ce, In)) { const pt = br(ce.name, ce.initializer), Wt = st(ce.propertyName, P, hl), rt = st(ce.name, P, dh), K = st(ce.initializer, (Oe) => ie(Oe, pt), yt); return t.updateBindingElement(ce, void 0, Wt, rt, K); } return Bn(ce, P, e); } function lr(ce) { if (As(ce) || Ru(ce)) return Ie(ce); if (ad(ce) && d && y) { const pt = sl(ce) ? st(ce.argumentExpression, P, yt) : Ve(ce.name) ? t.createStringLiteralFromNode(ce.name) : void 0; if (pt) { const Wt = t.createTempVariable(void 0), rt = t.createAssignmentTargetWrapper(Wt, t.createReflectSetCall(y, pt, Wt, d)); return Vr(rt, ce), mt(rt, ce), rt; } } return Bn(ce, P, e); } function Di(ce) { if (Ku(ce, !0)) { const pt = lr(ce.left); let Wt; if (Wf(ce, In)) { const rt = br(ce.left, ce.right); Wt = st(ce.right, (K) => ie(K, rt), yt); } else Wt = st(ce.right, P, yt); return t.updateBinaryExpression(ce, pt, ce.operatorToken, Wt); } else return lr(ce); } function _i(ce) { if (gd(ce.expression)) { const pt = lr(ce.expression); return t.updateSpreadElement(ce, pt); } return Bn(ce, P, e); } function Rn(ce) { return D.assertNode(ce, GR), Th(ce) ? _i(ce) : Ic(ce) ? Bn(ce, P, e) : Di(ce); } function en(ce) { const pt = st(ce.name, P, hl); if (Ku(ce.initializer, !0)) { const Wt = Di(ce.initializer); return t.updatePropertyAssignment(ce, pt, Wt); } if (gd(ce.initializer)) { const Wt = lr(ce.initializer); return t.updatePropertyAssignment(ce, pt, Wt); } return Bn(ce, P, e); } function Pn(ce) { if (Wf(ce, In)) { const pt = br(ce.name, ce.objectAssignmentInitializer), Wt = st(ce.name, P, Ve), rt = st(ce.objectAssignmentInitializer, (K) => ie(K, pt), yt); return t.updateShorthandPropertyAssignment(ce, Wt, rt); } return Bn(ce, P, e); } function xr(ce) { if (gd(ce.expression)) { const pt = lr(ce.expression); return t.updateSpreadAssignment(ce, pt); } return Bn(ce, P, e); } function Ur(ce) { return D.assertNode(ce, BR), Ix(ce) ? xr(ce) : Xf(ce) ? Pn(ce) : Uc(ce) ? en(ce) : Bn(ce, P, e); } function Ie(ce) { if (Ru(ce)) { const pt = Kn(ce.elements, Rn, yt); return t.updateArrayLiteralExpression(ce, pt); } else { const pt = Kn(ce.properties, Ur, dy); return t.updateObjectLiteralExpression(ce, pt); } } function gt(ce) { if (Wf(ce, In)) { const pt = t.createStringLiteral(ce.isExportEquals ? "" : "default"), Wt = Kn(ce.modifiers, ne, lo), rt = st(ce.expression, (K) => ie(K, pt), yt); return t.updateExportAssignment(ce, Wt, rt); } return Bn(ce, P, e); } function Nt(ce, pt, Wt) { const rt = pt ? H : Wt ? (Oe) => ie(Oe, Wt) : P, K = st(ce.expression, rt, yt); return t.updateParenthesizedExpression(ce, K); } function xe(ce, pt, Wt) { const rt = pt ? H : Wt ? (Oe) => ie(Oe, Wt) : P, K = st(ce.expression, rt, yt); return t.updatePartiallyEmittedExpression(ce, K); } function _t(ce) { return kt(m) && (Pd(ce) ? (m.push(ce.expression), ce = t.updateParenthesizedExpression(ce, t.inlineExpressions(m))) : (m.push(ce), ce = t.inlineExpressions(m)), m = void 0), ce; } function _e(ce) { if (!ce) return; const pt = []; return yi(pt, rn(ce.decorators, re)), pt; } function re(ce) { const pt = st(ce.expression, P, yt); return or(pt, 3072), pt; } function me(ce, pt, Wt, rt, K, Oe, Z) { const we = t.createFunctionExpression(Wt, rt, void 0, void 0, Oe, void 0, Z ?? t.createBlock([])); Vr(we, ce), cs(we, kv(ce)), or(we, 3072); const q = K === "get" || K === "set" ? K : void 0, Rt = t.createStringLiteralFromNode(pt, void 0), ht = r().createSetFunctionNameHelper(we, Rt, q), dt = t.createPropertyAssignment(t.createIdentifier(K), ht); return Vr(dt, ce), cs(dt, kv(ce)), or(dt, 3072), dt; } function V(ce, pt) { return t.createObjectLiteralExpression([ me(ce, ce.name, pt, ce.asteriskToken, "value", Kn(ce.parameters, P, Ma), st(ce.body, P, oo)) ]); } function je(ce, pt) { return t.createObjectLiteralExpression([ me(ce, ce.name, pt, void 0, "get", [], st(ce.body, P, oo)) ]); } function Qe(ce, pt) { return t.createObjectLiteralExpression([ me(ce, ce.name, pt, void 0, "set", Kn(ce.parameters, P, Ma), st(ce.body, P, oo)) ]); } function Je(ce, pt) { return t.createObjectLiteralExpression([ me(ce, ce.name, pt, void 0, "get", [], t.createBlock([ t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(), t.getGeneratedPrivateNameForNode(ce.name))) ])), me(ce, ce.name, pt, void 0, "set", [t.createParameterDeclaration(void 0, void 0, "value")], t.createBlock([ t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(), t.getGeneratedPrivateNameForNode(ce.name)), t.createIdentifier("value"))) ])) ]); } function Ut(ce, pt, Wt) { return ce = Kn(ce, (rt) => mx(rt) ? rt : void 0, lo), t.createGetAccessorDeclaration(ce, pt, [], void 0, t.createBlock([ t.createReturnStatement(t.createPropertyAccessExpression(Wt, t.createIdentifier("value"))) ])); } function on(ce, pt, Wt) { return ce = Kn(ce, (rt) => mx(rt) ? rt : void 0, lo), t.createGetAccessorDeclaration(ce, pt, [], void 0, t.createBlock([ t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(Wt, t.createIdentifier("get")), t.createThis(), [])) ])); } function Sn(ce, pt, Wt) { return ce = Kn(ce, (rt) => mx(rt) ? rt : void 0, lo), t.createSetAccessorDeclaration(ce, pt, [t.createParameterDeclaration(void 0, void 0, "value")], t.createBlock([ t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(Wt, t.createIdentifier("set")), t.createThis(), [t.createIdentifier("value")])) ])); } function br(ce, pt) { const Wt = bl(pt, li); return Wt && !Wt.name && Jr(Wt, 1024) ? t.createStringLiteral("default") : t.createStringLiteralFromNode(ce); } } var UMe = L({ "src/compiler/transformers/esDecorators.ts"() { Ra(); } }); function Kme(e) { const { factory: t, getEmitHelperFactory: r, resumeLexicalEnvironment: i, endLexicalEnvironment: o, hoistVariableDeclaration: s } = e, c = e.getEmitResolver(), f = e.getCompilerOptions(), d = $o(f); let y, m = 0, b, A, C; const I = []; let O = 0; const k = e.onEmitNode, B = e.onSubstituteNode; return e.onEmitNode = Hn, e.onSubstituteNode = In, W_(e, U); function U(xt) { if (xt.isDeclarationFile) return xt; j(1, !1), j(2, !DW(xt, f)); const gn = Bn(xt, ne, e); return gy(gn, e.readEmitHelpers()), gn; } function j(xt, gn) { O = gn ? O | xt : O & ~xt; } function te(xt) { return (O & xt) !== 0; } function X() { return !te(1); } function Y() { return te(2); } function P(xt, gn, Ht) { const ln = xt & ~O; if (ln) { j(ln, !0); const rr = gn(Ht); return j(ln, !1), rr; } return gn(Ht); } function ue(xt) { return Bn(xt, ne, e); } function ne(xt) { if (!(xt.transformFlags & 256)) return xt; switch (xt.kind) { case 132: return; case 220: return Te(xt); case 171: return P(3, $e, xt); case 259: return P(3, We, xt); case 215: return P(3, Re, xt); case 216: return P(1, Pe, xt); case 208: return A && Pr(xt) && xt.expression.kind === 106 && A.add(xt.name.escapedText), Bn(xt, ne, e); case 209: return A && xt.expression.kind === 106 && (C = !0), Bn(xt, ne, e); case 174: return P(3, Ge, xt); case 175: return P(3, Fe, xt); case 173: return P(3, ee, xt); case 260: case 228: return P(3, ue, xt); default: return Bn(xt, ne, e); } } function ge(xt) { if (lue(xt)) switch (xt.kind) { case 240: return H(xt); case 245: return ye(xt); case 246: return le(xt); case 247: return pe(xt); case 295: return ie(xt); case 238: case 252: case 266: case 292: case 293: case 255: case 243: case 244: case 242: case 251: case 253: return Bn(xt, ge, e); default: return D.assertNever(xt, "Unhandled node."); } return ne(xt); } function ie(xt) { const gn = /* @__PURE__ */ new Set(); Ke(xt.variableDeclaration, gn); let Ht; if (gn.forEach((ln, rr) => { b.has(rr) && (Ht || (Ht = new Set(b)), Ht.delete(rr)); }), Ht) { const ln = b; b = Ht; const rr = Bn(xt, ge, e); return b = ln, rr; } else return Bn(xt, ge, e); } function H(xt) { if (He(xt.declarationList)) { const gn = Me(xt.declarationList, !1); return gn ? t.createExpressionStatement(gn) : void 0; } return Bn(xt, ne, e); } function le(xt) { return t.updateForInStatement(xt, He(xt.initializer) ? Me(xt.initializer, !0) : D.checkDefined(st(xt.initializer, ne, jp)), D.checkDefined(st(xt.expression, ne, yt)), p_(xt.statement, ge, e)); } function pe(xt) { return t.updateForOfStatement(xt, st(xt.awaitModifier, ne, Xq), He(xt.initializer) ? Me(xt.initializer, !0) : D.checkDefined(st(xt.initializer, ne, jp)), D.checkDefined(st(xt.expression, ne, yt)), p_(xt.statement, ge, e)); } function ye(xt) { const gn = xt.initializer; return t.updateForStatement(xt, He(gn) ? Me(gn, !1) : st(xt.initializer, ne, jp), st(xt.condition, ne, yt), st(xt.incrementor, ne, yt), p_(xt.statement, ge, e)); } function Te(xt) { return X() ? Bn(xt, ne, e) : Vr(mt(t.createYieldExpression(void 0, st(xt.expression, ne, yt)), xt), xt); } function ee(xt) { return t.updateConstructorDeclaration(xt, Kn(xt.modifiers, ne, lo), Wl(xt.parameters, ne, e), et(xt)); } function $e(xt) { return t.updateMethodDeclaration(xt, Kn(xt.modifiers, ne, el), xt.asteriskToken, xt.name, void 0, void 0, Wl(xt.parameters, ne, e), void 0, Mc(xt) & 2 ? it(xt) : et(xt)); } function Ge(xt) { return t.updateGetAccessorDeclaration(xt, Kn(xt.modifiers, ne, el), xt.name, Wl(xt.parameters, ne, e), void 0, et(xt)); } function Fe(xt) { return t.updateSetAccessorDeclaration(xt, Kn(xt.modifiers, ne, el), xt.name, Wl(xt.parameters, ne, e), et(xt)); } function We(xt) { return t.updateFunctionDeclaration(xt, Kn(xt.modifiers, ne, el), xt.asteriskToken, xt.name, void 0, Wl(xt.parameters, ne, e), void 0, Mc(xt) & 2 ? it(xt) : xf(xt.body, ne, e)); } function Re(xt) { return t.updateFunctionExpression(xt, Kn(xt.modifiers, ne, lo), xt.asteriskToken, xt.name, void 0, Wl(xt.parameters, ne, e), void 0, Mc(xt) & 2 ? it(xt) : xf(xt.body, ne, e)); } function Pe(xt) { return t.updateArrowFunction(xt, Kn(xt.modifiers, ne, lo), void 0, Wl(xt.parameters, ne, e), void 0, xt.equalsGreaterThanToken, Mc(xt) & 2 ? it(xt) : xf(xt.body, ne, e)); } function Ke({ name: xt }, gn) { if (Ve(xt)) gn.add(xt.escapedText); else for (const Ht of xt.elements) Ic(Ht) || Ke(Ht, gn); } function He(xt) { return !!xt && Ou(xt) && !(xt.flags & 3) && xt.declarations.some(Vt); } function Me(xt, gn) { ot(xt); const Ht = JI(xt); return Ht.length === 0 ? gn ? st(t.converters.convertToAssignmentElementTarget(xt.declarations[0].name), ne, yt) : void 0 : t.inlineExpressions(rn(Ht, bt)); } function ot(xt) { Ye(xt.declarations, At); } function At({ name: xt }) { if (Ve(xt)) s(xt); else for (const gn of xt.elements) Ic(gn) || At(gn); } function bt(xt) { const gn = cs(t.createAssignment(t.converters.convertToAssignmentElementTarget(xt.name), xt.initializer), xt); return D.checkDefined(st(gn, ne, yt)); } function Vt({ name: xt }) { if (Ve(xt)) return b.has(xt.escapedText); for (const gn of xt.elements) if (!Ic(gn) && Vt(gn)) return !0; return !1; } function et(xt) { D.assertIsDefined(xt.body); const gn = A, Ht = C; A = /* @__PURE__ */ new Set(), C = !1; let ln = xf(xt.body, ne, e); const rr = bl(xt, Ys); if (d >= 2 && c.getNodeCheckFlags(xt) & 384 && (Mc(rr) & 3) !== 3) { if (On(), A.size) { const Di = O5(t, c, xt, A); I[ds(Di)] = !0; const _i = ln.statements.slice(); wm(_i, [Di]), ln = t.updateBlock(ln, _i); } C && (c.getNodeCheckFlags(xt) & 256 ? dx(ln, mO) : c.getNodeCheckFlags(xt) & 128 && dx(ln, pO)); } return A = gn, C = Ht, ln; } function it(xt) { i(); const Ht = bl(xt, qa).type, ln = d < 2 ? Xt(Ht) : void 0, rr = xt.kind === 216, lr = (c.getNodeCheckFlags(xt) & 512) !== 0, Di = b; b = /* @__PURE__ */ new Set(); for (const Pn of xt.parameters) Ke(Pn, b); const _i = A, Rn = C; rr || (A = /* @__PURE__ */ new Set(), C = !1); let en; if (rr) { const Pn = r().createAwaiterHelper(Y(), lr, ln, nn(xt.body)), xr = o(); if (kt(xr)) { const Ur = t.converters.convertToFunctionBlock(Pn); en = t.updateBlock(Ur, mt(t.createNodeArray(ha(xr, Ur.statements)), Ur.statements)); } else en = Pn; } else { const Pn = [], xr = t.copyPrologue(xt.body.statements, Pn, !1, ne); Pn.push(t.createReturnStatement(r().createAwaiterHelper(Y(), lr, ln, nn(xt.body, xr)))), wm(Pn, o()); const Ur = d >= 2 && c.getNodeCheckFlags(xt) & 384; if (Ur && (On(), A.size)) { const gt = O5(t, c, xt, A); I[ds(gt)] = !0, wm(Pn, [gt]); } const Ie = t.createBlock(Pn, !0); mt(Ie, xt.body), Ur && C && (c.getNodeCheckFlags(xt) & 256 ? dx(Ie, mO) : c.getNodeCheckFlags(xt) & 128 && dx(Ie, pO)), en = Ie; } return b = Di, rr || (A = _i, C = Rn), en; } function nn(xt, gn) { return oo(xt) ? t.updateBlock(xt, Kn(xt.statements, ge, Ia, gn)) : t.converters.convertToFunctionBlock(D.checkDefined(st(xt, ge, EM))); } function Xt(xt) { const gn = xt && eN(xt); if (gn && $d(gn)) { const Ht = c.getTypeReferenceSerializationKind(gn); if (Ht === 1 || Ht === 0) return gn; } } function On() { y & 1 || (y |= 1, e.enableSubstitution(210), e.enableSubstitution(208), e.enableSubstitution(209), e.enableEmitNotification(260), e.enableEmitNotification(171), e.enableEmitNotification(174), e.enableEmitNotification(175), e.enableEmitNotification(173), e.enableEmitNotification(240)); } function Hn(xt, gn, Ht) { if (y & 1 && Ki(gn)) { const ln = c.getNodeCheckFlags(gn) & 384; if (ln !== m) { const rr = m; m = ln, k(xt, gn, Ht), m = rr; return; } } else if (y && I[ds(gn)]) { const ln = m; m = 0, k(xt, gn, Ht), m = ln; return; } k(xt, gn, Ht); } function In(xt, gn) { return gn = B(xt, gn), xt === 1 && m ? Yt(gn) : gn; } function Yt(xt) { switch (xt.kind) { case 208: return fr(xt); case 209: return xi(xt); case 210: return Ji(xt); } return xt; } function fr(xt) { return xt.expression.kind === 106 ? mt(t.createPropertyAccessExpression(t.createUniqueName("_super", 48), xt.name), xt) : xt; } function xi(xt) { return xt.expression.kind === 106 ? Rr(xt.argumentExpression, xt) : xt; } function Ji(xt) { const gn = xt.expression; if (ad(gn)) { const Ht = Pr(gn) ? fr(gn) : xi(gn); return t.createCallExpression(t.createPropertyAccessExpression(Ht, "call"), void 0, [ t.createThis(), ...xt.arguments ]); } return xt; } function Ki(xt) { const gn = xt.kind; return gn === 260 || gn === 173 || gn === 171 || gn === 174 || gn === 175; } function Rr(xt, gn) { return m & 256 ? mt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex", 48), void 0, [xt]), "value"), gn) : mt(t.createCallExpression(t.createUniqueName("_superIndex", 48), void 0, [xt]), gn); } } function O5(e, t, r, i) { const o = (t.getNodeCheckFlags(r) & 256) !== 0, s = []; return i.forEach((c, f) => { const d = Zi(f), y = []; y.push(e.createPropertyAssignment("get", e.createArrowFunction(void 0, void 0, [], void 0, void 0, or(e.createPropertyAccessExpression(or(e.createSuper(), 8), d), 8)))), o && y.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(or(e.createPropertyAccessExpression(or(e.createSuper(), 8), d), 8), e.createIdentifier("v"))))), s.push(e.createPropertyAssignment(d, e.createObjectLiteralExpression(y))); }), 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(s, !0) ])) ], 2)); } var VMe = L({ "src/compiler/transformers/es2017.ts"() { Ra(); } }); function Xme(e) { const { factory: t, getEmitHelperFactory: r, resumeLexicalEnvironment: i, endLexicalEnvironment: o, hoistVariableDeclaration: s } = e, c = e.getEmitResolver(), f = e.getCompilerOptions(), d = $o(f), y = e.onEmitNode; e.onEmitNode = Pn; const m = e.onSubstituteNode; e.onSubstituteNode = xr; let b = !1, A, C, I, O = 0, k = 0, B, U, j, te; const X = []; return W_(e, ge); function Y(_e, re) { return k !== (k & ~_e | re); } function P(_e, re) { const me = k; return k = (k & ~_e | re) & 3, me; } function ue(_e) { k = _e; } function ne(_e) { U = Fn(U, t.createVariableDeclaration(_e)); } function ge(_e) { if (_e.isDeclarationFile) return _e; B = _e; const re = He(_e); return gy(re, e.readEmitHelpers()), B = void 0, U = void 0, re; } function ie(_e) { return Te(_e, !1); } function H(_e) { return Te(_e, !0); } function le(_e) { if (_e.kind !== 132) return _e; } function pe(_e, re, me, V) { if (Y(me, V)) { const je = P(me, V), Qe = _e(re); return ue(je), Qe; } return _e(re); } function ye(_e) { return Bn(_e, ie, e); } function Te(_e, re) { if (!(_e.transformFlags & 128)) return _e; switch (_e.kind) { case 220: return ee(_e); case 226: return $e(_e); case 250: return Ge(_e); case 253: return Fe(_e); case 207: return Re(_e); case 223: return ot(_e, re); case 357: return At(_e, re); case 295: return bt(_e); case 240: return Vt(_e); case 257: return et(_e); case 243: case 244: case 246: return pe(ye, _e, 0, 2); case 247: return On(_e, void 0); case 245: return pe(nn, _e, 0, 2); case 219: return Xt(_e); case 173: return pe(Rr, _e, 2, 1); case 171: return pe(Ht, _e, 2, 1); case 174: return pe(xt, _e, 2, 1); case 175: return pe(gn, _e, 2, 1); case 259: return pe(ln, _e, 2, 1); case 215: return pe(lr, _e, 2, 1); case 216: return pe(rr, _e, 2, 0); case 166: return Ji(_e); case 241: return Pe(_e); case 214: return Ke(_e, re); case 212: return Me(_e); case 208: return j && Pr(_e) && _e.expression.kind === 106 && j.add(_e.name.escapedText), Bn(_e, ie, e); case 209: return j && _e.expression.kind === 106 && (te = !0), Bn(_e, ie, e); case 260: case 228: return pe(ye, _e, 2, 1); default: return Bn(_e, ie, e); } } function ee(_e) { return C & 2 && C & 1 ? Vr(mt(t.createYieldExpression(void 0, r().createAwaitHelper(st(_e.expression, ie, yt))), _e), _e) : Bn(_e, ie, e); } function $e(_e) { if (C & 2 && C & 1) { if (_e.asteriskToken) { const re = st(D.checkDefined(_e.expression), ie, yt); return Vr(mt(t.createYieldExpression(void 0, r().createAwaitHelper(t.updateYieldExpression(_e, _e.asteriskToken, mt(r().createAsyncDelegatorHelper(mt(r().createAsyncValuesHelper(re), re)), re)))), _e), _e); } return Vr(mt(t.createYieldExpression(void 0, Yt(_e.expression ? st(_e.expression, ie, yt) : t.createVoidZero())), _e), _e); } return Bn(_e, ie, e); } function Ge(_e) { return C & 2 && C & 1 ? t.updateReturnStatement(_e, Yt(_e.expression ? st(_e.expression, ie, yt) : t.createVoidZero())) : Bn(_e, ie, e); } function Fe(_e) { if (C & 2) { const re = HW(_e); return re.kind === 247 && re.awaitModifier ? On(re, _e) : t.restoreEnclosingLabel(st(re, ie, Ia, t.liftToBlock), _e); } return Bn(_e, ie, e); } function We(_e) { let re; const me = []; for (const V of _e) if (V.kind === 301) { re && (me.push(t.createObjectLiteralExpression(re)), re = void 0); const je = V.expression; me.push(st(je, ie, yt)); } else re = Fn(re, V.kind === 299 ? t.createPropertyAssignment(V.name, st(V.initializer, ie, yt)) : st(V, ie, dy)); return re && me.push(t.createObjectLiteralExpression(re)), me; } function Re(_e) { if (_e.transformFlags & 65536) { const re = We(_e.properties); re.length && re[0].kind !== 207 && re.unshift(t.createObjectLiteralExpression()); let me = re[0]; if (re.length > 1) { for (let V = 1; V < re.length; V++) me = r().createAssignHelper([me, re[V]]); return me; } else return r().createAssignHelper(re); } return Bn(_e, ie, e); } function Pe(_e) { return Bn(_e, H, e); } function Ke(_e, re) { return Bn(_e, re ? H : ie, e); } function He(_e) { const re = P(2, DW(_e, f) ? 0 : 1); b = !1; const me = Bn(_e, ie, e), V = ha(me.statements, U && [ t.createVariableStatement(void 0, t.createVariableDeclarationList(U)) ]), je = t.updateSourceFile(me, mt(t.createNodeArray(V), _e.statements)); return ue(re), je; } function Me(_e) { return QK(e, _e, ie, B, ne, 0); } function ot(_e, re) { return my(_e) && PO(_e.left) ? RT(_e, ie, e, 1, !re) : _e.operatorToken.kind === 27 ? t.updateBinaryExpression(_e, st(_e.left, H, yt), _e.operatorToken, st(_e.right, re ? H : ie, yt)) : Bn(_e, ie, e); } function At(_e, re) { if (re) return Bn(_e, H, e); let me; for (let je = 0; je < _e.elements.length; je++) { const Qe = _e.elements[je], Je = st(Qe, je < _e.elements.length - 1 ? H : ie, yt); (me || Je !== Qe) && (me || (me = _e.elements.slice(0, je)), me.push(Je)); } const V = me ? mt(t.createNodeArray(me), _e.elements) : _e.elements; return t.updateCommaListExpression(_e, V); } function bt(_e) { if (_e.variableDeclaration && Ja(_e.variableDeclaration.name) && _e.variableDeclaration.name.transformFlags & 65536) { const re = t.getGeneratedNameForNode(_e.variableDeclaration.name), me = t.updateVariableDeclaration(_e.variableDeclaration, _e.variableDeclaration.name, void 0, void 0, re), V = F1(me, ie, e, 1); let je = st(_e.block, ie, oo); return kt(V) && (je = t.updateBlock(je, [ t.createVariableStatement(void 0, V), ...je.statements ])), t.updateCatchClause(_e, t.updateVariableDeclaration(_e.variableDeclaration, re, void 0, void 0, void 0), je); } return Bn(_e, ie, e); } function Vt(_e) { if (Jr(_e, 1)) { const re = b; b = !0; const me = Bn(_e, ie, e); return b = re, me; } return Bn(_e, ie, e); } function et(_e) { if (b) { const re = b; b = !1; const me = it(_e, !0); return b = re, me; } return it(_e, !1); } function it(_e, re) { return Ja(_e.name) && _e.name.transformFlags & 65536 ? F1(_e, ie, e, 1, void 0, re) : Bn(_e, ie, e); } function nn(_e) { return t.updateForStatement(_e, st(_e.initializer, H, jp), st(_e.condition, ie, yt), st(_e.incrementor, H, yt), p_(_e.statement, ie, e)); } function Xt(_e) { return Bn(_e, H, e); } function On(_e, re) { const me = P(0, 2); (_e.initializer.transformFlags & 65536 || yI(_e.initializer) && PO(_e.initializer)) && (_e = Hn(_e)); const V = _e.awaitModifier ? fr(_e, re, me) : t.restoreEnclosingLabel(Bn(_e, ie, e), re); return ue(me), V; } function Hn(_e) { const re = Us(_e.initializer); if (Ou(re) || yI(re)) { let me, V; const je = t.createTempVariable(void 0), Qe = [gJ(t, re, je)]; return oo(_e.statement) ? (yi(Qe, _e.statement.statements), me = _e.statement, V = _e.statement.statements) : _e.statement && (Fn(Qe, _e.statement), me = _e.statement, V = _e.statement), t.updateForOfStatement(_e, _e.awaitModifier, mt(t.createVariableDeclarationList([ mt(t.createVariableDeclaration(je), _e.initializer) ], 1), _e.initializer), _e.expression, mt(t.createBlock(mt(t.createNodeArray(Qe), V), !0), me)); } return _e; } function In(_e, re, me) { const V = t.createTempVariable(s), je = t.createAssignment(V, re), Qe = t.createExpressionStatement(je); cs(Qe, _e.expression); const Je = t.createAssignment(me, t.createFalse()), Ut = t.createExpressionStatement(Je); cs(Ut, _e.expression); const on = t.createAssignment(me, t.createTrue()), Sn = t.createExpressionStatement(on); cs(Ut, _e.expression); const br = [], ce = gJ(t, _e.initializer, V); br.push(st(ce, ie, Ia)); let pt, Wt; const rt = p_(_e.statement, ie, e); oo(rt) ? (yi(br, rt.statements), pt = rt, Wt = rt.statements) : br.push(rt); const K = or(mt(t.createBlock(mt(t.createNodeArray(br), Wt), !0), pt), 864); return t.createBlock([ Qe, Ut, t.createTryStatement(K, void 0, t.createBlock([ Sn ])) ]); } function Yt(_e) { return C & 1 ? t.createYieldExpression(void 0, r().createAwaitHelper(_e)) : t.createAwaitExpression(_e); } function fr(_e, re, me) { const V = st(_e.expression, ie, yt), je = Ve(V) ? t.getGeneratedNameForNode(V) : t.createTempVariable(void 0), Qe = Ve(V) ? t.getGeneratedNameForNode(je) : t.createTempVariable(void 0), Je = t.createTempVariable(void 0), Ut = t.createTempVariable(s), on = t.createUniqueName("e"), Sn = t.getGeneratedNameForNode(on), br = t.createTempVariable(void 0), ce = mt(r().createAsyncValuesHelper(V), _e.expression), pt = t.createCallExpression(t.createPropertyAccessExpression(je, "next"), void 0, []), Wt = t.createPropertyAccessExpression(Qe, "done"), rt = t.createPropertyAccessExpression(Qe, "value"), K = t.createFunctionCallCall(br, je, []); s(on), s(br); const Oe = me & 2 ? t.inlineExpressions([t.createAssignment(on, t.createVoidZero()), ce]) : ce, Z = or(mt(t.createForStatement(or(mt(t.createVariableDeclarationList([ t.createVariableDeclaration(Je, void 0, void 0, t.createTrue()), mt(t.createVariableDeclaration(je, void 0, void 0, Oe), _e.expression), t.createVariableDeclaration(Qe) ]), _e.expression), 4194304), t.inlineExpressions([ t.createAssignment(Qe, Yt(pt)), t.createAssignment(Ut, Wt), t.createLogicalNot(Ut) ]), void 0, In(_e, rt, Je)), _e), 512); return Vr(Z, _e), t.createTryStatement(t.createBlock([ t.restoreEnclosingLabel(Z, re) ]), t.createCatchClause(t.createVariableDeclaration(Sn), or(t.createBlock([ t.createExpressionStatement(t.createAssignment(on, t.createObjectLiteralExpression([ t.createPropertyAssignment("error", Sn) ]))) ]), 1)), t.createBlock([ t.createTryStatement(t.createBlock([ or(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Je), t.createLogicalNot(Ut)), t.createAssignment(br, t.createPropertyAccessExpression(je, "return"))), t.createExpressionStatement(Yt(K))), 1) ]), void 0, or(t.createBlock([ or(t.createIfStatement(on, t.createThrowStatement(t.createPropertyAccessExpression(on, "error"))), 1) ]), 1)) ])); } function xi(_e) { return D.assertNode(_e, Ma), Ji(_e); } function Ji(_e) { return I != null && I.has(_e) ? t.updateParameterDeclaration(_e, void 0, _e.dotDotDotToken, Ja(_e.name) ? t.getGeneratedNameForNode(_e) : _e.name, void 0, void 0, void 0) : _e.transformFlags & 65536 ? t.updateParameterDeclaration(_e, void 0, _e.dotDotDotToken, t.getGeneratedNameForNode(_e), void 0, void 0, st(_e.initializer, ie, yt)) : Bn(_e, ie, e); } function Ki(_e) { let re; for (const me of _e.parameters) re ? re.add(me) : me.transformFlags & 65536 && (re = /* @__PURE__ */ new Set()); return re; } function Rr(_e) { const re = C, me = I; C = Mc(_e), I = Ki(_e); const V = t.updateConstructorDeclaration(_e, _e.modifiers, Wl(_e.parameters, xi, e), _i(_e)); return C = re, I = me, V; } function xt(_e) { const re = C, me = I; C = Mc(_e), I = Ki(_e); const V = t.updateGetAccessorDeclaration(_e, _e.modifiers, st(_e.name, ie, hl), Wl(_e.parameters, xi, e), void 0, _i(_e)); return C = re, I = me, V; } function gn(_e) { const re = C, me = I; C = Mc(_e), I = Ki(_e); const V = t.updateSetAccessorDeclaration(_e, _e.modifiers, st(_e.name, ie, hl), Wl(_e.parameters, xi, e), _i(_e)); return C = re, I = me, V; } function Ht(_e) { const re = C, me = I; C = Mc(_e), I = Ki(_e); const V = t.updateMethodDeclaration(_e, C & 1 ? Kn(_e.modifiers, le, el) : _e.modifiers, C & 2 ? void 0 : _e.asteriskToken, st(_e.name, ie, hl), st(void 0, ie, Rv), void 0, Wl(_e.parameters, xi, e), void 0, C & 2 && C & 1 ? Di(_e) : _i(_e)); return C = re, I = me, V; } function ln(_e) { const re = C, me = I; C = Mc(_e), I = Ki(_e); const V = t.updateFunctionDeclaration(_e, C & 1 ? Kn(_e.modifiers, le, lo) : _e.modifiers, C & 2 ? void 0 : _e.asteriskToken, _e.name, void 0, Wl(_e.parameters, xi, e), void 0, C & 2 && C & 1 ? Di(_e) : _i(_e)); return C = re, I = me, V; } function rr(_e) { const re = C, me = I; C = Mc(_e), I = Ki(_e); const V = t.updateArrowFunction(_e, _e.modifiers, void 0, Wl(_e.parameters, xi, e), void 0, _e.equalsGreaterThanToken, _i(_e)); return C = re, I = me, V; } function lr(_e) { const re = C, me = I; C = Mc(_e), I = Ki(_e); const V = t.updateFunctionExpression(_e, C & 1 ? Kn(_e.modifiers, le, lo) : _e.modifiers, C & 2 ? void 0 : _e.asteriskToken, _e.name, void 0, Wl(_e.parameters, xi, e), void 0, C & 2 && C & 1 ? Di(_e) : _i(_e)); return C = re, I = me, V; } function Di(_e) { i(); const re = [], me = t.copyPrologue(_e.body.statements, re, !1, ie); Rn(re, _e); const V = j, je = te; j = /* @__PURE__ */ new Set(), te = !1; const Qe = t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0, t.createToken(41), _e.name && t.getGeneratedNameForNode(_e.name), void 0, [], void 0, t.updateBlock(_e.body, C5(_e.body.statements, ie, e, me))), !!(k & 1))), Je = d >= 2 && c.getNodeCheckFlags(_e) & 384; if (Je) { en(); const on = O5(t, c, _e, j); X[ds(on)] = !0, wm(re, [on]); } re.push(Qe), wm(re, o()); const Ut = t.updateBlock(_e.body, re); return Je && te && (c.getNodeCheckFlags(_e) & 256 ? dx(Ut, mO) : c.getNodeCheckFlags(_e) & 128 && dx(Ut, pO)), j = V, te = je, Ut; } function _i(_e) { var re; i(); let me = 0; const V = [], je = (re = st(_e.body, ie, EM)) != null ? re : t.createBlock([]); oo(je) && (me = t.copyPrologue(je.statements, V, !1, ie)), yi(V, Rn(void 0, _e)); const Qe = o(); if (me > 0 || kt(V) || kt(Qe)) { const Je = t.converters.convertToFunctionBlock(je, !0); return wm(V, Qe), yi(V, Je.statements.slice(me)), t.updateBlock(Je, mt(t.createNodeArray(V), Je.statements)); } return je; } function Rn(_e, re) { let me = !1; for (const V of re.parameters) if (me) { if (Ja(V.name)) { if (V.name.elements.length > 0) { const je = F1(V, ie, e, 0, t.getGeneratedNameForNode(V)); if (kt(je)) { const Qe = t.createVariableDeclarationList(je), Je = t.createVariableStatement(void 0, Qe); or(Je, 2097152), _e = Fn(_e, Je); } } else if (V.initializer) { const je = t.getGeneratedNameForNode(V), Qe = st(V.initializer, ie, yt), Je = t.createAssignment(je, Qe), Ut = t.createExpressionStatement(Je); or(Ut, 2097152), _e = Fn(_e, Ut); } } else if (V.initializer) { const je = t.cloneNode(V.name); mt(je, V.name), or(je, 96); const Qe = st(V.initializer, ie, yt); Kp(Qe, 3168); const Je = t.createAssignment(je, Qe); mt(Je, V), or(Je, 3072); const Ut = t.createBlock([t.createExpressionStatement(Je)]); mt(Ut, V), or(Ut, 3905); const on = t.createTypeCheck(t.cloneNode(V.name), "undefined"), Sn = t.createIfStatement(on, Ut); Pu(Sn), mt(Sn, V), or(Sn, 2101056), _e = Fn(_e, Sn); } } else if (V.transformFlags & 65536) { me = !0; const je = F1(V, ie, e, 1, t.getGeneratedNameForNode(V), !1, !0); if (kt(je)) { const Qe = t.createVariableDeclarationList(je), Je = t.createVariableStatement(void 0, Qe); or(Je, 2097152), _e = Fn(_e, Je); } } return _e; } function en() { A & 1 || (A |= 1, e.enableSubstitution(210), e.enableSubstitution(208), e.enableSubstitution(209), e.enableEmitNotification(260), e.enableEmitNotification(171), e.enableEmitNotification(174), e.enableEmitNotification(175), e.enableEmitNotification(173), e.enableEmitNotification(240)); } function Pn(_e, re, me) { if (A & 1 && xe(re)) { const V = c.getNodeCheckFlags(re) & 384; if (V !== O) { const je = O; O = V, y(_e, re, me), O = je; return; } } else if (A && X[ds(re)]) { const V = O; O = 0, y(_e, re, me), O = V; return; } y(_e, re, me); } function xr(_e, re) { return re = m(_e, re), _e === 1 && O ? Ur(re) : re; } function Ur(_e) { switch (_e.kind) { case 208: return Ie(_e); case 209: return gt(_e); case 210: return Nt(_e); } return _e; } function Ie(_e) { return _e.expression.kind === 106 ? mt(t.createPropertyAccessExpression(t.createUniqueName("_super", 48), _e.name), _e) : _e; } function gt(_e) { return _e.expression.kind === 106 ? _t(_e.argumentExpression, _e) : _e; } function Nt(_e) { const re = _e.expression; if (ad(re)) { const me = Pr(re) ? Ie(re) : gt(re); return t.createCallExpression(t.createPropertyAccessExpression(me, "call"), void 0, [ t.createThis(), ..._e.arguments ]); } return _e; } function xe(_e) { const re = _e.kind; return re === 260 || re === 173 || re === 171 || re === 174 || re === 175; } function _t(_e, re) { return O & 256 ? mt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"), void 0, [_e]), "value"), re) : mt(t.createCallExpression(t.createIdentifier("_superIndex"), void 0, [_e]), re); } } var jMe = L({ "src/compiler/transformers/es2018.ts"() { Ra(); } }); function Yme(e) { const t = e.factory; return W_(e, r); function r(s) { return s.isDeclarationFile ? s : Bn(s, i, e); } function i(s) { if (!(s.transformFlags & 64)) return s; switch (s.kind) { case 295: return o(s); default: return Bn(s, i, e); } } function o(s) { return s.variableDeclaration ? Bn(s, i, e) : t.updateCatchClause(s, t.createVariableDeclaration(t.createTempVariable(void 0)), st(s.block, i, oo)); } } var HMe = L({ "src/compiler/transformers/es2019.ts"() { Ra(); } }); function $me(e) { const { factory: t, hoistVariableDeclaration: r } = e; return W_(e, i); function i(I) { return I.isDeclarationFile ? I : Bn(I, o, e); } function o(I) { if (!(I.transformFlags & 32)) return I; switch (I.kind) { case 210: { const O = d(I, !1); return D.assertNotNode(O, Sx), O; } case 208: case 209: if (fu(I)) { const O = m(I, !1, !1); return D.assertNotNode(O, Sx), O; } return Bn(I, o, e); case 223: return I.operatorToken.kind === 60 ? A(I) : Bn(I, o, e); case 217: return C(I); default: return Bn(I, o, e); } } function s(I) { D.assertNotNode(I, mM); const O = [I]; for (; !I.questionDotToken && !bT(I); ) I = ro(D_(I.expression), fu), D.assertNotNode(I, mM), O.unshift(I); return { expression: I.expression, chain: O }; } function c(I, O, k) { const B = y(I.expression, O, k); return Sx(B) ? t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(I, B.expression), B.thisArg) : t.updateParenthesizedExpression(I, B); } function f(I, O, k) { if (fu(I)) return m(I, O, k); let B = st(I.expression, o, yt); D.assertNotNode(B, Sx); let U; return O && (M1(B) ? U = B : (U = t.createTempVariable(r), B = t.createAssignment(U, B))), B = I.kind === 208 ? t.updatePropertyAccessExpression(I, B, st(I.name, o, Ve)) : t.updateElementAccessExpression(I, B, st(I.argumentExpression, o, yt)), U ? t.createSyntheticReferenceExpression(B, U) : B; } function d(I, O) { if (fu(I)) return m(I, O, !1); if (Pd(I.expression) && fu(Us(I.expression))) { const k = c(I.expression, !0, !1), B = Kn(I.arguments, o, yt); return Sx(k) ? mt(t.createFunctionCallCall(k.expression, k.thisArg, B), I) : t.updateCallExpression(I, k, void 0, B); } return Bn(I, o, e); } function y(I, O, k) { switch (I.kind) { case 214: return c(I, O, k); case 208: case 209: return f(I, O, k); case 210: return d(I, O); default: return st(I, o, yt); } } function m(I, O, k) { const { expression: B, chain: U } = s(I), j = y(D_(B), YE(U[0]), !1); let te = Sx(j) ? j.thisArg : void 0, X = Sx(j) ? j.expression : j, Y = t.restoreOuterExpressions(B, X, 8); M1(X) || (X = t.createTempVariable(r), Y = t.createAssignment(X, Y)); let P = X, ue; for (let ge = 0; ge < U.length; ge++) { const ie = U[ge]; switch (ie.kind) { case 208: case 209: ge === U.length - 1 && O && (M1(P) ? ue = P : (ue = t.createTempVariable(r), P = t.createAssignment(ue, P))), P = ie.kind === 208 ? t.createPropertyAccessExpression(P, st(ie.name, o, Ve)) : t.createElementAccessExpression(P, st(ie.argumentExpression, o, yt)); break; case 210: ge === 0 && te ? (El(te) || (te = t.cloneNode(te), Kp(te, 3072)), P = t.createFunctionCallCall(P, te.kind === 106 ? t.createThis() : te, Kn(ie.arguments, o, yt))) : P = t.createCallExpression(P, void 0, Kn(ie.arguments, o, yt)); break; } Vr(P, ie); } const ne = k ? t.createConditionalExpression(b(Y, X, !0), void 0, t.createTrue(), void 0, t.createDeleteExpression(P)) : t.createConditionalExpression(b(Y, X, !0), void 0, t.createVoidZero(), void 0, P); return mt(ne, I), ue ? t.createSyntheticReferenceExpression(ne, ue) : ne; } function b(I, O, k) { return t.createBinaryExpression(t.createBinaryExpression(I, t.createToken(k ? 36 : 37), t.createNull()), t.createToken(k ? 56 : 55), t.createBinaryExpression(O, t.createToken(k ? 36 : 37), t.createVoidZero())); } function A(I) { let O = st(I.left, o, yt), k = O; return M1(O) || (k = t.createTempVariable(r), O = t.createAssignment(k, O)), mt(t.createConditionalExpression(b(O, k), void 0, k, void 0, st(I.right, o, yt)), I); } function C(I) { return fu(Us(I.expression)) ? Vr(y(I.expression, !1, !0), I) : t.updateDeleteExpression(I, st(I.expression, o, yt)); } } var WMe = L({ "src/compiler/transformers/es2020.ts"() { Ra(); } }); function Qme(e) { const { hoistVariableDeclaration: t, factory: r } = e; return W_(e, i); function i(c) { return c.isDeclarationFile ? c : Bn(c, o, e); } function o(c) { return c.transformFlags & 16 ? Lz(c) ? s(c) : Bn(c, o, e) : c; } function s(c) { const f = c.operatorToken, d = Hk(f.kind); let y = Us(st(c.left, o, gd)), m = y; const b = Us(st(c.right, o, yt)); if (ol(y)) { const A = M1(y.expression), C = A ? y.expression : r.createTempVariable(t), I = A ? y.expression : r.createAssignment(C, y.expression); if (Pr(y)) m = r.createPropertyAccessExpression(C, y.name), y = r.createPropertyAccessExpression(I, y.name); else { const O = M1(y.argumentExpression), k = O ? y.argumentExpression : r.createTempVariable(t); m = r.createElementAccessExpression(C, k), y = r.createElementAccessExpression(I, O ? y.argumentExpression : r.createAssignment(k, y.argumentExpression)); } } return r.createBinaryExpression(y, d, r.createParenthesizedExpression(r.createAssignment(m, b))); } } var zMe = L({ "src/compiler/transformers/es2021.ts"() { Ra(); } }); function Zme(e) { return W_(e, t); function t(i) { return i.isDeclarationFile ? i : Bn(i, r, e); } function r(i) { if (!(i.transformFlags & 4)) return i; switch (i.kind) { default: return Bn(i, r, e); } } } var qMe = L({ "src/compiler/transformers/esnext.ts"() { Ra(); } }); function ehe(e) { const { factory: t, getEmitHelperFactory: r } = e, i = e.getCompilerOptions(); let o, s; return W_(e, b); function c() { if (s.filenameDeclaration) return s.filenameDeclaration.name; const Me = t.createVariableDeclaration(t.createUniqueName("_jsxFileName", 48), void 0, void 0, t.createStringLiteral(o.fileName)); return s.filenameDeclaration = Me, s.filenameDeclaration.name; } function f(Me) { return i.jsx === 5 ? "jsxDEV" : Me ? "jsxs" : "jsx"; } function d(Me) { const ot = f(Me); return m(ot); } function y() { return m("Fragment"); } function m(Me) { var ot, At; const bt = Me === "createElement" ? s.importSpecifier : A3(s.importSpecifier, i), Vt = (At = (ot = s.utilizedImplicitRuntimeImports) == null ? void 0 : ot.get(bt)) == null ? void 0 : At.get(Me); if (Vt) return Vt.name; s.utilizedImplicitRuntimeImports || (s.utilizedImplicitRuntimeImports = /* @__PURE__ */ new Map()); let et = s.utilizedImplicitRuntimeImports.get(bt); et || (et = /* @__PURE__ */ new Map(), s.utilizedImplicitRuntimeImports.set(bt, et)); const it = t.createUniqueName(`_${Me}`, 112), nn = t.createImportSpecifier(!1, t.createIdentifier(Me), it); return cfe(it, nn), et.set(Me, nn), it; } function b(Me) { if (Me.isDeclarationFile) return Me; o = Me, s = {}, s.importSpecifier = x3(i, Me); let ot = Bn(Me, A, e); gy(ot, e.readEmitHelpers()); let At = ot.statements; if (s.filenameDeclaration && (At = d1(At.slice(), t.createVariableStatement(void 0, t.createVariableDeclarationList([s.filenameDeclaration], 2)))), s.utilizedImplicitRuntimeImports) { for (const [bt, Vt] of ko(s.utilizedImplicitRuntimeImports.entries())) if (Yl(Me)) { const et = t.createImportDeclaration(void 0, t.createImportClause(!1, void 0, t.createNamedImports(ko(Vt.values()))), t.createStringLiteral(bt), void 0); Dv(et, !1), At = d1(At.slice(), et); } else if (ef(Me)) { const et = t.createVariableStatement(void 0, t.createVariableDeclarationList([ t.createVariableDeclaration(t.createObjectBindingPattern(ko(Vt.values(), (it) => t.createBindingElement(void 0, it.propertyName, it.name))), void 0, void 0, t.createCallExpression(t.createIdentifier("require"), void 0, [t.createStringLiteral(bt)])) ], 2)); Dv(et, !1), At = d1(At.slice(), et); } } return At !== ot.statements && (ot = t.updateSourceFile(ot, At)), s = void 0, ot; } function A(Me) { return Me.transformFlags & 2 ? C(Me) : Me; } function C(Me) { switch (Me.kind) { case 281: return B(Me, !1); case 282: return U(Me, !1); case 285: return j(Me, !1); case 291: return He(Me); default: return Bn(Me, A, e); } } function I(Me) { switch (Me.kind) { case 11: return $e(Me); case 291: return He(Me); case 281: return B(Me, !0); case 282: return U(Me, !0); case 285: return j(Me, !0); default: return D.failBadSyntaxKind(Me); } } function O(Me) { let ot = !1; for (const At of Me.attributes.properties) if (ST(At)) ot = !0; else if (ot && $p(At) && At.name.escapedText === "key") return !0; return !1; } function k(Me) { return s.importSpecifier === void 0 || O(Me); } function B(Me, ot) { return (k(Me.openingElement) ? ue : Y)(Me.openingElement, Me.children, ot, Me); } function U(Me, ot) { return (k(Me) ? ue : Y)(Me, void 0, ot, Me); } function j(Me, ot) { return (s.importSpecifier === void 0 ? ge : ne)(Me.openingFragment, Me.children, ot, Me); } function te(Me) { const ot = X(Me); return ot && t.createObjectLiteralExpression([ot]); } function X(Me) { const ot = IN(Me); if (Ne(ot) === 1 && !ot[0].dotDotDotToken) { const bt = I(ot[0]); return bt && t.createPropertyAssignment("children", bt); } const At = _a(Me, I); return Ne(At) ? t.createPropertyAssignment("children", t.createArrayLiteralExpression(At)) : void 0; } function Y(Me, ot, At, bt) { const Vt = Pe(Me), et = ot && ot.length ? X(ot) : void 0, it = un(Me.attributes.properties, (On) => !!On.name && Ve(On.name) && On.name.escapedText === "key"), nn = it ? yn(Me.attributes.properties, (On) => On !== it) : Me.attributes.properties, Xt = Ne(nn) ? H(nn, et) : t.createObjectLiteralExpression(et ? [et] : nt); return P(Vt, Xt, it, ot || nt, At, bt); } function P(Me, ot, At, bt, Vt, et) { var it; const nn = IN(bt), Xt = Ne(nn) > 1 || !!((it = nn[0]) != null && it.dotDotDotToken), On = [Me, ot]; if (At && On.push(ee(At.initializer)), i.jsx === 5) { const In = bl(o); if (In && ji(In)) { At === void 0 && On.push(t.createVoidZero()), On.push(Xt ? t.createTrue() : t.createFalse()); const Yt = il(In, et.pos); On.push(t.createObjectLiteralExpression([ t.createPropertyAssignment("fileName", c()), t.createPropertyAssignment("lineNumber", t.createNumericLiteral(Yt.line + 1)), t.createPropertyAssignment("columnNumber", t.createNumericLiteral(Yt.character + 1)) ])), On.push(t.createThis()); } } const Hn = mt(t.createCallExpression(d(Xt), void 0, On), et); return Vt && Pu(Hn), Hn; } function ue(Me, ot, At, bt) { const Vt = Pe(Me), et = Me.attributes.properties, it = Ne(et) ? H(et) : t.createNull(), nn = s.importSpecifier === void 0 ? hJ(t, e.getEmitResolver().getJsxFactoryEntity(o), i.reactNamespace, Me) : m("createElement"), Xt = Vfe(t, nn, Vt, it, _a(ot, I), bt); return At && Pu(Xt), Xt; } function ne(Me, ot, At, bt) { let Vt; if (ot && ot.length) { const et = te(ot); et && (Vt = et); } return P(y(), Vt || t.createObjectLiteralExpression([]), void 0, ot, At, bt); } function ge(Me, ot, At, bt) { const Vt = jfe(t, e.getEmitResolver().getJsxFactoryEntity(o), e.getEmitResolver().getJsxFragmentFactoryEntity(o), i.reactNamespace, _a(ot, I), Me, bt); return At && Pu(Vt), Vt; } function ie(Me) { return t.createSpreadAssignment(D.checkDefined(st(Me.expression, A, yt))); } function H(Me, ot) { const At = $o(i); return At && At >= 5 ? t.createObjectLiteralExpression(le(Me, ot)) : pe(Me, ot); } function le(Me, ot) { const At = nd(vP(Me, ST, (bt, Vt) => rn(bt, (et) => Vt ? ie(et) : Te(et)))); return ot && At.push(ot), At; } function pe(Me, ot) { const At = nd(vP(Me, ST, (bt, Vt) => Vt ? rn(bt, ye) : t.createObjectLiteralExpression(rn(bt, Te)))); return ST(Me[0]) && At.unshift(t.createObjectLiteralExpression()), ot && At.push(t.createObjectLiteralExpression([ot])), bm(At) || r().createAssignHelper(At); } function ye(Me) { return D.checkDefined(st(Me.expression, A, yt)); } function Te(Me) { const ot = Ke(Me), At = ee(Me.initializer); return t.createPropertyAssignment(ot, At); } function ee(Me) { if (Me === void 0) return t.createTrue(); if (Me.kind === 10) { const ot = Me.singleQuote !== void 0 ? Me.singleQuote : !QM(Me, o), At = t.createStringLiteral(Re(Me.text) || Me.text, ot); return mt(At, Me); } return Me.kind === 291 ? Me.expression === void 0 ? t.createTrue() : D.checkDefined(st(Me.expression, A, yt)) : Ey(Me) ? B(Me, !1) : xx(Me) ? U(Me, !1) : Cx(Me) ? j(Me, !1) : D.failBadSyntaxKind(Me); } function $e(Me) { const ot = Ge(Me.text); return ot === void 0 ? void 0 : t.createStringLiteral(ot); } function Ge(Me) { let ot, At = 0, bt = -1; for (let Vt = 0; Vt < Me.length; Vt++) { const et = Me.charCodeAt(Vt); uu(et) ? (At !== -1 && bt !== -1 && (ot = Fe(ot, Me.substr(At, bt - At + 1))), At = -1) : Cm(et) || (bt = Vt, At === -1 && (At = Vt)); } return At !== -1 ? Fe(ot, Me.substr(At)) : ot; } function Fe(Me, ot) { const At = We(ot); return Me === void 0 ? At : Me + " " + At; } function We(Me) { return Me.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g, (ot, At, bt, Vt, et, it, nn) => { if (et) return lI(parseInt(et, 10)); if (it) return lI(parseInt(it, 16)); { const Xt = the.get(nn); return Xt ? lI(Xt) : ot; } }); } function Re(Me) { const ot = We(Me); return ot === Me ? void 0 : ot; } function Pe(Me) { if (Me.kind === 281) return Pe(Me.openingElement); { const ot = Me.tagName; return Ve(ot) && FI(ot.escapedText) ? t.createStringLiteral(Or(ot)) : kO(t, ot); } } function Ke(Me) { const ot = Me.name, At = Or(ot); return /^[A-Za-z_]\w*$/.test(At) ? ot : t.createStringLiteral(At); } function He(Me) { const ot = st(Me.expression, A, yt); return Me.dotDotDotToken ? t.createSpreadElement(ot) : ot; } } var the, JMe = L({ "src/compiler/transformers/jsx.ts"() { Ra(), the = 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 nhe(e) { const { factory: t, hoistVariableDeclaration: r } = e; return W_(e, i); function i(d) { return d.isDeclarationFile ? d : Bn(d, o, e); } function o(d) { if (!(d.transformFlags & 512)) return d; switch (d.kind) { case 223: return s(d); default: return Bn(d, o, e); } } function s(d) { switch (d.operatorToken.kind) { case 67: return c(d); case 42: return f(d); default: return Bn(d, o, e); } } function c(d) { let y, m; const b = st(d.left, o, yt), A = st(d.right, o, yt); if (sl(b)) { const C = t.createTempVariable(r), I = t.createTempVariable(r); y = mt(t.createElementAccessExpression(mt(t.createAssignment(C, b.expression), b.expression), mt(t.createAssignment(I, b.argumentExpression), b.argumentExpression)), b), m = mt(t.createElementAccessExpression(C, I), b); } else if (Pr(b)) { const C = t.createTempVariable(r); y = mt(t.createPropertyAccessExpression(mt(t.createAssignment(C, b.expression), b.expression), b.name), b), m = mt(t.createPropertyAccessExpression(C, b.name), b); } else y = b, m = b; return mt(t.createAssignment(y, mt(t.createGlobalMethodCall("Math", "pow", [m, A]), d)), d); } function f(d) { const y = st(d.left, o, yt), m = st(d.right, o, yt); return mt(t.createGlobalMethodCall("Math", "pow", [y, m]), d); } } var KMe = L({ "src/compiler/transformers/es2016.ts"() { Ra(); } }); function rhe(e, t) { return { kind: e, expression: t }; } function ihe(e) { const { factory: t, getEmitHelperFactory: r, startLexicalEnvironment: i, resumeLexicalEnvironment: o, endLexicalEnvironment: s, hoistVariableDeclaration: c } = e, f = e.getCompilerOptions(), d = e.getEmitResolver(), y = e.onSubstituteNode, m = e.onEmitNode; e.onEmitNode = ld, e.onSubstituteNode = ul; let b, A, C, I; function O(ae) { I = Fn(I, t.createVariableDeclaration(ae)); } let k, B; return W_(e, U); function U(ae) { if (ae.isDeclarationFile) return ae; b = ae, A = ae.text; const lt = le(ae); return gy(lt, e.readEmitHelpers()), b = void 0, A = void 0, I = void 0, C = 0, lt; } function j(ae, lt) { const Mt = C; return C = (C & ~ae | lt) & 32767, Mt; } function te(ae, lt, Mt) { C = (C & ~lt | Mt) & -32768 | ae; } function X(ae) { return (C & 8192) !== 0 && ae.kind === 250 && !ae.expression; } function Y(ae) { return ae.transformFlags & 4194304 && (pp(ae) || ET(ae) || kfe(ae) || TO(ae) || xO(ae) || Ak(ae) || CO(ae) || SO(ae) || mC(ae) || k1(ae) || Tv(ae, !1) || oo(ae)); } function P(ae) { return (ae.transformFlags & 1024) !== 0 || k !== void 0 || C & 8192 && Y(ae) || Tv(ae, !1) && ii(ae) || (R_(ae) & 1) !== 0; } function ue(ae) { return P(ae) ? H(ae, !1) : ae; } function ne(ae) { return P(ae) ? H(ae, !0) : ae; } function ge(ae) { if (P(ae)) { const lt = bl(ae); if (Za(lt) && _c(lt)) { const Mt = j(32670, 16449), Pt = H(ae, !1); return te(Mt, 98304, 0), Pt; } return H(ae, !1); } return ae; } function ie(ae) { return ae.kind === 106 ? cl(!0) : ue(ae); } function H(ae, lt) { switch (ae.kind) { case 124: return; case 260: return Re(ae); case 228: return Pe(ae); case 166: return On(ae); case 259: return en(ae); case 216: return _i(ae); case 215: return Rn(ae); case 257: return Qe(ae); case 79: return Fe(ae); case 258: return re(ae); case 252: return pe(ae); case 266: return ye(ae); case 238: return Ur(ae, !1); case 249: case 248: return We(ae); case 253: return on(ae); case 243: case 244: return ce(ae, void 0); case 245: return pt(ae, void 0); case 246: return rt(ae, void 0); case 247: return K(ae, void 0); case 241: return Ie(ae); case 207: return Rt(ae); case 295: return rc(ae); case 300: return Qs(ae); case 164: return qs(ae); case 206: return Gl(ae); case 210: return yu(ae); case 211: return jt(ae); case 214: return gt(ae, lt); case 223: return Nt(ae, lt); case 357: return xe(ae, lt); case 14: case 15: case 16: case 17: return va(ae); case 10: return as(ae); case 8: return _o(ae); case 212: return Uo(ae); case 225: return Ka(ae); case 226: return Zt(ae); case 227: return Nr(ae); case 106: return cl(!1); case 108: return $e(ae); case 233: return lc(ae); case 171: return ks(ae); case 174: case 175: return pl(ae); case 240: return _e(ae); case 250: return ee(ae); case 219: return Ge(ae); default: return Bn(ae, ue, e); } } function le(ae) { const lt = j(8064, 64), Mt = [], Pt = []; i(); const sn = t.copyPrologue(ae.statements, Mt, !1, ue); return yi(Pt, Kn(ae.statements, ue, Ia, sn)), I && Pt.push(t.createVariableStatement(void 0, t.createVariableDeclarationList(I))), t.mergeLexicalEnvironment(Mt, s()), Ki(Mt, ae), te(lt, 0, 0), t.updateSourceFile(ae, mt(t.createNodeArray(ha(Mt, Pt)), ae.statements)); } function pe(ae) { if (k !== void 0) { const lt = k.allowedNonLabeledJumps; k.allowedNonLabeledJumps |= 2; const Mt = Bn(ae, ue, e); return k.allowedNonLabeledJumps = lt, Mt; } return Bn(ae, ue, e); } function ye(ae) { const lt = j(7104, 0), Mt = Bn(ae, ue, e); return te(lt, 0, 0), Mt; } function Te(ae) { return Vr(t.createReturnStatement(t.createUniqueName("_this", 48)), ae); } function ee(ae) { return k ? (k.nonLocalJumps |= 8, X(ae) && (ae = Te(ae)), t.createReturnStatement(t.createObjectLiteralExpression([ t.createPropertyAssignment(t.createIdentifier("value"), ae.expression ? D.checkDefined(st(ae.expression, ue, yt)) : t.createVoidZero()) ]))) : X(ae) ? Te(ae) : Bn(ae, ue, e); } function $e(ae) { return C & 2 && !(C & 16384) && (C |= 65536), k ? C & 2 ? (k.containsLexicalThis = !0, ae) : k.thisName || (k.thisName = t.createUniqueName("this")) : ae; } function Ge(ae) { return Bn(ae, ne, e); } function Fe(ae) { return k && d.isArgumentsLocalBinding(ae) ? k.argumentsName || (k.argumentsName = t.createUniqueName("arguments")) : ae.flags & 128 ? Vr(mt(t.createIdentifier(Zi(ae.escapedText)), ae), ae) : ae; } function We(ae) { if (k) { const lt = ae.kind === 249 ? 2 : 4; if (!(ae.label && k.labels && k.labels.get(Or(ae.label)) || !ae.label && k.allowedNonLabeledJumps & lt)) { let Pt; const sn = ae.label; sn ? ae.kind === 249 ? (Pt = `break-${sn.escapedText}`, Fl(k, !0, Or(sn), Pt)) : (Pt = `continue-${sn.escapedText}`, Fl(k, !1, Or(sn), Pt)) : ae.kind === 249 ? (k.nonLocalJumps |= 2, Pt = "break") : (k.nonLocalJumps |= 4, Pt = "continue"); let jn = t.createStringLiteral(Pt); if (k.loopOutParameters.length) { const wr = k.loopOutParameters; let Zr; for (let Ri = 0; Ri < wr.length; Ri++) { const Ua = $l(wr[Ri], 1); Ri === 0 ? Zr = Ua : Zr = t.createBinaryExpression(Zr, 27, Ua); } jn = t.createBinaryExpression(Zr, 27, jn); } return t.createReturnStatement(jn); } } return Bn(ae, ue, e); } function Re(ae) { const lt = t.createVariableDeclaration(t.getLocalName(ae, !0), void 0, void 0, Ke(ae)); Vr(lt, ae); const Mt = [], Pt = t.createVariableStatement(void 0, t.createVariableDeclarationList([lt])); if (Vr(Pt, ae), mt(Pt, ae), Pu(Pt), Mt.push(Pt), Jr(ae, 1)) { const jn = Jr(ae, 1024) ? t.createExportDefault(t.getLocalName(ae)) : t.createExternalModuleExport(t.getLocalName(ae)); Vr(jn, Pt), Mt.push(jn); } const sn = ho(ae); return sn & 8388608 || (Mt.push(t.createEndOfDeclarationMarker(ae)), or(Pt, sn | 8388608)), Em(Mt); } function Pe(ae) { return Ke(ae); } function Ke(ae) { ae.name && vs(); const lt = y1(ae), Mt = t.createFunctionExpression(void 0, void 0, void 0, void 0, lt ? [t.createParameterDeclaration(void 0, void 0, t.createUniqueName("_super", 48))] : [], void 0, He(ae, lt)); or(Mt, ho(ae) & 131072 | 1048576); const Pt = t.createPartiallyEmittedExpression(Mt); $A(Pt, ae.end), or(Pt, 3072); const sn = t.createPartiallyEmittedExpression(Pt); $A(sn, zo(A, ae.pos)), or(sn, 3072); const jn = t.createParenthesizedExpression(t.createCallExpression(sn, void 0, lt ? [D.checkDefined(st(lt.expression, ue, yt))] : [])); return uO(jn, 3, "* @class "), jn; } function He(ae, lt) { const Mt = [], Pt = t.getInternalName(ae), sn = a3(Pt) ? t.getGeneratedNameForNode(Pt) : Pt; i(), Me(Mt, ae, lt), ot(Mt, ae, sn, lt), Ht(Mt, ae); const jn = Rz(zo(A, ae.members.end), 19), wr = t.createPartiallyEmittedExpression(sn); $A(wr, jn.end), or(wr, 3072); const Zr = t.createReturnStatement(wr); ik(Zr, jn.pos), or(Zr, 3840), Mt.push(Zr), wm(Mt, s()); const Ri = t.createBlock(mt(t.createNodeArray(Mt), ae.members), !0); return or(Ri, 3072), Ri; } function Me(ae, lt, Mt) { Mt && ae.push(mt(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(lt))), Mt)); } function ot(ae, lt, Mt, Pt) { const sn = k; k = void 0; const jn = j(32662, 73), wr = hh(lt), Zr = xo(wr, Pt !== void 0), Ri = t.createFunctionDeclaration(void 0, void 0, Mt, void 0, At(wr, Zr), void 0, Vt(wr, lt, Pt, Zr)); mt(Ri, wr || lt), Pt && or(Ri, 16), ae.push(Ri), te(jn, 98304, 0), k = sn; } function At(ae, lt) { return Wl(ae && !lt ? ae.parameters : void 0, ue, e) || []; } function bt(ae, lt) { const Mt = []; o(), t.mergeLexicalEnvironment(Mt, s()), lt && Mt.push(t.createReturnStatement(Xt())); const Pt = t.createNodeArray(Mt); mt(Pt, ae.members); const sn = t.createBlock(Pt, !0); return mt(sn, ae), or(sn, 3072), sn; } function Vt(ae, lt, Mt, Pt) { const sn = !!Mt && pu(Mt.expression).kind !== 104; if (!ae) return bt(lt, sn); const jn = [], wr = []; o(); const Zr = wP(ae.body.statements, dp), { superCall: Ri, superStatementIndex: Ua } = et(ae.body.statements, Zr), Vo = Ua === -1 ? Zr.length : Ua + 1; let bs = Vo; Pt || (bs = t.copyStandardPrologue(ae.body.statements, jn, bs, !1)), Pt || (bs = t.copyCustomPrologue(ae.body.statements, wr, bs, ue, void 0)); let Js; if (Pt ? Js = Xt() : Ri && (Js = de(Ri)), Js && (C |= 8192), In(jn, ae), Ji(jn, ae, Pt), yi(wr, Kn(ae.body.statements, ue, Ia, bs)), t.mergeLexicalEnvironment(jn, s()), gn(jn, ae, !1), sn || Js) if (Js && Vo === ae.body.statements.length && !(ae.body.transformFlags & 16384)) { const sf = ro(ro(Js, vr).left, eo), Ql = t.createReturnStatement(Js); Bc(Ql, Fm(sf)), or(sf, 3072), wr.push(Ql); } else Ua <= Zr.length ? xt(wr, ae, Js || nn()) : (xt(jn, ae, nn()), Js && Rr(wr, Js)), it(ae.body) || wr.push(t.createReturnStatement(t.createUniqueName("_this", 48))); else Ki(jn, ae); const cd = t.createBlock(mt(t.createNodeArray([ ...Zr, ...jn, ...Ua <= Zr.length ? nt : Kn(ae.body.statements, ue, Ia, Zr.length, Ua - Zr.length), ...wr ]), ae.body.statements), !0); return mt(cd, ae.body), cd; } function et(ae, lt) { for (let Mt = lt.length; Mt < ae.length; Mt += 1) { const Pt = WK(ae[Mt]); if (Pt) return { superCall: Pt, superStatementIndex: Mt }; } return { superStatementIndex: -1 }; } function it(ae) { if (ae.kind === 250) return !0; if (ae.kind === 242) { const lt = ae; if (lt.elseStatement) return it(lt.thenStatement) && it(lt.elseStatement); } else if (ae.kind === 238) { const lt = Zs(ae.statements); if (lt && it(lt)) return !0; } return !1; } function nn() { return or(t.createThis(), 8); } function Xt() { return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(t.createUniqueName("_super", 48), t.createNull()), t.createFunctionApplyCall(t.createUniqueName("_super", 48), nn(), t.createIdentifier("arguments"))), nn()); } function On(ae) { if (!ae.dotDotDotToken) return Ja(ae.name) ? Vr(mt(t.createParameterDeclaration(void 0, void 0, t.getGeneratedNameForNode(ae), void 0, void 0, void 0), ae), ae) : ae.initializer ? Vr(mt(t.createParameterDeclaration(void 0, void 0, ae.name, void 0, void 0, void 0), ae), ae) : ae; } function Hn(ae) { return ae.initializer !== void 0 || Ja(ae.name); } function In(ae, lt) { if (!kt(lt.parameters, Hn)) return !1; let Mt = !1; for (const Pt of lt.parameters) { const { name: sn, initializer: jn, dotDotDotToken: wr } = Pt; wr || (Ja(sn) ? Mt = Yt(ae, Pt, sn, jn) || Mt : jn && (fr(ae, Pt, sn, jn), Mt = !0)); } return Mt; } function Yt(ae, lt, Mt, Pt) { return Mt.elements.length > 0 ? (d1(ae, or(t.createVariableStatement(void 0, t.createVariableDeclarationList(F1(lt, ue, e, 0, t.getGeneratedNameForNode(lt)))), 2097152)), !0) : Pt ? (d1(ae, or(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(lt), D.checkDefined(st(Pt, ue, yt)))), 2097152)), !0) : !1; } function fr(ae, lt, Mt, Pt) { Pt = D.checkDefined(st(Pt, ue, yt)); const sn = t.createIfStatement(t.createTypeCheck(t.cloneNode(Mt), "undefined"), or(mt(t.createBlock([ t.createExpressionStatement(or(mt(t.createAssignment(or(Bo(mt(t.cloneNode(Mt), Mt), Mt.parent), 96), or(Pt, 96 | ho(Pt) | 3072)), lt), 3072)) ]), lt), 3905)); Pu(sn), mt(sn, lt), or(sn, 2101056), d1(ae, sn); } function xi(ae, lt) { return !!(ae && ae.dotDotDotToken && !lt); } function Ji(ae, lt, Mt) { const Pt = [], sn = Zs(lt.parameters); if (!xi(sn, Mt)) return !1; const jn = sn.name.kind === 79 ? Bo(mt(t.cloneNode(sn.name), sn.name), sn.name.parent) : t.createTempVariable(void 0); or(jn, 96); const wr = sn.name.kind === 79 ? t.cloneNode(sn.name) : jn, Zr = lt.parameters.length - 1, Ri = t.createLoopVariable(); Pt.push(or(mt(t.createVariableStatement(void 0, t.createVariableDeclarationList([ t.createVariableDeclaration(jn, void 0, void 0, t.createArrayLiteralExpression([])) ])), sn), 2097152)); const Ua = t.createForStatement(mt(t.createVariableDeclarationList([ t.createVariableDeclaration(Ri, void 0, void 0, t.createNumericLiteral(Zr)) ]), sn), mt(t.createLessThan(Ri, t.createPropertyAccessExpression(t.createIdentifier("arguments"), "length")), sn), mt(t.createPostfixIncrement(Ri), sn), t.createBlock([ Pu(mt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(wr, Zr === 0 ? Ri : t.createSubtract(Ri, t.createNumericLiteral(Zr))), t.createElementAccessExpression(t.createIdentifier("arguments"), Ri))), sn)) ])); return or(Ua, 2097152), Pu(Ua), Pt.push(Ua), sn.name.kind !== 79 && Pt.push(or(mt(t.createVariableStatement(void 0, t.createVariableDeclarationList(F1(sn, ue, e, 0, wr))), sn), 2097152)), TW(ae, Pt), !0; } function Ki(ae, lt) { return C & 65536 && lt.kind !== 216 ? (xt(ae, lt, t.createThis()), !0) : !1; } function Rr(ae, lt) { ls(); const Mt = t.createExpressionStatement(t.createBinaryExpression(t.createThis(), 63, lt)); d1(ae, Mt), Bc(Mt, bl(lt).parent); } function xt(ae, lt, Mt) { ls(); const Pt = t.createVariableStatement(void 0, t.createVariableDeclarationList([ t.createVariableDeclaration(t.createUniqueName("_this", 48), void 0, void 0, Mt) ])); or(Pt, 2100224), cs(Pt, lt), d1(ae, Pt); } function gn(ae, lt, Mt) { if (C & 32768) { let Pt; switch (lt.kind) { case 216: return ae; case 171: case 174: case 175: Pt = t.createVoidZero(); break; case 173: Pt = t.createPropertyAccessExpression(or(t.createThis(), 8), "constructor"); break; case 259: case 215: Pt = t.createConditionalExpression(t.createLogicalAnd(or(t.createThis(), 8), t.createBinaryExpression(or(t.createThis(), 8), 102, t.getLocalName(lt))), void 0, t.createPropertyAccessExpression(or(t.createThis(), 8), "constructor"), void 0, t.createVoidZero()); break; default: return D.failBadSyntaxKind(lt); } const sn = t.createVariableStatement(void 0, t.createVariableDeclarationList([ t.createVariableDeclaration(t.createUniqueName("_newTarget", 48), void 0, void 0, Pt) ])); or(sn, 2100224), Mt && (ae = ae.slice()), d1(ae, sn); } return ae; } function Ht(ae, lt) { for (const Mt of lt.members) switch (Mt.kind) { case 237: ae.push(ln(Mt)); break; case 171: ae.push(rr(zi(lt, Mt), Mt, lt)); break; case 174: case 175: const Pt = pT(lt.members, Mt); Mt === Pt.firstAccessor && ae.push(lr(zi(lt, Mt), Pt, lt)); break; case 173: case 172: break; default: D.failBadSyntaxKind(Mt, b && b.fileName); break; } } function ln(ae) { return mt(t.createEmptyStatement(), ae); } function rr(ae, lt, Mt) { const Pt = Fm(lt), sn = K0(lt), jn = Pn(lt, lt, void 0, Mt), wr = st(lt.name, ue, hl); D.assert(wr); let Zr; if (!ki(wr) && WN(e.getCompilerOptions())) { const Ua = Ss(wr) ? wr.expression : Ve(wr) ? t.createStringLiteral(Zi(wr.escapedText)) : wr; Zr = t.createObjectDefinePropertyCall(ae, Ua, t.createPropertyDescriptor({ value: jn, enumerable: !1, writable: !0, configurable: !0 })); } else { const Ua = CT(t, ae, wr, lt.name); Zr = t.createAssignment(Ua, jn); } or(jn, 3072), cs(jn, sn); const Ri = mt(t.createExpressionStatement(Zr), lt); return Vr(Ri, lt), Bc(Ri, Pt), or(Ri, 96), Ri; } function lr(ae, lt, Mt) { const Pt = t.createExpressionStatement(Di(ae, lt, Mt, !1)); return or(Pt, 3072), cs(Pt, K0(lt.firstAccessor)), Pt; } function Di(ae, { firstAccessor: lt, getAccessor: Mt, setAccessor: Pt }, sn, jn) { const wr = Bo(mt(t.cloneNode(ae), ae), ae.parent); or(wr, 3136), cs(wr, lt.name); const Zr = st(lt.name, ue, hl); if (D.assert(Zr), ki(Zr)) return D.failBadSyntaxKind(Zr, "Encountered unhandled private identifier while transforming ES2015."); const Ri = yJ(t, Zr); or(Ri, 3104), cs(Ri, lt.name); const Ua = []; if (Mt) { const bs = Pn(Mt, void 0, void 0, sn); cs(bs, K0(Mt)), or(bs, 1024); const Js = t.createPropertyAssignment("get", bs); Bc(Js, Fm(Mt)), Ua.push(Js); } if (Pt) { const bs = Pn(Pt, void 0, void 0, sn); cs(bs, K0(Pt)), or(bs, 1024); const Js = t.createPropertyAssignment("set", bs); Bc(Js, Fm(Pt)), Ua.push(Js); } Ua.push(t.createPropertyAssignment("enumerable", Mt || Pt ? t.createFalse() : t.createTrue()), t.createPropertyAssignment("configurable", t.createTrue())); const Vo = t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"), "defineProperty"), void 0, [ wr, Ri, t.createObjectLiteralExpression(Ua, !0) ]); return jn && Pu(Vo), Vo; } function _i(ae) { ae.transformFlags & 16384 && !(C & 16384) && (C |= 65536); const lt = k; k = void 0; const Mt = j(15232, 66), Pt = t.createFunctionExpression(void 0, void 0, void 0, void 0, Wl(ae.parameters, ue, e), void 0, xr(ae)); return mt(Pt, ae), Vr(Pt, ae), or(Pt, 16), te(Mt, 0, 0), k = lt, Pt; } function Rn(ae) { const lt = ho(ae) & 524288 ? j(32662, 69) : j(32670, 65), Mt = k; k = void 0; const Pt = Wl(ae.parameters, ue, e), sn = xr(ae), jn = C & 32768 ? t.getLocalName(ae) : ae.name; return te(lt, 98304, 0), k = Mt, t.updateFunctionExpression(ae, void 0, ae.asteriskToken, jn, void 0, Pt, void 0, sn); } function en(ae) { const lt = k; k = void 0; const Mt = j(32670, 65), Pt = Wl(ae.parameters, ue, e), sn = xr(ae), jn = C & 32768 ? t.getLocalName(ae) : ae.name; return te(Mt, 98304, 0), k = lt, t.updateFunctionDeclaration(ae, Kn(ae.modifiers, ue, lo), ae.asteriskToken, jn, void 0, Pt, void 0, sn); } function Pn(ae, lt, Mt, Pt) { const sn = k; k = void 0; const jn = Pt && li(Pt) && !za(ae) ? j(32670, 73) : j(32670, 65), wr = Wl(ae.parameters, ue, e), Zr = xr(ae); return C & 32768 && !Mt && (ae.kind === 259 || ae.kind === 215) && (Mt = t.getGeneratedNameForNode(ae)), te(jn, 98304, 0), k = sn, Vr(mt(t.createFunctionExpression(void 0, ae.asteriskToken, Mt, void 0, wr, void 0, Zr), lt), ae); } function xr(ae) { let lt = !1, Mt = !1, Pt, sn; const jn = [], wr = [], Zr = ae.body; let Ri; if (o(), oo(Zr) && (Ri = t.copyStandardPrologue(Zr.statements, jn, 0, !1), Ri = t.copyCustomPrologue(Zr.statements, wr, Ri, ue, FM), Ri = t.copyCustomPrologue(Zr.statements, wr, Ri, ue, BM)), lt = In(wr, ae) || lt, lt = Ji(wr, ae, !1) || lt, oo(Zr)) Ri = t.copyCustomPrologue(Zr.statements, wr, Ri, ue), Pt = Zr.statements, yi(wr, Kn(Zr.statements, ue, Ia, Ri)), !lt && Zr.multiLine && (lt = !0); else { D.assert(ae.kind === 216), Pt = m3(Zr, -1); const Vo = ae.equalsGreaterThanToken; !$s(Vo) && !$s(Zr) && (BN(Vo, Zr, b) ? Mt = !0 : lt = !0); const bs = st(Zr, ue, yt), Js = t.createReturnStatement(bs); mt(Js, Zr), rfe(Js, Zr), or(Js, 2880), wr.push(Js), sn = Zr; } if (t.mergeLexicalEnvironment(jn, s()), gn(jn, ae, !1), Ki(jn, ae), kt(jn) && (lt = !0), wr.unshift(...jn), oo(Zr) && Bp(wr, Zr.statements)) return Zr; const Ua = t.createBlock(mt(t.createNodeArray(wr), Pt), lt); return mt(Ua, ae.body), !lt && Mt && or(Ua, 1), sn && nfe(Ua, 19, sn), Vr(Ua, ae.body), Ua; } function Ur(ae, lt) { if (lt) return Bn(ae, ue, e); const Mt = C & 256 ? j(7104, 512) : j(6976, 128), Pt = Bn(ae, ue, e); return te(Mt, 0, 0), Pt; } function Ie(ae) { return Bn(ae, ne, e); } function gt(ae, lt) { return Bn(ae, lt ? ne : ue, e); } function Nt(ae, lt) { return my(ae) ? RT(ae, ue, e, 0, !lt) : ae.operatorToken.kind === 27 ? t.updateBinaryExpression(ae, D.checkDefined(st(ae.left, ne, yt)), ae.operatorToken, D.checkDefined(st(ae.right, lt ? ne : ue, yt))) : Bn(ae, ue, e); } function xe(ae, lt) { if (lt) return Bn(ae, ne, e); let Mt; for (let sn = 0; sn < ae.elements.length; sn++) { const jn = ae.elements[sn], wr = st(jn, sn < ae.elements.length - 1 ? ne : ue, yt); (Mt || wr !== jn) && (Mt || (Mt = ae.elements.slice(0, sn)), D.assert(wr), Mt.push(wr)); } const Pt = Mt ? mt(t.createNodeArray(Mt), ae.elements) : ae.elements; return t.updateCommaListExpression(ae, Pt); } function _t(ae) { return ae.declarationList.declarations.length === 1 && !!ae.declarationList.declarations[0].initializer && !!(R_(ae.declarationList.declarations[0].initializer) & 1); } function _e(ae) { const lt = j(0, Jr(ae, 1) ? 32 : 0); let Mt; if (k && !(ae.declarationList.flags & 3) && !_t(ae)) { let Pt; for (const sn of ae.declarationList.declarations) if (Si(k, sn), sn.initializer) { let jn; Ja(sn.name) ? jn = RT(sn, ue, e, 0) : (jn = t.createBinaryExpression(sn.name, 63, D.checkDefined(st(sn.initializer, ue, yt))), mt(jn, sn)), Pt = Fn(Pt, jn); } Pt ? Mt = mt(t.createExpressionStatement(t.inlineExpressions(Pt)), ae) : Mt = void 0; } else Mt = Bn(ae, ue, e); return te(lt, 0, 0), Mt; } function re(ae) { if (ae.flags & 3 || ae.transformFlags & 524288) { ae.flags & 3 && vs(); const lt = Kn(ae.declarations, ae.flags & 1 ? je : Qe, Wi), Mt = t.createVariableDeclarationList(lt); return Vr(Mt, ae), mt(Mt, ae), Bc(Mt, ae), ae.transformFlags & 524288 && (Ja(ae.declarations[0].name) || Ja(Ho(ae.declarations).name)) && cs(Mt, me(lt)), Mt; } return Bn(ae, ue, e); } function me(ae) { let lt = -1, Mt = -1; for (const Pt of ae) lt = lt === -1 ? Pt.pos : Pt.pos === -1 ? lt : Math.min(lt, Pt.pos), Mt = Math.max(Mt, Pt.end); return u_(lt, Mt); } function V(ae) { const lt = d.getNodeCheckFlags(ae), Mt = lt & 16384, Pt = lt & 32768; return !((C & 64) !== 0 || Mt && Pt && (C & 512) !== 0) && (C & 4096) === 0 && (!d.isDeclarationWithCollidingName(ae) || Pt && !Mt && (C & 6144) === 0); } function je(ae) { const lt = ae.name; return Ja(lt) ? Qe(ae) : !ae.initializer && V(ae) ? t.updateVariableDeclaration(ae, ae.name, void 0, void 0, t.createVoidZero()) : Bn(ae, ue, e); } function Qe(ae) { const lt = j(32, 0); let Mt; return Ja(ae.name) ? Mt = F1(ae, ue, e, 0, void 0, (lt & 32) !== 0) : Mt = Bn(ae, ue, e), te(lt, 0, 0), Mt; } function Je(ae) { k.labels.set(Or(ae.label), !0); } function Ut(ae) { k.labels.set(Or(ae.label), !1); } function on(ae) { k && !k.labels && (k.labels = /* @__PURE__ */ new Map()); const lt = HW(ae, k && Je); return Tv(lt, !1) ? Sn(lt, ae) : t.restoreEnclosingLabel(D.checkDefined(st(lt, ue, Ia, t.liftToBlock)), ae, k && Ut); } function Sn(ae, lt) { switch (ae.kind) { case 243: case 244: return ce(ae, lt); case 245: return pt(ae, lt); case 246: return rt(ae, lt); case 247: return K(ae, lt); } } function br(ae, lt, Mt, Pt, sn) { const jn = j(ae, lt), wr = Bi(Mt, Pt, jn, sn); return te(jn, 0, 0), wr; } function ce(ae, lt) { return br(0, 1280, ae, lt); } function pt(ae, lt) { return br(5056, 3328, ae, lt); } function Wt(ae) { return t.updateForStatement(ae, st(ae.initializer, ne, jp), st(ae.condition, ue, yt), st(ae.incrementor, ne, yt), D.checkDefined(st(ae.statement, ue, Ia, t.liftToBlock))); } function rt(ae, lt) { return br(3008, 5376, ae, lt); } function K(ae, lt) { return br(3008, 5376, ae, lt, f.downlevelIteration ? q : we); } function Oe(ae, lt, Mt) { const Pt = [], sn = ae.initializer; if (Ou(sn)) { ae.initializer.flags & 3 && vs(); const jn = Wc(sn.declarations); if (jn && Ja(jn.name)) { const wr = F1(jn, ue, e, 0, lt), Zr = mt(t.createVariableDeclarationList(wr), ae.initializer); Vr(Zr, ae.initializer), cs(Zr, u_(wr[0].pos, Ho(wr).end)), Pt.push(t.createVariableStatement(void 0, Zr)); } else Pt.push(mt(t.createVariableStatement(void 0, Vr(mt(t.createVariableDeclarationList([ t.createVariableDeclaration(jn ? jn.name : t.createTempVariable(void 0), void 0, void 0, lt) ]), q0(sn, -1)), sn)), m3(sn, -1))); } else { const jn = t.createAssignment(sn, lt); my(jn) ? Pt.push(t.createExpressionStatement(Nt(jn, !0))) : ($A(jn, sn.end), Pt.push(mt(t.createExpressionStatement(D.checkDefined(st(jn, ue, yt))), m3(sn, -1)))); } if (Mt) return Z(yi(Pt, Mt)); { const jn = st(ae.statement, ue, Ia, t.liftToBlock); return D.assert(jn), oo(jn) ? t.updateBlock(jn, mt(t.createNodeArray(ha(Pt, jn.statements)), jn.statements)) : (Pt.push(jn), Z(Pt)); } } function Z(ae) { return or(t.createBlock(t.createNodeArray(ae), !0), 864); } function we(ae, lt, Mt) { const Pt = st(ae.expression, ue, yt); D.assert(Pt); const sn = t.createLoopVariable(), jn = Ve(Pt) ? t.getGeneratedNameForNode(Pt) : t.createTempVariable(void 0); or(Pt, 96 | ho(Pt)); const wr = mt(t.createForStatement(or(mt(t.createVariableDeclarationList([ mt(t.createVariableDeclaration(sn, void 0, void 0, t.createNumericLiteral(0)), q0(ae.expression, -1)), mt(t.createVariableDeclaration(jn, void 0, void 0, Pt), ae.expression) ]), ae.expression), 4194304), mt(t.createLessThan(sn, t.createPropertyAccessExpression(jn, "length")), ae.expression), mt(t.createPostfixIncrement(sn), ae.expression), Oe(ae, t.createElementAccessExpression(jn, sn), Mt)), ae); return or(wr, 512), mt(wr, ae), t.restoreEnclosingLabel(wr, lt, k && Ut); } function q(ae, lt, Mt, Pt) { const sn = st(ae.expression, ue, yt); D.assert(sn); const jn = Ve(sn) ? t.getGeneratedNameForNode(sn) : t.createTempVariable(void 0), wr = Ve(sn) ? t.getGeneratedNameForNode(jn) : t.createTempVariable(void 0), Zr = t.createUniqueName("e"), Ri = t.getGeneratedNameForNode(Zr), Ua = t.createTempVariable(void 0), Vo = mt(r().createValuesHelper(sn), ae.expression), bs = t.createCallExpression(t.createPropertyAccessExpression(jn, "next"), void 0, []); c(Zr), c(Ua); const Js = Pt & 1024 ? t.inlineExpressions([t.createAssignment(Zr, t.createVoidZero()), Vo]) : Vo, cd = or(mt(t.createForStatement(or(mt(t.createVariableDeclarationList([ mt(t.createVariableDeclaration(jn, void 0, void 0, Js), ae.expression), t.createVariableDeclaration(wr, void 0, void 0, bs) ]), ae.expression), 4194304), t.createLogicalNot(t.createPropertyAccessExpression(wr, "done")), t.createAssignment(wr, bs), Oe(ae, t.createPropertyAccessExpression(wr, "value"), Mt)), ae), 512); return t.createTryStatement(t.createBlock([ t.restoreEnclosingLabel(cd, lt, k && Ut) ]), t.createCatchClause(t.createVariableDeclaration(Ri), or(t.createBlock([ t.createExpressionStatement(t.createAssignment(Zr, t.createObjectLiteralExpression([ t.createPropertyAssignment("error", Ri) ]))) ]), 1)), t.createBlock([ t.createTryStatement(t.createBlock([ or(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(wr, t.createLogicalNot(t.createPropertyAccessExpression(wr, "done"))), t.createAssignment(Ua, t.createPropertyAccessExpression(jn, "return"))), t.createExpressionStatement(t.createFunctionCallCall(Ua, jn, []))), 1) ]), void 0, or(t.createBlock([ or(t.createIfStatement(Zr, t.createThrowStatement(t.createPropertyAccessExpression(Zr, "error"))), 1) ]), 1)) ])); } function Rt(ae) { const lt = ae.properties; let Mt = -1, Pt = !1; for (let Zr = 0; Zr < lt.length; Zr++) { const Ri = lt[Zr]; if (Ri.transformFlags & 1048576 && C & 4 || (Pt = D.checkDefined(Ri.name).kind === 164)) { Mt = Zr; break; } } if (Mt < 0) return Bn(ae, ue, e); const sn = t.createTempVariable(c), jn = [], wr = t.createAssignment(sn, or(t.createObjectLiteralExpression(Kn(lt, ue, dy, 0, Mt), ae.multiLine), Pt ? 131072 : 0)); return ae.multiLine && Pu(wr), jn.push(wr), Jo(jn, ae, sn, Mt), jn.push(ae.multiLine ? Pu(Bo(mt(t.cloneNode(sn), sn), sn.parent)) : sn), t.inlineExpressions(jn); } function ht(ae) { return (d.getNodeCheckFlags(ae) & 8192) !== 0; } function dt(ae) { return TT(ae) && !!ae.initializer && ht(ae.initializer); } function dn(ae) { return TT(ae) && !!ae.condition && ht(ae.condition); } function $n(ae) { return TT(ae) && !!ae.incrementor && ht(ae.incrementor); } function ii(ae) { return Ti(ae) || dt(ae); } function Ti(ae) { return (d.getNodeCheckFlags(ae) & 4096) !== 0; } function Si(ae, lt) { ae.hoistedLocalVariables || (ae.hoistedLocalVariables = []), Mt(lt.name); function Mt(Pt) { if (Pt.kind === 79) ae.hoistedLocalVariables.push(Pt); else for (const sn of Pt.elements) Ic(sn) || Mt(sn.name); } } function Bi(ae, lt, Mt, Pt) { if (!ii(ae)) { let Vo; k && (Vo = k.allowedNonLabeledJumps, k.allowedNonLabeledJumps = 6); const bs = Pt ? Pt(ae, lt, void 0, Mt) : t.restoreEnclosingLabel(TT(ae) ? Wt(ae) : Bn(ae, ue, e), lt, k && Ut); return k && (k.allowedNonLabeledJumps = Vo), bs; } const sn = is(ae), jn = [], wr = k; k = sn; const Zr = dt(ae) ? wn(ae, sn) : void 0, Ri = Ti(ae) ? da(ae, sn, wr) : void 0; k = wr, Zr && jn.push(Zr.functionDeclaration), Ri && jn.push(Ri.functionDeclaration), ui(jn, sn, wr), Zr && jn.push(Ml(Zr.functionName, Zr.containsYield)); let Ua; if (Ri) if (Pt) Ua = Pt(ae, lt, Ri.part, Mt); else { const Vo = fo(ae, Zr, t.createBlock(Ri.part, !0)); Ua = t.restoreEnclosingLabel(Vo, lt, k && Ut); } else { const Vo = fo(ae, Zr, D.checkDefined(st(ae.statement, ue, Ia, t.liftToBlock))); Ua = t.restoreEnclosingLabel(Vo, lt, k && Ut); } return jn.push(Ua), jn; } function fo(ae, lt, Mt) { switch (ae.kind) { case 245: return vo(ae, lt, Mt); case 246: return sa(ae, Mt); case 247: return no(ae, Mt); case 243: return Gi(ae, Mt); case 244: return qr(ae, Mt); default: return D.failBadSyntaxKind(ae, "IterationStatement expected"); } } function vo(ae, lt, Mt) { const Pt = ae.condition && ht(ae.condition), sn = Pt || ae.incrementor && ht(ae.incrementor); return t.updateForStatement(ae, st(lt ? lt.part : ae.initializer, ne, jp), st(Pt ? void 0 : ae.condition, ue, yt), st(sn ? void 0 : ae.incrementor, ne, yt), Mt); } function no(ae, lt) { return t.updateForOfStatement(ae, void 0, D.checkDefined(st(ae.initializer, ue, jp)), D.checkDefined(st(ae.expression, ue, yt)), lt); } function sa(ae, lt) { return t.updateForInStatement(ae, D.checkDefined(st(ae.initializer, ue, jp)), D.checkDefined(st(ae.expression, ue, yt)), lt); } function Gi(ae, lt) { return t.updateDoStatement(ae, lt, D.checkDefined(st(ae.expression, ue, yt))); } function qr(ae, lt) { return t.updateWhileStatement(ae, D.checkDefined(st(ae.expression, ue, yt)), lt); } function is(ae) { let lt; switch (ae.kind) { case 245: case 246: case 247: const jn = ae.initializer; jn && jn.kind === 258 && (lt = jn); break; } const Mt = [], Pt = []; if (lt && up(lt) & 3) { const jn = dt(ae) || dn(ae) || $n(ae); for (const wr of lt.declarations) Aa(ae, wr, Mt, Pt, jn); } const sn = { loopParameters: Mt, loopOutParameters: Pt }; return k && (k.argumentsName && (sn.argumentsName = k.argumentsName), k.thisName && (sn.thisName = k.thisName), k.hoistedLocalVariables && (sn.hoistedLocalVariables = k.hoistedLocalVariables)), sn; } function ui(ae, lt, Mt) { let Pt; if (lt.argumentsName && (Mt ? Mt.argumentsName = lt.argumentsName : (Pt || (Pt = [])).push(t.createVariableDeclaration(lt.argumentsName, void 0, void 0, t.createIdentifier("arguments")))), lt.thisName && (Mt ? Mt.thisName = lt.thisName : (Pt || (Pt = [])).push(t.createVariableDeclaration(lt.thisName, void 0, void 0, t.createIdentifier("this")))), lt.hoistedLocalVariables) if (Mt) Mt.hoistedLocalVariables = lt.hoistedLocalVariables; else { Pt || (Pt = []); for (const sn of lt.hoistedLocalVariables) Pt.push(t.createVariableDeclaration(sn)); } if (lt.loopOutParameters.length) { Pt || (Pt = []); for (const sn of lt.loopOutParameters) Pt.push(t.createVariableDeclaration(sn.outParamName)); } lt.conditionVariable && (Pt || (Pt = []), Pt.push(t.createVariableDeclaration(lt.conditionVariable, void 0, void 0, t.createFalse()))), Pt && ae.push(t.createVariableStatement(void 0, t.createVariableDeclarationList(Pt))); } function la(ae) { return t.createVariableDeclaration(ae.originalName, void 0, void 0, ae.outParamName); } function wn(ae, lt) { const Mt = t.createUniqueName("_loop_init"), Pt = (ae.initializer.transformFlags & 1048576) !== 0; let sn = 0; lt.containsLexicalThis && (sn |= 16), Pt && C & 4 && (sn |= 524288); const jn = []; jn.push(t.createVariableStatement(void 0, ae.initializer)), tl(lt.loopOutParameters, 2, 1, jn); const wr = t.createVariableStatement(void 0, or(t.createVariableDeclarationList([ t.createVariableDeclaration(Mt, void 0, void 0, or(t.createFunctionExpression(void 0, Pt ? t.createToken(41) : void 0, void 0, void 0, void 0, void 0, D.checkDefined(st(t.createBlock(jn, !0), ue, oo))), sn)) ]), 4194304)), Zr = t.createVariableDeclarationList(rn(lt.loopOutParameters, la)); return { functionName: Mt, containsYield: Pt, functionDeclaration: wr, part: Zr }; } function da(ae, lt, Mt) { const Pt = t.createUniqueName("_loop"); i(); const sn = st(ae.statement, ue, Ia, t.liftToBlock), jn = s(), wr = []; (dn(ae) || $n(ae)) && (lt.conditionVariable = t.createUniqueName("inc"), ae.incrementor ? wr.push(t.createIfStatement(lt.conditionVariable, t.createExpressionStatement(D.checkDefined(st(ae.incrementor, ue, yt))), t.createExpressionStatement(t.createAssignment(lt.conditionVariable, t.createTrue())))) : wr.push(t.createIfStatement(t.createLogicalNot(lt.conditionVariable), t.createExpressionStatement(t.createAssignment(lt.conditionVariable, t.createTrue())))), dn(ae) && wr.push(t.createIfStatement(t.createPrefixUnaryExpression(53, D.checkDefined(st(ae.condition, ue, yt))), D.checkDefined(st(t.createBreakStatement(), ue, Ia))))), D.assert(sn), oo(sn) ? yi(wr, sn.statements) : wr.push(sn), tl(lt.loopOutParameters, 1, 1, wr), wm(wr, jn); const Zr = t.createBlock(wr, !0); oo(sn) && Vr(Zr, sn); const Ri = (ae.statement.transformFlags & 1048576) !== 0; let Ua = 1048576; lt.containsLexicalThis && (Ua |= 16), Ri && C & 4 && (Ua |= 524288); const Vo = t.createVariableStatement(void 0, or(t.createVariableDeclarationList([ t.createVariableDeclaration(Pt, void 0, void 0, or(t.createFunctionExpression(void 0, Ri ? t.createToken(41) : void 0, void 0, void 0, lt.loopParameters, void 0, Zr), Ua)) ]), 4194304)), bs = zl(Pt, lt, Mt, Ri); return { functionName: Pt, containsYield: Ri, functionDeclaration: Vo, part: bs }; } function $l(ae, lt) { const Mt = lt === 0 ? ae.outParamName : ae.originalName, Pt = lt === 0 ? ae.originalName : ae.outParamName; return t.createBinaryExpression(Pt, 63, Mt); } function tl(ae, lt, Mt, Pt) { for (const sn of ae) sn.flags & lt && Pt.push(t.createExpressionStatement($l(sn, Mt))); } function Ml(ae, lt) { const Mt = t.createCallExpression(ae, void 0, []), Pt = lt ? t.createYieldExpression(t.createToken(41), or(Mt, 16777216)) : Mt; return t.createExpressionStatement(Pt); } function zl(ae, lt, Mt, Pt) { const sn = [], jn = !(lt.nonLocalJumps & -5) && !lt.labeledNonLocalBreaks && !lt.labeledNonLocalContinues, wr = t.createCallExpression(ae, void 0, rn(lt.loopParameters, (Ri) => Ri.name)), Zr = Pt ? t.createYieldExpression(t.createToken(41), or(wr, 16777216)) : wr; if (jn) sn.push(t.createExpressionStatement(Zr)), tl(lt.loopOutParameters, 1, 0, sn); else { const Ri = t.createUniqueName("state"), Ua = t.createVariableStatement(void 0, t.createVariableDeclarationList([t.createVariableDeclaration(Ri, void 0, void 0, Zr)])); if (sn.push(Ua), tl(lt.loopOutParameters, 1, 0, sn), lt.nonLocalJumps & 8) { let Vo; Mt ? (Mt.nonLocalJumps |= 8, Vo = t.createReturnStatement(Ri)) : Vo = t.createReturnStatement(t.createPropertyAccessExpression(Ri, "value")), sn.push(t.createIfStatement(t.createTypeCheck(Ri, "object"), Vo)); } if (lt.nonLocalJumps & 2 && sn.push(t.createIfStatement(t.createStrictEquality(Ri, t.createStringLiteral("break")), t.createBreakStatement())), lt.labeledNonLocalBreaks || lt.labeledNonLocalContinues) { const Vo = []; So(lt.labeledNonLocalBreaks, !0, Ri, Mt, Vo), So(lt.labeledNonLocalContinues, !1, Ri, Mt, Vo), sn.push(t.createSwitchStatement(Ri, t.createCaseBlock(Vo))); } } return sn; } function Fl(ae, lt, Mt, Pt) { lt ? (ae.labeledNonLocalBreaks || (ae.labeledNonLocalBreaks = /* @__PURE__ */ new Map()), ae.labeledNonLocalBreaks.set(Mt, Pt)) : (ae.labeledNonLocalContinues || (ae.labeledNonLocalContinues = /* @__PURE__ */ new Map()), ae.labeledNonLocalContinues.set(Mt, Pt)); } function So(ae, lt, Mt, Pt, sn) { ae && ae.forEach((jn, wr) => { const Zr = []; if (!Pt || Pt.labels && Pt.labels.get(wr)) { const Ri = t.createIdentifier(wr); Zr.push(lt ? t.createBreakStatement(Ri) : t.createContinueStatement(Ri)); } else Fl(Pt, lt, wr, jn), Zr.push(t.createReturnStatement(Mt)); sn.push(t.createCaseClause(t.createStringLiteral(jn), Zr)); }); } function Aa(ae, lt, Mt, Pt, sn) { const jn = lt.name; if (Ja(jn)) for (const wr of jn.elements) Ic(wr) || Aa(ae, wr, Mt, Pt, sn); else { Mt.push(t.createParameterDeclaration(void 0, void 0, jn)); const wr = d.getNodeCheckFlags(lt); if (wr & 262144 || sn) { const Zr = t.createUniqueName("out_" + Or(jn)); let Ri = 0; wr & 262144 && (Ri |= 1), TT(ae) && (ae.initializer && d.isBindingCapturedByNode(ae.initializer, lt) && (Ri |= 2), (ae.condition && d.isBindingCapturedByNode(ae.condition, lt) || ae.incrementor && d.isBindingCapturedByNode(ae.incrementor, lt)) && (Ri |= 1)), Pt.push({ flags: Ri, originalName: jn, outParamName: Zr }); } } } function Jo(ae, lt, Mt, Pt) { const sn = lt.properties, jn = sn.length; for (let wr = Pt; wr < jn; wr++) { const Zr = sn[wr]; switch (Zr.kind) { case 174: case 175: const Ri = pT(lt.properties, Zr); Zr === Ri.firstAccessor && ae.push(Di(Mt, Ri, lt, !!lt.multiLine)); break; case 171: ae.push(Ud(Zr, Mt, lt, lt.multiLine)); break; case 299: ae.push(Bl(Zr, Mt, lt.multiLine)); break; case 300: ae.push(Xc(Zr, Mt, lt.multiLine)); break; default: D.failBadSyntaxKind(lt); break; } } } function Bl(ae, lt, Mt) { const Pt = t.createAssignment(CT(t, lt, D.checkDefined(st(ae.name, ue, hl))), D.checkDefined(st(ae.initializer, ue, yt))); return mt(Pt, ae), Mt && Pu(Pt), Pt; } function Xc(ae, lt, Mt) { const Pt = t.createAssignment(CT(t, lt, D.checkDefined(st(ae.name, ue, hl))), t.cloneNode(ae.name)); return mt(Pt, ae), Mt && Pu(Pt), Pt; } function Ud(ae, lt, Mt, Pt) { const sn = t.createAssignment(CT(t, lt, D.checkDefined(st(ae.name, ue, hl))), Pn(ae, ae, void 0, Mt)); return mt(sn, ae), Pt && Pu(sn), sn; } function rc(ae) { const lt = j(7104, 0); let Mt; if (D.assert(!!ae.variableDeclaration, "Catch clause variable should always be present when downleveling ES2015."), Ja(ae.variableDeclaration.name)) { const Pt = t.createTempVariable(void 0), sn = t.createVariableDeclaration(Pt); mt(sn, ae.variableDeclaration); const jn = F1(ae.variableDeclaration, ue, e, 0, Pt), wr = t.createVariableDeclarationList(jn); mt(wr, ae.variableDeclaration); const Zr = t.createVariableStatement(void 0, wr); Mt = t.updateCatchClause(ae, sn, jc(ae.block, Zr)); } else Mt = Bn(ae, ue, e); return te(lt, 0, 0), Mt; } function jc(ae, lt) { const Mt = Kn(ae.statements, ue, Ia); return t.updateBlock(ae, [lt, ...Mt]); } function ks(ae) { D.assert(!Ss(ae.name)); const lt = Pn(ae, q0(ae, -1), void 0, void 0); return or(lt, 1024 | ho(lt)), mt(t.createPropertyAssignment(ae.name, lt), ae); } function pl(ae) { D.assert(!Ss(ae.name)); const lt = k; k = void 0; const Mt = j(32670, 65); let Pt; const sn = Wl(ae.parameters, ue, e), jn = xr(ae); return ae.kind === 174 ? Pt = t.updateGetAccessorDeclaration(ae, ae.modifiers, ae.name, sn, ae.type, jn) : Pt = t.updateSetAccessorDeclaration(ae, ae.modifiers, ae.name, sn, jn), te(Mt, 98304, 0), k = lt, Pt; } function Qs(ae) { return mt(t.createPropertyAssignment(ae.name, Fe(t.cloneNode(ae.name))), ae); } function qs(ae) { return Bn(ae, ue, e); } function Zt(ae) { return Bn(ae, ue, e); } function Gl(ae) { return kt(ae.elements, Th) ? Q(ae.elements, !1, !!ae.multiLine, !!ae.elements.hasTrailingComma) : Bn(ae, ue, e); } function yu(ae) { if (R_(ae) & 1) return Bu(ae); const lt = pu(ae.expression); return lt.kind === 106 || ad(lt) || kt(ae.arguments, Th) ? It(ae, !0) : t.updateCallExpression(ae, D.checkDefined(st(ae.expression, ie, yt)), void 0, Kn(ae.arguments, ue, yt)); } function Bu(ae) { const lt = ro(ro(pu(ae.expression), zs).body, oo), Mt = (lf) => sc(lf) && !!ss(lf.declarationList.declarations).initializer, Pt = k; k = void 0; const sn = Kn(lt.statements, ge, Ia); k = Pt; const jn = yn(sn, Mt), wr = yn(sn, (lf) => !Mt(lf)), Ri = ro(ss(jn), sc).declarationList.declarations[0], Ua = pu(Ri.initializer); let Vo = ri(Ua, Ku); !Vo && vr(Ua) && Ua.operatorToken.kind === 27 && (Vo = ri(Ua.left, Ku)); const bs = ro(Vo ? pu(Vo.right) : Ua, eo), Js = ro(pu(bs.expression), Ms), cd = Js.body.statements; let sf = 0, Ql = -1; const jd = []; if (Vo) { const lf = ri(cd[sf], eu); lf && (jd.push(lf), sf++), jd.push(cd[sf]), sf++, jd.push(t.createExpressionStatement(t.createAssignment(Vo.left, ro(Ri.name, Ve)))); } for (; !pp(ay(cd, Ql)); ) Ql--; yi(jd, cd, sf, Ql), Ql < -1 && yi(jd, cd, Ql + 1); const vu = ri(ay(cd, Ql), pp); for (const lf of wr) pp(lf) && (vu != null && vu.expression) && !Ve(vu.expression) ? jd.push(vu) : jd.push(lf); return yi(jd, jn, 1), t.restoreOuterExpressions(ae.expression, t.restoreOuterExpressions(Ri.initializer, t.restoreOuterExpressions(Vo && Vo.right, t.updateCallExpression(bs, t.restoreOuterExpressions(bs.expression, t.updateFunctionExpression(Js, void 0, void 0, void 0, void 0, Js.parameters, void 0, t.updateBlock(Js.body, jd))), void 0, bs.arguments)))); } function de(ae) { return It(ae, !1); } function It(ae, lt) { if (ae.transformFlags & 32768 || ae.expression.kind === 106 || ad(pu(ae.expression))) { const { target: Mt, thisArg: Pt } = t.createCallBinding(ae.expression, c); ae.expression.kind === 106 && or(Pt, 8); let sn; if (ae.transformFlags & 32768 ? sn = t.createFunctionApplyCall(D.checkDefined(st(Mt, ie, yt)), ae.expression.kind === 106 ? Pt : D.checkDefined(st(Pt, ue, yt)), Q(ae.arguments, !0, !1, !1)) : sn = mt(t.createFunctionCallCall(D.checkDefined(st(Mt, ie, yt)), ae.expression.kind === 106 ? Pt : D.checkDefined(st(Pt, ue, yt)), Kn(ae.arguments, ue, yt)), ae), ae.expression.kind === 106) { const jn = t.createLogicalOr(sn, nn()); sn = lt ? t.createAssignment(t.createUniqueName("_this", 48), jn) : jn; } return Vr(sn, ae); } return Bn(ae, ue, e); } function jt(ae) { if (kt(ae.arguments, Th)) { const { target: lt, thisArg: Mt } = t.createCallBinding(t.createPropertyAccessExpression(ae.expression, "bind"), c); return t.createNewExpression(t.createFunctionApplyCall(D.checkDefined(st(lt, ue, yt)), Mt, Q(t.createNodeArray([t.createVoidZero(), ...ae.arguments]), !0, !1, !1)), void 0, []); } return Bn(ae, ue, e); } function Q(ae, lt, Mt, Pt) { const sn = ae.length, jn = nd(vP(ae, at, (Ua, Vo, bs, Js) => Vo(Ua, Mt, Pt && Js === sn))); if (jn.length === 1) { const Ua = jn[0]; if (lt && !f.downlevelIteration || aq(Ua.expression) || _k(Ua.expression, "___spreadArray")) return Ua.expression; } const wr = r(), Zr = jn[0].kind !== 0; let Ri = Zr ? t.createArrayLiteralExpression() : jn[0].expression; for (let Ua = Zr ? 0 : 1; Ua < jn.length; Ua++) { const Vo = jn[Ua]; Ri = wr.createSpreadArrayHelper(Ri, Vo.expression, Vo.kind === 1 && !lt); } return Ri; } function at(ae) { return Th(ae) ? St : kr; } function St(ae) { return rn(ae, _n); } function _n(ae) { D.assertNode(ae, Th); let lt = st(ae.expression, ue, yt); D.assert(lt); const Mt = _k(lt, "___read"); let Pt = Mt || aq(lt) ? 2 : 1; return f.downlevelIteration && Pt === 1 && !Ru(lt) && !Mt && (lt = r().createReadHelper(lt, void 0), Pt = 2), rhe(Pt, lt); } function kr(ae, lt, Mt) { const Pt = t.createArrayLiteralExpression(Kn(t.createNodeArray(ae, Mt), ue, yt), lt); return rhe(0, Pt); } function Nr(ae) { return st(ae.expression, ue, yt); } function va(ae) { return mt(t.createStringLiteral(ae.text), ae); } function as(ae) { return ae.hasExtendedUnicodeEscape ? mt(t.createStringLiteral(ae.text), ae) : ae; } function _o(ae) { return ae.numericLiteralFlags & 384 ? mt(t.createNumericLiteral(ae.text), ae) : ae; } function Uo(ae) { return QK(e, ae, ue, b, O, 1); } function Ka(ae) { let lt = t.createStringLiteral(ae.head.text); for (const Mt of ae.templateSpans) { const Pt = [D.checkDefined(st(Mt.expression, ue, yt))]; Mt.literal.text.length > 0 && Pt.push(t.createStringLiteral(Mt.literal.text)), lt = t.createCallExpression(t.createPropertyAccessExpression(lt, "concat"), void 0, Pt); } return mt(lt, ae); } function cl(ae) { return C & 8 && !ae ? t.createPropertyAccessExpression(t.createUniqueName("_super", 48), "prototype") : t.createUniqueName("_super", 48); } function lc(ae) { return ae.keywordToken === 103 && ae.name.escapedText === "target" ? (C |= 32768, t.createUniqueName("_newTarget", 48)) : ae; } function ld(ae, lt, Mt) { if (B & 1 && qa(lt)) { const Pt = j(32670, ho(lt) & 16 ? 81 : 65); m(ae, lt, Mt), te(Pt, 0, 0); return; } m(ae, lt, Mt); } function vs() { B & 2 || (B |= 2, e.enableSubstitution(79)); } function ls() { B & 1 || (B |= 1, e.enableSubstitution(108), e.enableEmitNotification(173), e.enableEmitNotification(171), e.enableEmitNotification(174), e.enableEmitNotification(175), e.enableEmitNotification(216), e.enableEmitNotification(215), e.enableEmitNotification(259)); } function ul(ae, lt) { return lt = y(ae, lt), ae === 1 ? Lf(lt) : Ve(lt) ? Vd(lt) : lt; } function Vd(ae) { if (B & 2 && !vJ(ae)) { const lt = ya(ae, Ve); if (lt && Ul(lt)) return mt(t.getGeneratedNameForNode(lt), ae); } return ae; } function Ul(ae) { switch (ae.parent.kind) { case 205: case 260: case 263: case 257: return ae.parent.name === ae && d.isDeclarationWithCollidingName(ae.parent); } return !1; } function Lf(ae) { switch (ae.kind) { case 79: return Se(ae); case 108: return Nn(ae); } return ae; } function Se(ae) { if (B & 2 && !vJ(ae)) { const lt = d.getReferencedDeclarationWithCollidingName(ae); if (lt && !(li(lt) && Dt(lt, ae))) return mt(t.getGeneratedNameForNode(La(lt)), ae); } return ae; } function Dt(ae, lt) { let Mt = ya(lt); if (!Mt || Mt === ae || Mt.end <= ae.pos || Mt.pos >= ae.end) return !1; const Pt = Dm(ae); for (; Mt; ) { if (Mt === Pt || Mt === ae) return !1; if (Pc(Mt) && Mt.parent === ae) return !0; Mt = Mt.parent; } return !1; } function Nn(ae) { return B & 1 && C & 16 ? mt(t.createUniqueName("_this", 48), ae) : ae; } function zi(ae, lt) { return za(lt) ? t.getInternalName(ae) : t.createPropertyAccessExpression(t.getInternalName(ae), "prototype"); } function xo(ae, lt) { if (!ae || !lt || kt(ae.parameters)) return !1; const Mt = Wc(ae.body.statements); if (!Mt || !$s(Mt) || Mt.kind !== 241) return !1; const Pt = Mt.expression; if (!$s(Pt) || Pt.kind !== 210) return !1; const sn = Pt.expression; if (!$s(sn) || sn.kind !== 106) return !1; const jn = bm(Pt.arguments); if (!jn || !$s(jn) || jn.kind !== 227) return !1; const wr = jn.expression; return Ve(wr) && wr.escapedText === "arguments"; } } var XMe = L({ "src/compiler/transformers/es2015.ts"() { Ra(); } }); function ahe(e) { const { factory: t } = e, r = e.getCompilerOptions(); let i, o; (r.jsx === 1 || r.jsx === 3) && (i = e.onEmitNode, e.onEmitNode = f, e.enableEmitNotification(283), e.enableEmitNotification(284), e.enableEmitNotification(282), o = []); const s = e.onSubstituteNode; return e.onSubstituteNode = d, e.enableSubstitution(208), e.enableSubstitution(299), W_(e, c); function c(A) { return A; } function f(A, C, I) { switch (C.kind) { case 283: case 284: case 282: const O = C.tagName; o[Ll(O)] = !0; break; } i(A, C, I); } function d(A, C) { return C.id && o && o[C.id] ? s(A, C) : (C = s(A, C), Pr(C) ? y(C) : Uc(C) ? m(C) : C); } function y(A) { if (ki(A.name)) return A; const C = b(A.name); return C ? mt(t.createElementAccessExpression(A.expression, C), A) : A; } function m(A) { const C = Ve(A.name) && b(A.name); return C ? t.updatePropertyAssignment(A, C, A.initializer) : A; } function b(A) { const C = M0(A); if (C !== void 0 && C >= 81 && C <= 116) return mt(t.createStringLiteralFromNode(A), A); } } var YMe = L({ "src/compiler/transformers/es5.ts"() { Ra(); } }); function $Me(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 ohe(e) { const { factory: t, getEmitHelperFactory: r, resumeLexicalEnvironment: i, endLexicalEnvironment: o, hoistFunctionDeclaration: s, hoistVariableDeclaration: c } = e, f = e.getCompilerOptions(), d = $o(f), y = e.getEmitResolver(), m = e.onSubstituteNode; e.onSubstituteNode = K; let b, A, C, I, O, k, B, U, j, te, X = 1, Y, P, ue, ne, ge = 0, ie = 0, H, le, pe, ye, Te, ee, $e, Ge; return W_(e, Fe); function Fe(Se) { if (Se.isDeclarationFile || !(Se.transformFlags & 2048)) return Se; const Dt = Bn(Se, We, e); return gy(Dt, e.readEmitHelpers()), Dt; } function We(Se) { const Dt = Se.transformFlags; return I ? Re(Se) : C ? Pe(Se) : Ys(Se) && Se.asteriskToken ? He(Se) : Dt & 2048 ? Bn(Se, We, e) : Se; } function Re(Se) { switch (Se.kind) { case 243: return xr(Se); case 244: return Ie(Se); case 252: return on(Se); case 253: return br(Se); default: return Pe(Se); } } function Pe(Se) { switch (Se.kind) { case 259: return Me(Se); case 215: return ot(Se); case 174: case 175: return At(Se); case 240: return Vt(Se); case 245: return Nt(Se); case 246: return _t(Se); case 249: return V(Se); case 248: return re(Se); case 250: return Qe(Se); default: return Se.transformFlags & 1048576 ? Ke(Se) : Se.transformFlags & 4196352 ? Bn(Se, We, e) : Se; } } function Ke(Se) { switch (Se.kind) { case 223: return et(Se); case 357: return On(Se); case 224: return In(Se); case 226: return Yt(Se); case 206: return fr(Se); case 207: return Ji(Se); case 209: return Ki(Se); case 210: return Rr(Se); case 211: return xt(Se); default: return Bn(Se, We, e); } } function He(Se) { switch (Se.kind) { case 259: return Me(Se); case 215: return ot(Se); default: return D.failBadSyntaxKind(Se); } } function Me(Se) { if (Se.asteriskToken) Se = Vr(mt(t.createFunctionDeclaration(Se.modifiers, void 0, Se.name, void 0, Wl(Se.parameters, We, e), void 0, bt(Se.body)), Se), Se); else { const Dt = C, Nn = I; C = !1, I = !1, Se = Bn(Se, We, e), C = Dt, I = Nn; } if (C) { s(Se); return; } else return Se; } function ot(Se) { if (Se.asteriskToken) Se = Vr(mt(t.createFunctionExpression(void 0, void 0, Se.name, void 0, Wl(Se.parameters, We, e), void 0, bt(Se.body)), Se), Se); else { const Dt = C, Nn = I; C = !1, I = !1, Se = Bn(Se, We, e), C = Dt, I = Nn; } return Se; } function At(Se) { const Dt = C, Nn = I; return C = !1, I = !1, Se = Bn(Se, We, e), C = Dt, I = Nn, Se; } function bt(Se) { const Dt = [], Nn = C, zi = I, xo = O, ae = k, lt = B, Mt = U, Pt = j, sn = te, jn = X, wr = Y, Zr = P, Ri = ue, Ua = ne; C = !0, I = !1, O = void 0, k = void 0, B = void 0, U = void 0, j = void 0, te = void 0, X = 1, Y = void 0, P = void 0, ue = void 0, ne = t.createTempVariable(void 0), i(); const Vo = t.copyPrologue(Se.statements, Dt, !1, We); gn(Se.statements, Vo); const bs = Q(); return wm(Dt, o()), Dt.push(t.createReturnStatement(bs)), C = Nn, I = zi, O = xo, k = ae, B = lt, U = Mt, j = Pt, te = sn, X = jn, Y = wr, P = Zr, ue = Ri, ne = Ua, mt(t.createBlock(Dt, Se.multiLine), Se); } function Vt(Se) { if (Se.transformFlags & 1048576) { _i(Se.declarationList); return; } else { if (ho(Se) & 2097152) return Se; for (const Nn of Se.declarationList.declarations) c(Nn.name); const Dt = JI(Se.declarationList); return Dt.length === 0 ? void 0 : cs(t.createExpressionStatement(t.inlineExpressions(rn(Dt, Rn))), Se); } } function et(Se) { const Dt = cz(Se); switch (Dt) { case 0: return nn(Se); case 1: return it(Se); default: return D.assertNever(Dt); } } function it(Se) { const { left: Dt, right: Nn } = Se; if (Wt(Nn)) { let zi; switch (Dt.kind) { case 208: zi = t.updatePropertyAccessExpression(Dt, we(D.checkDefined(st(Dt.expression, We, gd))), Dt.name); break; case 209: zi = t.updateElementAccessExpression(Dt, we(D.checkDefined(st(Dt.expression, We, gd))), we(D.checkDefined(st(Dt.argumentExpression, We, yt)))); break; default: zi = D.checkDefined(st(Dt, We, yt)); break; } const xo = Se.operatorToken.kind; return p8(xo) ? mt(t.createAssignment(zi, mt(t.createBinaryExpression(we(zi), Hk(xo), D.checkDefined(st(Nn, We, yt))), Se)), Se) : t.updateBinaryExpression(Se, zi, Se.operatorToken, D.checkDefined(st(Nn, We, yt))); } return Bn(Se, We, e); } function nn(Se) { return Wt(Se.right) ? Gue(Se.operatorToken.kind) ? Hn(Se) : Se.operatorToken.kind === 27 ? Xt(Se) : t.updateBinaryExpression(Se, we(D.checkDefined(st(Se.left, We, yt))), Se.operatorToken, D.checkDefined(st(Se.right, We, yt))) : Bn(Se, We, e); } function Xt(Se) { let Dt = []; return Nn(Se.left), Nn(Se.right), t.inlineExpressions(Dt); function Nn(zi) { vr(zi) && zi.operatorToken.kind === 27 ? (Nn(zi.left), Nn(zi.right)) : (Wt(zi) && Dt.length > 0 && (jt(1, [t.createExpressionStatement(t.inlineExpressions(Dt))]), Dt = []), Dt.push(D.checkDefined(st(zi, We, yt)))); } } function On(Se) { let Dt = []; for (const Nn of Se.elements) vr(Nn) && Nn.operatorToken.kind === 27 ? Dt.push(Xt(Nn)) : (Wt(Nn) && Dt.length > 0 && (jt(1, [t.createExpressionStatement(t.inlineExpressions(Dt))]), Dt = []), Dt.push(D.checkDefined(st(Nn, We, yt)))); return t.inlineExpressions(Dt); } function Hn(Se) { const Dt = Rt(), Nn = q(); return pl(Nn, D.checkDefined(st(Se.left, We, yt)), Se.left), Se.operatorToken.kind === 55 ? Zt(Dt, Nn, Se.left) : qs(Dt, Nn, Se.left), pl(Nn, D.checkDefined(st(Se.right, We, yt)), Se.right), ht(Dt), Nn; } function In(Se) { if (Wt(Se.whenTrue) || Wt(Se.whenFalse)) { const Dt = Rt(), Nn = Rt(), zi = q(); return Zt(Dt, D.checkDefined(st(Se.condition, We, yt)), Se.condition), pl(zi, D.checkDefined(st(Se.whenTrue, We, yt)), Se.whenTrue), Qs(Nn), ht(Dt), pl(zi, D.checkDefined(st(Se.whenFalse, We, yt)), Se.whenFalse), ht(Nn), zi; } return Bn(Se, We, e); } function Yt(Se) { const Dt = Rt(), Nn = st(Se.expression, We, yt); if (Se.asteriskToken) { const zi = ho(Se.expression) & 16777216 ? Nn : mt(r().createValuesHelper(Nn), Se); Gl(zi, Se); } else yu(Nn, Se); return ht(Dt), rc(Se); } function fr(Se) { return xi(Se.elements, void 0, void 0, Se.multiLine); } function xi(Se, Dt, Nn, zi) { const xo = rt(Se); let ae; if (xo > 0) { ae = q(); const Pt = Kn(Se, We, yt, 0, xo); pl(ae, t.createArrayLiteralExpression(Dt ? [Dt, ...Pt] : Pt)), Dt = void 0; } const lt = Cu(Se, Mt, [], xo); return ae ? t.createArrayConcatCall(ae, [t.createArrayLiteralExpression(lt, zi)]) : mt(t.createArrayLiteralExpression(Dt ? [Dt, ...lt] : lt, zi), Nn); function Mt(Pt, sn) { if (Wt(sn) && Pt.length > 0) { const jn = ae !== void 0; ae || (ae = q()), pl(ae, jn ? t.createArrayConcatCall(ae, [t.createArrayLiteralExpression(Pt, zi)]) : t.createArrayLiteralExpression(Dt ? [Dt, ...Pt] : Pt, zi)), Dt = void 0, Pt = []; } return Pt.push(D.checkDefined(st(sn, We, yt))), Pt; } } function Ji(Se) { const Dt = Se.properties, Nn = Se.multiLine, zi = rt(Dt), xo = q(); pl(xo, t.createObjectLiteralExpression(Kn(Dt, We, dy, 0, zi), Nn)); const ae = Cu(Dt, lt, [], zi); return ae.push(Nn ? Pu(Bo(mt(t.cloneNode(xo), xo), xo.parent)) : xo), t.inlineExpressions(ae); function lt(Mt, Pt) { Wt(Pt) && Mt.length > 0 && (ks(t.createExpressionStatement(t.inlineExpressions(Mt))), Mt = []); const sn = Hfe(t, Se, Pt, xo), jn = st(sn, We, yt); return jn && (Nn && Pu(jn), Mt.push(jn)), Mt; } } function Ki(Se) { return Wt(Se.argumentExpression) ? t.updateElementAccessExpression(Se, we(D.checkDefined(st(Se.expression, We, gd))), D.checkDefined(st(Se.argumentExpression, We, yt))) : Bn(Se, We, e); } function Rr(Se) { if (!tf(Se) && Ye(Se.arguments, Wt)) { const { target: Dt, thisArg: Nn } = t.createCallBinding(Se.expression, c, d, !0); return Vr(mt(t.createFunctionApplyCall(we(D.checkDefined(st(Dt, We, gd))), Nn, xi(Se.arguments)), Se), Se); } return Bn(Se, We, e); } function xt(Se) { if (Ye(Se.arguments, Wt)) { const { target: Dt, thisArg: Nn } = t.createCallBinding(t.createPropertyAccessExpression(Se.expression, "bind"), c); return Vr(mt(t.createNewExpression(t.createFunctionApplyCall(we(D.checkDefined(st(Dt, We, yt))), Nn, xi(Se.arguments, t.createVoidZero())), void 0, []), Se), Se); } return Bn(Se, We, e); } function gn(Se, Dt = 0) { const Nn = Se.length; for (let zi = Dt; zi < Nn; zi++) ln(Se[zi]); } function Ht(Se) { oo(Se) ? gn(Se.statements) : ln(Se); } function ln(Se) { const Dt = I; I || (I = Wt(Se)), rr(Se), I = Dt; } function rr(Se) { switch (Se.kind) { case 238: return lr(Se); case 241: return Di(Se); case 242: return en(Se); case 243: return Pn(Se); case 244: return Ur(Se); case 245: return gt(Se); case 246: return xe(Se); case 248: return _e(Se); case 249: return me(Se); case 250: return je(Se); case 251: return Je(Se); case 252: return Ut(Se); case 253: return Sn(Se); case 254: return ce(Se); case 255: return pt(Se); default: return ks(st(Se, We, Ia)); } } function lr(Se) { Wt(Se) ? gn(Se.statements) : ks(st(Se, We, Ia)); } function Di(Se) { ks(st(Se, We, Ia)); } function _i(Se) { for (const ae of Se.declarations) { const lt = t.cloneNode(ae.name); Bc(lt, ae.name), c(lt); } const Dt = JI(Se), Nn = Dt.length; let zi = 0, xo = []; for (; zi < Nn; ) { for (let ae = zi; ae < Nn; ae++) { const lt = Dt[ae]; if (Wt(lt.initializer) && xo.length > 0) break; xo.push(Rn(lt)); } xo.length && (ks(t.createExpressionStatement(t.inlineExpressions(xo))), zi += xo.length, xo = []); } } function Rn(Se) { return cs(t.createAssignment(cs(t.cloneNode(Se.name), Se.name), D.checkDefined(st(Se.initializer, We, yt))), Se); } function en(Se) { if (Wt(Se)) if (Wt(Se.thenStatement) || Wt(Se.elseStatement)) { const Dt = Rt(), Nn = Se.elseStatement ? Rt() : void 0; Zt(Se.elseStatement ? Nn : Dt, D.checkDefined(st(Se.expression, We, yt)), Se.expression), Ht(Se.thenStatement), Se.elseStatement && (Qs(Dt), ht(Nn), Ht(Se.elseStatement)), ht(Dt); } else ks(st(Se, We, Ia)); else ks(st(Se, We, Ia)); } function Pn(Se) { if (Wt(Se)) { const Dt = Rt(), Nn = Rt(); Gi(Dt), ht(Nn), Ht(Se.statement), ht(Dt), qs(Nn, D.checkDefined(st(Se.expression, We, yt))), qr(); } else ks(st(Se, We, Ia)); } function xr(Se) { return I ? (sa(), Se = Bn(Se, We, e), qr(), Se) : Bn(Se, We, e); } function Ur(Se) { if (Wt(Se)) { const Dt = Rt(), Nn = Gi(Dt); ht(Dt), Zt(Nn, D.checkDefined(st(Se.expression, We, yt))), Ht(Se.statement), Qs(Dt), qr(); } else ks(st(Se, We, Ia)); } function Ie(Se) { return I ? (sa(), Se = Bn(Se, We, e), qr(), Se) : Bn(Se, We, e); } function gt(Se) { if (Wt(Se)) { const Dt = Rt(), Nn = Rt(), zi = Gi(Nn); if (Se.initializer) { const xo = Se.initializer; Ou(xo) ? _i(xo) : ks(mt(t.createExpressionStatement(D.checkDefined(st(xo, We, yt))), xo)); } ht(Dt), Se.condition && Zt(zi, D.checkDefined(st(Se.condition, We, yt))), Ht(Se.statement), ht(Nn), Se.incrementor && ks(mt(t.createExpressionStatement(D.checkDefined(st(Se.incrementor, We, yt))), Se.incrementor)), Qs(Dt), qr(); } else ks(st(Se, We, Ia)); } function Nt(Se) { I && sa(); const Dt = Se.initializer; if (Dt && Ou(Dt)) { for (const zi of Dt.declarations) c(zi.name); const Nn = JI(Dt); Se = t.updateForStatement(Se, Nn.length > 0 ? t.inlineExpressions(rn(Nn, Rn)) : void 0, st(Se.condition, We, yt), st(Se.incrementor, We, yt), p_(Se.statement, We, e)); } else Se = Bn(Se, We, e); return I && qr(), Se; } function xe(Se) { if (Wt(Se)) { const Dt = q(), Nn = q(), zi = q(), xo = t.createLoopVariable(), ae = Se.initializer; c(xo), pl(Dt, D.checkDefined(st(Se.expression, We, yt))), pl(Nn, t.createArrayLiteralExpression()), ks(t.createForInStatement(zi, Dt, t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Nn, "push"), void 0, [zi])))), pl(xo, t.createNumericLiteral(0)); const lt = Rt(), Mt = Rt(), Pt = Gi(Mt); ht(lt), Zt(Pt, t.createLessThan(xo, t.createPropertyAccessExpression(Nn, "length"))), pl(zi, t.createElementAccessExpression(Nn, xo)), Zt(Mt, t.createBinaryExpression(zi, 101, Dt)); let sn; if (Ou(ae)) { for (const jn of ae.declarations) c(jn.name); sn = t.cloneNode(ae.declarations[0].name); } else sn = D.checkDefined(st(ae, We, yt)), D.assert(gd(sn)); pl(sn, zi), Ht(Se.statement), ht(Mt), ks(t.createExpressionStatement(t.createPostfixIncrement(xo))), Qs(lt), qr(); } else ks(st(Se, We, Ia)); } function _t(Se) { I && sa(); const Dt = Se.initializer; if (Ou(Dt)) { for (const Nn of Dt.declarations) c(Nn.name); Se = t.updateForInStatement(Se, Dt.declarations[0].name, D.checkDefined(st(Se.expression, We, yt)), D.checkDefined(st(Se.statement, We, Ia, t.liftToBlock))); } else Se = Bn(Se, We, e); return I && qr(), Se; } function _e(Se) { const Dt = Aa(Se.label ? Or(Se.label) : void 0); Dt > 0 ? Qs(Dt, Se) : ks(Se); } function re(Se) { if (I) { const Dt = Aa(Se.label && Or(Se.label)); if (Dt > 0) return Xc(Dt, Se); } return Bn(Se, We, e); } function me(Se) { const Dt = So(Se.label ? Or(Se.label) : void 0); Dt > 0 ? Qs(Dt, Se) : ks(Se); } function V(Se) { if (I) { const Dt = So(Se.label && Or(Se.label)); if (Dt > 0) return Xc(Dt, Se); } return Bn(Se, We, e); } function je(Se) { Bu(st(Se.expression, We, yt), Se); } function Qe(Se) { return Ud(st(Se.expression, We, yt), Se); } function Je(Se) { Wt(Se) ? (Ti(we(D.checkDefined(st(Se.expression, We, yt)))), Ht(Se.statement), Si()) : ks(st(Se, We, Ia)); } function Ut(Se) { if (Wt(Se.caseBlock)) { const Dt = Se.caseBlock, Nn = Dt.clauses.length, zi = ui(), xo = we(D.checkDefined(st(Se.expression, We, yt))), ae = []; let lt = -1; for (let sn = 0; sn < Nn; sn++) { const jn = Dt.clauses[sn]; ae.push(Rt()), jn.kind === 293 && lt === -1 && (lt = sn); } let Mt = 0, Pt = []; for (; Mt < Nn; ) { let sn = 0; for (let jn = Mt; jn < Nn; jn++) { const wr = Dt.clauses[jn]; if (wr.kind === 292) { if (Wt(wr.expression) && Pt.length > 0) break; Pt.push(t.createCaseClause(D.checkDefined(st(wr.expression, We, yt)), [ Xc(ae[jn], wr.expression) ])); } else sn++; } Pt.length && (ks(t.createSwitchStatement(xo, t.createCaseBlock(Pt))), Mt += Pt.length, Pt = []), sn > 0 && (Mt += sn, sn = 0); } lt >= 0 ? Qs(ae[lt]) : Qs(zi); for (let sn = 0; sn < Nn; sn++) ht(ae[sn]), gn(Dt.clauses[sn].statements); la(); } else ks(st(Se, We, Ia)); } function on(Se) { return I && is(), Se = Bn(Se, We, e), I && la(), Se; } function Sn(Se) { Wt(Se) ? (da(Or(Se.label)), Ht(Se.statement), $l()) : ks(st(Se, We, Ia)); } function br(Se) { return I && wn(Or(Se.label)), Se = Bn(Se, We, e), I && $l(), Se; } function ce(Se) { var Dt; de(D.checkDefined(st((Dt = Se.expression) != null ? Dt : t.createVoidZero(), We, yt)), Se); } function pt(Se) { Wt(Se) ? (Bi(), Ht(Se.tryBlock), Se.catchClause && (fo(Se.catchClause.variableDeclaration), Ht(Se.catchClause.block)), Se.finallyBlock && (vo(), Ht(Se.finallyBlock)), no()) : ks(Bn(Se, We, e)); } function Wt(Se) { return !!Se && (Se.transformFlags & 1048576) !== 0; } function rt(Se) { const Dt = Se.length; for (let Nn = 0; Nn < Dt; Nn++) if (Wt(Se[Nn])) return Nn; return -1; } function K(Se, Dt) { return Dt = m(Se, Dt), Se === 1 ? Oe(Dt) : Dt; } function Oe(Se) { return Ve(Se) ? Z(Se) : Se; } function Z(Se) { if (!El(Se) && b && b.has(Or(Se))) { const Dt = bl(Se); if (Ve(Dt) && Dt.parent) { const Nn = y.getReferencedValueDeclaration(Dt); if (Nn) { const zi = A[Ll(Nn)]; if (zi) { const xo = Bo(mt(t.cloneNode(zi), zi), zi.parent); return cs(xo, Se), Bc(xo, Se), xo; } } } } return Se; } function we(Se) { if (El(Se) || ho(Se) & 8192) return Se; const Dt = t.createTempVariable(c); return pl(Dt, Se, Se), Dt; } function q(Se) { const Dt = Se ? t.createUniqueName(Se) : t.createTempVariable(void 0); return c(Dt), Dt; } function Rt() { j || (j = []); const Se = X; return X++, j[Se] = -1, Se; } function ht(Se) { D.assert(j !== void 0, "No labels were defined."), j[Se] = Y ? Y.length : 0; } function dt(Se) { O || (O = [], B = [], k = [], U = []); const Dt = B.length; return B[Dt] = 0, k[Dt] = Y ? Y.length : 0, O[Dt] = Se, U.push(Se), Dt; } function dn() { const Se = $n(); if (Se === void 0) return D.fail("beginBlock was never called."); const Dt = B.length; return B[Dt] = 1, k[Dt] = Y ? Y.length : 0, O[Dt] = Se, U.pop(), Se; } function $n() { return Zs(U); } function ii() { const Se = $n(); return Se && Se.kind; } function Ti(Se) { const Dt = Rt(), Nn = Rt(); ht(Dt), dt({ kind: 1, expression: Se, startLabel: Dt, endLabel: Nn }); } function Si() { D.assert(ii() === 1); const Se = dn(); ht(Se.endLabel); } function Bi() { const Se = Rt(), Dt = Rt(); return ht(Se), dt({ kind: 0, state: 0, startLabel: Se, endLabel: Dt }), jc(), Dt; } function fo(Se) { D.assert(ii() === 0); let Dt; if (El(Se.name)) Dt = Se.name, c(Se.name); else { const ae = Or(Se.name); Dt = q(ae), b || (b = /* @__PURE__ */ new Map(), A = [], e.enableSubstitution(79)), b.set(ae, !0), A[Ll(Se)] = Dt; } const Nn = $n(); D.assert(Nn.state < 1); const zi = Nn.endLabel; Qs(zi); const xo = Rt(); ht(xo), Nn.state = 1, Nn.catchVariable = Dt, Nn.catchLabel = xo, pl(Dt, t.createCallExpression(t.createPropertyAccessExpression(ne, "sent"), void 0, [])), jc(); } function vo() { D.assert(ii() === 0); const Se = $n(); D.assert(Se.state < 2); const Dt = Se.endLabel; Qs(Dt); const Nn = Rt(); ht(Nn), Se.state = 2, Se.finallyLabel = Nn; } function no() { D.assert(ii() === 0); const Se = dn(); Se.state < 2 ? Qs(Se.endLabel) : It(), ht(Se.endLabel), jc(), Se.state = 3; } function sa() { dt({ kind: 3, isScript: !0, breakLabel: -1, continueLabel: -1 }); } function Gi(Se) { const Dt = Rt(); return dt({ kind: 3, isScript: !1, breakLabel: Dt, continueLabel: Se }), Dt; } function qr() { D.assert(ii() === 3); const Se = dn(), Dt = Se.breakLabel; Se.isScript || ht(Dt); } function is() { dt({ kind: 2, isScript: !0, breakLabel: -1 }); } function ui() { const Se = Rt(); return dt({ kind: 2, isScript: !1, breakLabel: Se }), Se; } function la() { D.assert(ii() === 2); const Se = dn(), Dt = Se.breakLabel; Se.isScript || ht(Dt); } function wn(Se) { dt({ kind: 4, isScript: !0, labelText: Se, breakLabel: -1 }); } function da(Se) { const Dt = Rt(); dt({ kind: 4, isScript: !1, labelText: Se, breakLabel: Dt }); } function $l() { D.assert(ii() === 4); const Se = dn(); Se.isScript || ht(Se.breakLabel); } function tl(Se) { return Se.kind === 2 || Se.kind === 3; } function Ml(Se) { return Se.kind === 4; } function zl(Se) { return Se.kind === 3; } function Fl(Se, Dt) { for (let Nn = Dt; Nn >= 0; Nn--) { const zi = U[Nn]; if (Ml(zi)) { if (zi.labelText === Se) return !0; } else break; } return !1; } function So(Se) { if (U) if (Se) for (let Dt = U.length - 1; Dt >= 0; Dt--) { const Nn = U[Dt]; if (Ml(Nn) && Nn.labelText === Se) return Nn.breakLabel; if (tl(Nn) && Fl(Se, Dt - 1)) return Nn.breakLabel; } else for (let Dt = U.length - 1; Dt >= 0; Dt--) { const Nn = U[Dt]; if (tl(Nn)) return Nn.breakLabel; } return 0; } function Aa(Se) { if (U) if (Se) for (let Dt = U.length - 1; Dt >= 0; Dt--) { const Nn = U[Dt]; if (zl(Nn) && Fl(Se, Dt - 1)) return Nn.continueLabel; } else for (let Dt = U.length - 1; Dt >= 0; Dt--) { const Nn = U[Dt]; if (zl(Nn)) return Nn.continueLabel; } return 0; } function Jo(Se) { if (Se !== void 0 && Se > 0) { te === void 0 && (te = []); const Dt = t.createNumericLiteral(-1); return te[Se] === void 0 ? te[Se] = [Dt] : te[Se].push(Dt), Dt; } return t.createOmittedExpression(); } function Bl(Se) { const Dt = t.createNumericLiteral(Se); return H3(Dt, 3, $Me(Se)), Dt; } function Xc(Se, Dt) { return D.assertLessThan(0, Se, "Invalid label"), mt(t.createReturnStatement(t.createArrayLiteralExpression([ Bl(3), Jo(Se) ])), Dt); } function Ud(Se, Dt) { return mt(t.createReturnStatement(t.createArrayLiteralExpression(Se ? [Bl(2), Se] : [Bl(2)])), Dt); } function rc(Se) { return mt(t.createCallExpression(t.createPropertyAccessExpression(ne, "sent"), void 0, []), Se); } function jc() { jt(0); } function ks(Se) { Se ? jt(1, [Se]) : jc(); } function pl(Se, Dt, Nn) { jt(2, [Se, Dt], Nn); } function Qs(Se, Dt) { jt(3, [Se], Dt); } function qs(Se, Dt, Nn) { jt(4, [Se, Dt], Nn); } function Zt(Se, Dt, Nn) { jt(5, [Se, Dt], Nn); } function Gl(Se, Dt) { jt(7, [Se], Dt); } function yu(Se, Dt) { jt(6, [Se], Dt); } function Bu(Se, Dt) { jt(8, [Se], Dt); } function de(Se, Dt) { jt(9, [Se], Dt); } function It() { jt(10); } function jt(Se, Dt, Nn) { Y === void 0 && (Y = [], P = [], ue = []), j === void 0 && ht(Rt()); const zi = Y.length; Y[zi] = Se, P[zi] = Dt, ue[zi] = Nn; } function Q() { ge = 0, ie = 0, H = void 0, le = !1, pe = !1, ye = void 0, Te = void 0, ee = void 0, $e = void 0, Ge = void 0; const Se = at(); return r().createGeneratorHelper(or(t.createFunctionExpression(void 0, void 0, void 0, void 0, [t.createParameterDeclaration(void 0, void 0, ne)], void 0, t.createBlock(Se, Se.length > 0)), 1048576)); } function at() { if (Y) { for (let Se = 0; Se < Y.length; Se++) Uo(Se); _n(Y.length); } else _n(0); if (ye) { const Se = t.createPropertyAccessExpression(ne, "label"), Dt = t.createSwitchStatement(Se, t.createCaseBlock(ye)); return [Pu(Dt)]; } return Te || []; } function St() { Te && (Nr(!le), le = !1, pe = !1, ie++); } function _n(Se) { kr(Se) && (va(Se), Ge = void 0, ld(void 0, void 0)), Te && ye && Nr(!1), as(); } function kr(Se) { if (!pe) return !0; if (!j || !te) return !1; for (let Dt = 0; Dt < j.length; Dt++) if (j[Dt] === Se && te[Dt]) return !0; return !1; } function Nr(Se) { if (ye || (ye = []), Te) { if (Ge) for (let Dt = Ge.length - 1; Dt >= 0; Dt--) { const Nn = Ge[Dt]; Te = [t.createWithStatement(Nn.expression, t.createBlock(Te))]; } if ($e) { const { startLabel: Dt, catchLabel: Nn, finallyLabel: zi, endLabel: xo } = $e; Te.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(ne, "trys"), "push"), void 0, [ t.createArrayLiteralExpression([ Jo(Dt), Jo(Nn), Jo(zi), Jo(xo) ]) ]))), $e = void 0; } Se && Te.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ne, "label"), t.createNumericLiteral(ie + 1)))); } ye.push(t.createCaseClause(t.createNumericLiteral(ie), Te || [])), Te = void 0; } function va(Se) { if (j) for (let Dt = 0; Dt < j.length; Dt++) j[Dt] === Se && (St(), H === void 0 && (H = []), H[ie] === void 0 ? H[ie] = [Dt] : H[ie].push(Dt)); } function as() { if (te !== void 0 && H !== void 0) for (let Se = 0; Se < H.length; Se++) { const Dt = H[Se]; if (Dt !== void 0) for (const Nn of Dt) { const zi = te[Nn]; if (zi !== void 0) for (const xo of zi) xo.text = String(Se); } } } function _o(Se) { if (O) for (; ge < B.length && k[ge] <= Se; ge++) { const Dt = O[ge], Nn = B[ge]; switch (Dt.kind) { case 0: Nn === 0 ? (ee || (ee = []), Te || (Te = []), ee.push($e), $e = Dt) : Nn === 1 && ($e = ee.pop()); break; case 1: Nn === 0 ? (Ge || (Ge = []), Ge.push(Dt)) : Nn === 1 && Ge.pop(); break; } } } function Uo(Se) { if (va(Se), _o(Se), le) return; le = !1, pe = !1; const Dt = Y[Se]; if (Dt === 0) return; if (Dt === 10) return Lf(); const Nn = P[Se]; if (Dt === 1) return Ka(Nn[0]); const zi = ue[Se]; switch (Dt) { case 2: return cl(Nn[0], Nn[1], zi); case 3: return vs(Nn[0], zi); case 4: return ls(Nn[0], Nn[1], zi); case 5: return ul(Nn[0], Nn[1], zi); case 6: return Vd(Nn[0], zi); case 7: return Ul(Nn[0], zi); case 8: return ld(Nn[0], zi); case 9: return lc(Nn[0], zi); } } function Ka(Se) { Se && (Te ? Te.push(Se) : Te = [Se]); } function cl(Se, Dt, Nn) { Ka(mt(t.createExpressionStatement(t.createAssignment(Se, Dt)), Nn)); } function lc(Se, Dt) { le = !0, pe = !0, Ka(mt(t.createThrowStatement(Se), Dt)); } function ld(Se, Dt) { le = !0, pe = !0, Ka(or(mt(t.createReturnStatement(t.createArrayLiteralExpression(Se ? [Bl(2), Se] : [Bl(2)])), Dt), 768)); } function vs(Se, Dt) { le = !0, Ka(or(mt(t.createReturnStatement(t.createArrayLiteralExpression([ Bl(3), Jo(Se) ])), Dt), 768)); } function ls(Se, Dt, Nn) { Ka(or(t.createIfStatement(Dt, or(mt(t.createReturnStatement(t.createArrayLiteralExpression([ Bl(3), Jo(Se) ])), Nn), 768)), 1)); } function ul(Se, Dt, Nn) { Ka(or(t.createIfStatement(t.createLogicalNot(Dt), or(mt(t.createReturnStatement(t.createArrayLiteralExpression([ Bl(3), Jo(Se) ])), Nn), 768)), 1)); } function Vd(Se, Dt) { le = !0, Ka(or(mt(t.createReturnStatement(t.createArrayLiteralExpression(Se ? [Bl(4), Se] : [Bl(4)])), Dt), 768)); } function Ul(Se, Dt) { le = !0, Ka(or(mt(t.createReturnStatement(t.createArrayLiteralExpression([ Bl(5), Se ])), Dt), 768)); } function Lf() { le = !0, Ka(t.createReturnStatement(t.createArrayLiteralExpression([ Bl(7) ]))); } } var QMe = L({ "src/compiler/transformers/generators.ts"() { Ra(); } }); function nX(e) { function t(re) { switch (re) { case 2: return P; case 3: return ue; default: return Y; } } const { factory: r, getEmitHelperFactory: i, startLexicalEnvironment: o, endLexicalEnvironment: s, hoistVariableDeclaration: c } = e, f = e.getCompilerOptions(), d = e.getEmitResolver(), y = e.getEmitHost(), m = $o(f), b = Zc(f), A = e.onSubstituteNode, C = e.onEmitNode; e.onSubstituteNode = xr, e.onEmitNode = Pn, e.enableSubstitution(210), e.enableSubstitution(212), e.enableSubstitution(79), e.enableSubstitution(223), e.enableSubstitution(300), e.enableEmitNotification(308); const I = [], O = []; let k, B; const U = []; let j; return W_(e, te); function te(re) { if (re.isDeclarationFile || !(qS(re, f) || re.transformFlags & 8388608 || l_(re) && b3(f) && Ws(f))) return re; k = re, B = HK(e, re, d, f), I[Ll(re)] = B; const V = t(b)(re); return k = void 0, B = void 0, j = !1, V; } function X() { return !!(!B.exportEquals && Yl(k)); } function Y(re) { o(); const me = [], V = f_(f, "alwaysStrict") || !f.noImplicitUseStrict && Yl(k), je = r.copyPrologue(re.statements, me, V && !l_(re), le); if (X() && Fn(me, Di()), Ne(B.exportedNames)) for (let Ut = 0; Ut < B.exportedNames.length; Ut += 50) Fn(me, r.createExpressionStatement(Cu(B.exportedNames.slice(Ut, Ut + 50), (on, Sn) => r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"), r.createIdentifier(Or(Sn))), on), r.createVoidZero()))); Fn(me, st(B.externalHelpersImportDeclaration, le, Ia)), yi(me, Kn(re.statements, le, Ia, je)), H(me, !1), wm(me, s()); const Qe = r.updateSourceFile(re, mt(r.createNodeArray(me), re.statements)); return gy(Qe, e.readEmitHelpers()), Qe; } function P(re) { const me = r.createIdentifier("define"), V = RO(r, re, y, f), je = l_(re) && re, { aliasedModuleNames: Qe, unaliasedModuleNames: Je, importAliasNames: Ut } = ne(re, !0), on = r.updateSourceFile(re, mt(r.createNodeArray([ r.createExpressionStatement(r.createCallExpression(me, void 0, [ ...V ? [V] : [], r.createArrayLiteralExpression(je ? nt : [ r.createStringLiteral("require"), r.createStringLiteral("exports"), ...Qe, ...Je ]), je ? je.statements.length ? je.statements[0].expression : r.createObjectLiteralExpression() : r.createFunctionExpression(void 0, void 0, void 0, void 0, [ r.createParameterDeclaration(void 0, void 0, "require"), r.createParameterDeclaration(void 0, void 0, "exports"), ...Ut ], void 0, ie(re)) ])) ]), re.statements)); return gy(on, e.readEmitHelpers()), on; } function ue(re) { const { aliasedModuleNames: me, unaliasedModuleNames: V, importAliasNames: je } = ne(re, !1), Qe = RO(r, re, y, f), Je = r.createFunctionExpression(void 0, void 0, void 0, void 0, [r.createParameterDeclaration(void 0, void 0, "factory")], void 0, mt(r.createBlock([ r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"), "object"), r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"), "exports"), "object")), r.createBlock([ r.createVariableStatement(void 0, [ r.createVariableDeclaration("v", void 0, void 0, r.createCallExpression(r.createIdentifier("factory"), void 0, [ r.createIdentifier("require"), r.createIdentifier("exports") ])) ]), or(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"), r.createIdentifier("undefined")), r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"), "exports"), r.createIdentifier("v")))), 1) ]), r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"), "function"), r.createPropertyAccessExpression(r.createIdentifier("define"), "amd")), r.createBlock([ r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"), void 0, [ ...Qe ? [Qe] : [], r.createArrayLiteralExpression([ r.createStringLiteral("require"), r.createStringLiteral("exports"), ...me, ...V ]), r.createIdentifier("factory") ])) ]))) ], !0), void 0)), Ut = r.updateSourceFile(re, mt(r.createNodeArray([ r.createExpressionStatement(r.createCallExpression(Je, void 0, [ r.createFunctionExpression(void 0, void 0, void 0, void 0, [ r.createParameterDeclaration(void 0, void 0, "require"), r.createParameterDeclaration(void 0, void 0, "exports"), ...je ], void 0, ie(re)) ])) ]), re.statements)); return gy(Ut, e.readEmitHelpers()), Ut; } function ne(re, me) { const V = [], je = [], Qe = []; for (const Je of re.amdDependencies) Je.name ? (V.push(r.createStringLiteral(Je.path)), Qe.push(r.createParameterDeclaration(void 0, void 0, Je.name))) : je.push(r.createStringLiteral(Je.path)); for (const Je of B.externalImports) { const Ut = kx(r, Je, k, y, d, f), on = bC(r, Je, k); Ut && (me && on ? (or(on, 8), V.push(Ut), Qe.push(r.createParameterDeclaration(void 0, void 0, on))) : je.push(Ut)); } return { aliasedModuleNames: V, unaliasedModuleNames: je, importAliasNames: Qe }; } function ge(re) { if (tu(re) || Kc(re) || !kx(r, re, k, y, d, f)) return; const me = bC(r, re, k), V = bt(re, me); if (V !== me) return r.createExpressionStatement(r.createAssignment(me, V)); } function ie(re) { o(); const me = [], V = r.copyPrologue(re.statements, me, !f.noImplicitUseStrict, le); X() && Fn(me, Di()), Ne(B.exportedNames) && Fn(me, r.createExpressionStatement(Cu(B.exportedNames, (Qe, Je) => r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"), r.createIdentifier(Or(Je))), Qe), r.createVoidZero()))), Fn(me, st(B.externalHelpersImportDeclaration, le, Ia)), b === 2 && yi(me, _a(B.externalImports, ge)), yi(me, Kn(re.statements, le, Ia, V)), H(me, !0), wm(me, s()); const je = r.createBlock(me, !0); return j && dx(je, she), je; } function H(re, me) { if (B.exportEquals) { const V = st(B.exportEquals.expression, ye, yt); if (V) if (me) { const je = r.createReturnStatement(V); mt(je, B.exportEquals), or(je, 3840), re.push(je); } else { const je = r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"), "exports"), V)); mt(je, B.exportEquals), or(je, 3072), re.push(je); } } } function le(re) { switch (re.kind) { case 269: return Vt(re); case 268: return it(re); case 275: return nn(re); case 274: return Xt(re); case 240: return In(re); case 259: return On(re); case 260: return Hn(re); case 358: return xi(re); case 359: return Ki(re); default: return ye(re); } } function pe(re, me) { if (!(re.transformFlags & 276828160)) return re; switch (re.kind) { case 245: return Ge(re); case 241: return Fe(re); case 214: return We(re, me); case 356: return Re(re, me); case 210: if (tf(re) && k.impliedNodeFormat === void 0) return Ke(re); break; case 223: if (my(re)) return $e(re, me); break; case 221: case 222: return Pe(re, me); } return Bn(re, ye, e); } function ye(re) { return pe(re, !1); } function Te(re) { return pe(re, !0); } function ee(re) { if (As(re)) for (const me of re.properties) switch (me.kind) { case 299: if (ee(me.initializer)) return !0; break; case 300: if (ee(me.name)) return !0; break; case 301: if (ee(me.expression)) return !0; break; case 171: case 174: case 175: return !1; default: D.assertNever(me, "Unhandled object member kind"); } else if (Ru(re)) { for (const me of re.elements) if (Th(me)) { if (ee(me.expression)) return !0; } else if (ee(me)) return !0; } else if (Ve(re)) return Ne(_e(re)) > (R7(re) ? 1 : 0); return !1; } function $e(re, me) { return ee(re.left) ? RT(re, ye, e, 0, !me, Yt) : Bn(re, ye, e); } function Ge(re) { return r.updateForStatement(re, st(re.initializer, Te, jp), st(re.condition, ye, yt), st(re.incrementor, Te, yt), p_(re.statement, ye, e)); } function Fe(re) { return r.updateExpressionStatement(re, st(re.expression, Te, yt)); } function We(re, me) { return r.updateParenthesizedExpression(re, st(re.expression, me ? Te : ye, yt)); } function Re(re, me) { return r.updatePartiallyEmittedExpression(re, st(re.expression, me ? Te : ye, yt)); } function Pe(re, me) { if ((re.operator === 45 || re.operator === 46) && Ve(re.operand) && !El(re.operand) && !Pv(re.operand) && !GN(re.operand)) { const V = _e(re.operand); if (V) { let je, Qe = st(re.operand, ye, yt); Nv(re) ? Qe = r.updatePrefixUnaryExpression(re, Qe) : (Qe = r.updatePostfixUnaryExpression(re, Qe), me || (je = r.createTempVariable(c), Qe = r.createAssignment(je, Qe), mt(Qe, re)), Qe = r.createComma(Qe, r.cloneNode(re.operand)), mt(Qe, re)); for (const Je of V) U[ds(Qe)] = !0, Qe = Rn(Je, Qe), mt(Qe, re); return je && (U[ds(Qe)] = !0, Qe = r.createComma(Qe, je), mt(Qe, re)), Qe; } } return Bn(re, ye, e); } function Ke(re) { if (b === 0 && m >= 7) return Bn(re, ye, e); const me = kx(r, re, k, y, d, f), V = st(Wc(re.arguments), ye, yt), je = me && (!V || !Go(V) || V.text !== me.text) ? me : V, Qe = !!(re.transformFlags & 16384); switch (f.module) { case 2: return Me(je, Qe); case 3: return He(je ?? r.createVoidZero(), Qe); case 1: default: return ot(je); } } function He(re, me) { if (j = !0, M1(re)) { const V = El(re) ? re : Go(re) ? r.createStringLiteralFromNode(re) : or(mt(r.cloneNode(re), re), 3072); return r.createConditionalExpression(r.createIdentifier("__syncRequire"), void 0, ot(re), void 0, Me(V, me)); } else { const V = r.createTempVariable(c); return r.createComma(r.createAssignment(V, re), r.createConditionalExpression(r.createIdentifier("__syncRequire"), void 0, ot(V, !0), void 0, Me(V, me))); } } function Me(re, me) { const V = r.createUniqueName("resolve"), je = r.createUniqueName("reject"), Qe = [ r.createParameterDeclaration(void 0, void 0, V), r.createParameterDeclaration(void 0, void 0, je) ], Je = r.createBlock([ r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"), void 0, [r.createArrayLiteralExpression([re || r.createOmittedExpression()]), V, je])) ]); let Ut; m >= 2 ? Ut = r.createArrowFunction(void 0, void 0, Qe, void 0, void 0, Je) : (Ut = r.createFunctionExpression(void 0, void 0, void 0, void 0, Qe, void 0, Je), me && or(Ut, 16)); const on = r.createNewExpression(r.createIdentifier("Promise"), void 0, [Ut]); return B_(f) ? r.createCallExpression(r.createPropertyAccessExpression(on, r.createIdentifier("then")), void 0, [i().createImportStarCallbackHelper()]) : on; } function ot(re, me) { const V = re && !Zp(re) && !me, je = r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"), "resolve"), void 0, V ? m >= 2 ? [ r.createTemplateExpression(r.createTemplateHead(""), [ r.createTemplateSpan(re, r.createTemplateTail("")) ]) ] : [ r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""), "concat"), void 0, [re]) ] : []); let Qe = r.createCallExpression(r.createIdentifier("require"), void 0, V ? [r.createIdentifier("s")] : re ? [re] : []); B_(f) && (Qe = i().createImportStarHelper(Qe)); const Je = V ? [ r.createParameterDeclaration(void 0, void 0, "s") ] : []; let Ut; return m >= 2 ? Ut = r.createArrowFunction(void 0, void 0, Je, void 0, void 0, Qe) : Ut = r.createFunctionExpression(void 0, void 0, void 0, void 0, Je, void 0, r.createBlock([r.createReturnStatement(Qe)])), r.createCallExpression(r.createPropertyAccessExpression(je, "then"), void 0, [Ut]); } function At(re, me) { return !B_(f) || R_(re) & 2 ? me : Ome(re) ? i().createImportStarHelper(me) : me; } function bt(re, me) { return !B_(f) || R_(re) & 2 ? me : w5(re) ? i().createImportStarHelper(me) : jK(re) ? i().createImportDefaultHelper(me) : me; } function Vt(re) { let me; const V = PA(re); if (b !== 2) if (re.importClause) { const je = []; V && !YS(re) ? je.push(r.createVariableDeclaration(r.cloneNode(V.name), void 0, void 0, bt(re, et(re)))) : (je.push(r.createVariableDeclaration(r.getGeneratedNameForNode(re), void 0, void 0, bt(re, et(re)))), V && YS(re) && je.push(r.createVariableDeclaration(r.cloneNode(V.name), void 0, void 0, r.getGeneratedNameForNode(re)))), me = Fn(me, Vr(mt(r.createVariableStatement(void 0, r.createVariableDeclarationList(je, m >= 2 ? 2 : 0)), re), re)); } else return Vr(mt(r.createExpressionStatement(et(re)), re), re); else V && YS(re) && (me = Fn(me, r.createVariableStatement(void 0, r.createVariableDeclarationList([ Vr(mt(r.createVariableDeclaration(r.cloneNode(V.name), void 0, void 0, r.getGeneratedNameForNode(re)), re), re) ], m >= 2 ? 2 : 0)))); if (Ji(re)) { const je = Ll(re); O[je] = Rr(O[je], re); } else me = Rr(me, re); return Em(me); } function et(re) { const me = kx(r, re, k, y, d, f), V = []; return me && V.push(me), r.createCallExpression(r.createIdentifier("require"), void 0, V); } function it(re) { D.assert(G0(re), "import= for internal module references should be handled in an earlier transformer."); let me; if (b !== 2 ? Jr(re, 1) ? me = Fn(me, Vr(mt(r.createExpressionStatement(Rn(re.name, et(re))), re), re)) : me = Fn(me, Vr(mt(r.createVariableStatement(void 0, r.createVariableDeclarationList([ r.createVariableDeclaration(r.cloneNode(re.name), void 0, void 0, et(re)) ], m >= 2 ? 2 : 0)), re), re)) : Jr(re, 1) && (me = Fn(me, Vr(mt(r.createExpressionStatement(Rn(r.getExportName(re), r.getLocalName(re))), re), re))), Ji(re)) { const V = Ll(re); O[V] = xt(O[V], re); } else me = xt(me, re); return Em(me); } function nn(re) { if (!re.moduleSpecifier) return; const me = r.getGeneratedNameForNode(re); if (re.exportClause && j_(re.exportClause)) { const V = []; b !== 2 && V.push(Vr(mt(r.createVariableStatement(void 0, r.createVariableDeclarationList([ r.createVariableDeclaration(me, void 0, void 0, et(re)) ])), re), re)); for (const je of re.exportClause.elements) if (m === 0) V.push(Vr(mt(r.createExpressionStatement(i().createCreateBindingHelper(me, r.createStringLiteralFromNode(je.propertyName || je.name), je.propertyName ? r.createStringLiteralFromNode(je.name) : void 0)), je), je)); else { const Qe = !!B_(f) && !(R_(re) & 2) && Or(je.propertyName || je.name) === "default", Je = r.createPropertyAccessExpression(Qe ? i().createImportDefaultHelper(me) : me, je.propertyName || je.name); V.push(Vr(mt(r.createExpressionStatement(Rn(r.getExportName(je), Je, void 0, !0)), je), je)); } return Em(V); } else if (re.exportClause) { const V = []; return V.push(Vr(mt(r.createExpressionStatement(Rn(r.cloneNode(re.exportClause.name), At(re, b !== 2 ? et(re) : wM(re) ? me : r.createIdentifier(Or(re.exportClause.name))))), re), re)), Em(V); } else return Vr(mt(r.createExpressionStatement(i().createExportStarHelper(b !== 2 ? et(re) : me)), re), re); } function Xt(re) { if (re.isExportEquals) return; let me; const V = re.original; if (V && Ji(V)) { const je = Ll(re); O[je] = lr(O[je], r.createIdentifier("default"), st(re.expression, ye, yt), re, !0); } else me = lr(me, r.createIdentifier("default"), st(re.expression, ye, yt), re, !0); return Em(me); } function On(re) { let me; if (Jr(re, 1) ? me = Fn(me, Vr(mt(r.createFunctionDeclaration(Kn(re.modifiers, en, lo), re.asteriskToken, r.getDeclarationName(re, !0, !0), void 0, Kn(re.parameters, ye, Ma), void 0, Bn(re.body, ye, e)), re), re)) : me = Fn(me, Bn(re, ye, e)), Ji(re)) { const V = Ll(re); O[V] = ln(O[V], re); } else me = ln(me, re); return Em(me); } function Hn(re) { let me; if (Jr(re, 1) ? me = Fn(me, Vr(mt(r.createClassDeclaration(Kn(re.modifiers, en, el), r.getDeclarationName(re, !0, !0), void 0, Kn(re.heritageClauses, ye, Md), Kn(re.members, ye, Pc)), re), re)) : me = Fn(me, Bn(re, ye, e)), Ji(re)) { const V = Ll(re); O[V] = ln(O[V], re); } else me = ln(me, re); return Em(me); } function In(re) { let me, V, je; if (Jr(re, 1)) { let Qe, Je = !1; for (const Ut of re.declarationList.declarations) if (Ve(Ut.name) && Pv(Ut.name)) if (Qe || (Qe = Kn(re.modifiers, en, lo)), Ut.initializer) { const on = r.updateVariableDeclaration(Ut, Ut.name, void 0, void 0, Rn(Ut.name, st(Ut.initializer, ye, yt))); V = Fn(V, on); } else V = Fn(V, Ut); else if (Ut.initializer) if (!Ja(Ut.name) && (zs(Ut.initializer) || Ms(Ut.initializer) || Nu(Ut.initializer))) { const on = r.createAssignment(mt(r.createPropertyAccessExpression(r.createIdentifier("exports"), Ut.name), Ut.name), r.createIdentifier(P_(Ut.name))), Sn = r.createVariableDeclaration(Ut.name, Ut.exclamationToken, Ut.type, st(Ut.initializer, ye, yt)); V = Fn(V, Sn), je = Fn(je, on), Je = !0; } else je = Fn(je, fr(Ut)); if (V && (me = Fn(me, r.updateVariableStatement(re, Qe, r.updateVariableDeclarationList(re.declarationList, V)))), je) { const Ut = Vr(mt(r.createExpressionStatement(r.inlineExpressions(je)), re), re); Je && sO(Ut), me = Fn(me, Ut); } } else me = Fn(me, Bn(re, ye, e)); if (Ji(re)) { const Qe = Ll(re); O[Qe] = gn(O[Qe], re); } else me = gn(me, re); return Em(me); } function Yt(re, me, V) { const je = _e(re); if (je) { let Qe = R7(re) ? me : r.createAssignment(re, me); for (const Je of je) or(Qe, 8), Qe = Rn(Je, Qe, V); return Qe; } return r.createAssignment(re, me); } function fr(re) { return Ja(re.name) ? RT(st(re, ye, Oz), ye, e, 0, !1, Yt) : r.createAssignment(mt(r.createPropertyAccessExpression(r.createIdentifier("exports"), re.name), re.name), re.initializer ? st(re.initializer, ye, yt) : r.createVoidZero()); } function xi(re) { if (Ji(re) && re.original.kind === 240) { const me = Ll(re); O[me] = gn(O[me], re.original); } return re; } function Ji(re) { return (ho(re) & 8388608) !== 0; } function Ki(re) { const me = Ll(re), V = O[me]; return V ? (delete O[me], Fn(V, re)) : re; } function Rr(re, me) { if (B.exportEquals) return re; const V = me.importClause; if (!V) return re; V.name && (re = rr(re, V)); const je = V.namedBindings; if (je) switch (je.kind) { case 271: re = rr(re, je); break; case 272: for (const Qe of je.elements) re = rr(re, Qe, !0); break; } return re; } function xt(re, me) { return B.exportEquals ? re : rr(re, me); } function gn(re, me) { if (B.exportEquals) return re; for (const V of me.declarationList.declarations) re = Ht(re, V); return re; } function Ht(re, me) { if (B.exportEquals) return re; if (Ja(me.name)) for (const V of me.name.elements) Ic(V) || (re = Ht(re, V)); else El(me.name) || (re = rr(re, me)); return re; } function ln(re, me) { if (B.exportEquals) return re; if (Jr(me, 1)) { const V = Jr(me, 1024) ? r.createIdentifier("default") : r.getDeclarationName(me); re = lr(re, V, r.getLocalName(me), me); } return me.name && (re = rr(re, me)), re; } function rr(re, me, V) { const je = r.getDeclarationName(me), Qe = B.exportSpecifiers.get(Or(je)); if (Qe) for (const Je of Qe) re = lr(re, Je.name, je, Je.name, void 0, V); return re; } function lr(re, me, V, je, Qe, Je) { return re = Fn(re, _i(me, V, je, Qe, Je)), re; } function Di() { let re; return m === 0 ? re = r.createExpressionStatement(Rn(r.createIdentifier("__esModule"), r.createTrue())) : re = r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"), "defineProperty"), void 0, [ r.createIdentifier("exports"), r.createStringLiteral("__esModule"), r.createObjectLiteralExpression([ r.createPropertyAssignment("value", r.createTrue()) ]) ])), or(re, 2097152), re; } function _i(re, me, V, je, Qe) { const Je = mt(r.createExpressionStatement(Rn(re, me, void 0, Qe)), V); return Pu(Je), je || or(Je, 3072), Je; } function Rn(re, me, V, je) { return mt(je && m !== 0 ? r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"), "defineProperty"), void 0, [ r.createIdentifier("exports"), r.createStringLiteralFromNode(re), r.createObjectLiteralExpression([ r.createPropertyAssignment("enumerable", r.createTrue()), r.createPropertyAssignment("get", r.createFunctionExpression(void 0, void 0, void 0, void 0, [], void 0, r.createBlock([r.createReturnStatement(me)]))) ]) ]) : r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"), r.cloneNode(re)), me), V); } function en(re) { switch (re.kind) { case 93: case 88: return; } return re; } function Pn(re, me, V) { me.kind === 308 ? (k = me, B = I[Ll(k)], C(re, me, V), k = void 0, B = void 0) : C(re, me, V); } function xr(re, me) { return me = A(re, me), me.id && U[me.id] ? me : re === 1 ? Ie(me) : Xf(me) ? Ur(me) : me; } function Ur(re) { const me = re.name, V = xe(me); if (V !== me) { if (re.objectAssignmentInitializer) { const je = r.createAssignment(V, re.objectAssignmentInitializer); return mt(r.createPropertyAssignment(me, je), re); } return mt(r.createPropertyAssignment(me, V), re); } return re; } function Ie(re) { switch (re.kind) { case 79: return xe(re); case 210: return gt(re); case 212: return Nt(re); case 223: return _t(re); } return re; } function gt(re) { if (Ve(re.expression)) { const me = xe(re.expression); if (U[ds(me)] = !0, !Ve(me) && !(ho(re.expression) & 8192)) return ux(r.updateCallExpression(re, me, void 0, re.arguments), 16); } return re; } function Nt(re) { if (Ve(re.tag)) { const me = xe(re.tag); if (U[ds(me)] = !0, !Ve(me) && !(ho(re.tag) & 8192)) return ux(r.updateTaggedTemplateExpression(re, me, void 0, re.template), 16); } return re; } function xe(re) { var me, V; if (ho(re) & 8192) { const je = DO(k); return je ? r.createPropertyAccessExpression(je, re) : re; } else if (!(El(re) && !(re.emitNode.autoGenerate.flags & 64)) && !Pv(re)) { const je = d.getReferencedExportContainer(re, R7(re)); if (je && je.kind === 308) return mt(r.createPropertyAccessExpression(r.createIdentifier("exports"), r.cloneNode(re)), re); const Qe = d.getReferencedImportDeclaration(re); if (Qe) { if (Gm(Qe)) return mt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(Qe.parent), r.createIdentifier("default")), re); if (Td(Qe)) { const Je = Qe.propertyName || Qe.name; return mt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((V = (me = Qe.parent) == null ? void 0 : me.parent) == null ? void 0 : V.parent) || Qe), r.cloneNode(Je)), re); } } } return re; } function _t(re) { if (py(re.operatorToken.kind) && Ve(re.left) && !El(re.left) && !Pv(re.left) && !GN(re.left)) { const me = _e(re.left); if (me) { let V = re; for (const je of me) U[ds(V)] = !0, V = Rn(je, V, re); return V; } } return re; } function _e(re) { if (!El(re)) { const me = d.getReferencedImportDeclaration(re) || d.getReferencedValueDeclaration(re); if (me) return B && B.exportedBindings[Ll(me)]; } } } var she, ZMe = L({ "src/compiler/transformers/module/module.ts"() { Ra(), she = { name: "typescript:dynamicimport-sync-require", scoped: !0, text: ` var __syncRequire = typeof module === "object" && typeof module.exports === "object";` }; } }); function lhe(e) { const { factory: t, startLexicalEnvironment: r, endLexicalEnvironment: i, hoistVariableDeclaration: o } = e, s = e.getCompilerOptions(), c = e.getEmitResolver(), f = e.getEmitHost(), d = e.onSubstituteNode, y = e.onEmitNode; e.onSubstituteNode = Qe, e.onEmitNode = je, e.enableSubstitution(79), e.enableSubstitution(300), e.enableSubstitution(223), e.enableSubstitution(233), e.enableEmitNotification(308); const m = [], b = [], A = [], C = [], I = []; let O, k, B, U, j, te, X; return W_(e, Y); function Y(K) { if (K.isDeclarationFile || !(qS(K, s) || K.transformFlags & 8388608)) return K; const Oe = Ll(K); O = K, te = K, k = m[Oe] = HK(e, K, c, s), B = t.createUniqueName("exports"), A[Oe] = B, U = I[Oe] = t.createUniqueName("context"); const Z = P(k.externalImports), we = ue(K, Z), q = t.createFunctionExpression(void 0, void 0, void 0, void 0, [ t.createParameterDeclaration(void 0, void 0, B), t.createParameterDeclaration(void 0, void 0, U) ], void 0, we), Rt = RO(t, K, f, s), ht = t.createArrayLiteralExpression(rn(Z, (dn) => dn.name)), dt = or(t.updateSourceFile(K, mt(t.createNodeArray([ t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"), "register"), void 0, Rt ? [Rt, ht, q] : [ht, q])) ]), K.statements)), 2048); return Ws(s) || ofe(dt, we, (dn) => !dn.scoped), X && (C[Oe] = X, X = void 0), O = void 0, k = void 0, B = void 0, U = void 0, j = void 0, te = void 0, dt; } function P(K) { const Oe = /* @__PURE__ */ new Map(), Z = []; for (const we of K) { const q = kx(t, we, O, f, c, s); if (q) { const Rt = q.text, ht = Oe.get(Rt); ht !== void 0 ? Z[ht].externalImports.push(we) : (Oe.set(Rt, Z.length), Z.push({ name: q, externalImports: [we] })); } } return Z; } function ue(K, Oe) { const Z = []; r(); const we = f_(s, "alwaysStrict") || !s.noImplicitUseStrict && Yl(O), q = t.copyPrologue(K.statements, Z, we, H); Z.push(t.createVariableStatement(void 0, t.createVariableDeclarationList([ t.createVariableDeclaration("__moduleName", void 0, void 0, t.createLogicalAnd(U, t.createPropertyAccessExpression(U, "id"))) ]))), st(k.externalHelpersImportDeclaration, H, Ia); const Rt = Kn(K.statements, H, Ia, q); yi(Z, j), wm(Z, i()); const ht = ne(Z), dt = K.transformFlags & 2097152 ? t.createModifiersFromModifierFlags(512) : void 0, dn = t.createObjectLiteralExpression([ t.createPropertyAssignment("setters", ie(ht, Oe)), t.createPropertyAssignment("execute", t.createFunctionExpression(dt, void 0, void 0, void 0, [], void 0, t.createBlock(Rt, !0))) ], !0); return Z.push(t.createReturnStatement(dn)), t.createBlock(Z, !0); } function ne(K) { if (!k.hasExportStarsToExportValues) return; if (!k.exportedNames && k.exportSpecifiers.size === 0) { let q = !1; for (const Rt of k.externalImports) if (Rt.kind === 275 && Rt.exportClause) { q = !0; break; } if (!q) { const Rt = ge(void 0); return K.push(Rt), Rt.name; } } const Oe = []; if (k.exportedNames) for (const q of k.exportedNames) q.escapedText !== "default" && Oe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(q), t.createTrue())); const Z = t.createUniqueName("exportedNames"); K.push(t.createVariableStatement(void 0, t.createVariableDeclarationList([ t.createVariableDeclaration(Z, void 0, void 0, t.createObjectLiteralExpression(Oe, !0)) ]))); const we = ge(Z); return K.push(we), we.name; } function ge(K) { const Oe = t.createUniqueName("exportStar"), Z = t.createIdentifier("m"), we = t.createIdentifier("n"), q = t.createIdentifier("exports"); let Rt = t.createStrictInequality(we, t.createStringLiteral("default")); return K && (Rt = t.createLogicalAnd(Rt, t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(K, "hasOwnProperty"), void 0, [we])))), t.createFunctionDeclaration(void 0, void 0, Oe, void 0, [t.createParameterDeclaration(void 0, void 0, Z)], void 0, t.createBlock([ t.createVariableStatement(void 0, t.createVariableDeclarationList([ t.createVariableDeclaration(q, void 0, void 0, t.createObjectLiteralExpression([])) ])), t.createForInStatement(t.createVariableDeclarationList([ t.createVariableDeclaration(we) ]), Z, t.createBlock([ or(t.createIfStatement(Rt, t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(q, we), t.createElementAccessExpression(Z, we)))), 1) ])), t.createExpressionStatement(t.createCallExpression(B, void 0, [q])) ], !0)); } function ie(K, Oe) { const Z = []; for (const we of Oe) { const q = Ye(we.externalImports, (dt) => bC(t, dt, O)), Rt = q ? t.getGeneratedNameForNode(q) : t.createUniqueName(""), ht = []; for (const dt of we.externalImports) { const dn = bC(t, dt, O); switch (dt.kind) { case 269: if (!dt.importClause) break; case 268: D.assert(dn !== void 0), ht.push(t.createExpressionStatement(t.createAssignment(dn, Rt))), Jr(dt, 1) && ht.push(t.createExpressionStatement(t.createCallExpression(B, void 0, [ t.createStringLiteral(Or(dn)), Rt ]))); break; case 275: if (D.assert(dn !== void 0), dt.exportClause) if (j_(dt.exportClause)) { const $n = []; for (const ii of dt.exportClause.elements) $n.push(t.createPropertyAssignment(t.createStringLiteral(Or(ii.name)), t.createElementAccessExpression(Rt, t.createStringLiteral(Or(ii.propertyName || ii.name))))); ht.push(t.createExpressionStatement(t.createCallExpression(B, void 0, [t.createObjectLiteralExpression($n, !0)]))); } else ht.push(t.createExpressionStatement(t.createCallExpression(B, void 0, [ t.createStringLiteral(Or(dt.exportClause.name)), Rt ]))); else ht.push(t.createExpressionStatement(t.createCallExpression(K, void 0, [Rt]))); break; } } Z.push(t.createFunctionExpression(void 0, void 0, void 0, void 0, [t.createParameterDeclaration(void 0, void 0, Rt)], void 0, t.createBlock(ht, !0))); } return t.createArrayLiteralExpression(Z, !0); } function H(K) { switch (K.kind) { case 269: return le(K); case 268: return ye(K); case 275: return pe(K); case 274: return Te(K); default: return Yt(K); } } function le(K) { let Oe; if (K.importClause && o(bC(t, K, O)), ot(K)) { const Z = Ll(K); b[Z] = bt(b[Z], K); } else Oe = bt(Oe, K); return Em(Oe); } function pe(K) { D.assertIsDefined(K); } function ye(K) { D.assert(G0(K), "import= for internal module references should be handled in an earlier transformer."); let Oe; if (o(bC(t, K, O)), ot(K)) { const Z = Ll(K); b[Z] = Vt(b[Z], K); } else Oe = Vt(Oe, K); return Em(Oe); } function Te(K) { if (K.isExportEquals) return; const Oe = st(K.expression, Ur, yt), Z = K.original; if (Z && ot(Z)) { const we = Ll(K); b[we] = On(b[we], t.createIdentifier("default"), Oe, !0); } else return Hn(t.createIdentifier("default"), Oe, !0); } function ee(K) { if (Jr(K, 1) ? j = Fn(j, t.updateFunctionDeclaration(K, Kn(K.modifiers, V, el), K.asteriskToken, t.getDeclarationName(K, !0, !0), void 0, Kn(K.parameters, Ur, Ma), void 0, st(K.body, Ur, oo))) : j = Fn(j, Bn(K, Ur, e)), ot(K)) { const Oe = Ll(K); b[Oe] = nn(b[Oe], K); } else j = nn(j, K); } function $e(K) { let Oe; const Z = t.getLocalName(K); if (o(Z), Oe = Fn(Oe, mt(t.createExpressionStatement(t.createAssignment(Z, mt(t.createClassExpression(Kn(K.modifiers, V, el), K.name, void 0, Kn(K.heritageClauses, Ur, Md), Kn(K.members, Ur, Pc)), K))), K)), ot(K)) { const we = Ll(K); b[we] = nn(b[we], K); } else Oe = nn(Oe, K); return Em(Oe); } function Ge(K) { if (!We(K.declarationList)) return st(K, Ur, Ia); let Oe; const Z = Jr(K, 1), we = ot(K); for (const Rt of K.declarationList.declarations) Rt.initializer ? Oe = Fn(Oe, Re(Rt, Z && !we)) : Fe(Rt); let q; if (Oe && (q = Fn(q, mt(t.createExpressionStatement(t.inlineExpressions(Oe)), K))), we) { const Rt = Ll(K); b[Rt] = et(b[Rt], K, Z); } else q = et(q, K, !1); return Em(q); } function Fe(K) { if (Ja(K.name)) for (const Oe of K.name.elements) Ic(Oe) || Fe(Oe); else o(t.cloneNode(K.name)); } function We(K) { return (ho(K) & 4194304) === 0 && (te.kind === 308 || (bl(K).flags & 3) === 0); } function Re(K, Oe) { const Z = Oe ? Pe : Ke; return Ja(K.name) ? RT(K, Ur, e, 0, !1, Z) : K.initializer ? Z(K.name, st(K.initializer, Ur, yt)) : K.name; } function Pe(K, Oe, Z) { return He(K, Oe, Z, !0); } function Ke(K, Oe, Z) { return He(K, Oe, Z, !1); } function He(K, Oe, Z, we) { return o(t.cloneNode(K)), we ? In(K, Wt(mt(t.createAssignment(K, Oe), Z))) : Wt(mt(t.createAssignment(K, Oe), Z)); } function Me(K) { if (ot(K) && K.original.kind === 240) { const Oe = Ll(K), Z = Jr(K.original, 1); b[Oe] = et(b[Oe], K.original, Z); } return K; } function ot(K) { return (ho(K) & 8388608) !== 0; } function At(K) { const Oe = Ll(K), Z = b[Oe]; if (Z) return delete b[Oe], Fn(Z, K); { const we = bl(K); if (VR(we)) return Fn(Xt(Z, we), K); } return K; } function bt(K, Oe) { if (k.exportEquals) return K; const Z = Oe.importClause; if (!Z) return K; Z.name && (K = Xt(K, Z)); const we = Z.namedBindings; if (we) switch (we.kind) { case 271: K = Xt(K, we); break; case 272: for (const q of we.elements) K = Xt(K, q); break; } return K; } function Vt(K, Oe) { return k.exportEquals ? K : Xt(K, Oe); } function et(K, Oe, Z) { if (k.exportEquals) return K; for (const we of Oe.declarationList.declarations) (we.initializer || Z) && (K = it(K, we, Z)); return K; } function it(K, Oe, Z) { if (k.exportEquals) return K; if (Ja(Oe.name)) for (const we of Oe.name.elements) Ic(we) || (K = it(K, we, Z)); else if (!El(Oe.name)) { let we; Z && (K = On(K, Oe.name, t.getLocalName(Oe)), we = Or(Oe.name)), K = Xt(K, Oe, we); } return K; } function nn(K, Oe) { if (k.exportEquals) return K; let Z; if (Jr(Oe, 1)) { const we = Jr(Oe, 1024) ? t.createStringLiteral("default") : Oe.name; K = On(K, we, t.getLocalName(Oe)), Z = P_(we); } return Oe.name && (K = Xt(K, Oe, Z)), K; } function Xt(K, Oe, Z) { if (k.exportEquals) return K; const we = t.getDeclarationName(Oe), q = k.exportSpecifiers.get(Or(we)); if (q) for (const Rt of q) Rt.name.escapedText !== Z && (K = On(K, Rt.name, we)); return K; } function On(K, Oe, Z, we) { return K = Fn(K, Hn(Oe, Z, we)), K; } function Hn(K, Oe, Z) { const we = t.createExpressionStatement(In(K, Oe)); return Pu(we), Z || or(we, 3072), we; } function In(K, Oe) { const Z = Ve(K) ? t.createStringLiteralFromNode(K) : K; return or(Oe, ho(Oe) | 3072), Bc(t.createCallExpression(B, void 0, [Z, Oe]), Oe); } function Yt(K) { switch (K.kind) { case 240: return Ge(K); case 259: return ee(K); case 260: return $e(K); case 245: return fr(K, !0); case 246: return xi(K); case 247: return Ji(K); case 243: return xt(K); case 244: return gn(K); case 253: return Ht(K); case 251: return ln(K); case 252: return rr(K); case 266: return lr(K); case 292: return Di(K); case 293: return _i(K); case 255: return Rn(K); case 295: return en(K); case 238: return Pn(K); case 358: return Me(K); case 359: return At(K); default: return Ur(K); } } function fr(K, Oe) { const Z = te; return te = K, K = t.updateForStatement(K, st(K.initializer, Oe ? Rr : Ie, jp), st(K.condition, Ur, yt), st(K.incrementor, Ie, yt), p_(K.statement, Oe ? Yt : Ur, e)), te = Z, K; } function xi(K) { const Oe = te; return te = K, K = t.updateForInStatement(K, Rr(K.initializer), st(K.expression, Ur, yt), p_(K.statement, Yt, e)), te = Oe, K; } function Ji(K) { const Oe = te; return te = K, K = t.updateForOfStatement(K, K.awaitModifier, Rr(K.initializer), st(K.expression, Ur, yt), p_(K.statement, Yt, e)), te = Oe, K; } function Ki(K) { return Ou(K) && We(K); } function Rr(K) { if (Ki(K)) { let Oe; for (const Z of K.declarations) Oe = Fn(Oe, Re(Z, !1)), Z.initializer || Fe(Z); return Oe ? t.inlineExpressions(Oe) : t.createOmittedExpression(); } else return st(K, Ie, jp); } function xt(K) { return t.updateDoStatement(K, p_(K.statement, Yt, e), st(K.expression, Ur, yt)); } function gn(K) { return t.updateWhileStatement(K, st(K.expression, Ur, yt), p_(K.statement, Yt, e)); } function Ht(K) { return t.updateLabeledStatement(K, K.label, D.checkDefined(st(K.statement, Yt, Ia, t.liftToBlock))); } function ln(K) { return t.updateWithStatement(K, st(K.expression, Ur, yt), D.checkDefined(st(K.statement, Yt, Ia, t.liftToBlock))); } function rr(K) { return t.updateSwitchStatement(K, st(K.expression, Ur, yt), D.checkDefined(st(K.caseBlock, Yt, xO))); } function lr(K) { const Oe = te; return te = K, K = t.updateCaseBlock(K, Kn(K.clauses, Yt, fW)), te = Oe, K; } function Di(K) { return t.updateCaseClause(K, st(K.expression, Ur, yt), Kn(K.statements, Yt, Ia)); } function _i(K) { return Bn(K, Yt, e); } function Rn(K) { return Bn(K, Yt, e); } function en(K) { const Oe = te; return te = K, K = t.updateCatchClause(K, K.variableDeclaration, D.checkDefined(st(K.block, Yt, oo))), te = Oe, K; } function Pn(K) { const Oe = te; return te = K, K = Bn(K, Yt, e), te = Oe, K; } function xr(K, Oe) { if (!(K.transformFlags & 276828160)) return K; switch (K.kind) { case 245: return fr(K, !1); case 241: return gt(K); case 214: return Nt(K, Oe); case 356: return xe(K, Oe); case 223: if (my(K)) return _e(K, Oe); break; case 210: if (tf(K)) return _t(K); break; case 221: case 222: return me(K, Oe); } return Bn(K, Ur, e); } function Ur(K) { return xr(K, !1); } function Ie(K) { return xr(K, !0); } function gt(K) { return t.updateExpressionStatement(K, st(K.expression, Ie, yt)); } function Nt(K, Oe) { return t.updateParenthesizedExpression(K, st(K.expression, Oe ? Ie : Ur, yt)); } function xe(K, Oe) { return t.updatePartiallyEmittedExpression(K, st(K.expression, Oe ? Ie : Ur, yt)); } function _t(K) { const Oe = kx(t, K, O, f, c, s), Z = st(Wc(K.arguments), Ur, yt), we = Oe && (!Z || !Go(Z) || Z.text !== Oe.text) ? Oe : Z; return t.createCallExpression(t.createPropertyAccessExpression(U, t.createIdentifier("import")), void 0, we ? [we] : []); } function _e(K, Oe) { return re(K.left) ? RT(K, Ur, e, 0, !Oe) : Bn(K, Ur, e); } function re(K) { if (Ku(K, !0)) return re(K.left); if (Th(K)) return re(K.expression); if (As(K)) return kt(K.properties, re); if (Ru(K)) return kt(K.elements, re); if (Xf(K)) return re(K.name); if (Uc(K)) return re(K.initializer); if (Ve(K)) { const Oe = c.getReferencedExportContainer(K); return Oe !== void 0 && Oe.kind === 308; } else return !1; } function me(K, Oe) { if ((K.operator === 45 || K.operator === 46) && Ve(K.operand) && !El(K.operand) && !Pv(K.operand) && !GN(K.operand)) { const Z = pt(K.operand); if (Z) { let we, q = st(K.operand, Ur, yt); Nv(K) ? q = t.updatePrefixUnaryExpression(K, q) : (q = t.updatePostfixUnaryExpression(K, q), Oe || (we = t.createTempVariable(o), q = t.createAssignment(we, q), mt(q, K)), q = t.createComma(q, t.cloneNode(K.operand)), mt(q, K)); for (const Rt of Z) q = In(Rt, Wt(q)); return we && (q = t.createComma(q, we), mt(q, K)), q; } } return Bn(K, Ur, e); } function V(K) { switch (K.kind) { case 93: case 88: return; } return K; } function je(K, Oe, Z) { if (Oe.kind === 308) { const we = Ll(Oe); O = Oe, k = m[we], B = A[we], X = C[we], U = I[we], X && delete C[we], y(K, Oe, Z), O = void 0, k = void 0, B = void 0, U = void 0, X = void 0; } else y(K, Oe, Z); } function Qe(K, Oe) { return Oe = d(K, Oe), rt(Oe) ? Oe : K === 1 ? on(Oe) : K === 4 ? Je(Oe) : Oe; } function Je(K) { switch (K.kind) { case 300: return Ut(K); } return K; } function Ut(K) { var Oe, Z; const we = K.name; if (!El(we) && !Pv(we)) { const q = c.getReferencedImportDeclaration(we); if (q) { if (Gm(q)) return mt(t.createPropertyAssignment(t.cloneNode(we), t.createPropertyAccessExpression(t.getGeneratedNameForNode(q.parent), t.createIdentifier("default"))), K); if (Td(q)) return mt(t.createPropertyAssignment(t.cloneNode(we), t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Z = (Oe = q.parent) == null ? void 0 : Oe.parent) == null ? void 0 : Z.parent) || q), t.cloneNode(q.propertyName || q.name))), K); } } return K; } function on(K) { switch (K.kind) { case 79: return Sn(K); case 223: return br(K); case 233: return ce(K); } return K; } function Sn(K) { var Oe, Z; if (ho(K) & 8192) { const we = DO(O); return we ? t.createPropertyAccessExpression(we, K) : K; } if (!El(K) && !Pv(K)) { const we = c.getReferencedImportDeclaration(K); if (we) { if (Gm(we)) return mt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(we.parent), t.createIdentifier("default")), K); if (Td(we)) return mt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Z = (Oe = we.parent) == null ? void 0 : Oe.parent) == null ? void 0 : Z.parent) || we), t.cloneNode(we.propertyName || we.name)), K); } } return K; } function br(K) { if (py(K.operatorToken.kind) && Ve(K.left) && !El(K.left) && !Pv(K.left) && !GN(K.left)) { const Oe = pt(K.left); if (Oe) { let Z = K; for (const we of Oe) Z = In(we, Wt(Z)); return Z; } } return K; } function ce(K) { return IA(K) ? t.createPropertyAccessExpression(U, t.createIdentifier("meta")) : K; } function pt(K) { let Oe; if (!El(K)) { const Z = c.getReferencedImportDeclaration(K) || c.getReferencedValueDeclaration(K); if (Z) { const we = c.getReferencedExportContainer(K, !1); we && we.kind === 308 && (Oe = Fn(Oe, t.getDeclarationName(Z))), Oe = yi(Oe, k && k.exportedBindings[Ll(Z)]); } } return Oe; } function Wt(K) { return X === void 0 && (X = []), X[ds(K)] = !0, K; } function rt(K) { return X && K.id && X[K.id]; } } var e3e = L({ "src/compiler/transformers/module/system.ts"() { Ra(); } }); function rX(e) { const { factory: t, getEmitHelperFactory: r } = e, i = e.getEmitHost(), o = e.getEmitResolver(), s = e.getCompilerOptions(), c = $o(s), f = e.onEmitNode, d = e.onSubstituteNode; e.onEmitNode = te, e.onSubstituteNode = X, e.enableEmitNotification(308), e.enableSubstitution(79); let y, m, b; return W_(e, A); function A(P) { if (P.isDeclarationFile) return P; if (Yl(P) || F_(s)) { m = P, b = void 0; let ue = C(P); return m = void 0, b && (ue = t.updateSourceFile(ue, mt(t.createNodeArray(TW(ue.statements.slice(), b)), ue.statements))), !Yl(P) || kt(ue.statements, UR) ? ue : t.updateSourceFile(ue, mt(t.createNodeArray([...ue.statements, IO(t)]), ue.statements)); } return P; } function C(P) { const ue = EJ(t, r(), P, s); if (ue) { const ne = [], ge = t.copyPrologue(P.statements, ne); return Fn(ne, ue), yi(ne, Kn(P.statements, I, Ia, ge)), t.updateSourceFile(P, mt(t.createNodeArray(ne), P.statements)); } else return Bn(P, I, e); } function I(P) { switch (P.kind) { case 268: return Zc(s) >= 100 ? k(P) : void 0; case 274: return U(P); case 275: return j(P); } return P; } function O(P) { const ue = kx(t, P, D.checkDefined(m), i, o, s), ne = []; if (ue && ne.push(ue), !b) { const ie = t.createUniqueName("_createRequire", 48), H = t.createImportDeclaration(void 0, t.createImportClause(!1, void 0, t.createNamedImports([ t.createImportSpecifier(!1, t.createIdentifier("createRequire"), ie) ])), t.createStringLiteral("module")), le = t.createUniqueName("__require", 48), pe = t.createVariableStatement(void 0, t.createVariableDeclarationList([ t.createVariableDeclaration(le, void 0, void 0, t.createCallExpression(t.cloneNode(ie), void 0, [ t.createPropertyAccessExpression(t.createMetaProperty(100, t.createIdentifier("meta")), t.createIdentifier("url")) ])) ], c >= 2 ? 2 : 0)); b = [H, pe]; } const ge = b[1].declarationList.declarations[0].name; return D.assertNode(ge, Ve), t.createCallExpression(t.cloneNode(ge), void 0, ne); } function k(P) { D.assert(G0(P), "import= for internal module references should be handled in an earlier transformer."); let ue; return ue = Fn(ue, Vr(mt(t.createVariableStatement(void 0, t.createVariableDeclarationList([ t.createVariableDeclaration(t.cloneNode(P.name), void 0, void 0, O(P)) ], c >= 2 ? 2 : 0)), P), P)), ue = B(ue, P), Em(ue); } function B(P, ue) { return Jr(ue, 1) && (P = Fn(P, t.createExportDeclaration(void 0, ue.isTypeOnly, t.createNamedExports([t.createExportSpecifier(!1, void 0, Or(ue.name))])))), P; } function U(P) { return P.isExportEquals ? void 0 : P; } function j(P) { if (s.module !== void 0 && s.module > 5 || !P.exportClause || !Sh(P.exportClause) || !P.moduleSpecifier) return P; const ue = P.exportClause.name, ne = t.getGeneratedNameForNode(ue), ge = t.createImportDeclaration(void 0, t.createImportClause(!1, void 0, t.createNamespaceImport(ne)), P.moduleSpecifier, P.assertClause); Vr(ge, P.exportClause); const ie = wM(P) ? t.createExportDefault(ne) : t.createExportDeclaration(void 0, !1, t.createNamedExports([t.createExportSpecifier(!1, ne, ue)])); return Vr(ie, P), [ge, ie]; } function te(P, ue, ne) { ji(ue) ? ((Yl(ue) || F_(s)) && s.importHelpers && (y = /* @__PURE__ */ new Map()), f(P, ue, ne), y = void 0) : f(P, ue, ne); } function X(P, ue) { return ue = d(P, ue), y && Ve(ue) && ho(ue) & 8192 ? Y(ue) : ue; } function Y(P) { const ue = Or(P); let ne = y.get(ue); return ne || y.set(ue, ne = t.createUniqueName(ue, 48)), ne; } } var t3e = L({ "src/compiler/transformers/module/esnextAnd2015.ts"() { Ra(); } }); function che(e) { const t = e.onSubstituteNode, r = e.onEmitNode, i = rX(e), o = e.onSubstituteNode, s = e.onEmitNode; e.onSubstituteNode = t, e.onEmitNode = r; const c = nX(e), f = e.onSubstituteNode, d = e.onEmitNode; e.onSubstituteNode = m, e.onEmitNode = b, e.enableSubstitution(308), e.enableEmitNotification(308); let y; return I; function m(k, B) { return ji(B) ? (y = B, t(k, B)) : y ? y.impliedNodeFormat === 99 ? o(k, B) : f(k, B) : t(k, B); } function b(k, B, U) { return ji(B) && (y = B), y ? y.impliedNodeFormat === 99 ? s(k, B, U) : d(k, B, U) : r(k, B, U); } function A(k) { return k.impliedNodeFormat === 99 ? i : c; } function C(k) { if (k.isDeclarationFile) return k; y = k; const B = A(k)(k); return y = void 0, D.assert(ji(B)), B; } function I(k) { return k.kind === 308 ? C(k) : O(k); } function O(k) { return e.factory.createBundle(rn(k.sourceFiles, C), k.prepends); } } var n3e = L({ "src/compiler/transformers/module/node.ts"() { Ra(); } }); function P5(e) { return Wi(e) || Za(e) || Tf(e) || us(e) || fy(e) || Sv(e) || yO(e) || sC(e) || nc(e) || bh(e) || pc(e) || Ma(e) || Ol(e) || vy(e) || tu(e) || Xp(e) || jl(e) || hx(e) || Pr(e) || c_(e); } function uhe(e) { if (fy(e) || Sv(e)) return t; return bh(e) || nc(e) ? i : Sy(e); function t(s) { const c = r(s); return c !== void 0 ? { diagnosticMessage: c, errorNode: e, typeName: e.name } : void 0; } function r(s) { return za(e) ? s.errorModuleName ? s.accessibility === 2 ? _.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 : _.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1 : e.parent.kind === 260 ? s.errorModuleName ? s.accessibility === 2 ? _.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 : _.Public_property_0_of_exported_class_has_or_is_using_private_name_1 : s.errorModuleName ? _.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; } function i(s) { const c = o(s); return c !== void 0 ? { diagnosticMessage: c, errorNode: e, typeName: e.name } : void 0; } function o(s) { return za(e) ? s.errorModuleName ? s.accessibility === 2 ? _.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 : _.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1 : e.parent.kind === 260 ? s.errorModuleName ? s.accessibility === 2 ? _.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 : _.Public_method_0_of_exported_class_has_or_is_using_private_name_1 : s.errorModuleName ? _.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; } } function Sy(e) { if (Wi(e) || Za(e) || Tf(e) || Pr(e) || us(e) || jl(e)) return r; return fy(e) || Sv(e) ? i : yO(e) || sC(e) || nc(e) || bh(e) || pc(e) || hx(e) ? o : Ma(e) ? Yd(e, e.parent) && Jr(e.parent, 8) ? r : s : Ol(e) ? f : vy(e) ? d : tu(e) ? y : Xp(e) || c_(e) ? m : D.assertNever(e, `Attempted to set a declaration diagnostic context for unhandled node kind: ${D.formatSyntaxKind(e.kind)}`); function t(b) { if (e.kind === 257 || e.kind === 205) return b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Exported_variable_0_has_or_is_using_private_name_1; if (e.kind === 169 || e.kind === 208 || e.kind === 168 || e.kind === 166 && Jr(e.parent, 8)) return za(e) ? b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1 : e.parent.kind === 260 || e.kind === 166 ? b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Public_property_0_of_exported_class_has_or_is_using_private_name_1 : b.errorModuleName ? _.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; } function r(b) { const A = t(b); return A !== void 0 ? { diagnosticMessage: A, errorNode: e, typeName: e.name } : void 0; } function i(b) { let A; return e.kind === 175 ? za(e) ? A = b.errorModuleName ? _.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 : A = b.errorModuleName ? _.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 : za(e) ? A = b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1 : A = b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1, { diagnosticMessage: A, errorNode: e.name, typeName: e.name }; } function o(b) { let A; switch (e.kind) { case 177: A = b.errorModuleName ? _.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; break; case 176: A = b.errorModuleName ? _.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; break; case 178: A = b.errorModuleName ? _.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; break; case 171: case 170: za(e) ? A = b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0 : e.parent.kind === 260 ? A = b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0 : A = b.errorModuleName ? _.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; break; case 259: A = b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Return_type_of_exported_function_has_or_is_using_private_name_0; break; default: return D.fail("This is unknown kind for signature: " + e.kind); } return { diagnosticMessage: A, errorNode: e.name || e }; } function s(b) { const A = c(b); return A !== void 0 ? { diagnosticMessage: A, errorNode: e, typeName: e.name } : void 0; } function c(b) { switch (e.parent.kind) { case 173: return b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; case 177: case 182: return b.errorModuleName ? _.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; case 176: return b.errorModuleName ? _.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; case 178: return b.errorModuleName ? _.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; case 171: case 170: return za(e.parent) ? b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1 : e.parent.parent.kind === 260 ? b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1 : b.errorModuleName ? _.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; case 259: case 181: return b.errorModuleName ? b.accessibility === 2 ? _.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 : _.Parameter_0_of_exported_function_has_or_is_using_private_name_1; case 175: case 174: return b.errorModuleName ? b.accessibility === 2 ? _.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : _.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 : _.Parameter_0_of_accessor_has_or_is_using_private_name_1; default: return D.fail(`Unknown parent for parameter: ${D.formatSyntaxKind(e.parent.kind)}`); } } function f() { let b; switch (e.parent.kind) { case 260: b = _.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1; break; case 261: b = _.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1; break; case 197: b = _.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1; break; case 182: case 177: b = _.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; break; case 176: b = _.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; break; case 171: case 170: za(e.parent) ? b = _.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1 : e.parent.parent.kind === 260 ? b = _.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1 : b = _.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; break; case 181: case 259: b = _.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1; break; case 192: b = _.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1; break; case 262: b = _.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1; break; default: return D.fail("This is unknown parent for type parameter: " + e.parent.kind); } return { diagnosticMessage: b, errorNode: e, typeName: e.name }; } function d() { let b; return kc(e.parent.parent) ? b = Md(e.parent) && e.parent.token === 117 ? _.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1 : e.parent.parent.name ? _.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 : b = _.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1, { diagnosticMessage: b, errorNode: e, typeName: La(e.parent.parent) }; } function y() { return { diagnosticMessage: _.Import_declaration_0_is_using_private_name_1, errorNode: e, typeName: e.name }; } function m(b) { return { diagnosticMessage: b.errorModuleName ? _.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2 : _.Exported_type_alias_0_has_or_is_using_private_name_1, errorNode: c_(e) ? D.checkDefined(e.typeExpression) : e.type, typeName: c_(e) ? La(e) : e.name }; } } var r3e = L({ "src/compiler/transformers/declarations/diagnostics.ts"() { Ra(); } }); function dhe(e, t, r) { const i = e.getCompilerOptions(); return g8(t, e, N, i, r ? [r] : yn(e.getSourceFiles(), JW), [aX], !1).diagnostics; } function fhe(e, t) { const r = t.text.substring(e.pos, e.end); return lu(r, "@internal"); } function iX(e, t) { const r = ya(e); if (r && r.kind === 166) { const o = r.parent.parameters.indexOf(r), s = o > 0 ? r.parent.parameters[o - 1] : void 0, c = t.text, f = s ? ha(O0(c, zo(c, s.end + 1, !1, !0)), ch(c, e.pos)) : O0(c, zo(c, e.pos, !1, !0)); return f && f.length && fhe(Ho(f), t); } const i = r && GW(r, t); return !!Ye(i, (o) => fhe(o, t)); } function aX(e) { const t = () => D.fail("Diagnostic emitted without context"); let r = t, i = !0, o = !1, s = !1, c = !1, f = !1, d, y, m, b, A, C; const { factory: I } = e, O = e.getEmitHost(), k = { trackSymbol: ye, reportInaccessibleThisError: Fe, reportInaccessibleUniqueSymbolError: $e, reportCyclicStructureError: Ge, reportPrivateInBaseOfClassExpression: Te, reportLikelyUnsafeImportRequiredError: We, reportTruncationError: Re, moduleResolverHost: O, trackReferencedAmbientModule: H, trackExternalModuleSymbolOfImportTypeNode: pe, reportNonlocalAugmentation: Pe, reportNonSerializableProperty: Ke, reportImportTypeNodeResolutionModeOverride: He }; let B, U, j, te, X, Y; const P = e.getEmitResolver(), ue = e.getCompilerOptions(), { noResolve: ne, stripInternal: ge } = ue; return ot; function ie(V) { if (V) { y = y || /* @__PURE__ */ new Set(); for (const je of V) y.add(je); } } function H(V, je) { const Qe = P.getTypeReferenceDirectivesForSymbol(je, 67108863); if (Ne(Qe)) return ie(Qe); const Je = Zn(V); te.set(Ll(Je), Je); } function le(V) { if (V.accessibility === 0) { if (V && V.aliasesToMakeVisible) if (!m) m = V.aliasesToMakeVisible; else for (const je of V.aliasesToMakeVisible) a_(m, je); } else { const je = r(V); if (je) return je.typeName ? e.addDiagnostic(Dr(V.errorNode || je.errorNode, je.diagnosticMessage, bc(je.typeName), V.errorSymbolName, V.errorModuleName)) : e.addDiagnostic(Dr(V.errorNode || je.errorNode, je.diagnosticMessage, V.errorSymbolName, V.errorModuleName)), !0; } return !1; } function pe(V) { o || (C || (C = [])).push(V); } function ye(V, je, Qe) { if (V.flags & 262144) return !1; const Je = le(P.isSymbolAccessible(V, je, Qe, !0)); return ie(P.getTypeReferenceDirectivesForSymbol(V, Qe)), Je; } function Te(V) { (B || U) && e.addDiagnostic(Dr(B || U, _.Property_0_of_exported_class_expression_may_not_be_private_or_protected, V)); } function ee() { return B ? Is(B) : U && La(U) ? Is(La(U)) : U && Pl(U) ? U.isExportEquals ? "export=" : "default" : "(Missing)"; } function $e() { (B || U) && e.addDiagnostic(Dr(B || U, _.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, ee(), "unique symbol")); } function Ge() { (B || U) && e.addDiagnostic(Dr(B || U, _.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary, ee())); } function Fe() { (B || U) && e.addDiagnostic(Dr(B || U, _.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, ee(), "this")); } function We(V) { (B || U) && e.addDiagnostic(Dr(B || U, _.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary, ee(), V)); } function Re() { (B || U) && e.addDiagnostic(Dr(B || U, _.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed)); } function Pe(V, je, Qe) { var Je; const Ut = (Je = je.declarations) == null ? void 0 : Je.find((Sn) => Zn(Sn) === V), on = yn(Qe.declarations, (Sn) => Zn(Sn) !== V); if (Ut && on) for (const Sn of on) e.addDiagnostic(qo(Dr(Sn, _.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized), Dr(Ut, _.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file))); } function Ke(V) { (B || U) && e.addDiagnostic(Dr(B || U, _.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized, V)); } function He() { !wN() && (B || U) && e.addDiagnostic(Dr(B || U, _.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)); } function Me(V, je) { const Qe = r; r = (Ut) => Ut.errorNode && P5(Ut.errorNode) ? Sy(Ut.errorNode)(Ut) : { diagnosticMessage: Ut.errorModuleName ? _.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit : _.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit, errorNode: Ut.errorNode || V }; const Je = P.getDeclarationStatementsForSourceFile(V, B1, k, je); return r = Qe, Je; } function ot(V) { if (V.kind === 308 && V.isDeclarationFile) return V; if (V.kind === 309) { o = !0, te = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map(); let Wt = !1; const rt = I.createBundle(rn(V.sourceFiles, (Z) => { if (Z.isDeclarationFile) return; if (Wt = Wt || Z.hasNoDefaultLib, j = Z, d = Z, m = void 0, A = !1, b = /* @__PURE__ */ new Map(), r = t, c = !1, f = !1, At(Z, te), bt(Z, X), ef(Z) || l_(Z)) { s = !1, i = !1; const q = Ju(Z) ? I.createNodeArray(Me(Z, !0)) : Kn(Z.statements, _i, Ia); return I.updateSourceFile(Z, [I.createModuleDeclaration([I.createModifier(136)], I.createStringLiteral(u3(e.getEmitHost(), Z)), I.createModuleBlock(mt(I.createNodeArray(rr(q)), Z.statements)))], !0, [], [], !1, []); } i = !0; const we = Ju(Z) ? I.createNodeArray(Me(Z)) : Kn(Z.statements, _i, Ia); return I.updateSourceFile(Z, rr(we), !0, [], [], !1, []); }), _a(V.prepends, (Z) => { if (Z.kind === 311) { const we = Dq(Z, "dts", ge); return Wt = Wt || !!we.hasNoDefaultLib, At(we, te), ie(rn(we.typeReferenceDirectives, (q) => [q.fileName, q.resolutionMode])), bt(we, X), we; } return Z; })); rt.syntheticFileReferences = [], rt.syntheticTypeReferences = br(), rt.syntheticLibReferences = Sn(), rt.hasNoDefaultLib = Wt; const K = fi(qc(qk(V, O, !0).declarationFilePath)), Oe = pt(rt.syntheticFileReferences, K); return te.forEach(Oe), rt; } i = !0, c = !1, f = !1, d = V, j = V, r = t, o = !1, s = !1, A = !1, m = void 0, b = /* @__PURE__ */ new Map(), y = void 0, te = At(j, /* @__PURE__ */ new Map()), X = bt(j, /* @__PURE__ */ new Map()); const je = [], Qe = fi(qc(qk(V, O, !0).declarationFilePath)), Je = pt(je, Qe); let Ut; if (Ju(j)) Ut = I.createNodeArray(Me(V)), te.forEach(Je), Y = yn(Ut, rT); else { const Wt = Kn(V.statements, _i, Ia); Ut = mt(I.createNodeArray(rr(Wt)), V.statements), te.forEach(Je), Y = yn(Ut, rT), Yl(V) && (!s || c && !f) && (Ut = mt(I.createNodeArray([...Ut, IO(I)]), Ut)); } const on = I.updateSourceFile(V, Ut, !0, je, br(), V.hasNoDefaultLib, Sn()); return on.exportedModulesFromDeclarationEmit = C, on; function Sn() { return ko(X.keys(), (Wt) => ({ fileName: Wt, pos: -1, end: -1 })); } function br() { return y ? _a(ko(y.keys()), ce) : []; } function ce([Wt, rt]) { if (Y) { for (const K of Y) if (tu(K) && Um(K.moduleReference)) { const Oe = K.moduleReference.expression; if (Ts(Oe) && Oe.text === Wt) return; } else if (Gc(K) && Go(K.moduleSpecifier) && K.moduleSpecifier.text === Wt) return; } return { fileName: Wt, pos: -1, end: -1, ...rt ? { resolutionMode: rt } : void 0 }; } function pt(Wt, rt) { return (K) => { let Oe; if (K.isDeclarationFile) Oe = K.fileName; else { if (o && Ii(V.sourceFiles, K)) return; const Z = qk(K, O, !0); Oe = Z.declarationFilePath || Z.jsFilePath || K.fileName; } if (Oe) { const Z = y5(ue, j, Hs(rt, O.getCurrentDirectory(), O.getCanonicalFileName), Hs(Oe, O.getCurrentDirectory(), O.getCanonicalFileName), O); if (!gf(Z)) { ie([[ Z, void 0 ]]); return; } let we = GS(rt, Oe, O.getCurrentDirectory(), O.getCanonicalFileName, !1); if (Ea(we, "./") && dA(we) && (we = we.substring(2)), Ea(we, "node_modules/") || Nx(we)) return; Wt.push({ pos: -1, end: -1, fileName: we }); } }; } } function At(V, je) { return ne || !xT(V) && Ju(V) || Ye(V.referencedFiles, (Qe) => { const Je = O.getSourceFileFromReference(V, Qe); Je && je.set(Ll(Je), Je); }), je; } function bt(V, je) { return Ye(V.libReferenceDirectives, (Qe) => { O.getLibFileFromReference(Qe) && je.set(I_(Qe.fileName), !0); }), je; } function Vt(V) { if (V.kind === 79) return V; return V.kind === 204 ? I.updateArrayBindingPattern(V, Kn(V.elements, je, vM)) : I.updateObjectBindingPattern(V, Kn(V.elements, je, us)); function je(Qe) { return Qe.kind === 229 ? Qe : Qe.propertyName && Ve(Qe.propertyName) && Ve(Qe.name) && !Qe.symbol.isReferenced && !a3(Qe.propertyName) ? I.updateBindingElement(Qe, Qe.dotDotDotToken, void 0, Qe.propertyName, it(Qe) ? Qe.initializer : void 0) : I.updateBindingElement(Qe, Qe.dotDotDotToken, Qe.propertyName, Vt(Qe.name), it(Qe) ? Qe.initializer : void 0); } } function et(V, je, Qe) { let Je; A || (Je = r, r = Sy(V)); const Ut = I.updateParameterDeclaration(V, a3e(V, je), V.dotDotDotToken, Vt(V.name), P.isOptionalParameter(V) ? V.questionToken || I.createToken(57) : void 0, Xt(V, Qe || V.type, !0), nn(V)); return A || (r = Je), Ut; } function it(V) { return o3e(V) && P.isLiteralConstDeclaration(ya(V)); } function nn(V) { if (it(V)) return P.createLiteralConstValue(ya(V), k); } function Xt(V, je, Qe) { if (!Qe && Nd(V, 8) || it(V)) return; const Je = V.kind === 166 && (P.isRequiredInitializedParameter(V) || P.isOptionalUninitializedParameterProperty(V)); if (je && !Je) return st(je, lr, Pi); if (!ya(V)) return je ? st(je, lr, Pi) : I.createKeywordTypeNode(131); if (V.kind === 175) return I.createKeywordTypeNode(131); B = V.name; let Ut; if (A || (Ut = r, r = Sy(V)), V.kind === 257 || V.kind === 205) return on(P.createTypeOfDeclaration(V, d, B1, k)); if (V.kind === 166 || V.kind === 169 || V.kind === 168) return Tf(V) || !V.initializer ? on(P.createTypeOfDeclaration(V, d, B1, k, Je)) : on(P.createTypeOfDeclaration(V, d, B1, k, Je) || P.createTypeOfExpression(V.initializer, d, B1, k)); return on(P.createReturnTypeOfSignatureDeclaration(V, d, B1, k)); function on(Sn) { return B = void 0, A || (r = Ut), Sn || I.createKeywordTypeNode(131); } } function On(V) { switch (V = ya(V), V.kind) { case 259: case 264: case 261: case 260: case 262: case 263: return !P.isDeclarationVisible(V); case 257: return !In(V); case 268: case 269: case 275: case 274: return !1; case 172: return !0; } return !1; } function Hn(V) { var je; if (V.body) return !0; const Qe = (je = V.symbol.declarations) == null ? void 0 : je.filter((Je) => pc(Je) && !Je.body); return !Qe || Qe.indexOf(V) === Qe.length - 1; } function In(V) { return Ic(V) ? !1 : Ja(V.name) ? kt(V.name.elements, In) : P.isDeclarationVisible(V); } function Yt(V, je, Qe) { if (Nd(V, 8)) return I.createNodeArray(); const Je = rn(je, (Ut) => et(Ut, Qe)); return Je ? I.createNodeArray(Je, je.hasTrailingComma) : I.createNodeArray(); } function fr(V, je) { let Qe; if (!je) { const Je = b1(V); Je && (Qe = [et(Je)]); } if (Kf(V)) { let Je; if (!je) { const Ut = UI(V); if (Ut) { const on = re(V, P.getAllAccessorDeclarations(V)); Je = et(Ut, void 0, on); } } Je || (Je = I.createParameterDeclaration(void 0, void 0, "value")), Qe = Fn(Qe, Je); } return I.createNodeArray(Qe || nt); } function xi(V, je) { return Nd(V, 8) ? void 0 : Kn(je, lr, Ol); } function Ji(V) { return ji(V) || Xp(V) || Hl(V) || kc(V) || Yu(V) || qa(V) || hx(V) || bk(V); } function Ki(V, je) { const Qe = P.isEntityNameVisible(V, je); le(Qe), ie(P.getTypeReferenceDirectivesForEntityName(V)); } function Rr(V, je) { return yf(V) && yf(je) && (V.jsDoc = je.jsDoc), Bc(V, Fm(je)); } function xt(V, je) { if (je) { if (s = s || V.kind !== 264 && V.kind !== 202, Ts(je)) if (o) { const Qe = vue(e.getEmitHost(), P, V); if (Qe) return I.createStringLiteral(Qe); } else { const Qe = P.getSymbolOfExternalModuleSpecifier(je); Qe && (C || (C = [])).push(Qe); } return je; } } function gn(V) { if (P.isDeclarationVisible(V)) if (V.moduleReference.kind === 280) { const je = wI(V); return I.updateImportEqualsDeclaration(V, V.modifiers, V.isTypeOnly, V.name, I.updateExternalModuleReference(V.moduleReference, xt(V, je))); } else { const je = r; return r = Sy(V), Ki(V.moduleReference, d), r = je, V; } } function Ht(V) { if (!V.importClause) return I.updateImportDeclaration(V, V.modifiers, V.importClause, xt(V, V.moduleSpecifier), ln(V.assertClause)); const je = V.importClause && V.importClause.name && P.isDeclarationVisible(V.importClause) ? V.importClause.name : void 0; if (!V.importClause.namedBindings) return je && I.updateImportDeclaration(V, V.modifiers, I.updateImportClause(V.importClause, V.importClause.isTypeOnly, je, void 0), xt(V, V.moduleSpecifier), ln(V.assertClause)); if (V.importClause.namedBindings.kind === 271) { const Je = P.isDeclarationVisible(V.importClause.namedBindings) ? V.importClause.namedBindings : void 0; return je || Je ? I.updateImportDeclaration(V, V.modifiers, I.updateImportClause(V.importClause, V.importClause.isTypeOnly, je, Je), xt(V, V.moduleSpecifier), ln(V.assertClause)) : void 0; } const Qe = _a(V.importClause.namedBindings.elements, (Je) => P.isDeclarationVisible(Je) ? Je : void 0); if (Qe && Qe.length || je) return I.updateImportDeclaration(V, V.modifiers, I.updateImportClause(V.importClause, V.importClause.isTypeOnly, je, Qe && Qe.length ? I.updateNamedImports(V.importClause.namedBindings, Qe) : void 0), xt(V, V.moduleSpecifier), ln(V.assertClause)); if (P.isImportRequiredByAugmentation(V)) return I.updateImportDeclaration(V, V.modifiers, void 0, xt(V, V.moduleSpecifier), ln(V.assertClause)); } function ln(V) { if (Px(V) !== void 0) return wN() || e.addDiagnostic(Dr(V, _.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)), V; } function rr(V) { for (; Ne(m); ) { const Qe = m.shift(); if (!RM(Qe)) return D.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${D.formatSyntaxKind(Qe.kind)}`); const Je = i; i = Qe.parent && ji(Qe.parent) && !(Yl(Qe.parent) && o); const Ut = en(Qe); i = Je, b.set(Ll(Qe), Ut); } return Kn(V, je, Ia); function je(Qe) { if (RM(Qe)) { const Je = Ll(Qe); if (b.has(Je)) { const Ut = b.get(Je); return b.delete(Je), Ut && ((Ga(Ut) ? kt(Ut, bM) : bM(Ut)) && (c = !0), ji(Qe.parent) && (Ga(Ut) ? kt(Ut, UR) : UR(Ut)) && (s = !0)), Ut; } } return Qe; } } function lr(V) { if (gt(V) || _u(V) && (On(V) || Lv(V) && !P.isLateBound(ya(V))) || qa(V) && P.isImplementationOfOverload(V) || Ife(V)) return; let je; Ji(V) && (je = d, d = V); const Qe = r, Je = P5(V), Ut = A; let on = (V.kind === 184 || V.kind === 197) && V.parent.kind !== 262; if ((nc(V) || bh(V)) && Nd(V, 8)) return V.symbol && V.symbol.declarations && V.symbol.declarations[0] !== V ? void 0 : Sn(I.createPropertyDeclaration(_t(V), V.name, void 0, void 0, void 0)); if (Je && !A && (r = Sy(V)), yk(V) && Ki(V.exprName, d), on && (A = !0), l3e(V)) switch (V.kind) { case 230: { ($d(V.expression) || Vl(V.expression)) && Ki(V.expression, d); const br = Bn(V, lr, e); return Sn(I.updateExpressionWithTypeArguments(br, br.expression, br.typeArguments)); } case 180: { Ki(V.typeName, d); const br = Bn(V, lr, e); return Sn(I.updateTypeReferenceNode(br, br.typeName, br.typeArguments)); } case 177: return Sn(I.updateConstructSignature(V, xi(V, V.typeParameters), Yt(V, V.parameters), Xt(V, V.type))); case 173: { const br = I.createConstructorDeclaration(_t(V), Yt(V, V.parameters, 0), void 0); return Sn(br); } case 171: { if (ki(V.name)) return Sn(void 0); const br = I.createMethodDeclaration(_t(V), void 0, V.name, V.questionToken, xi(V, V.typeParameters), Yt(V, V.parameters), Xt(V, V.type), void 0); return Sn(br); } case 174: { if (ki(V.name)) return Sn(void 0); const br = re(V, P.getAllAccessorDeclarations(V)); return Sn(I.updateGetAccessorDeclaration(V, _t(V), V.name, fr(V, Nd(V, 8)), Xt(V, br), void 0)); } case 175: return ki(V.name) ? Sn(void 0) : Sn(I.updateSetAccessorDeclaration(V, _t(V), V.name, fr(V, Nd(V, 8)), void 0)); case 169: return ki(V.name) ? Sn(void 0) : Sn(I.updatePropertyDeclaration(V, _t(V), V.name, V.questionToken, Xt(V, V.type), nn(V))); case 168: return ki(V.name) ? Sn(void 0) : Sn(I.updatePropertySignature(V, _t(V), V.name, V.questionToken, Xt(V, V.type))); case 170: return ki(V.name) ? Sn(void 0) : Sn(I.updateMethodSignature(V, _t(V), V.name, V.questionToken, xi(V, V.typeParameters), Yt(V, V.parameters), Xt(V, V.type))); case 176: return Sn(I.updateCallSignature(V, xi(V, V.typeParameters), Yt(V, V.parameters), Xt(V, V.type))); case 178: return Sn(I.updateIndexSignature(V, _t(V), Yt(V, V.parameters), st(V.type, lr, Pi) || I.createKeywordTypeNode(131))); case 257: return Ja(V.name) ? xr(V.name) : (on = !0, A = !0, Sn(I.updateVariableDeclaration(V, V.name, void 0, Xt(V, V.type), nn(V)))); case 165: return Di(V) && (V.default || V.constraint) ? Sn(I.updateTypeParameterDeclaration(V, V.modifiers, V.name, void 0, void 0)) : Sn(Bn(V, lr, e)); case 191: { const br = st(V.checkType, lr, Pi), ce = st(V.extendsType, lr, Pi), pt = d; d = V.trueType; const Wt = st(V.trueType, lr, Pi); d = pt; const rt = st(V.falseType, lr, Pi); return D.assert(br), D.assert(ce), D.assert(Wt), D.assert(rt), Sn(I.updateConditionalTypeNode(V, br, ce, Wt, rt)); } case 181: return Sn(I.updateFunctionTypeNode(V, Kn(V.typeParameters, lr, Ol), Yt(V, V.parameters), D.checkDefined(st(V.type, lr, Pi)))); case 182: return Sn(I.updateConstructorTypeNode(V, _t(V), Kn(V.typeParameters, lr, Ol), Yt(V, V.parameters), D.checkDefined(st(V.type, lr, Pi)))); case 202: return B0(V) ? Sn(I.updateImportTypeNode(V, I.updateLiteralTypeNode(V.argument, xt(V, V.argument.literal)), V.assertions, V.qualifier, Kn(V.typeArguments, lr, Pi), V.isTypeOf)) : Sn(V); default: D.assertNever(V, `Attempted to process unhandled node kind: ${D.formatSyntaxKind(V.kind)}`); } return lC(V) && il(j, V.pos).line === il(j, V.end).line && or(V, 1), Sn(Bn(V, lr, e)); function Sn(br) { return br && Je && Lv(V) && Ie(V), Ji(V) && (d = je), Je && !A && (r = Qe), on && (A = Ut), br === V ? br : br && Vr(Rr(br, V), V); } } function Di(V) { return V.parent.kind === 171 && Nd(V.parent, 8); } function _i(V) { if (!s3e(V) || gt(V)) return; switch (V.kind) { case 275: return ji(V.parent) && (s = !0), f = !0, I.updateExportDeclaration(V, V.modifiers, V.isTypeOnly, V.exportClause, xt(V, V.moduleSpecifier), Px(V.assertClause) ? V.assertClause : void 0); case 274: { if (ji(V.parent) && (s = !0), f = !0, V.expression.kind === 79) return V; { const Qe = I.createUniqueName("_default", 16); r = () => ({ diagnosticMessage: _.Default_export_of_the_module_has_or_is_using_private_name_0, errorNode: V }), U = V; const Je = I.createVariableDeclaration(Qe, void 0, P.createTypeOfExpression(V.expression, V, B1, k), void 0); U = void 0; const Ut = I.createVariableStatement(i ? [I.createModifier(136)] : [], I.createVariableDeclarationList([Je], 2)); return Rr(Ut, V), sO(V), [Ut, I.updateExportAssignment(V, V.modifiers, Qe)]; } } } const je = en(V); return b.set(Ll(V), je), V; } function Rn(V) { if (tu(V) || Nd(V, 1024) || !H_(V)) return V; const je = I.createModifiersFromModifierFlags(wu(V) & 258046); return I.updateModifiers(V, je); } function en(V) { if (m) for (; CP(m, V); ) ; if (gt(V)) return; switch (V.kind) { case 268: return gn(V); case 269: return Ht(V); } if (_u(V) && On(V) || qa(V) && P.isImplementationOfOverload(V)) return; let je; Ji(V) && (je = d, d = V); const Qe = P5(V), Je = r; Qe && (r = Sy(V)); const Ut = i; switch (V.kind) { case 262: { i = !1; const Sn = on(I.updateTypeAliasDeclaration(V, _t(V), V.name, Kn(V.typeParameters, lr, Ol), D.checkDefined(st(V.type, lr, Pi)))); return i = Ut, Sn; } case 261: return on(I.updateInterfaceDeclaration(V, _t(V), V.name, xi(V, V.typeParameters), me(V.heritageClauses), Kn(V.members, lr, QE))); case 259: { const Sn = on(I.updateFunctionDeclaration(V, _t(V), void 0, V.name, xi(V, V.typeParameters), Yt(V, V.parameters), Xt(V, V.type), void 0)); if (Sn && P.isExpandoFunctionDeclaration(V) && Hn(V)) { const br = P.getPropertiesOfContainerFunction(V), ce = jm.createModuleDeclaration(void 0, Sn.name || I.createIdentifier("_default"), I.createModuleBlock([]), 16); Bo(ce, d), ce.locals = ao(br), ce.symbol = br[0].parent; const pt = []; let Wt = _a(br, (q) => { if (!q.valueDeclaration || !Pr(q.valueDeclaration)) return; r = Sy(q.valueDeclaration); const Rt = P.createTypeOfDeclaration(q.valueDeclaration, ce, B1, k); r = Je; const ht = Zi(q.escapedName), dt = ZS(ht), dn = dt ? I.getGeneratedNameForNode(q.valueDeclaration) : I.createIdentifier(ht); dt && pt.push([dn, ht]); const $n = I.createVariableDeclaration(dn, void 0, Rt, void 0); return I.createVariableStatement(dt ? void 0 : [I.createToken(93)], I.createVariableDeclarationList([$n])); }); pt.length ? Wt.push(I.createExportDeclaration(void 0, !1, I.createNamedExports(rn(pt, ([q, Rt]) => I.createExportSpecifier(!1, q, Rt))))) : Wt = _a(Wt, (q) => I.updateModifiers(q, 0)); const rt = I.createModuleDeclaration(_t(V), V.name, I.createModuleBlock(Wt), 16); if (!Nd(Sn, 1024)) return [Sn, rt]; const K = I.createModifiersFromModifierFlags(wu(Sn) & -1026 | 2), Oe = I.updateFunctionDeclaration(Sn, K, void 0, Sn.name, Sn.typeParameters, Sn.parameters, Sn.type, void 0), Z = I.updateModuleDeclaration(rt, K, rt.name, rt.body), we = I.createExportAssignment(void 0, !1, rt.name); return ji(V.parent) && (s = !0), f = !0, [Oe, Z, we]; } else return Sn; } case 264: { i = !1; const Sn = V.body; if (Sn && Sn.kind === 265) { const br = c, ce = f; f = !1, c = !1; const pt = Kn(Sn.statements, _i, Ia); let Wt = rr(pt); V.flags & 16777216 && (c = !1), !Hp(V) && !xe(Wt) && !f && (c ? Wt = I.createNodeArray([...Wt, IO(I)]) : Wt = Kn(Wt, Rn, Ia)); const rt = I.updateModuleBlock(Sn, Wt); i = Ut, c = br, f = ce; const K = _t(V); return on(I.updateModuleDeclaration(V, K, _1(V) ? xt(V, V.name) : V.name, rt)); } else { i = Ut; const br = _t(V); i = !1, st(Sn, _i); const ce = Ll(Sn), pt = b.get(ce); return b.delete(ce), on(I.updateModuleDeclaration(V, br, V.name, pt)); } } case 260: { B = V.name, U = V; const Sn = I.createNodeArray(_t(V)), br = xi(V, V.typeParameters), ce = hh(V); let pt; if (ce) { const we = r; pt = QD(Mo(ce.parameters, (q) => { if (!Jr(q, 16476) || gt(q)) return; if (r = Sy(q), q.name.kind === 79) return Rr(I.createPropertyDeclaration(_t(q), q.name, q.questionToken, Xt(q, q.type), nn(q)), q); return Rt(q.name); function Rt(ht) { let dt; for (const dn of ht.elements) Ic(dn) || (Ja(dn.name) && (dt = ha(dt, Rt(dn.name))), dt = dt || [], dt.push(I.createPropertyDeclaration(_t(q), dn.name, void 0, Xt(dn, void 0), void 0))); return dt; } })), r = we; } const rt = kt(V.members, (we) => !!we.name && ki(we.name)) ? [ I.createPropertyDeclaration(void 0, I.createPrivateIdentifier("#private"), void 0, void 0, void 0) ] : void 0, K = ha(ha(rt, pt), Kn(V.members, lr, Pc)), Oe = I.createNodeArray(K), Z = Wp(V); if (Z && !Vl(Z.expression) && Z.expression.kind !== 104) { const we = V.name ? Zi(V.name.escapedText) : "default", q = I.createUniqueName(`${we}_base`, 16); r = () => ({ diagnosticMessage: _.extends_clause_of_exported_class_0_has_or_is_using_private_name_1, errorNode: Z, typeName: V.name }); const Rt = I.createVariableDeclaration(q, void 0, P.createTypeOfExpression(Z.expression, V, B1, k), void 0), ht = I.createVariableStatement(i ? [I.createModifier(136)] : [], I.createVariableDeclarationList([Rt], 2)), dt = I.createNodeArray(rn(V.heritageClauses, (dn) => { if (dn.token === 94) { const $n = r; r = Sy(dn.types[0]); const ii = I.updateHeritageClause(dn, rn(dn.types, (Ti) => I.updateExpressionWithTypeArguments(Ti, q, Kn(Ti.typeArguments, lr, Pi)))); return r = $n, ii; } return I.updateHeritageClause(dn, Kn(I.createNodeArray(yn(dn.types, ($n) => Vl($n.expression) || $n.expression.kind === 104)), lr, vy)); })); return [ht, on(I.updateClassDeclaration(V, Sn, V.name, br, dt, Oe))]; } else { const we = me(V.heritageClauses); return on(I.updateClassDeclaration(V, Sn, V.name, br, we, Oe)); } } case 240: return on(Pn(V)); case 263: return on(I.updateEnumDeclaration(V, I.createNodeArray(_t(V)), V.name, I.createNodeArray(_a(V.members, (Sn) => { if (gt(Sn)) return; const br = P.getConstantValue(Sn); return Rr(I.updateEnumMember(Sn, Sn.name, br !== void 0 ? typeof br == "string" ? I.createStringLiteral(br) : I.createNumericLiteral(br) : void 0), Sn); })))); } return D.assertNever(V, `Unhandled top-level node in declaration emit: ${D.formatSyntaxKind(V.kind)}`); function on(Sn) { return Ji(V) && (d = je), Qe && (r = Je), V.kind === 264 && (i = Ut), Sn === V ? Sn : (U = void 0, B = void 0, Sn && Vr(Rr(Sn, V), V)); } } function Pn(V) { if (!Ye(V.declarationList.declarations, In)) return; const je = Kn(V.declarationList.declarations, lr, Wi); if (Ne(je)) return I.updateVariableStatement(V, I.createNodeArray(_t(V)), I.updateVariableDeclarationList(V.declarationList, je)); } function xr(V) { return nd(_a(V.elements, (je) => Ur(je))); } function Ur(V) { if (V.kind !== 229 && V.name) return In(V) ? Ja(V.name) ? xr(V.name) : I.createVariableDeclaration(V.name, void 0, Xt(V, void 0), void 0) : void 0; } function Ie(V) { let je; A || (je = r, r = uhe(V)), B = V.name, D.assert(P.isLateBound(ya(V))); const Je = V.name.expression; Ki(Je, d), A || (r = je), B = void 0; } function gt(V) { return !!ge && !!V && iX(V, j); } function Nt(V) { return Pl(V) || Kc(V); } function xe(V) { return kt(V, Nt); } function _t(V) { const je = wu(V), Qe = _e(V); return je === Qe ? BK(V.modifiers, (Je) => ri(Je, lo), lo) : I.createModifiersFromModifierFlags(Qe); } function _e(V) { let je = 241147, Qe = i && !i3e(V) ? 2 : 0; const Je = V.parent.kind === 308; return (!Je || o && Je && Yl(V.parent)) && (je ^= 2, Qe = 0), _he(V, je, Qe); } function re(V, je) { let Qe = oX(V); return !Qe && V !== je.firstAccessor && (Qe = oX(je.firstAccessor), r = Sy(je.firstAccessor)), !Qe && je.secondAccessor && V !== je.secondAccessor && (Qe = oX(je.secondAccessor), r = Sy(je.secondAccessor)), Qe; } function me(V) { return I.createNodeArray(yn(rn(V, (je) => I.updateHeritageClause(je, Kn(I.createNodeArray(yn(je.types, (Qe) => Vl(Qe.expression) || je.token === 94 && Qe.expression.kind === 104)), lr, vy))), (je) => je.types && !!je.types.length)); } } function i3e(e) { return e.kind === 261; } function a3e(e, t, r) { return N.createModifiersFromModifierFlags(_he(e, t, r)); } function _he(e, t = 258043, r = 0) { let i = wu(e) & t | r; return i & 1024 && !(i & 1) && (i ^= 1), i & 1024 && i & 2 && (i ^= 2), i; } function oX(e) { if (e) return e.kind === 174 ? e.type : e.parameters.length > 0 ? e.parameters[0].type : void 0; } function o3e(e) { switch (e.kind) { case 169: case 168: return !Nd(e, 8); case 166: case 257: return !0; } return !1; } function s3e(e) { switch (e.kind) { case 259: case 264: case 268: case 261: case 260: case 262: case 263: case 240: case 269: case 275: case 274: return !0; } return !1; } function l3e(e) { switch (e.kind) { case 177: case 173: case 171: case 174: case 175: case 169: case 168: case 170: case 176: case 178: case 257: case 165: case 230: case 180: case 191: case 181: case 182: case 202: return !0; } return !1; } var B1, c3e = L({ "src/compiler/transformers/declarations.ts"() { Ra(), wK(), B1 = 531469; } }); function u3e(e) { switch (e) { case 99: case 7: case 6: case 5: return rX; case 4: return lhe; case 100: case 199: return che; default: return nX; } } function sX(e, t, r) { return { scriptTransformers: d3e(e, t, r), declarationTransformers: f3e(t) }; } function d3e(e, t, r) { if (r) return nt; const i = $o(e), o = Zc(e), s = WN(e), c = []; return yi(c, t && rn(t.before, mhe)), c.push(jme), e.experimentalDecorators ? c.push(qme) : (i < 99 || !s) && c.push(Jme), c.push(Wme), Wz(e) && c.push(ehe), i < 99 && c.push(Zme), i < 8 && c.push(Qme), i < 7 && c.push($me), i < 6 && c.push(Yme), i < 5 && c.push(Xme), i < 4 && c.push(Kme), i < 3 && c.push(nhe), i < 2 && (c.push(ihe), c.push(ohe)), c.push(u3e(o)), i < 1 && c.push(ahe), yi(c, t && rn(t.after, mhe)), c; } function f3e(e) { const t = []; return t.push(aX), yi(t, e && rn(e.afterDeclarations, p3e)), t; } function _3e(e) { return (t) => iJ(t) ? e.transformBundle(t) : e.transformSourceFile(t); } function phe(e, t) { return (r) => { const i = e(r); return typeof i == "function" ? t(r, i) : _3e(i); }; } function mhe(e) { return phe(e, W_); } function p3e(e) { return phe(e, (t, r) => r); } function Wk(e, t) { return t; } function h8(e, t, r) { r(e, t); } function g8(e, t, r, i, o, s, c) { var f, d; const y = new Array(361); let m, b, A, C = 0, I = [], O = [], k = [], B = [], U = 0, j = !1, te = [], X = 0, Y, P, ue = Wk, ne = h8, ge = 0; const ie = [], H = { factory: r, getCompilerOptions: () => i, getEmitResolver: () => e, getEmitHost: () => t, getEmitHelperFactory: hd(() => dfe(H)), startLexicalEnvironment: Me, suspendLexicalEnvironment: ot, resumeLexicalEnvironment: At, endLexicalEnvironment: bt, setLexicalEnvironmentFlags: Vt, getLexicalEnvironmentFlags: et, hoistVariableDeclaration: Pe, hoistFunctionDeclaration: Ke, addInitializationStatement: He, startBlockScope: it, endBlockScope: nn, addBlockScopedVariable: Xt, requestEmitHelper: On, readEmitHelpers: Hn, enableSubstitution: ee, enableEmitNotification: Fe, isSubstitutionEnabled: $e, isEmitNotificationEnabled: We, get onSubstituteNode() { return ue; }, set onSubstituteNode(Yt) { D.assert(ge < 1, "Cannot modify transformation hooks after initialization has completed."), D.assert(Yt !== void 0, "Value must not be 'undefined'"), ue = Yt; }, get onEmitNode() { return ne; }, set onEmitNode(Yt) { D.assert(ge < 1, "Cannot modify transformation hooks after initialization has completed."), D.assert(Yt !== void 0, "Value must not be 'undefined'"), ne = Yt; }, addDiagnostic(Yt) { ie.push(Yt); } }; for (const Yt of o) Fq(Zn(ya(Yt))); rl("beforeTransform"); const le = s.map((Yt) => Yt(H)), pe = (Yt) => { for (const fr of le) Yt = fr(Yt); return Yt; }; ge = 1; const ye = []; for (const Yt of o) (f = hi) == null || f.push(hi.Phase.Emit, "transformNodes", Yt.kind === 308 ? { path: Yt.path } : { kind: Yt.kind, pos: Yt.pos, end: Yt.end }), ye.push((c ? pe : Te)(Yt)), (d = hi) == null || d.pop(); return ge = 2, rl("afterTransform"), Vf("transformTime", "beforeTransform", "afterTransform"), { transformed: ye, substituteNode: Ge, emitNodeWithNotification: Re, isEmitNotificationEnabled: We, dispose: In, diagnostics: ie }; function Te(Yt) { return Yt && (!ji(Yt) || !Yt.isDeclarationFile) ? pe(Yt) : Yt; } function ee(Yt) { D.assert(ge < 2, "Cannot modify the transformation context after transformation has completed."), y[Yt] |= 1; } function $e(Yt) { return (y[Yt.kind] & 1) !== 0 && (ho(Yt) & 8) === 0; } function Ge(Yt, fr) { return D.assert(ge < 3, "Cannot substitute a node after the result is disposed."), fr && $e(fr) && ue(Yt, fr) || fr; } function Fe(Yt) { D.assert(ge < 2, "Cannot modify the transformation context after transformation has completed."), y[Yt] |= 2; } function We(Yt) { return (y[Yt.kind] & 2) !== 0 || (ho(Yt) & 4) !== 0; } function Re(Yt, fr, xi) { D.assert(ge < 3, "Cannot invoke TransformationResult callbacks after the result is disposed."), fr && (We(fr) ? ne(Yt, fr, xi) : xi(Yt, fr)); } function Pe(Yt) { D.assert(ge > 0, "Cannot modify the lexical environment during initialization."), D.assert(ge < 2, "Cannot modify the lexical environment after transformation has completed."); const fr = or(r.createVariableDeclaration(Yt), 128); m ? m.push(fr) : m = [fr], C & 1 && (C |= 2); } function Ke(Yt) { D.assert(ge > 0, "Cannot modify the lexical environment during initialization."), D.assert(ge < 2, "Cannot modify the lexical environment after transformation has completed."), or(Yt, 2097152), b ? b.push(Yt) : b = [Yt]; } function He(Yt) { D.assert(ge > 0, "Cannot modify the lexical environment during initialization."), D.assert(ge < 2, "Cannot modify the lexical environment after transformation has completed."), or(Yt, 2097152), A ? A.push(Yt) : A = [Yt]; } function Me() { D.assert(ge > 0, "Cannot modify the lexical environment during initialization."), D.assert(ge < 2, "Cannot modify the lexical environment after transformation has completed."), D.assert(!j, "Lexical environment is suspended."), I[U] = m, O[U] = b, k[U] = A, B[U] = C, U++, m = void 0, b = void 0, A = void 0, C = 0; } function ot() { D.assert(ge > 0, "Cannot modify the lexical environment during initialization."), D.assert(ge < 2, "Cannot modify the lexical environment after transformation has completed."), D.assert(!j, "Lexical environment is already suspended."), j = !0; } function At() { D.assert(ge > 0, "Cannot modify the lexical environment during initialization."), D.assert(ge < 2, "Cannot modify the lexical environment after transformation has completed."), D.assert(j, "Lexical environment is not suspended."), j = !1; } function bt() { D.assert(ge > 0, "Cannot modify the lexical environment during initialization."), D.assert(ge < 2, "Cannot modify the lexical environment after transformation has completed."), D.assert(!j, "Lexical environment is suspended."); let Yt; if (m || b || A) { if (b && (Yt = [...b]), m) { const fr = r.createVariableStatement(void 0, r.createVariableDeclarationList(m)); or(fr, 2097152), Yt ? Yt.push(fr) : Yt = [fr]; } A && (Yt ? Yt = [...Yt, ...A] : Yt = [...A]); } return U--, m = I[U], b = O[U], A = k[U], C = B[U], U === 0 && (I = [], O = [], k = [], B = []), Yt; } function Vt(Yt, fr) { C = fr ? C | Yt : C & ~Yt; } function et() { return C; } function it() { D.assert(ge > 0, "Cannot start a block scope during initialization."), D.assert(ge < 2, "Cannot start a block scope after transformation has completed."), te[X] = Y, X++, Y = void 0; } function nn() { D.assert(ge > 0, "Cannot end a block scope during initialization."), D.assert(ge < 2, "Cannot end a block scope after transformation has completed."); const Yt = kt(Y) ? [ r.createVariableStatement(void 0, r.createVariableDeclarationList(Y.map((fr) => r.createVariableDeclaration(fr)), 1)) ] : void 0; return X--, Y = te[X], X === 0 && (te = []), Yt; } function Xt(Yt) { D.assert(X > 0, "Cannot add a block scoped variable outside of an iteration body."), (Y || (Y = [])).push(Yt); } function On(Yt) { if (D.assert(ge > 0, "Cannot modify the transformation context during initialization."), D.assert(ge < 2, "Cannot modify the transformation context after transformation has completed."), D.assert(!Yt.scoped, "Cannot request a scoped emit helper."), Yt.dependencies) for (const fr of Yt.dependencies) On(fr); P = Fn(P, Yt); } function Hn() { D.assert(ge > 0, "Cannot modify the transformation context during initialization."), D.assert(ge < 2, "Cannot modify the transformation context after transformation has completed."); const Yt = P; return P = void 0, Yt; } function In() { if (ge < 3) { for (const Yt of o) Fq(Zn(ya(Yt))); m = void 0, I = void 0, b = void 0, O = void 0, ue = void 0, ne = void 0, P = void 0, ge = 3; } } } var lX, pg, m3e = L({ "src/compiler/transformer.ts"() { Ra(), i1(), lX = { scriptTransformers: nt, declarationTransformers: nt }, pg = { factory: N, getCompilerOptions: () => ({}), getEmitResolver: ja, getEmitHost: ja, getEmitHelperFactory: ja, startLexicalEnvironment: io, resumeLexicalEnvironment: io, suspendLexicalEnvironment: io, endLexicalEnvironment: R0, setLexicalEnvironmentFlags: io, getLexicalEnvironmentFlags: () => 0, hoistVariableDeclaration: io, hoistFunctionDeclaration: io, addInitializationStatement: io, startBlockScope: io, endBlockScope: R0, addBlockScopedVariable: io, requestEmitHelper: io, readEmitHelpers: ja, enableSubstitution: io, enableEmitNotification: io, isSubstitutionEnabled: ja, isEmitNotificationEnabled: ja, onSubstituteNode: Wk, onEmitNode: h8, addDiagnostic: io }; } }); function hhe(e) { return oc(e, ".tsbuildinfo"); } function cX(e, t, r, i = !1, o, s) { const c = Ga(r) ? r : vz(e, r, i), f = e.getCompilerOptions(); if (Ws(f)) { const d = e.getPrependNodes(); if (c.length || d.length) { const y = N.createBundle(c, d), m = t(qk(y, e, i), y); if (m) return m; } } else { if (!o) for (const d of c) { const y = t(qk(d, e, i), d); if (y) return y; } if (s) { const d = xy(f); if (d) return t({ buildInfoPath: d }, void 0); } } } function xy(e) { const t = e.configFilePath; if (!jN(e)) return; if (e.tsBuildInfoFile) return e.tsBuildInfoFile; const r = Ws(e); let i; if (r) i = Od(r); else { if (!t) return; const o = Od(t); i = e.outDir ? e.rootDir ? mv(e.outDir, Am(e.rootDir, o, !0)) : Oi(e.outDir, cu(o)) : o; } return i + ".tsbuildinfo"; } function zk(e, t) { const r = Ws(e), i = e.emitDeclarationOnly ? void 0 : r, o = i && ghe(i, e), s = t || G_(e) ? Od(r) + ".d.ts" : void 0, c = s && T3(e) ? s + ".map" : void 0, f = xy(e); return { jsFilePath: i, sourceMapFilePath: o, declarationFilePath: s, declarationMapPath: c, buildInfoPath: f }; } function qk(e, t, r) { const i = t.getCompilerOptions(); if (e.kind === 309) return zk(i, r); { const o = bue(e.fileName, t, uX(e.fileName, i)), s = l_(e), c = s && JE(e.fileName, o, t.getCurrentDirectory(), !t.useCaseSensitiveFileNames()) === 0, f = i.emitDeclarationOnly || c ? void 0 : o, d = !f || l_(e) ? void 0 : ghe(f, i), y = r || G_(i) && !s ? Eue(e.fileName, t) : void 0, m = y && T3(i) ? y + ".map" : void 0; return { jsFilePath: f, sourceMapFilePath: d, declarationFilePath: y, declarationMapPath: m, buildInfoPath: void 0 }; } } function ghe(e, t) { return t.sourceMap && !t.inlineSourceMap ? e + ".map" : void 0; } function uX(e, t) { return oc(e, ".json") ? ".json" : t.jsx === 1 && vc(e, [".jsx", ".tsx"]) ? ".jsx" : vc(e, [".mts", ".mjs"]) ? ".mjs" : vc(e, [".cts", ".cjs"]) ? ".cjs" : ".js"; } function yhe(e, t, r, i, o) { return i ? mv(i, Am(o ? o() : Kk(t, r), e, r)) : e; } function Jk(e, t, r, i) { return x1(yhe(e, t, r, t.options.declarationDir || t.options.outDir, i), gz(e)); } function vhe(e, t, r, i) { if (t.options.emitDeclarationOnly) return; const o = oc(e, ".json"), s = x1(yhe(e, t, r, t.options.outDir, i), uX(e, t.options)); return !o || JE(e, s, D.checkDefined(t.options.configFilePath), r) !== 0 ? s : void 0; } function bhe() { let e; return { addOutput: t, getOutputs: r }; function t(i) { i && (e || (e = [])).push(i); } function r() { return e || nt; } } function Ehe(e, t) { const { jsFilePath: r, sourceMapFilePath: i, declarationFilePath: o, declarationMapPath: s, buildInfoPath: c } = zk(e.options, !1); t(r), t(i), t(o), t(s), t(c); } function The(e, t, r, i, o) { if (sd(t)) return; const s = vhe(t, e, r, o); if (i(s), !oc(t, ".json") && (s && e.options.sourceMap && i(`${s}.map`), G_(e.options))) { const c = Jk(t, e, r, o); i(c), e.options.declarationMap && i(`${c}.map`); } } function y8(e, t, r, i, o) { let s; return e.rootDir ? (s = Na(e.rootDir, r), o == null || o(e.rootDir)) : e.composite && e.configFilePath ? (s = fi(qc(e.configFilePath)), o == null || o(s)) : s = Dhe(t(), r, i), s && s[s.length - 1] !== Os && (s += Os), s; } function Kk({ options: e, fileNames: t }, r) { return y8(e, () => yn(t, (i) => !(e.noEmitForJsFiles && vc(i, uk)) && !sd(i)), fi(qc(D.checkDefined(e.configFilePath))), $c(!r)); } function M5(e, t) { const { addOutput: r, getOutputs: i } = bhe(); if (Ws(e.options)) Ehe(e, r); else { const o = hd(() => Kk(e, t)); for (const s of e.fileNames) The(e, s, t, r, o); r(xy(e.options)); } return i(); } function h3e(e, t, r) { t = Wo(t), D.assert(Ii(e.fileNames, t), "Expected fileName to be present in command line"); const { addOutput: i, getOutputs: o } = bhe(); return Ws(e.options) ? Ehe(e, i) : The(e, t, r, i), o(); } function dX(e, t) { if (Ws(e.options)) { const { jsFilePath: o, declarationFilePath: s } = zk(e.options, !1); return D.checkDefined(o || s, `project ${e.options.configFilePath} expected to have at least one output`); } const r = hd(() => Kk(e, t)); for (const o of e.fileNames) { if (sd(o)) continue; const s = vhe(o, e, t, r); if (s) return s; if (!oc(o, ".json") && G_(e.options)) return Jk(o, e, t, r); } const i = xy(e.options); return i || D.fail(`project ${e.options.configFilePath} expected to have at least one output`); } function F5(e, t, r, { scriptTransformers: i, declarationTransformers: o }, s, c, f) { var d = t.getCompilerOptions(), y = d.sourceMap || d.inlineSourceMap || T3(d) ? [] : void 0, m = d.listEmittedFiles ? [] : void 0, b = HA(), A = z0(d), C = DN(A), { enter: I, exit: O } = PP("printTime", "beforePrint", "afterPrint"), k, B = !1; return I(), cX(t, U, vz(t, r, f), f, c, !r), O(), { emitSkipped: B, diagnostics: b.getDiagnostics(), emittedFiles: m, sourceMaps: y }; function U({ jsFilePath: H, sourceMapFilePath: le, declarationFilePath: pe, declarationMapPath: ye, buildInfoPath: Te }, ee) { var $e, Ge, Fe, We, Re, Pe; let Ke; Te && ee && iJ(ee) && (Ke = fi(Na(Te, t.getCurrentDirectory())), k = { commonSourceDirectory: He(t.getCommonSourceDirectory()), sourceFiles: ee.sourceFiles.map((Me) => He(Na(Me.fileName, t.getCurrentDirectory()))) }), ($e = hi) == null || $e.push(hi.Phase.Emit, "emitJsFileOrBundle", { jsFilePath: H }), te(ee, H, le, He), (Ge = hi) == null || Ge.pop(), (Fe = hi) == null || Fe.push(hi.Phase.Emit, "emitDeclarationFileOrBundle", { declarationFilePath: pe }), X(ee, pe, ye, He), (We = hi) == null || We.pop(), (Re = hi) == null || Re.push(hi.Phase.Emit, "emitBuildInfo", { buildInfoPath: Te }), j(k, Te), (Pe = hi) == null || Pe.pop(), !B && m && (s || (H && m.push(H), le && m.push(le), Te && m.push(Te)), s !== 0 && (pe && m.push(pe), ye && m.push(ye))); function He(Me) { return o1(Am(Ke, Me, t.getCanonicalFileName)); } } function j(H, le) { if (!le || r || B) return; if (t.isEmitBlocked(le)) { B = !0; return; } const pe = t.getBuildInfo(H) || v8(void 0, H); BI(t, b, le, She(pe), !1, void 0, { buildInfo: pe }); } function te(H, le, pe, ye) { if (!H || s || !le) return; if (t.isEmitBlocked(le) || d.noEmit) { B = !0; return; } const Te = g8(e, t, N, d, [H], i, !1), ee = { removeComments: d.removeComments, newLine: d.newLine, noEmitHelpers: d.noEmitHelpers, module: d.module, target: d.target, sourceMap: d.sourceMap, inlineSourceMap: d.inlineSourceMap, inlineSources: d.inlineSources, extendedDiagnostics: d.extendedDiagnostics, writeBundleFileInfo: !!k, relativeToBuildInfo: ye }, $e = G1(ee, { hasGlobalName: e.hasGlobalName, onEmitNode: Te.emitNodeWithNotification, isEmitNotificationEnabled: Te.isEmitNotificationEnabled, substituteNode: Te.substituteNode }); D.assert(Te.transformed.length === 1, "Should only see one output from the transform"), P(le, pe, Te, $e, d), Te.dispose(), k && (k.js = $e.bundleFileInfo); } function X(H, le, pe, ye) { if (!H || s === 0) return; if (!le) { (s || d.emitDeclarationOnly) && (B = !0); return; } const Te = ji(H) ? [H] : H.sourceFiles, ee = f ? Te : yn(Te, JW), $e = Ws(d) ? [N.createBundle(ee, ji(H) ? void 0 : H.prepends)] : ee; s && !G_(d) && ee.forEach(Y); const Ge = g8(e, t, N, d, $e, o, !1); if (Ne(Ge.diagnostics)) for (const Pe of Ge.diagnostics) b.add(Pe); const Fe = { removeComments: d.removeComments, newLine: d.newLine, noEmitHelpers: !0, module: d.module, target: d.target, sourceMap: !f && d.declarationMap, inlineSourceMap: d.inlineSourceMap, extendedDiagnostics: d.extendedDiagnostics, onlyPrintJsDocStyle: !0, writeBundleFileInfo: !!k, recordInternalSection: !!k, relativeToBuildInfo: ye }, We = G1(Fe, { hasGlobalName: e.hasGlobalName, onEmitNode: Ge.emitNodeWithNotification, isEmitNotificationEnabled: Ge.isEmitNotificationEnabled, substituteNode: Ge.substituteNode }), Re = !!Ge.diagnostics && !!Ge.diagnostics.length || !!t.isEmitBlocked(le) || !!d.noEmit; B = B || Re, (!Re || f) && (D.assert(Ge.transformed.length === 1, "Should only see one output from the decl transform"), P(le, pe, Ge, We, { sourceMap: Fe.sourceMap, sourceRoot: d.sourceRoot, mapRoot: d.mapRoot, extendedDiagnostics: d.extendedDiagnostics })), Ge.dispose(), k && (k.dts = We.bundleFileInfo); } function Y(H) { if (Pl(H)) { H.expression.kind === 79 && e.collectLinkedAliases(H.expression, !0); return; } else if (od(H)) { e.collectLinkedAliases(H.propertyName || H.name, !0); return; } Oa(H, Y); } function P(H, le, pe, ye, Te) { const ee = pe.transformed[0], $e = ee.kind === 309 ? ee : void 0, Ge = ee.kind === 308 ? ee : void 0, Fe = $e ? $e.sourceFiles : [Ge]; let We; ue(Te, ee) && (We = Ame(t, cu(qc(H)), ne(Te), ge(Te, H, Ge), Te)), $e ? ye.writeBundle($e, C, We) : ye.writeFile(Ge, C, We); let Re; if (We) { y && y.push({ inputSourceFileNames: We.getSources(), sourceMap: We.toJSON() }); const Ke = ie(Te, We, H, le, Ge); if (Ke && (C.isAtStartOfLine() || C.rawWrite(A), Re = C.getTextPos(), C.writeComment(`//# sourceMappingURL=${Ke}`)), le) { const He = We.toString(); BI(t, b, le, He, !1, Fe), ye.bundleFileInfo && (ye.bundleFileInfo.mapHash = PT(He, t)); } } else C.writeLine(); const Pe = C.getText(); BI(t, b, H, Pe, !!d.emitBOM, Fe, { sourceMapUrlPos: Re, diagnostics: pe.diagnostics }), ye.bundleFileInfo && (ye.bundleFileInfo.hash = PT(Pe, t)), C.clear(); } function ue(H, le) { return (H.sourceMap || H.inlineSourceMap) && (le.kind !== 308 || !oc(le.fileName, ".json")); } function ne(H) { const le = qc(H.sourceRoot || ""); return le && Iu(le); } function ge(H, le, pe) { if (H.sourceRoot) return t.getCommonSourceDirectory(); if (H.mapRoot) { let ye = qc(H.mapRoot); return pe && (ye = fi(d3(pe.fileName, t, ye))), Vp(ye) === 0 && (ye = Oi(t.getCommonSourceDirectory(), ye)), ye; } return fi(Wo(le)); } function ie(H, le, pe, ye, Te) { if (H.inlineSourceMap) { const $e = le.toString(); return `data:application/json;base64,${Wue(zc, $e)}`; } const ee = cu(qc(D.checkDefined(ye))); if (H.mapRoot) { let $e = qc(H.mapRoot); return Te && ($e = fi(d3(Te.fileName, t, $e))), Vp($e) === 0 ? ($e = Oi(t.getCommonSourceDirectory(), $e), encodeURI(GS(fi(Wo(pe)), Oi($e, ee), t.getCurrentDirectory(), t.getCanonicalFileName, !0))) : encodeURI(Oi($e, ee)); } return encodeURI(ee); } } function v8(e, t) { return { bundle: t, program: e, version: Ue }; } function She(e) { return JSON.stringify(e); } function B5(e, t) { return Dz(e, t); } function g3e(e, t, r) { var i; const o = D.checkDefined(e.js), s = ((i = o.sources) == null ? void 0 : i.prologues) && $b(o.sources.prologues, (c) => c.file); return e.sourceFiles.map((c, f) => { var d, y; const m = s == null ? void 0 : s.get(f), b = m == null ? void 0 : m.directives.map((I) => { const O = mt(N.createStringLiteral(I.expression.text), I.expression), k = mt(N.createExpressionStatement(O), I); return Bo(O, k), k; }), A = N.createToken(1), C = N.createSourceFile(b ?? [], A, 0); return C.fileName = Am(r.getCurrentDirectory(), Na(c, t), !r.useCaseSensitiveFileNames()), C.text = (d = m == null ? void 0 : m.text) != null ? d : "", ak(C, 0, (y = m == null ? void 0 : m.text.length) != null ? y : 0), QA(C.statements, C), ak(A, C.end, 0), Bo(A, C), C; }); } function xhe(e, t, r, i) { var o, s; (o = hi) == null || o.push(hi.Phase.Emit, "emitUsingBuildInfo", {}, !0), sR.mark("beforeEmit"); const c = y3e(e, t, r, i); return sR.mark("afterEmit"), sR.measure("Emit", "beforeEmit", "afterEmit"), (s = hi) == null || s.pop(), c; } function y3e(e, t, r, i) { const { buildInfoPath: o, jsFilePath: s, sourceMapFilePath: c, declarationFilePath: f, declarationMapPath: d } = zk(e.options, !1), y = t.getBuildInfo(o, e.options.configFilePath); if (!y || !y.bundle || !y.bundle.js || f && !y.bundle.dts) return o; const m = t.readFile(D.checkDefined(s)); if (!m || PT(m, t) !== y.bundle.js.hash) return s; const b = c && t.readFile(c); if (c && !b || e.options.inlineSourceMap) return c || "inline sourcemap decoding"; if (c && PT(b, t) !== y.bundle.js.mapHash) return c; const A = f && t.readFile(f); if (f && !A || f && PT(A, t) !== y.bundle.dts.hash) return f; const C = d && t.readFile(d); if (d && !C || e.options.inlineSourceMap) return d || "inline sourcemap decoding"; if (d && PT(C, t) !== y.bundle.dts.mapHash) return d; const I = fi(Na(o, t.getCurrentDirectory())), O = Nq(s, m, c, b, f, A, d, C, o, y, !0), k = [], B = DX(e.projectReferences, r, (Y) => t.readFile(Y), t), U = g3e(y.bundle, I, t); let j, te; const X = { getPrependNodes: hd(() => [...B, O]), getCanonicalFileName: t.getCanonicalFileName, getCommonSourceDirectory: () => Na(y.bundle.commonSourceDirectory, I), getCompilerOptions: () => e.options, getCurrentDirectory: () => t.getCurrentDirectory(), getSourceFile: R0, getSourceFileByPath: R0, getSourceFiles: () => U, getLibFileFromReference: ja, isSourceFileFromExternalLibrary: Qb, getResolvedProjectReferenceToRedirect: R0, getProjectReferenceRedirect: R0, isSourceOfProjectReferenceRedirect: Qb, writeFile: (Y, P, ue, ne, ge, ie) => { switch (Y) { case s: if (m === P) return; break; case c: if (b === P) return; break; case o: break; case f: if (A === P) return; j = P, te = ie; break; case d: if (C === P) return; break; default: D.fail(`Unexpected path: ${Y}`); } k.push({ name: Y, text: P, writeByteOrderMark: ue, data: ie }); }, isEmitBlocked: Qb, readFile: (Y) => t.readFile(Y), fileExists: (Y) => t.fileExists(Y), useCaseSensitiveFileNames: () => t.useCaseSensitiveFileNames(), getBuildInfo: (Y) => { const P = y.program; P && j !== void 0 && e.options.composite && (P.outSignature = PT(j, t, te)); const { js: ue, dts: ne, sourceFiles: ge } = y.bundle; return Y.js.sources = ue.sources, ne && (Y.dts.sources = ne.sources), Y.sourceFiles = ge, v8(P, Y); }, getSourceFileFromReference: R0, redirectTargetsMap: o_(), getFileIncludeReasons: ja, createHash: Fo(t, t.createHash) }; return F5(G5, X, void 0, sX(e.options, i)), k; } function G1(e = {}, t = {}) { var { hasGlobalName: r, onEmitNode: i = h8, isEmitNotificationEnabled: o, substituteNode: s = Wk, onBeforeEmitNode: c, onAfterEmitNode: f, onBeforeEmitNodeArray: d, onAfterEmitNodeArray: y, onBeforeEmitToken: m, onAfterEmitToken: b } = t, A = !!e.extendedDiagnostics, C = z0(e), I = Zc(e), O = /* @__PURE__ */ new Map(), k, B, U, j, te, X, Y, P, ue, ne, ge, ie, H, le, pe, ye = e.preserveSourceNewlines, Te, ee, $e, Ge = iL, Fe, We = e.writeBundleFileInfo ? { sections: [] } : void 0, Re = We ? D.checkDefined(e.relativeToBuildInfo) : void 0, Pe = e.recordInternalSection, Ke = 0, He = "text", Me = !0, ot, At, bt = -1, Vt, et = -1, it = -1, nn = -1, Xt = -1, On, Hn, In = !1, Yt = !!e.removeComments, fr, xi, { enter: Ji, exit: Ki } = jse(A, "commentTime", "beforeComment", "afterComment"), Rr = N.parenthesizer, xt = { select: (S) => S === 0 ? Rr.parenthesizeLeadingTypeArgument : void 0 }, gn = Ql(); return je(), { printNode: Ht, printList: ln, printFile: lr, printBundle: rr, writeNode: _i, writeList: Rn, writeFile: xe, writeBundle: gt, bundleFileInfo: We }; function Ht(S, se, Le) { switch (S) { case 0: D.assert(ji(se), "Expected a SourceFile node."); break; case 2: D.assert(Ve(se), "Expected an Identifier node."); break; case 1: D.assert(yt(se), "Expected an Expression node."); break; } switch (se.kind) { case 308: return lr(se); case 309: return rr(se); case 310: return Di(se); } return _i(S, se, Le, _t()), _e(); } function ln(S, se, Le) { return Rn(S, se, Le, _t()), _e(); } function rr(S) { return gt(S, _t(), void 0), _e(); } function lr(S) { return xe(S, _t(), void 0), _e(); } function Di(S) { return Nt(S, _t()), _e(); } function _i(S, se, Le, tn) { const Ar = ee; V(tn, void 0), re(S, se, Le), je(), ee = Ar; } function Rn(S, se, Le, tn) { const Ar = ee; V(tn, void 0), Le && me(Le), ws(void 0, se, S), je(), ee = Ar; } function en() { return ee.getTextPosWithWriteLine ? ee.getTextPosWithWriteLine() : ee.getTextPos(); } function Pn(S, se, Le) { const tn = Zs(We.sections); tn && tn.kind === Le ? tn.end = se : We.sections.push({ pos: S, end: se, kind: Le }); } function xr(S) { if (Pe && We && k && (_u(S) || sc(S)) && iX(S, k) && He !== "internal") { const se = He; return Ie(ee.getTextPos()), Ke = en(), He = "internal", se; } } function Ur(S) { S && (Ie(ee.getTextPos()), Ke = en(), He = S); } function Ie(S) { return Ke < S ? (Pn(Ke, S, He), !0) : !1; } function gt(S, se, Le) { Fe = !1; const tn = ee; V(se, Le), vb(S), sS(S), dn(S), iS(S); for (const Ar of S.prepends) { xc(); const vi = ee.getTextPos(), oi = We && We.sections; if (oi && (We.sections = []), re(4, Ar, void 0), We) { const Fi = We.sections; We.sections = oi, Ar.oldFileOfCurrentEmit ? We.sections.push(...Fi) : (Fi.forEach((co) => D.assert(ede(co))), We.sections.push({ pos: vi, end: ee.getTextPos(), kind: "prepend", data: Re(Ar.fileName), texts: Fi })); } } Ke = en(); for (const Ar of S.sourceFiles) re(0, Ar, Ar); if (We && S.sourceFiles.length) { const Ar = ee.getTextPos(); if (Ie(Ar)) { const vi = d2(S); vi && (We.sources || (We.sources = {}), We.sources.prologues = vi); const oi = dt(S); oi && (We.sources || (We.sources = {}), We.sources.helpers = oi); } } je(), ee = tn; } function Nt(S, se) { const Le = ee; V(se, void 0), re(4, S, void 0), je(), ee = Le; } function xe(S, se, Le) { Fe = !0; const tn = ee; V(se, Le), vb(S), sS(S), re(0, S, S), je(), ee = tn; } function _t() { return $e || ($e = DN(C)); } function _e() { const S = $e.getText(); return $e.clear(), S; } function re(S, se, Le) { Le && me(Le), pt(S, se, void 0); } function me(S) { k = S, On = void 0, Hn = void 0, S && Mg(S); } function V(S, se) { S && e.omitTrailingSemicolon && (S = pz(S)), ee = S, ot = se, Me = !ee || !ot; } function je() { B = [], U = [], j = [], te = /* @__PURE__ */ new Set(), X = [], Y = /* @__PURE__ */ new Map(), P = [], ue = 0, ne = [], ge = 0, ie = [], H = void 0, le = [], pe = void 0, k = void 0, On = void 0, Hn = void 0, V(void 0, void 0); } function Qe() { return On || (On = Qh(D.checkDefined(k))); } function Je(S, se) { if (S === void 0) return; const Le = xr(S); pt(4, S, se), Ur(Le); } function Ut(S) { S !== void 0 && pt(2, S, void 0); } function on(S, se) { S !== void 0 && pt(1, S, se); } function Sn(S) { pt(Go(S) ? 6 : 4, S); } function br(S) { ye && R_(S) & 4 && (ye = !1); } function ce(S) { ye = S; } function pt(S, se, Le) { xi = Le, K(0, S, se)(S, se), xi = void 0; } function Wt(S) { return !Yt && !ji(S); } function rt(S) { return !Me && !ji(S) && !YM(S) && !xT(S) && !Nfe(S); } function K(S, se, Le) { switch (S) { case 0: if (i !== h8 && (!o || o(Le))) return Z; case 1: if (s !== Wk && (fr = s(se, Le) || Le) !== Le) return xi && (fr = xi(fr)), ht; case 2: if (Wt(Le)) return Wd; case 3: if (rt(Le)) return hE; case 4: return we; default: return D.assertNever(S); } } function Oe(S, se, Le) { return K(S + 1, se, Le); } function Z(S, se) { const Le = Oe(0, S, se); i(S, se, Le); } function we(S, se) { if (c == null || c(se), ye) { const Le = ye; br(se), q(S, se), ce(Le); } else q(S, se); f == null || f(se), xi = void 0; } function q(S, se, Le = !0) { if (Le) { const tn = Gq(se); if (tn) return no(S, se, tn); } if (S === 0) return gb(ro(se, ji)); if (S === 2) return qr(ro(se, Ve)); if (S === 6) return Ti(ro(se, Go), !0); if (S === 3) return Rt(ro(se, Ol)); if (S === 5) return D.assertNode(se, eJ), Ca(!0); if (S === 4) { switch (se.kind) { case 15: case 16: case 17: return Ti(se, !1); case 79: return qr(se); case 80: return is(se); case 163: return ui(se); case 164: return wn(se); case 165: return da(se); case 166: return $l(se); case 167: return tl(se); case 168: return Ml(se); case 169: return zl(se); case 170: return Fl(se); case 171: return So(se); case 172: return Aa(se); case 173: return Jo(se); case 174: case 175: return Bl(se); case 176: return Xc(se); case 177: return Ud(se); case 178: return rc(se); case 179: return pl(se); case 180: return Qs(se); case 181: return qs(se); case 182: return de(se); case 183: return It(se); case 184: return jt(se); case 185: return Q(se); case 186: return St(se); case 187: return kr(se); case 189: return Nr(se); case 190: return va(se); case 191: return as(se); case 192: return _o(se); case 193: return Uo(se); case 230: return y_(se); case 194: return Ka(); case 195: return cl(se); case 196: return lc(se); case 197: return ld(se); case 198: return vs(se); case 199: return _n(se); case 200: return ls(se); case 201: return jc(se); case 202: return ul(se); case 203: return Vd(se); case 204: return Ul(se); case 205: return Lf(se); case 236: return Ze(se); case 237: return ks(); case 238: return zt(se); case 240: return ka(se); case 239: return Ca(!1); case 241: return Ce(se); case 242: return Be(se); case 243: return Ot(se); case 244: return pn(se); case 245: return vn(se); case 246: return Tn(se); case 247: return Wn(se); case 248: return Hi(se); case 249: return tr(se); case 250: return zm(se); case 251: return yg(se); case 252: return K_(se); case 253: return ob(se); case 254: return Jv(se); case 255: return i2(se); case 256: return QT(se); case 257: return a2(se); case 258: return vg(se); case 259: return X_(se); case 260: return ZT(se); case 261: return K1(se); case 262: return X1(se); case 263: return Yv(se); case 264: return o2(se); case 265: return Y1(se); case 266: return $1(se); case 267: return Y_(se); case 268: return $v(se); case 269: return Qv(se); case 270: return eS(se); case 271: return Eg(se); case 277: return xd(se); case 272: return Xo(se); case 273: return Q1(se); case 274: return tL(se); case 275: return Dy(se); case 276: return Ad(se); case 278: return Cd(se); case 296: return Tg(se); case 297: return qm(se); case 279: return; case 280: return s2(se); case 11: return _b(se); case 283: case 286: return tS(se); case 284: case 287: return nL(se); case 288: return Zv(se); case 289: return l2(se); case 290: return Z1(se); case 291: return e0(se); case 292: return t0(se); case 293: return xg(se); case 294: return Qo(se); case 295: return $_(se); case 299: return eE(se); case 300: return mc(se); case 301: return wh(se); case 302: return mb(se); case 303: return Bi(se); case 310: case 304: return Si(se); case 305: case 306: return fo(se); case 307: return vo(se); case 308: return gb(se); case 309: return D.fail("Bundles should be printed using printBundle"); case 311: return D.fail("InputFiles should not be printed"); case 312: return dl(se); case 313: return Ag(se); case 315: return _r("*"); case 316: return _r("?"); case 317: return Gl(se); case 318: return yu(se); case 319: return Bu(se); case 320: return Zt(se); case 188: case 321: return at(se); case 322: return; case 323: return Q_(se); case 325: return Hd(se); case 326: return tE(se); case 330: case 335: case 340: return Jm(se); case 331: case 332: return Dc(se); case 333: case 334: return; case 336: case 337: case 338: case 339: return; case 341: return Ui(se); case 342: return Wr(se); case 344: case 351: return Cg(se); case 343: case 345: case 346: case 347: case 352: case 353: return hb(se); case 348: return rS(se); case 349: return rL(se); case 350: return ru(se); case 355: case 359: case 358: return; } if (yt(se) && (S = 1, s !== Wk)) { const tn = s(S, se) || se; tn !== se && (se = tn, xi && (se = xi(se))); } } if (S === 1) switch (se.kind) { case 8: case 9: return ii(se); case 10: case 13: case 14: return Ti(se, !1); case 79: return qr(se); case 80: return is(se); case 206: return Se(se); case 207: return Dt(se); case 208: return Nn(se); case 209: return xo(se); case 210: return ae(se); case 211: return lt(se); case 212: return Mt(se); case 213: return Pt(se); case 214: return sn(se); case 215: return jn(se); case 216: return wr(se); case 217: return Ri(se); case 218: return Ua(se); case 219: return Vo(se); case 220: return bs(se); case 221: return Js(se); case 222: return sf(se); case 223: return gn(se); case 224: return jd(se); case 225: return vu(se); case 226: return lf(se); case 227: return g_(se); case 228: return Ko(se); case 229: return; case 231: return cf(se); case 232: return J_(se); case 230: return y_(se); case 235: return Tp(se); case 233: return G(se); case 234: return D.fail("SyntheticExpression should never be printed."); case 279: return; case 281: return db(se); case 282: return Sg(se); case 285: return fb(se); case 354: return D.fail("SyntaxList should not be printed"); case 355: return; case 356: return c2(se); case 357: return u2(se); case 358: case 359: return; case 360: return D.fail("SyntheticReferenceExpression should not be printed"); } if (bd(se.kind)) return iE(se, ca); if (ZH(se.kind)) return iE(se, _r); D.fail(`Unhandled SyntaxKind: ${D.formatSyntaxKind(se.kind)}.`); } function Rt(S) { Je(S.name), ir(), ca("in"), ir(), Je(S.constraint); } function ht(S, se) { const Le = Oe(1, S, se); D.assertIsDefined(fr), se = fr, fr = void 0, Le(S, se); } function dt(S) { let se; if (I === 0 || e.noEmitHelpers) return; const Le = /* @__PURE__ */ new Map(); for (const tn of S.sourceFiles) { const Ar = DO(tn) !== void 0, vi = $n(tn); if (vi) for (const oi of vi) !oi.scoped && !Ar && !Le.get(oi.name) && (Le.set(oi.name, !0), (se || (se = [])).push(oi.name)); } return se; } function dn(S) { let se = !1; const Le = S.kind === 309 ? S : void 0; if (Le && I === 0) return; const tn = Le ? Le.prepends.length : 0, Ar = Le ? Le.sourceFiles.length + tn : 1; for (let vi = 0; vi < Ar; vi++) { const oi = Le ? vi < tn ? Le.prepends[vi] : Le.sourceFiles[vi - tn] : S, Fi = ji(oi) ? oi : xT(oi) ? void 0 : k, co = e.noEmitHelpers || !!Fi && Jfe(Fi), Yc = (ji(oi) || xT(oi)) && !Fe, qd = xT(oi) ? oi.helpers : $n(oi); if (qd) for (const ff of qd) { if (ff.scoped) { if (Le) continue; } else { if (co) continue; if (Yc) { if (O.get(ff.name)) continue; O.set(ff.name, !0); } } const Wy = en(); typeof ff.text == "string" ? ql(ff.text) : ql(ff.text(wf)), We && We.sections.push({ pos: Wy, end: ee.getTextPos(), kind: "emitHelpers", data: ff.name }), se = !0; } } return se; } function $n(S) { const se = W3(S); return se && ry(se, ffe); } function ii(S) { Ti(S, !1); } function Ti(S, se) { const Le = wl(S, e.neverAsciiEscape, se); (e.sourceMap || e.inlineSourceMap) && (S.kind === 10 || Ev(S.kind)) ? Tb(Le) : p2(Le); } function Si(S) { for (const se of S.texts) xc(), Je(se); } function Bi(S) { ee.rawWrite(S.parent.text.substring(S.pos, S.end)); } function fo(S) { const se = en(); Bi(S), We && Pn(se, ee.getTextPos(), S.kind === 305 ? "text" : "internal"); } function vo(S) { const se = en(); if (Bi(S), We) { const Le = oj(S.section); Le.pos = se, Le.end = ee.getTextPos(), We.sections.push(Le); } } function no(S, se, Le) { switch (Le.kind) { case 1: sa(S, se, Le); break; case 0: Gi(S, se, Le); break; } } function sa(S, se, Le) { Py(`\${${Le.order}:`), q(S, se, !1), Py("}"); } function Gi(S, se, Le) { D.assert(se.kind === 239, `A tab stop cannot be attached to a node of kind ${D.formatSyntaxKind(se.kind)}.`), D.assert(S !== 5, "A tab stop cannot be attached to an embedded statement."), Py(`$${Le.order}`); } function qr(S) { (S.symbol ? m2 : Ge)(By(S, !1), S.symbol), ws(S, vT(S), 53776); } function is(S) { Ge(By(S, !1)); } function ui(S) { la(S.left), _r("."), Je(S.right); } function la(S) { S.kind === 79 ? on(S) : Je(S); } function wn(S) { const se = ue, Le = pe; au(), _r("["), on(S.expression, Rr.parenthesizeExpressionOfComputedPropertyName), _r("]"), a0(se, Le); } function da(S) { Lg(S, S.modifiers), Je(S.name), S.constraint && (ir(), ca("extends"), ir(), Je(S.constraint)), S.default && (ir(), kf("="), ir(), Je(S.default)); } function $l(S) { If(S, S.modifiers, !0), Je(S.dotDotDotToken), lS(S.name, r0), Je(S.questionToken), S.parent && S.parent.kind === 320 && !S.name ? Je(S.type) : xp(S.type), Z_(S.initializer, S.type ? S.type.end : S.questionToken ? S.questionToken.end : S.name ? S.name.end : S.modifiers ? S.modifiers.end : S.pos, S, Rr.parenthesizeExpressionForDisallowedComma); } function tl(S) { _r("@"), on(S.expression, Rr.parenthesizeLeftSideOfAccess); } function Ml(S) { Lg(S, S.modifiers), lS(S.name, h2), Je(S.questionToken), xp(S.type), kl(); } function zl(S) { If(S, S.modifiers, !0), Je(S.name), Je(S.questionToken), Je(S.exclamationToken), xp(S.type), Z_(S.initializer, S.type ? S.type.end : S.questionToken ? S.questionToken.end : S.name.end, S), kl(); } function Fl(S) { Dg(S), Lg(S, S.modifiers), Je(S.name), Je(S.questionToken), im(S, S.typeParameters), kg(S, S.parameters), xp(S.type), kl(), Nh(S); } function So(S) { If(S, S.modifiers, !0), Je(S.asteriskToken), Je(S.name), Je(S.questionToken), kh(S, Sp); } function Aa(S) { ca("static"), q1(S.body); } function Jo(S) { If(S, S.modifiers, !1), ca("constructor"), kh(S, Sp); } function Bl(S) { const se = If(S, S.modifiers, !0), Le = S.kind === 174 ? 137 : 151; fn(Le, se, ca, S), ir(), Je(S.name), kh(S, Sp); } function Xc(S) { Dg(S), im(S, S.typeParameters), kg(S, S.parameters), xp(S.type), kl(), Nh(S); } function Ud(S) { Dg(S), ca("new"), ir(), im(S, S.typeParameters), kg(S, S.parameters), xp(S.type), kl(), Nh(S); } function rc(S) { If(S, S.modifiers, !1), Ny(S, S.parameters), xp(S.type), kl(); } function jc(S) { Je(S.type), Je(S.literal); } function ks() { kl(); } function pl(S) { S.assertsModifier && (Je(S.assertsModifier), ir()), Je(S.parameterName), S.type && (ir(), ca("is"), ir(), Je(S.type)); } function Qs(S) { Je(S.typeName), rm(S, S.typeArguments); } function qs(S) { Dg(S), im(S, S.typeParameters), uS(S, S.parameters), ir(), _r("=>"), ir(), Je(S.type), Nh(S); } function Zt(S) { ca("function"), kg(S, S.parameters), _r(":"), Je(S.type); } function Gl(S) { _r("?"), Je(S.type); } function yu(S) { _r("!"), Je(S.type); } function Bu(S) { Je(S.type), _r("="); } function de(S) { Dg(S), Lg(S, S.modifiers), ca("new"), ir(), im(S, S.typeParameters), kg(S, S.parameters), ir(), _r("=>"), ir(), Je(S.type), Nh(S); } function It(S) { ca("typeof"), ir(), Je(S.exprName), rm(S, S.typeArguments); } function jt(S) { a0(0, void 0), _r("{"); const se = ho(S) & 1 ? 768 : 32897; ws(S, S.members, se | 524288), _r("}"), au(); } function Q(S) { Je(S.elementType, Rr.parenthesizeNonArrayTypeOfPostfixType), _r("["), _r("]"); } function at(S) { _r("..."), Je(S.type); } function St(S) { fn(22, S.pos, _r, S); const se = ho(S) & 1 ? 528 : 657; ws(S, S.elements, se | 524288, Rr.parenthesizeElementTypeOfTupleType), fn(23, S.elements.end, _r, S); } function _n(S) { Je(S.dotDotDotToken), Je(S.name), Je(S.questionToken), fn(58, S.name.end, _r, S), ir(), Je(S.type); } function kr(S) { Je(S.type, Rr.parenthesizeTypeOfOptionalType), _r("?"); } function Nr(S) { ws(S, S.types, 516, Rr.parenthesizeConstituentTypeOfUnionType); } function va(S) { ws(S, S.types, 520, Rr.parenthesizeConstituentTypeOfIntersectionType); } function as(S) { Je(S.checkType, Rr.parenthesizeCheckTypeOfConditionalType), ir(), ca("extends"), ir(), Je(S.extendsType, Rr.parenthesizeExtendsTypeOfConditionalType), ir(), _r("?"), ir(), Je(S.trueType), ir(), _r(":"), ir(), Je(S.falseType); } function _o(S) { ca("infer"), ir(), Je(S.typeParameter); } function Uo(S) { _r("("), Je(S.type), _r(")"); } function Ka() { ca("this"); } function cl(S) { ep(S.operator, ca), ir(); const se = S.operator === 146 ? Rr.parenthesizeOperandOfReadonlyTypeOperator : Rr.parenthesizeOperandOfTypeOperator; Je(S.type, se); } function lc(S) { Je(S.objectType, Rr.parenthesizeNonArrayTypeOfPostfixType), _r("["), Je(S.indexType), _r("]"); } function ld(S) { const se = ho(S); _r("{"), se & 1 ? ir() : (xc(), v_()), S.readonlyToken && (Je(S.readonlyToken), S.readonlyToken.kind !== 146 && ca("readonly"), ir()), _r("["), pt(3, S.typeParameter), S.nameType && (ir(), ca("as"), ir(), Je(S.nameType)), _r("]"), S.questionToken && (Je(S.questionToken), S.questionToken.kind !== 57 && _r("?")), _r(":"), ir(), Je(S.type), kl(), se & 1 ? ir() : (xc(), Ap()), ws(S, S.members, 2), _r("}"); } function vs(S) { on(S.literal); } function ls(S) { Je(S.head), ws(S, S.templateSpans, 262144); } function ul(S) { if (S.isTypeOf && (ca("typeof"), ir()), ca("import"), _r("("), Je(S.argument), S.assertions) { _r(","), ir(), _r("{"), ir(), ca("assert"), _r(":"), ir(); const se = S.assertions.assertClause.elements; ws(S.assertions.assertClause, se, 526226), ir(), _r("}"); } _r(")"), S.qualifier && (_r("."), Je(S.qualifier)), rm(S, S.typeArguments); } function Vd(S) { _r("{"), ws(S, S.elements, 525136), _r("}"); } function Ul(S) { _r("["), ws(S, S.elements, 524880), _r("]"); } function Lf(S) { Je(S.dotDotDotToken), S.propertyName && (Je(S.propertyName), _r(":"), ir()), Je(S.name), Z_(S.initializer, S.name.end, S, Rr.parenthesizeExpressionForDisallowedComma); } function Se(S) { const se = S.elements, Le = S.multiLine ? 65536 : 0; Oy(S, se, 8914 | Le, Rr.parenthesizeExpressionForDisallowedComma); } function Dt(S) { a0(0, void 0), Ye(S.properties, sE); const se = ho(S) & 131072; se && v_(); const Le = S.multiLine ? 65536 : 0, tn = k && k.languageVersion >= 1 && !l_(k) ? 64 : 0; ws(S, S.properties, 526226 | tn | Le), se && Ap(), au(); } function Nn(S) { on(S.expression, Rr.parenthesizeLeftSideOfAccess); const se = S.questionDotToken || Mm(N.createToken(24), S.expression.end, S.name.pos), Le = Cp(S, S.expression, se), tn = Cp(S, se, S.name); Zl(Le, !1), se.kind !== 28 && zi(S.expression) && !ee.hasTrailingComment() && !ee.hasTrailingWhitespace() && _r("."), S.questionDotToken ? Je(se) : fn(se.kind, S.expression.end, _r, S), Zl(tn, !1), Je(S.name), wg(Le, tn); } function zi(S) { if (S = D_(S), __(S)) { const se = wl(S, !0, !1); return !S.numericLiteralFlags && !lu(se, mo(24)); } else if (ol(S)) { const se = ife(S); return typeof se == "number" && isFinite(se) && Math.floor(se) === se; } } function xo(S) { on(S.expression, Rr.parenthesizeLeftSideOfAccess), Je(S.questionDotToken), fn(22, S.expression.end, _r, S), on(S.argumentExpression), fn(23, S.argumentExpression.end, _r, S); } function ae(S) { const se = R_(S) & 16; se && (_r("("), Tb("0"), _r(","), ir()), on(S.expression, Rr.parenthesizeLeftSideOfAccess), se && _r(")"), Je(S.questionDotToken), rm(S, S.typeArguments), Oy(S, S.arguments, 2576, Rr.parenthesizeExpressionForDisallowedComma); } function lt(S) { fn(103, S.pos, ca, S), ir(), on(S.expression, Rr.parenthesizeExpressionOfNew), rm(S, S.typeArguments), Oy(S, S.arguments, 18960, Rr.parenthesizeExpressionForDisallowedComma); } function Mt(S) { const se = R_(S) & 16; se && (_r("("), Tb("0"), _r(","), ir()), on(S.tag, Rr.parenthesizeLeftSideOfAccess), se && _r(")"), rm(S, S.typeArguments), ir(), on(S.template); } function Pt(S) { _r("<"), Je(S.type), _r(">"), on(S.expression, Rr.parenthesizeOperandOfPrefixUnary); } function sn(S) { const se = fn(20, S.pos, _r, S), Le = aE(S.expression, S); on(S.expression, void 0), Sb(S.expression, S), wg(Le), fn(21, S.expression ? S.expression.end : se, _r, S); } function jn(S) { Ph(S.name), Kv(S); } function wr(S) { Lg(S, S.modifiers), kh(S, Zr); } function Zr(S) { im(S, S.typeParameters), uS(S, S.parameters), xp(S.type), ir(), Je(S.equalsGreaterThanToken); } function Ri(S) { fn(89, S.pos, ca, S), ir(), on(S.expression, Rr.parenthesizeOperandOfPrefixUnary); } function Ua(S) { fn(112, S.pos, ca, S), ir(), on(S.expression, Rr.parenthesizeOperandOfPrefixUnary); } function Vo(S) { fn(114, S.pos, ca, S), ir(), on(S.expression, Rr.parenthesizeOperandOfPrefixUnary); } function bs(S) { fn(133, S.pos, ca, S), ir(), on(S.expression, Rr.parenthesizeOperandOfPrefixUnary); } function Js(S) { ep(S.operator, kf), cd(S) && ir(), on(S.operand, Rr.parenthesizeOperandOfPrefixUnary); } function cd(S) { const se = S.operand; return se.kind === 221 && (S.operator === 39 && (se.operator === 39 || se.operator === 45) || S.operator === 40 && (se.operator === 40 || se.operator === 46)); } function sf(S) { on(S.operand, Rr.parenthesizeOperandOfPostfixUnary), ep(S.operator, kf); } function Ql() { return F7(S, se, Le, tn, Ar, void 0); function S(oi, Fi) { if (Fi) { Fi.stackIndex++, Fi.preserveSourceNewlinesStack[Fi.stackIndex] = ye, Fi.containerPosStack[Fi.stackIndex] = it, Fi.containerEndStack[Fi.stackIndex] = nn, Fi.declarationListContainerEndStack[Fi.stackIndex] = Xt; const co = Fi.shouldEmitCommentsStack[Fi.stackIndex] = Wt(oi), Yc = Fi.shouldEmitSourceMapsStack[Fi.stackIndex] = rt(oi); c == null || c(oi), co && fd(oi), Yc && gE(oi), br(oi); } else Fi = { stackIndex: 0, preserveSourceNewlinesStack: [void 0], containerPosStack: [-1], containerEndStack: [-1], declarationListContainerEndStack: [-1], shouldEmitCommentsStack: [!1], shouldEmitSourceMapsStack: [!1] }; return Fi; } function se(oi, Fi, co) { return vi(oi, co, "left"); } function Le(oi, Fi, co) { const Yc = oi.kind !== 27, qd = Cp(co, co.left, oi), ff = Cp(co, oi, co.right); Zl(qd, Yc), Id(oi.pos), iE(oi, oi.kind === 101 ? ca : kf), Og(oi.end, !0), Zl(ff, !0); } function tn(oi, Fi, co) { return vi(oi, co, "right"); } function Ar(oi, Fi) { const co = Cp(oi, oi.left, oi.operatorToken), Yc = Cp(oi, oi.operatorToken, oi.right); if (wg(co, Yc), Fi.stackIndex > 0) { const qd = Fi.preserveSourceNewlinesStack[Fi.stackIndex], ff = Fi.containerPosStack[Fi.stackIndex], Wy = Fi.containerEndStack[Fi.stackIndex], Jd = Fi.declarationListContainerEndStack[Fi.stackIndex], d0 = Fi.shouldEmitCommentsStack[Fi.stackIndex], f0 = Fi.shouldEmitSourceMapsStack[Fi.stackIndex]; ce(qd), f0 && yE(oi), d0 && fS(oi, ff, Wy, Jd), f == null || f(oi), Fi.stackIndex--; } } function vi(oi, Fi, co) { const Yc = co === "left" ? Rr.getParenthesizeLeftSideOfBinaryForOperator(Fi.operatorToken.kind) : Rr.getParenthesizeRightSideOfBinaryForOperator(Fi.operatorToken.kind); let qd = K(0, 1, oi); if (qd === ht && (D.assertIsDefined(fr), oi = Yc(ro(fr, yt)), qd = Oe(1, 1, oi), fr = void 0), (qd === Wd || qd === hE || qd === we) && vr(oi)) return oi; xi = Yc, qd(1, oi); } } function jd(S) { const se = Cp(S, S.condition, S.questionToken), Le = Cp(S, S.questionToken, S.whenTrue), tn = Cp(S, S.whenTrue, S.colonToken), Ar = Cp(S, S.colonToken, S.whenFalse); on(S.condition, Rr.parenthesizeConditionOfConditionalExpression), Zl(se, !0), Je(S.questionToken), Zl(Le, !0), on(S.whenTrue, Rr.parenthesizeBranchOfConditionalExpression), wg(se, Le), Zl(tn, !0), Je(S.colonToken), Zl(Ar, !0), on(S.whenFalse, Rr.parenthesizeBranchOfConditionalExpression), wg(tn, Ar); } function vu(S) { Je(S.head), ws(S, S.templateSpans, 262144); } function lf(S) { fn(125, S.pos, ca, S), Je(S.asteriskToken), nm(S.expression && Ks(S.expression), ic); } function g_(S) { fn(25, S.pos, _r, S), on(S.expression, Rr.parenthesizeExpressionForDisallowedComma); } function Ko(S) { Ph(S.name), J1(S); } function y_(S) { on(S.expression, Rr.parenthesizeLeftSideOfAccess), rm(S, S.typeArguments); } function cf(S) { on(S.expression, void 0), S.type && (ir(), ca("as"), ir(), Je(S.type)); } function J_(S) { on(S.expression, Rr.parenthesizeLeftSideOfAccess), kf("!"); } function Tp(S) { on(S.expression, void 0), S.type && (ir(), ca("satisfies"), ir(), Je(S.type)); } function G(S) { My(S.keywordToken, S.pos, _r), _r("."), Je(S.name); } function Ze(S) { on(S.expression), Je(S.literal); } function zt(S) { Yn(S, !S.multiLine && Rh(S)); } function Yn(S, se) { fn(18, S.pos, _r, S); const Le = se || ho(S) & 1 ? 768 : 129; ws(S, S.statements, Le), fn(19, S.statements.end, _r, S, !!(Le & 1)); } function ka(S) { If(S, S.modifiers, !1), Je(S.declarationList), kl(); } function Ca(S) { S ? _r(";") : kl(); } function Ce(S) { on(S.expression, Rr.parenthesizeExpressionOfExpressionStatement), (!k || !l_(k) || $s(S.expression)) && kl(); } function Be(S) { const se = fn(99, S.pos, ca, S); ir(), fn(20, se, _r, S), on(S.expression), fn(21, S.expression.end, _r, S), ud(S, S.thenStatement), S.elseStatement && (Fy(S, S.thenStatement, S.elseStatement), fn(91, S.thenStatement.end, ca, S), S.elseStatement.kind === 242 ? (ir(), Je(S.elseStatement)) : ud(S, S.elseStatement)); } function Lt(S, se) { const Le = fn(115, se, ca, S); ir(), fn(20, Le, _r, S), on(S.expression), fn(21, S.expression.end, _r, S); } function Ot(S) { fn(90, S.pos, ca, S), ud(S, S.statement), oo(S.statement) && !ye ? ir() : Fy(S, S.statement, S.expression), Lt(S, S.statement.end), kl(); } function pn(S) { Lt(S, S.pos), ud(S, S.statement); } function vn(S) { const se = fn(97, S.pos, ca, S); ir(); let Le = fn(20, se, _r, S); Hr(S.initializer), Le = fn(26, S.initializer ? S.initializer.end : Le, _r, S), nm(S.condition), Le = fn(26, S.condition ? S.condition.end : Le, _r, S), nm(S.incrementor), fn(21, S.incrementor ? S.incrementor.end : Le, _r, S), ud(S, S.statement); } function Tn(S) { const se = fn(97, S.pos, ca, S); ir(), fn(20, se, _r, S), Hr(S.initializer), ir(), fn(101, S.initializer.end, ca, S), ir(), on(S.expression), fn(21, S.expression.end, _r, S), ud(S, S.statement); } function Wn(S) { const se = fn(97, S.pos, ca, S); ir(), cS(S.awaitModifier), fn(20, se, _r, S), Hr(S.initializer), ir(), fn(162, S.initializer.end, ca, S), ir(), on(S.expression), fn(21, S.expression.end, _r, S), ud(S, S.statement); } function Hr(S) { S !== void 0 && (S.kind === 258 ? Je(S) : on(S)); } function Hi(S) { fn(86, S.pos, ca, S), bb(S.label), kl(); } function tr(S) { fn(81, S.pos, ca, S), bb(S.label), kl(); } function fn(S, se, Le, tn, Ar) { const vi = ya(tn), oi = vi && vi.kind === tn.kind, Fi = se; if (oi && k && (se = zo(k.text, se)), oi && tn.pos !== Fi) { const co = Ar && k && !d_(Fi, se, k); co && v_(), Id(Fi), co && Ap(); } if (se = ep(S, Le, se), oi && tn.end !== se) { const co = tn.kind === 291; Og(se, !co, co); } return se; } function ur(S) { return S.kind === 2 || !!S.hasTrailingNewLine; } function Ta(S) { return k ? kt(ch(k.text, S.pos), ur) || kt(rC(S), ur) ? !0 : x7(S) ? S.pos !== S.expression.pos && kt(O0(k.text, S.expression.pos), ur) ? !0 : Ta(S.expression) : !1 : !1; } function Ks(S) { if (!Yt && x7(S) && Ta(S)) { const se = ya(S); if (se && Pd(se)) { const Le = N.createParenthesizedExpression(S.expression); return Vr(Le, S), mt(Le, se), Le; } return N.createParenthesizedExpression(S); } return S; } function ic(S) { return Ks(Rr.parenthesizeExpressionForDisallowedComma(S)); } function zm(S) { fn(105, S.pos, ca, S), nm(S.expression && Ks(S.expression), Ks), kl(); } function yg(S) { const se = fn(116, S.pos, ca, S); ir(), fn(20, se, _r, S), on(S.expression), fn(21, S.expression.end, _r, S), ud(S, S.statement); } function K_(S) { const se = fn(107, S.pos, ca, S); ir(), fn(20, se, _r, S), on(S.expression), fn(21, S.expression.end, _r, S), ir(), Je(S.caseBlock); } function ob(S) { Je(S.label), fn(58, S.label.end, _r, S), ir(), Je(S.statement); } function Jv(S) { fn(109, S.pos, ca, S), nm(Ks(S.expression), Ks), kl(); } function i2(S) { fn(111, S.pos, ca, S), ir(), Je(S.tryBlock), S.catchClause && (Fy(S, S.tryBlock, S.catchClause), Je(S.catchClause)), S.finallyBlock && (Fy(S, S.catchClause || S.tryBlock, S.finallyBlock), fn(96, (S.catchClause || S.tryBlock).end, ca, S), ir(), Je(S.finallyBlock)); } function QT(S) { My(87, S.pos, ca), kl(); } function a2(S) { var se, Le, tn, Ar, vi; Je(S.name), Je(S.exclamationToken), xp(S.type), Z_(S.initializer, (vi = (Ar = (se = S.type) == null ? void 0 : se.end) != null ? Ar : (tn = (Le = S.name.emitNode) == null ? void 0 : Le.typeNode) == null ? void 0 : tn.end) != null ? vi : S.name.end, S, Rr.parenthesizeExpressionForDisallowedComma); } function vg(S) { ca(CI(S) ? "let" : ig(S) ? "const" : "var"), ir(), ws(S, S.declarations, 528); } function X_(S) { Kv(S); } function Kv(S) { If(S, S.modifiers, !1), ca("function"), Je(S.asteriskToken), ir(), Ut(S.name), kh(S, Sp); } function kh(S, se) { const Le = S.body; if (Le) if (oo(Le)) { const tn = ho(S) & 131072; tn && v_(), Dg(S), Ye(S.parameters, hc), hc(S.body), se(S), q1(Le), Nh(S), tn && Ap(); } else se(S), ir(), on(Le, Rr.parenthesizeConciseBodyOfArrowFunction); else se(S), kl(); } function Sp(S) { im(S, S.typeParameters), kg(S, S.parameters), xp(S.type); } function Xv(S) { if (ho(S) & 1) return !0; if (S.multiLine || !$s(S) && k && !mT(S, k) || iu(S, Wc(S.statements), 2) || Ym(S, Zs(S.statements), 2, S.statements)) return !1; let se; for (const Le of S.statements) { if (b_(se, Le, 2) > 0) return !1; se = Le; } return !0; } function q1(S) { c == null || c(S), ir(), _r("{"), v_(); const se = Xv(S) ? sb : bg; Ng(S, S.statements, se), Ap(), My(19, S.statements.end, _r, S), f == null || f(S); } function sb(S) { bg(S, !0); } function bg(S, se) { const Le = n0(S.statements), tn = ee.getTextPos(); dn(S), Le === 0 && tn === ee.getTextPos() && se ? (Ap(), ws(S, S.statements, 768), v_()) : ws(S, S.statements, 1, void 0, Le); } function ZT(S) { J1(S); } function J1(S) { a0(0, void 0), Ye(S.members, sE), If(S, S.modifiers, !0), fn(84, qp(S).pos, ca, S), S.name && (ir(), Ut(S.name)); const se = ho(S) & 131072; se && v_(), im(S, S.typeParameters), ws(S, S.heritageClauses, 0), ir(), _r("{"), ws(S, S.members, 129), _r("}"), se && Ap(), au(); } function K1(S) { a0(0, void 0), If(S, S.modifiers, !1), ca("interface"), ir(), Je(S.name), im(S, S.typeParameters), ws(S, S.heritageClauses, 512), ir(), _r("{"), ws(S, S.members, 129), _r("}"), au(); } function X1(S) { If(S, S.modifiers, !1), ca("type"), ir(), Je(S.name), im(S, S.typeParameters), ir(), _r("="), ir(), Je(S.type), kl(); } function Yv(S) { If(S, S.modifiers, !1), ca("enum"), ir(), Je(S.name), ir(), _r("{"), ws(S, S.members, 145), _r("}"); } function o2(S) { If(S, S.modifiers, !1), ~S.flags & 1024 && (ca(S.flags & 16 ? "namespace" : "module"), ir()), Je(S.name); let se = S.body; if (!se) return kl(); for (; se && Hl(se); ) _r("."), Je(se.name), se = se.body; ir(), Je(se); } function Y1(S) { Dg(S), Ye(S.statements, hc), Yn(S, Rh(S)), Nh(S); } function $1(S) { fn(18, S.pos, _r, S), ws(S, S.clauses, 129), fn(19, S.clauses.end, _r, S, !0); } function $v(S) { If(S, S.modifiers, !1), fn(100, S.modifiers ? S.modifiers.end : S.pos, ca, S), ir(), S.isTypeOnly && (fn(154, S.pos, ca, S), ir()), Je(S.name), ir(), fn(63, S.name.end, _r, S), ir(), lb(S.moduleReference), kl(); } function lb(S) { S.kind === 79 ? on(S) : Je(S); } function Qv(S) { If(S, S.modifiers, !1), fn(100, S.modifiers ? S.modifiers.end : S.pos, ca, S), ir(), S.importClause && (Je(S.importClause), ir(), fn(158, S.importClause.end, ca, S), ir()), on(S.moduleSpecifier), S.assertClause && bb(S.assertClause), kl(); } function eS(S) { S.isTypeOnly && (fn(154, S.pos, ca, S), ir()), Je(S.name), S.name && S.namedBindings && (fn(27, S.name.end, _r, S), ir()), Je(S.namedBindings); } function Eg(S) { const se = fn(41, S.pos, _r, S); ir(), fn(128, se, ca, S), ir(), Je(S.name); } function Xo(S) { cb(S); } function Q1(S) { ub(S); } function tL(S) { const se = fn(93, S.pos, ca, S); ir(), S.isExportEquals ? fn(63, se, kf, S) : fn(88, se, ca, S), ir(), on(S.expression, S.isExportEquals ? Rr.getParenthesizeRightSideOfBinaryForOperator(63) : Rr.parenthesizeExpressionOfExportDefault), kl(); } function Dy(S) { If(S, S.modifiers, !1); let se = fn(93, S.pos, ca, S); if (ir(), S.isTypeOnly && (se = fn(154, se, ca, S), ir()), S.exportClause ? Je(S.exportClause) : se = fn(41, se, _r, S), S.moduleSpecifier) { ir(); const Le = S.exportClause ? S.exportClause.end : se; fn(158, Le, ca, S), ir(), on(S.moduleSpecifier); } S.assertClause && bb(S.assertClause), kl(); } function Tg(S) { fn(130, S.pos, ca, S), ir(); const se = S.elements; ws(S, se, 526226); } function qm(S) { Je(S.name), _r(":"), ir(); const se = S.value; if (!(ho(se) & 1024)) { const Le = Fm(se); Og(Le.pos); } Je(se); } function Y_(S) { let se = fn(93, S.pos, ca, S); ir(), se = fn(128, se, ca, S), ir(), se = fn(143, se, ca, S), ir(), Je(S.name), kl(); } function xd(S) { const se = fn(41, S.pos, _r, S); ir(), fn(128, se, ca, S), ir(), Je(S.name); } function Ad(S) { cb(S); } function Cd(S) { ub(S); } function cb(S) { _r("{"), ws(S, S.elements, 525136), _r("}"); } function ub(S) { S.isTypeOnly && (ca("type"), ir()), S.propertyName && (Je(S.propertyName), ir(), fn(128, S.propertyName.end, ca, S), ir()), Je(S.name); } function s2(S) { ca("require"), _r("("), on(S.expression), _r(")"); } function db(S) { Je(S.openingElement), ws(S, S.children, 262144), Je(S.closingElement); } function Sg(S) { _r("<"), pb(S.tagName), rm(S, S.typeArguments), ir(), Je(S.attributes), _r("/>"); } function fb(S) { Je(S.openingFragment), ws(S, S.children, 262144), Je(S.closingFragment); } function tS(S) { if (_r("<"), xh(S)) { const se = aE(S.tagName, S); pb(S.tagName), rm(S, S.typeArguments), S.attributes.properties && S.attributes.properties.length > 0 && ir(), Je(S.attributes), Sb(S.attributes, S), wg(se); } _r(">"); } function _b(S) { ee.writeLiteral(S.text); } function nL(S) { _r(""); } function l2(S) { ws(S, S.properties, 262656); } function Zv(S) { Je(S.name), f2("=", _r, S.initializer, Sn); } function Z1(S) { _r("{..."), on(S.expression), _r("}"); } function qe(S) { let se = !1; return IR((k == null ? void 0 : k.text) || "", S + 1, () => se = !0), se; } function Ry(S) { let se = !1; return LR((k == null ? void 0 : k.text) || "", S + 1, () => se = !0), se; } function tm(S) { return qe(S) || Ry(S); } function e0(S) { var se; if (S.expression || !Yt && !$s(S) && tm(S.pos)) { const Le = k && !$s(S) && il(k, S.pos).line !== il(k, S.end).line; Le && ee.increaseIndent(); const tn = fn(18, S.pos, _r, S); Je(S.dotDotDotToken), on(S.expression), fn(19, ((se = S.expression) == null ? void 0 : se.end) || tn, _r, S), Le && ee.decreaseIndent(); } } function pb(S) { S.kind === 79 ? on(S) : Je(S); } function t0(S) { fn(82, S.pos, ca, S), ir(), on(S.expression, Rr.parenthesizeExpressionForDisallowedComma), nS(S, S.statements, S.expression.end); } function xg(S) { const se = fn(88, S.pos, ca, S); nS(S, S.statements, se); } function nS(S, se, Le) { const tn = se.length === 1 && (!k || $s(S) || $s(se[0]) || h3(S, se[0], k)); let Ar = 163969; tn ? (My(58, Le, _r, S), ir(), Ar &= -130) : fn(58, Le, _r, S), ws(S, se, Ar); } function Qo(S) { ir(), ep(S.token, ca), ir(), ws(S, S.types, 528); } function $_(S) { const se = fn(83, S.pos, ca, S); ir(), S.variableDeclaration && (fn(20, se, _r, S), Je(S.variableDeclaration), fn(21, S.variableDeclaration.end, _r, S), ir()), Je(S.block); } function eE(S) { Je(S.name), _r(":"), ir(); const se = S.initializer; if (!(ho(se) & 1024)) { const Le = Fm(se); Og(Le.pos); } on(se, Rr.parenthesizeExpressionForDisallowedComma); } function mc(S) { Je(S.name), S.objectAssignmentInitializer && (ir(), _r("="), ir(), on(S.objectAssignmentInitializer, Rr.parenthesizeExpressionForDisallowedComma)); } function wh(S) { S.expression && (fn(25, S.pos, _r, S), on(S.expression, Rr.parenthesizeExpressionForDisallowedComma)); } function mb(S) { Je(S.name), Z_(S.initializer, S.name.end, S, Rr.parenthesizeExpressionForDisallowedComma); } function Q_(S) { if (Ge("/**"), S.comment) { const se = OR(S.comment); if (se) { const Le = se.split(/\r\n?|\n/g); for (const tn of Le) xc(), ir(), _r("*"), ir(), Ge(tn); } } S.tags && (S.tags.length === 1 && S.tags[0].kind === 347 && !S.comment ? (ir(), Je(S.tags[0])) : ws(S, S.tags, 33)), ir(), Ge("*/"); } function hb(S) { Dh(S.tagName), dl(S.typeExpression), Km(S.comment); } function ru(S) { Dh(S.tagName), Je(S.name), Km(S.comment); } function Ag(S) { ir(), _r("{"), Je(S.name), _r("}"); } function Dc(S) { Dh(S.tagName), ir(), _r("{"), Je(S.class), _r("}"), Km(S.comment); } function rS(S) { Dh(S.tagName), dl(S.constraint), ir(), ws(S, S.typeParameters, 528), Km(S.comment); } function rL(S) { Dh(S.tagName), S.typeExpression && (S.typeExpression.kind === 312 ? dl(S.typeExpression) : (ir(), _r("{"), Ge("Object"), S.typeExpression.isArrayType && (_r("["), _r("]")), _r("}"))), S.fullName && (ir(), Je(S.fullName)), Km(S.comment), S.typeExpression && S.typeExpression.kind === 325 && Hd(S.typeExpression); } function Ui(S) { Dh(S.tagName), S.name && (ir(), Je(S.name)), Km(S.comment), tE(S.typeExpression); } function Wr(S) { Km(S.comment), tE(S.typeExpression); } function Jm(S) { Dh(S.tagName), Km(S.comment); } function Hd(S) { ws(S, N.createNodeArray(S.jsDocPropertyTags), 33); } function tE(S) { S.typeParameters && ws(S, N.createNodeArray(S.typeParameters), 33), S.parameters && ws(S, N.createNodeArray(S.parameters), 33), S.type && (xc(), ir(), _r("*"), ir(), Je(S.type)); } function Cg(S) { Dh(S.tagName), dl(S.typeExpression), ir(), S.isBracketed && _r("["), Je(S.name), S.isBracketed && _r("]"), Km(S.comment); } function Dh(S) { _r("@"), Je(S); } function Km(S) { const se = OR(S); se && (ir(), Ge(se)); } function dl(S) { S && (ir(), _r("{"), Je(S.type), _r("}")); } function gb(S) { xc(); const se = S.statements; if (se.length === 0 || !dp(se[0]) || $s(se[0])) { Ng(S, se, $f); return; } $f(S); } function iS(S) { aS(!!S.hasNoDefaultLib, S.syntheticFileReferences || [], S.syntheticTypeReferences || [], S.syntheticLibReferences || []); for (const se of S.prepends) if (xT(se) && se.syntheticReferences) for (const Le of se.syntheticReferences) Je(Le), xc(); } function yb(S) { S.isDeclarationFile && aS(S.hasNoDefaultLib, S.referencedFiles, S.typeReferenceDirectives, S.libReferenceDirectives); } function aS(S, se, Le, tn) { if (S) { const Ar = ee.getTextPos(); Xm('/// '), We && We.sections.push({ pos: Ar, end: ee.getTextPos(), kind: "no-default-lib" }), xc(); } if (k && k.moduleName && (Xm(`/// `), xc()), k && k.amdDependencies) for (const Ar of k.amdDependencies) Ar.name ? Xm(`/// `) : Xm(`/// `), xc(); for (const Ar of se) { const vi = ee.getTextPos(); Xm(`/// `), We && We.sections.push({ pos: vi, end: ee.getTextPos(), kind: "reference", data: Ar.fileName }), xc(); } for (const Ar of Le) { const vi = ee.getTextPos(), oi = Ar.resolutionMode && Ar.resolutionMode !== (k == null ? void 0 : k.impliedNodeFormat) ? `resolution-mode="${Ar.resolutionMode === 99 ? "import" : "require"}"` : ""; Xm(`/// `), We && We.sections.push({ pos: vi, end: ee.getTextPos(), kind: Ar.resolutionMode ? Ar.resolutionMode === 99 ? "type-import" : "type-require" : "type", data: Ar.fileName }), xc(); } for (const Ar of tn) { const vi = ee.getTextPos(); Xm(`/// `), We && We.sections.push({ pos: vi, end: ee.getTextPos(), kind: "lib", data: Ar.fileName }), xc(); } } function $f(S) { const se = S.statements; Dg(S), Ye(S.statements, hc), dn(S); const Le = $i(se, (tn) => !dp(tn)); yb(S), ws(S, se, 1, void 0, Le === -1 ? se.length : Le), Nh(S); } function c2(S) { const se = ho(S); !(se & 1024) && S.pos !== S.expression.pos && Og(S.expression.pos), on(S.expression), !(se & 2048) && S.end !== S.expression.end && Id(S.expression.end); } function u2(S) { Oy(S, S.elements, 528, void 0); } function n0(S, se, Le, tn) { let Ar = !!se; for (let vi = 0; vi < S.length; vi++) { const oi = S[vi]; if (dp(oi)) { if (Le ? !Le.has(oi.expression.text) : !0) { Ar && (Ar = !1, me(se)), xc(); const co = ee.getTextPos(); Je(oi), tn && We && We.sections.push({ pos: co, end: ee.getTextPos(), kind: "prologue", data: oi.expression.text }), Le && Le.add(oi.expression.text); } } else return vi; } return S.length; } function oS(S, se) { for (const Le of S) if (!se.has(Le.data)) { xc(); const tn = ee.getTextPos(); Je(Le), We && We.sections.push({ pos: tn, end: ee.getTextPos(), kind: "prologue", data: Le.data }), se && se.add(Le.data); } } function sS(S) { if (ji(S)) n0(S.statements, S); else { const se = /* @__PURE__ */ new Set(); for (const Le of S.prepends) oS(Le.prologues, se); for (const Le of S.sourceFiles) n0(Le.statements, Le, se, !0); me(void 0); } } function d2(S) { const se = /* @__PURE__ */ new Set(); let Le; for (let tn = 0; tn < S.sourceFiles.length; tn++) { const Ar = S.sourceFiles[tn]; let vi, oi = 0; for (const Fi of Ar.statements) { if (!dp(Fi)) break; se.has(Fi.expression.text) || (se.add(Fi.expression.text), (vi || (vi = [])).push({ pos: Fi.pos, end: Fi.end, expression: { pos: Fi.expression.pos, end: Fi.expression.end, text: Fi.expression.text } }), oi = oi < Fi.end ? Fi.end : oi); } vi && (Le || (Le = [])).push({ file: tn, text: Ar.text.substring(0, oi), directives: vi }); } return Le; } function vb(S) { if (ji(S) || xT(S)) { const se = iM(S.text); if (se) return Xm(se), xc(), !0; } else { for (const se of S.prepends) if (D.assertNode(se, xT), vb(se)) return !0; for (const se of S.sourceFiles) if (vb(se)) return !0; } } function lS(S, se) { if (!S) return; const Le = Ge; Ge = se, Je(S), Ge = Le; } function If(S, se, Le) { if (se != null && se.length) { if (Vn(se, lo)) return Lg(S, se); if (Vn(se, Du)) return Le ? Ig(S, se) : S.pos; d == null || d(se); let tn, Ar, vi = 0, oi = 0, Fi; for (; vi < se.length; ) { for (; oi < se.length; ) { if (Fi = se[oi], Ar = Du(Fi) ? "decorators" : "modifiers", tn === void 0) tn = Ar; else if (Ar !== tn) break; oi++; } const co = { pos: -1, end: -1 }; vi === 0 && (co.pos = se.pos), oi === se.length - 1 && (co.end = se.end), (tn === "modifiers" || Le) && Eb(Je, S, se, tn === "modifiers" ? 2359808 : 2146305, void 0, vi, oi - vi, !1, co), vi = oi, tn = Ar, oi++; } if (y == null || y(se), Fi && !Jp(Fi.end)) return Fi.end; } return S.pos; } function Lg(S, se) { ws(S, se, 2359808); const Le = Zs(se); return Le && !Jp(Le.end) ? Le.end : S.pos; } function xp(S) { S && (_r(":"), ir(), Je(S)); } function Z_(S, se, Le, tn) { S && (ir(), fn(63, se, kf, Le), ir(), on(S, tn)); } function f2(S, se, Le, tn) { Le && (se(S), tn(Le)); } function bb(S) { S && (ir(), Je(S)); } function nm(S, se) { S && (ir(), on(S, se)); } function cS(S) { S && (Je(S), ir()); } function ud(S, se) { oo(se) || ho(S) & 1 ? (ir(), Je(se)) : (xc(), v_(), eJ(se) ? pt(5, se) : Je(se), Ap()); } function Ig(S, se) { ws(S, se, 2146305); const Le = Zs(se); return Le && !Jp(Le.end) ? Le.end : S.pos; } function rm(S, se) { ws(S, se, 53776, xt); } function im(S, se) { if (qa(S) && S.typeArguments) return rm(S, S.typeArguments); ws(S, se, 53776); } function kg(S, se) { ws(S, se, 2576); } function nE(S, se) { const Le = bm(se); return Le && Le.pos === S.pos && zs(S) && !S.type && !kt(S.modifiers) && !kt(S.typeParameters) && !kt(Le.modifiers) && !Le.dotDotDotToken && !Le.questionToken && !Le.type && !Le.initializer && Ve(Le.name); } function uS(S, se) { nE(S, se) ? ws(S, se, 528) : kg(S, se); } function Ny(S, se) { ws(S, se, 8848); } function rE(S) { switch (S & 60) { case 0: break; case 16: _r(","); break; case 4: ir(), _r("|"); break; case 32: ir(), _r("*"), ir(); break; case 8: ir(), _r("&"); break; } } function ws(S, se, Le, tn, Ar, vi) { _2(Je, S, se, Le | (S && ho(S) & 2 ? 65536 : 0), tn, Ar, vi); } function Oy(S, se, Le, tn, Ar, vi) { _2(on, S, se, Le, tn, Ar, vi); } function _2(S, se, Le, tn, Ar, vi = 0, oi = Le ? Le.length - vi : 0) { if (Le === void 0 && tn & 16384) return; const co = Le === void 0 || vi >= Le.length || oi === 0; if (co && tn & 32768) { d == null || d(Le), y == null || y(Le); return; } tn & 15360 && (_r(b3e(tn)), co && Le && Og(Le.pos, !0)), d == null || d(Le), co ? tn & 1 && !(ye && (!se || k && mT(se, k))) ? xc() : tn & 256 && !(tn & 524288) && ir() : Eb(S, se, Le, tn, Ar, vi, oi, Le.hasTrailingComma, Le), y == null || y(Le), tn & 15360 && (co && Le && Id(Le.end), _r(E3e(tn))); } function Eb(S, se, Le, tn, Ar, vi, oi, Fi, co) { const Yc = (tn & 262144) === 0; let qd = Yc; const ff = iu(se, Le[vi], tn); ff ? (xc(ff), qd = !1) : tn & 256 && ir(), tn & 128 && v_(); const Wy = A3e(S, Ar); let Jd, d0, f0 = !1; for (let Zm = 0; Zm < oi; Zm++) { const qy = Le[vi + Zm]; if (tn & 32) xc(), rE(tn); else if (Jd) { tn & 60 && Jd.end !== (se ? se.end : -1) && (ho(Jd) & 2048 || Id(Jd.end)), rE(tn), Ur(d0); const Qf = b_(Jd, qy, tn); Qf > 0 ? (tn & 131 || (v_(), f0 = !0), xc(Qf), qd = !1) : Jd && tn & 512 && ir(); } if (d0 = xr(qy), qd) { const Qf = Fm(qy); Og(Qf.pos); } else qd = Yc; Te = qy.pos, Wy(qy, S, Ar, Zm), f0 && (Ap(), f0 = !1), Jd = qy; } const zy = Jd ? ho(Jd) : 0, E_ = Yt || !!(zy & 2048), vE = Fi && tn & 64 && tn & 16; vE && (Jd && !E_ ? fn(27, Jd.end, _r, Jd) : _r(",")), Jd && (se ? se.end : -1) !== Jd.end && tn & 60 && !E_ && Id(vE && (co != null && co.end) ? co.end : Jd.end), tn & 128 && Ap(), Ur(d0); const Rf = Ym(se, Le[vi + oi - 1], tn, co); Rf ? xc(Rf) : tn & 2097408 && ir(); } function Tb(S) { ee.writeLiteral(S); } function p2(S) { ee.writeStringLiteral(S); } function iL(S) { ee.write(S); } function m2(S, se) { ee.writeSymbol(S, se); } function _r(S) { ee.writePunctuation(S); } function kl() { ee.writeTrailingSemicolon(";"); } function ca(S) { ee.writeKeyword(S); } function kf(S) { ee.writeOperator(S); } function r0(S) { ee.writeParameter(S); } function Xm(S) { ee.writeComment(S); } function ir() { ee.writeSpace(" "); } function h2(S) { ee.writeProperty(S); } function Py(S) { ee.nonEscapingWrite ? ee.nonEscapingWrite(S) : ee.write(S); } function xc(S = 1) { for (let se = 0; se < S; se++) ee.writeLine(se > 0); } function v_() { ee.increaseIndent(); } function Ap() { ee.decreaseIndent(); } function My(S, se, Le, tn) { return Me ? ep(S, Le, se) : aL(tn, S, Le, se, ep); } function iE(S, se) { m && m(S), se(mo(S.kind)), b && b(S); } function ep(S, se, Le) { const tn = mo(S); return se(tn), Le < 0 ? Le : Le + tn.length; } function Fy(S, se, Le) { if (ho(S) & 1) ir(); else if (ye) { const tn = Cp(S, se, Le); tn ? xc(tn) : ir(); } else xc(); } function ql(S) { const se = S.split(/\r\n?|\n/g), Le = _ce(se); for (const tn of se) { const Ar = Le ? tn.slice(Le) : tn; Ar.length && (xc(), Ge(Ar)); } } function Zl(S, se) { S ? (v_(), xc(S)) : se && ir(); } function wg(S, se) { S && Ap(), se && Ap(); } function iu(S, se, Le) { if (Le & 2 || ye) { if (Le & 65536) return 1; if (se === void 0) return !S || k && mT(S, k) ? 0 : 1; if (se.pos === Te || se.kind === 11) return 0; if (k && S && !Jp(S.pos) && !$s(se) && (!se.parent || bl(se.parent) === bl(S))) return ye ? Ld((tn) => Xue(se.pos, S.pos, k, tn)) : h3(S, se, k) ? 0 : 1; if (xb(se, Le)) return 1; } return Le & 1 ? 1 : 0; } function b_(S, se, Le) { if (Le & 2 || ye) { if (S === void 0 || se === void 0 || se.kind === 11) return 0; if (k && !$s(S) && !$s(se)) return ye && Fh(S, se) ? Ld((tn) => Nz(S, se, k, tn)) : !ye && c0(S, se) ? BN(S, se, k) ? 0 : 1 : Le & 65536 ? 1 : 0; if (xb(S, Le) || xb(se, Le)) return 1; } else if (cO(se)) return 1; return Le & 1 ? 1 : 0; } function Ym(S, se, Le, tn) { if (Le & 2 || ye) { if (Le & 65536) return 1; if (se === void 0) return !S || k && mT(S, k) ? 0 : 1; if (k && S && !Jp(S.pos) && !$s(se) && (!se.parent || se.parent === S)) { if (ye) { const Ar = tn && !Jp(tn.end) ? tn.end : se.end; return Ld((vi) => Yue(Ar, S.end, k, vi)); } return que(S, se, k) ? 0 : 1; } if (xb(se, Le)) return 1; } return Le & 1 && !(Le & 131072) ? 1 : 0; } function Ld(S) { D.assert(!!ye); const se = S(!0); return se === 0 ? S(!1) : se; } function aE(S, se) { const Le = ye && iu(se, S, 0); return Le && Zl(Le, !1), !!Le; } function Sb(S, se) { const Le = ye && Ym(se, S, 0, void 0); Le && xc(Le); } function xb(S, se) { if ($s(S)) { const Le = cO(S); return Le === void 0 ? (se & 65536) !== 0 : Le; } return (se & 65536) !== 0; } function Cp(S, se, Le) { return ho(S) & 262144 ? 0 : (S = oE(S), se = oE(se), Le = oE(Le), cO(Le) ? 1 : k && !$s(S) && !$s(se) && !$s(Le) ? ye ? Ld((tn) => Nz(se, Le, k, tn)) : BN(se, Le, k) ? 0 : 1 : 0); } function Rh(S) { return S.statements.length === 0 && (!k || BN(S, S, k)); } function oE(S) { for (; S.kind === 214 && $s(S); ) S = S.expression; return S; } function By(S, se) { if (El(S) || jS(S)) return Ab(S); if (Go(S) && S.textSourceNode) return By(S.textSourceNode, se); const Le = k, tn = !!Le && !!S.parent && !$s(S); if (eg(S)) { if (!tn || Zn(S) !== bl(Le)) return Or(S); } else if (D.assertNode(S, $E), !tn) return S.text; return f1(Le, S, se); } function wl(S, se, Le) { if (S.kind === 10 && S.textSourceNode) { const Ar = S.textSourceNode; if (Ve(Ar) || ki(Ar) || __(Ar)) { const vi = __(Ar) ? Ar.text : By(Ar); return Le ? `"${_z(vi)}"` : se || ho(S) & 33554432 ? `"${ex(vi)}"` : `"${kN(vi)}"`; } else return wl(Ar, se, Le); } const tn = (se ? 1 : 0) | (Le ? 2 : 0) | (e.terminateUnterminatedLiterals ? 4 : 0) | (e.target && e.target === 99 ? 8 : 0); return Ice(S, k, tn); } function Dg(S) { S && ho(S) & 1048576 || (ne.push(ge), ge = 0, X.push(Y), Y = void 0, ie.push(H)); } function Nh(S) { S && ho(S) & 1048576 || (ge = ne.pop(), Y = X.pop(), H = ie.pop()); } function i0(S) { (!H || H === Zs(ie)) && (H = /* @__PURE__ */ new Set()), H.add(S); } function a0(S, se) { P.push(ue), ue = S, le.push(H), pe = se; } function au() { ue = P.pop(), pe = le.pop(); } function Oh(S) { (!pe || pe === Zs(le)) && (pe = /* @__PURE__ */ new Set()), pe.add(S); } function hc(S) { if (S) switch (S.kind) { case 238: Ye(S.statements, hc); break; case 253: case 251: case 243: case 244: hc(S.statement); break; case 242: hc(S.thenStatement), hc(S.elseStatement); break; case 245: case 247: case 246: hc(S.initializer), hc(S.statement); break; case 252: hc(S.caseBlock); break; case 266: Ye(S.clauses, hc); break; case 292: case 293: Ye(S.statements, hc); break; case 255: hc(S.tryBlock), hc(S.catchClause), hc(S.finallyBlock); break; case 295: hc(S.variableDeclaration), hc(S.block); break; case 240: hc(S.declarationList); break; case 258: Ye(S.declarations, hc); break; case 257: case 166: case 205: case 260: Ph(S.name); break; case 259: Ph(S.name), ho(S) & 1048576 && (Ye(S.parameters, hc), hc(S.body)); break; case 203: case 204: Ye(S.elements, hc); break; case 269: hc(S.importClause); break; case 270: Ph(S.name), hc(S.namedBindings); break; case 271: Ph(S.name); break; case 277: Ph(S.name); break; case 272: Ye(S.elements, hc); break; case 273: Ph(S.propertyName || S.name); break; } } function sE(S) { if (S) switch (S.kind) { case 299: case 300: case 169: case 171: case 174: case 175: Ph(S.name); break; } } function Ph(S) { S && (El(S) || jS(S) ? Ab(S) : Ja(S) && hc(S)); } function Ab(S) { const se = S.emitNode.autoGenerate; if ((se.flags & 7) === 4) return dd(B7(S), ki(S), se.flags, se.prefix, se.suffix); { const Le = se.id; return j[Le] || (j[Le] = Lr(S)); } } function dd(S, se, Le, tn, Ar) { const vi = ds(S), oi = se ? U : B; return oi[vi] || (oi[vi] = ns(S, se, Le ?? 0, TC(tn, Ab), TC(Ar))); } function $m(S, se) { return o0(S) && !Cb(S, se) && !te.has(S); } function Cb(S, se) { return se ? !!(pe != null && pe.has(S)) : !!(H != null && H.has(S)); } function o0(S, se) { return k ? IM(k, S, r) : !0; } function lE(S, se) { for (let Le = se; Le && uT(Le, se); Le = Le.nextContainer) if (Im(Le) && Le.locals) { const tn = Le.locals.get(al(S)); if (tn && tn.flags & 3257279) return !1; } return !0; } function Gy(S) { var se; switch (S) { case "": return ge; case "#": return ue; default: return (se = Y == null ? void 0 : Y.get(S)) != null ? se : 0; } } function dS(S, se) { switch (S) { case "": ge = se; break; case "#": ue = se; break; default: Y ?? (Y = /* @__PURE__ */ new Map()), Y.set(S, se); break; } } function s0(S, se, Le, tn, Ar) { tn.length > 0 && tn.charCodeAt(0) === 35 && (tn = tn.slice(1)); const vi = LT(Le, tn, "", Ar); let oi = Gy(vi); if (S && !(oi & S)) { const co = LT(Le, tn, S === 268435456 ? "_i" : "_n", Ar); if ($m(co, Le)) return oi |= S, Le ? Oh(co) : se && i0(co), dS(vi, oi), co; } for (; ; ) { const Fi = oi & 268435455; if (oi++, Fi !== 8 && Fi !== 13) { const co = Fi < 26 ? "_" + String.fromCharCode(97 + Fi) : "_" + (Fi - 26), Yc = LT(Le, tn, co, Ar); if ($m(Yc, Le)) return Le ? Oh(Yc) : se && i0(Yc), dS(vi, oi), Yc; } } } function Rg(S, se = $m, Le, tn, Ar, vi, oi) { if (S.length > 0 && S.charCodeAt(0) === 35 && (S = S.slice(1)), vi.length > 0 && vi.charCodeAt(0) === 35 && (vi = vi.slice(1)), Le) { const co = LT(Ar, vi, S, oi); if (se(co, Ar)) return Ar ? Oh(co) : tn ? i0(co) : te.add(co), co; } S.charCodeAt(S.length - 1) !== 95 && (S += "_"); let Fi = 1; for (; ; ) { const co = LT(Ar, vi, S + Fi, oi); if (se(co, Ar)) return Ar ? Oh(co) : tn ? i0(co) : te.add(co), co; Fi++; } } function wf(S) { return Rg(S, o0, !0, !1, !1, "", ""); } function cE(S) { const se = By(S.name); return lE(se, ri(S, Im)) ? se : Rg(se, $m, !1, !1, !1, "", ""); } function uf(S) { const se = OA(S), Le = Go(se) ? wce(se.text) : "module"; return Rg(Le, $m, !1, !1, !1, "", ""); } function Mh() { return Rg("default", $m, !1, !1, !1, "", ""); } function l0() { return Rg("class", $m, !1, !1, !1, "", ""); } function g2(S, se, Le, tn) { return Ve(S.name) ? dd(S.name, se) : s0(0, !1, se, Le, tn); } function ns(S, se, Le, tn, Ar) { switch (S.kind) { case 79: case 80: return Rg(By(S), $m, !!(Le & 16), !!(Le & 8), se, tn, Ar); case 264: case 263: return D.assert(!tn && !Ar && !se), cE(S); case 269: case 275: return D.assert(!tn && !Ar && !se), uf(S); case 259: case 260: { D.assert(!tn && !Ar && !se); const vi = S.name; return vi && !El(vi) ? ns(vi, !1, Le, tn, Ar) : Mh(); } case 274: return D.assert(!tn && !Ar && !se), Mh(); case 228: return D.assert(!tn && !Ar && !se), l0(); case 171: case 174: case 175: return g2(S, se, tn, Ar); case 164: return s0(0, !0, se, tn, Ar); default: return s0(0, !1, se, tn, Ar); } } function Lr(S) { const se = S.emitNode.autoGenerate, Le = TC(se.prefix, Ab), tn = TC(se.suffix); switch (se.flags & 7) { case 1: return s0(0, !!(se.flags & 8), ki(S), Le, tn); case 2: return D.assertNode(S, Ve), s0(268435456, !!(se.flags & 8), !1, Le, tn); case 3: return Rg(Or(S), se.flags & 32 ? o0 : $m, !!(se.flags & 16), !!(se.flags & 8), ki(S), Le, tn); } return D.fail(`Unsupported GeneratedIdentifierKind: ${D.formatEnum(se.flags & 7, jP, !0)}.`); } function Wd(S, se) { const Le = Oe(2, S, se), tn = it, Ar = nn, vi = Xt; fd(se), Le(S, se), fS(se, tn, Ar, vi); } function fd(S) { const se = ho(S), Le = Fm(S); uE(S, se, Le.pos, Le.end), se & 4096 && (Yt = !0); } function fS(S, se, Le, tn) { const Ar = ho(S), vi = Fm(S); Ar & 4096 && (Yt = !1), Uy(S, Ar, vi.pos, vi.end, se, Le, tn); const oi = lfe(S); oi && Uy(S, Ar, oi.pos, oi.end, se, Le, tn); } function uE(S, se, Le, tn) { Ji(), In = !1; const Ar = Le < 0 || (se & 1024) !== 0 || S.kind === 11, vi = tn < 0 || (se & 2048) !== 0 || S.kind === 11; (Le > 0 || tn > 0) && Le !== tn && (Ar || om(Le, S.kind !== 355), (!Ar || Le >= 0 && se & 1024) && (it = Le), (!vi || tn >= 0 && se & 2048) && (nn = tn, S.kind === 258 && (Xt = tn))), Ye(rC(S), y2), Ki(); } function Uy(S, se, Le, tn, Ar, vi, oi) { Ji(); const Fi = tn < 0 || (se & 2048) !== 0 || S.kind === 11; Ye(dO(S), Vy), (Le > 0 || tn > 0) && Le !== tn && (it = Ar, nn = vi, Xt = oi, !Fi && S.kind !== 355 && dE(tn)), Ki(); } function y2(S) { (S.hasLeadingNewline || S.kind === 2) && ee.writeLine(), am(S), S.hasTrailingNewLine || S.kind === 2 ? ee.writeLine() : ee.writeSpace(" "); } function Vy(S) { ee.isAtStartOfLine() || ee.writeSpace(" "), am(S), S.hasTrailingNewLine && ee.writeLine(); } function am(S) { const se = Lp(S), Le = S.kind === 3 ? xR(se) : void 0; zA(se, Le, ee, 0, se.length, C); } function Lp(S) { return S.kind === 3 ? `/*${S.text}*/` : `//${S.text}`; } function Ng(S, se, Le) { Ji(); const { pos: tn, end: Ar } = se, vi = ho(S), oi = tn < 0 || (vi & 1024) !== 0, Fi = Yt || Ar < 0 || (vi & 2048) !== 0; oi || u0(se), Ki(), vi & 4096 && !Yt ? (Yt = !0, Le(S), Yt = !1) : Le(S), Ji(), Fi || (om(se.end, !0), In && !ee.isAtStartOfLine() && ee.writeLine()), Ki(); } function c0(S, se) { return S = bl(S), S.parent && S.parent === bl(se).parent; } function Fh(S, se) { if (se.pos < S.end) return !1; S = bl(S), se = bl(se); const Le = S.parent; if (!Le || Le !== se.parent) return !1; const tn = kde(S), Ar = tn == null ? void 0 : tn.indexOf(S); return Ar !== void 0 && Ar > -1 && tn.indexOf(se) === Ar + 1; } function om(S, se) { In = !1, se ? S === 0 && (k != null && k.isDeclarationFile) ? Ds(S, Jl) : Ds(S, Qm) : S === 0 && Ds(S, _S); } function _S(S, se, Le, tn, Ar) { pE(S, se) && Qm(S, se, Le, tn, Ar); } function Jl(S, se, Le, tn, Ar) { pE(S, se) || Qm(S, se, Le, tn, Ar); } function df(S, se) { return e.onlyPrintJsDocStyle ? LJ(S, se) || kM(S, se) : !0; } function Qm(S, se, Le, tn, Ar) { !k || !df(k.text, S) || (In || (kue(Qe(), ee, Ar, S), In = !0), zd(S), zA(k.text, Qe(), ee, S, se, C), zd(se), tn ? ee.writeLine() : Le === 3 && ee.writeSpace(" ")); } function Id(S) { Yt || S === -1 || om(S, !0); } function dE(S) { fE(S, jy); } function jy(S, se, Le, tn) { !k || !df(k.text, S) || (ee.isAtStartOfLine() || ee.writeSpace(" "), zd(S), zA(k.text, Qe(), ee, S, se, C), zd(se), tn && ee.writeLine()); } function Og(S, se, Le) { Yt || (Ji(), fE(S, se ? jy : Le ? v2 : Df), Ki()); } function v2(S, se, Le) { k && (zd(S), zA(k.text, Qe(), ee, S, se, C), zd(se), Le === 2 && ee.writeLine()); } function Df(S, se, Le, tn) { k && (zd(S), zA(k.text, Qe(), ee, S, se, C), zd(se), tn ? ee.writeLine() : ee.writeSpace(" ")); } function Ds(S, se) { k && (it === -1 || S !== it) && (_E(S) ? Pg(se) : LR(k.text, S, se, S)); } function fE(S, se) { k && (nn === -1 || S !== nn && S !== Xt) && IR(k.text, S, se); } function _E(S) { return Hn !== void 0 && Ho(Hn).nodePos === S; } function Pg(S) { if (!k) return; const se = Ho(Hn).detachedCommentEndPos; Hn.length - 1 ? Hn.pop() : Hn = void 0, LR(k.text, se, S, se); } function u0(S) { const se = k && Due(k.text, Qe(), ee, pS, S, C, Yt); se && (Hn ? Hn.push(se) : Hn = [se]); } function pS(S, se, Le, tn, Ar, vi) { !k || !df(k.text, tn) || (zd(tn), zA(S, se, Le, tn, Ar, vi), zd(Ar)); } function pE(S, se) { return !!k && SW(k.text, S, se); } function mE(S) { return S.parsedSourceMap === void 0 && S.sourceMapText !== void 0 && (S.parsedSourceMap = GK(S.sourceMapText) || !1), S.parsedSourceMap || void 0; } function hE(S, se) { const Le = Oe(3, S, se); gE(se), Le(S, se), yE(se); } function gE(S) { const se = ho(S), Le = K0(S); if (QH(S)) { D.assertIsDefined(S.parent, "UnparsedNodes must have parent pointers"); const tn = mE(S.parent); tn && ot && ot.appendSourceMap(ee.getLine(), ee.getColumn(), tn, S.parent.sourceMapPath, S.parent.getLineAndCharacterOfPosition(S.pos), S.parent.getLineAndCharacterOfPosition(S.end)); } else { const tn = Le.source || At; S.kind !== 355 && !(se & 32) && Le.pos >= 0 && Bh(Le.source || At, Hy(tn, Le.pos)), se & 128 && (Me = !0); } } function yE(S) { const se = ho(S), Le = K0(S); QH(S) || (se & 128 && (Me = !1), S.kind !== 355 && !(se & 64) && Le.end >= 0 && Bh(Le.source || At, Le.end)); } function Hy(S, se) { return S.skipTrivia ? S.skipTrivia(se) : zo(S.text, se); } function zd(S) { if (Me || Jp(S) || E2(At)) return; const { line: se, character: Le } = il(At, S); ot.addMapping(ee.getLine(), ee.getColumn(), bt, se, Le, void 0); } function Bh(S, se) { if (S !== At) { const Le = At, tn = bt; Mg(S), zd(se), b2(Le, tn); } else zd(se); } function aL(S, se, Le, tn, Ar) { if (Me || S && YM(S)) return Ar(se, Le, tn); const vi = S && S.emitNode, oi = vi && vi.flags || 0, Fi = vi && vi.tokenSourceMapRanges && vi.tokenSourceMapRanges[se], co = Fi && Fi.source || At; return tn = Hy(co, Fi ? Fi.pos : tn), !(oi & 256) && tn >= 0 && Bh(co, tn), tn = Ar(se, Le, tn), Fi && (tn = Fi.end), !(oi & 512) && tn >= 0 && Bh(co, tn), tn; } function Mg(S) { if (!Me) { if (At = S, S === Vt) { bt = et; return; } E2(S) || (bt = ot.addSource(S.fileName), e.inlineSources && ot.setSourceContent(bt, S.text), Vt = S, et = bt); } } function b2(S, se) { At = S, bt = se; } function E2(S) { return oc(S.fileName, ".json"); } } function v3e() { const e = []; return e[1024] = ["{", "}"], e[2048] = ["(", ")"], e[4096] = ["<", ">"], e[8192] = ["[", "]"], e; } function b3e(e) { return fX[e & 15360][0]; } function E3e(e) { return fX[e & 15360][1]; } function T3e(e, t, r, i) { t(e); } function S3e(e, t, r, i) { t(e, r.select(i)); } function x3e(e, t, r, i) { t(e, r); } function A3e(e, t) { return e.length === 1 ? T3e : typeof t == "object" ? S3e : x3e; } var fX, G5, _X, U1, pX, b8, C3e = L({ "src/compiler/emitter.ts"() { Ra(), Ra(), i1(), fX = v3e(), G5 = { hasGlobalName: ja, getReferencedExportContainer: ja, getReferencedImportDeclaration: ja, getReferencedDeclarationWithCollidingName: ja, isDeclarationWithCollidingName: ja, isValueAliasDeclaration: ja, isReferencedAliasDeclaration: ja, isTopLevelValueImportEqualsWithEntityName: ja, getNodeCheckFlags: ja, isDeclarationVisible: ja, isLateBound: (e) => !1, collectLinkedAliases: ja, isImplementationOfOverload: ja, isRequiredInitializedParameter: ja, isOptionalUninitializedParameterProperty: ja, isExpandoFunctionDeclaration: ja, getPropertiesOfContainerFunction: ja, createTypeOfDeclaration: ja, createReturnTypeOfSignatureDeclaration: ja, createTypeOfExpression: ja, createLiteralConstValue: ja, isSymbolAccessible: ja, isEntityNameVisible: ja, getConstantValue: ja, getReferencedValueDeclaration: ja, getTypeReferenceSerializationKind: ja, isOptionalParameter: ja, moduleExportsSomeValue: ja, isArgumentsLocalBinding: ja, getExternalModuleFileFromDeclaration: ja, getTypeReferenceDirectivesForEntityName: ja, getTypeReferenceDirectivesForSymbol: ja, isLiteralConstDeclaration: ja, getJsxFactoryEntity: ja, getJsxFragmentFactoryEntity: ja, getAllAccessorDeclarations: ja, getSymbolOfExternalModuleSpecifier: ja, isBindingCapturedByNode: ja, getDeclarationStatementsForSourceFile: ja, isImportRequiredByAugmentation: ja }, _X = /* @__PURE__ */ hd(() => G1({})), U1 = /* @__PURE__ */ hd(() => G1({ removeComments: !0 })), pX = /* @__PURE__ */ hd(() => G1({ removeComments: !0, neverAsciiEscape: !0 })), b8 = /* @__PURE__ */ hd(() => G1({ removeComments: !0, omitTrailingSemicolon: !0 })); } }); function Ahe(e, t, r) { if (!e.getDirectories || !e.readDirectory) return; const i = /* @__PURE__ */ new Map(), o = $c(r); return { useCaseSensitiveFileNames: r, fileExists: C, readFile: (P, ue) => e.readFile(P, ue), directoryExists: e.directoryExists && I, getDirectories: k, readDirectory: B, createDirectory: e.createDirectory && O, writeFile: e.writeFile && A, addOrDeleteFileOrDirectory: j, addOrDeleteFile: te, clearCache: Y, realpath: e.realpath && U }; function s(P) { return Hs(P, t, o); } function c(P) { return i.get(Iu(P)); } function f(P) { const ue = c(fi(P)); return ue && (ue.sortedAndCanonicalizedFiles || (ue.sortedAndCanonicalizedFiles = ue.files.map(o).sort(), ue.sortedAndCanonicalizedDirectories = ue.directories.map(o).sort()), ue); } function d(P) { return cu(Wo(P)); } function y(P, ue) { var ne; if (!e.realpath || Iu(s(e.realpath(P))) === ue) { const ge = { files: rn(e.readDirectory(P, void 0, void 0, ["*.*"]), d) || [], directories: e.getDirectories(P) || [] }; return i.set(Iu(ue), ge), ge; } if ((ne = e.directoryExists) != null && ne.call(e, P)) return i.set(ue, !1), !1; } function m(P, ue) { ue = Iu(ue); const ne = c(ue); if (ne) return ne; try { return y(P, ue); } catch { D.assert(!i.has(Iu(ue))); return; } } function b(P, ue) { return _v(P, ue, _l, Lu) >= 0; } function A(P, ue, ne) { const ge = s(P), ie = f(ge); return ie && X(ie, d(P), !0), e.writeFile(P, ue, ne); } function C(P) { const ue = s(P), ne = f(ue); return ne && b(ne.sortedAndCanonicalizedFiles, o(d(P))) || e.fileExists(P); } function I(P) { const ue = s(P); return i.has(Iu(ue)) || e.directoryExists(P); } function O(P) { const ue = s(P), ne = f(ue); if (ne) { const ge = d(P), ie = o(ge), H = ne.sortedAndCanonicalizedDirectories; fv(H, ie, Lu) && ne.directories.push(ge); } e.createDirectory(P); } function k(P) { const ue = s(P), ne = m(P, ue); return ne ? ne.directories.slice() : e.getDirectories(P); } function B(P, ue, ne, ge, ie) { const H = s(P), le = m(P, H); let pe; if (le !== void 0) return Yz(P, ue, ne, ge, r, t, ie, ye, U); return e.readDirectory(P, ue, ne, ge, ie); function ye(ee) { const $e = s(ee); if ($e === H) return le || Te(ee, $e); const Ge = m(ee, $e); return Ge !== void 0 ? Ge || Te(ee, $e) : V3; } function Te(ee, $e) { if (pe && $e === H) return pe; const Ge = { files: rn(e.readDirectory(ee, void 0, void 0, ["*.*"]), d) || nt, directories: e.getDirectories(ee) || nt }; return $e === H && (pe = Ge), Ge; } } function U(P) { return e.realpath ? e.realpath(P) : P; } function j(P, ue) { if (c(ue) !== void 0) { Y(); return; } const ge = f(ue); if (!ge) return; if (!e.directoryExists) { Y(); return; } const ie = d(P), H = { fileExists: e.fileExists(ue), directoryExists: e.directoryExists(ue) }; return H.directoryExists || b(ge.sortedAndCanonicalizedDirectories, o(ie)) ? Y() : X(ge, ie, H.fileExists), H; } function te(P, ue, ne) { if (ne === 1) return; const ge = f(ue); ge && X(ge, d(P), ne === 0); } function X(P, ue, ne) { const ge = P.sortedAndCanonicalizedFiles, ie = o(ue); if (ne) fv(ge, ie, Lu) && P.files.push(ue); else { const H = _v(ge, ie, _l, Lu); if (H >= 0) { ge.splice(H, 1); const le = P.files.findIndex((pe) => o(pe) === ie); P.files.splice(le, 1); } } } function Y() { i.clear(); } } function mX(e, t, r, i, o) { var s; const c = $b(((s = t == null ? void 0 : t.configFile) == null ? void 0 : s.extendedSourceFiles) || nt, o); r.forEach((f, d) => { c.has(d) || (f.projects.delete(e), f.close()); }), c.forEach((f, d) => { const y = r.get(d); y ? y.projects.add(e) : r.set(d, { projects: /* @__PURE__ */ new Set([e]), watcher: i(f, d), close: () => { const m = r.get(d); !m || m.projects.size !== 0 || (m.watcher.close(), r.delete(d)); } }); }); } function Che(e, t) { t.forEach((r) => { r.projects.delete(e) && r.close(); }); } function hX(e, t, r) { e.delete(t) && e.forEach(({ extendedResult: i }, o) => { var s; (s = i.extendedSourceFiles) != null && s.some((c) => r(c) === t) && hX(e, o, r); }); } function L3e(e, t, r) { const i = new Map(e); KA(t, i, { createNewValue: r, onDeleteValue: Pm }); } function Lhe(e, t, r) { const i = e.getMissingFilePaths(), o = $b(i, _l, Zb); KA(t, o, { createNewValue: r, onDeleteValue: Pm }); } function U5(e, t, r) { KA(e, t, { createNewValue: i, onDeleteValue: Hm, onExistingValue: o }); function i(s, c) { return { watcher: r(s, c), flags: c }; } function o(s, c, f) { s.flags !== c && (s.watcher.close(), e.set(f, i(f, c))); } } function V5({ watchedDirPath: e, fileOrDirectory: t, fileOrDirectoryPath: r, configFileName: i, options: o, program: s, extraFileExtensions: c, currentDirectory: f, useCaseSensitiveFileNames: d, writeLog: y, toPath: m }) { const b = XX(r); if (!b) return y(`Project: ${i} Detected ignored path: ${t}`), !0; if (r = b, r === e) return !1; if (dA(r) && !bde(t, o, c)) return y(`Project: ${i} Detected file add/remove of non supported extension: ${t}`), !0; if (ope(t, o.configFile.configFileSpecs, Na(fi(i), f), d, f)) return y(`Project: ${i} Detected excluded file: ${t}`), !0; if (!s || Ws(o) || o.outDir) return !1; if (sd(r)) { if (o.declarationDir) return !1; } else if (!vc(r, uk)) return !1; const A = Od(r), C = Ga(s) ? void 0 : I3e(s) ? s.getProgramOrUndefined() : s, I = !C && !Ga(s) ? s : void 0; if (O(A + ".ts") || O(A + ".tsx")) return y(`Project: ${i} Detected output file: ${t}`), !0; return !1; function O(k) { return C ? !!C.getSourceFileByPath(k) : I ? I.getState().fileInfos.has(k) : !!un(s, (B) => m(B) === k); } } function I3e(e) { return !!e.getState; } function Ihe(e, t) { return e ? e.isEmittedFile(t) : !1; } function khe(e, t, r, i) { Xse(t === 2 ? r : io); const o = { watchFile: (O, k, B, U) => e.watchFile(O, k, B, U), watchDirectory: (O, k, B, U) => e.watchDirectory(O, k, (B & 1) !== 0, U) }, s = t !== 0 ? { watchFile: C("watchFile"), watchDirectory: C("watchDirectory") } : void 0, c = t === 2 ? { watchFile: b, watchDirectory: A } : s || o, f = t === 2 ? m : w8; return { watchFile: d("watchFile"), watchDirectory: d("watchDirectory") }; function d(O) { return (k, B, U, j, te, X) => { var Y; return X7(k, O === "watchFile" ? j == null ? void 0 : j.excludeFiles : j == null ? void 0 : j.excludeDirectories, y(), ((Y = e.getCurrentDirectory) == null ? void 0 : Y.call(e)) || "") ? f(k, U, j, te, X) : c[O].call(void 0, k, B, U, j, te, X); }; } function y() { return typeof e.useCaseSensitiveFileNames == "boolean" ? e.useCaseSensitiveFileNames : e.useCaseSensitiveFileNames(); } function m(O, k, B, U, j) { return r(`ExcludeWatcher:: Added:: ${I(O, k, B, U, j, i)}`), { close: () => r(`ExcludeWatcher:: Close:: ${I(O, k, B, U, j, i)}`) }; } function b(O, k, B, U, j, te) { r(`FileWatcher:: Added:: ${I(O, B, U, j, te, i)}`); const X = s.watchFile(O, k, B, U, j, te); return { close: () => { r(`FileWatcher:: Close:: ${I(O, B, U, j, te, i)}`), X.close(); } }; } function A(O, k, B, U, j, te) { const X = `DirectoryWatcher:: Added:: ${I(O, B, U, j, te, i)}`; r(X); const Y = nl(), P = s.watchDirectory(O, k, B, U, j, te), ue = nl() - Y; return r(`Elapsed:: ${ue}ms ${X}`), { close: () => { const ne = `DirectoryWatcher:: Close:: ${I(O, B, U, j, te, i)}`; r(ne); const ge = nl(); P.close(); const ie = nl() - ge; r(`Elapsed:: ${ie}ms ${ne}`); } }; } function C(O) { return (k, B, U, j, te, X) => o[O].call(void 0, k, (...Y) => { const P = `${O === "watchFile" ? "FileWatcher" : "DirectoryWatcher"}:: Triggered with ${Y[0]} ${Y[1] !== void 0 ? Y[1] : ""}:: ${I(k, U, j, te, X, i)}`; r(P); const ue = nl(); B.call(void 0, ...Y); const ne = nl() - ue; r(`Elapsed:: ${ne}ms ${P}`); }, U, j, te, X); } function I(O, k, B, U, j, te) { return `WatchInfo: ${O} ${k} ${JSON.stringify(B)} ${te ? te(U, j) : j === void 0 ? U : `${U} ${j}`}`; } } function E8(e) { const t = e == null ? void 0 : e.fallbackPolling; return { watchFile: t !== void 0 ? t : 1 }; } function Hm(e) { e.watcher.close(); } var gX, yX, k3e = L({ "src/compiler/watchUtilities.ts"() { Ra(), Ra(), gX = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Partial = 1] = "Partial", e[e.Full = 2] = "Full", e))(gX || {}), yX = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.TriggerOnly = 1] = "TriggerOnly", e[e.Verbose = 2] = "Verbose", e))(yX || {}); } }); function whe(e, t, r = "tsconfig.json") { return $h(e, (i) => { const o = Oi(i, r); return t(o) ? o : void 0; }); } function j5(e, t) { const r = fi(t), i = xm(e) ? e : Oi(r, e); return Wo(i); } function Dhe(e, t, r) { let i; return Ye(e, (s) => { const c = bR(s, t); if (c.pop(), !i) { i = c; return; } const f = Math.min(i.length, c.length); for (let d = 0; d < f; d++) if (r(i[d]) !== r(c[d])) { if (d === 0) return !0; i.length = d; break; } c.length < i.length && (i.length = c.length); }) ? "" : i ? a1(i) : t; } function Rhe(e, t) { return EX(e, t); } function vX(e, t, r) { return (i, o, s) => { let c; try { rl("beforeIORead"), c = e(i, t().charset), rl("afterIORead"), Vf("I/O Read", "beforeIORead", "afterIORead"); } catch (f) { s && s(f.message), c = ""; } return c !== void 0 ? BO(i, c, o, r) : void 0; }; } function bX(e, t, r) { return (i, o, s, c) => { try { rl("beforeIOWrite"), Ez(i, o, s, e, t, r), rl("afterIOWrite"), Vf("I/O Write", "beforeIOWrite", "afterIOWrite"); } catch (f) { c && c(f.message); } }; } function EX(e, t, r = zc) { const i = /* @__PURE__ */ new Map(), o = $c(r.useCaseSensitiveFileNames); function s(m) { return i.has(m) ? !0 : (y.directoryExists || r.directoryExists)(m) ? (i.set(m, !0), !0) : !1; } function c() { return fi(Wo(r.getExecutingFilePath())); } const f = z0(e), d = r.realpath && ((m) => r.realpath(m)), y = { getSourceFile: vX((m) => y.readFile(m), () => e, t), getDefaultLibLocation: c, getDefaultLibFileName: (m) => Oi(c(), oM(m)), writeFile: bX((m, b, A) => r.writeFile(m, b, A), (m) => (y.createDirectory || r.createDirectory)(m), (m) => s(m)), getCurrentDirectory: hd(() => r.getCurrentDirectory()), useCaseSensitiveFileNames: () => r.useCaseSensitiveFileNames, getCanonicalFileName: o, getNewLine: () => f, fileExists: (m) => r.fileExists(m), readFile: (m) => r.readFile(m), trace: (m) => r.write(m + f), directoryExists: (m) => r.directoryExists(m), getEnvironmentVariable: (m) => r.getEnvironmentVariable ? r.getEnvironmentVariable(m) : "", getDirectories: (m) => r.getDirectories(m), realpath: d, readDirectory: (m, b, A, C, I) => r.readDirectory(m, b, A, C, I), createDirectory: (m) => r.createDirectory(m), createHash: Fo(r, r.createHash) }; return y; } function T8(e, t, r) { const i = e.readFile, o = e.fileExists, s = e.directoryExists, c = e.createDirectory, f = e.writeFile, d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), A = (O) => { const k = t(O), B = d.get(k); return B !== void 0 ? B !== !1 ? B : void 0 : C(k, O); }, C = (O, k) => { const B = i.call(e, k); return d.set(O, B !== void 0 ? B : !1), B; }; e.readFile = (O) => { const k = t(O), B = d.get(k); return B !== void 0 ? B !== !1 ? B : void 0 : !oc(O, ".json") && !hhe(O) ? i.call(e, O) : C(k, O); }; const I = r ? (O, k, B, U) => { const j = t(O), te = typeof k == "object" ? k.impliedNodeFormat : void 0, X = b.get(te), Y = X == null ? void 0 : X.get(j); if (Y) return Y; const P = r(O, k, B, U); return P && (sd(O) || oc(O, ".json")) && b.set(te, (X || /* @__PURE__ */ new Map()).set(j, P)), P; } : void 0; return e.fileExists = (O) => { const k = t(O), B = y.get(k); if (B !== void 0) return B; const U = o.call(e, O); return y.set(k, !!U), U; }, f && (e.writeFile = (O, k, ...B) => { const U = t(O); y.delete(U); const j = d.get(U); j !== void 0 && j !== k ? (d.delete(U), b.forEach((te) => te.delete(U))) : I && b.forEach((te) => { const X = te.get(U); X && X.text !== k && te.delete(U); }), f.call(e, O, k, ...B); }), s && (e.directoryExists = (O) => { const k = t(O), B = m.get(k); if (B !== void 0) return B; const U = s.call(e, O); return m.set(k, !!U), U; }, c && (e.createDirectory = (O) => { const k = t(O); m.delete(k), c.call(e, O); })), { originalReadFile: i, originalFileExists: o, originalDirectoryExists: s, originalCreateDirectory: c, originalWriteFile: f, getSourceFileWithCache: I, readFileWithCache: A }; } function w3e(e, t, r) { let i; return i = yi(i, e.getConfigFileParsingDiagnostics()), i = yi(i, e.getOptionsDiagnostics(r)), i = yi(i, e.getSyntacticDiagnostics(t, r)), i = yi(i, e.getGlobalDiagnostics(r)), i = yi(i, e.getSemanticDiagnostics(t, r)), G_(e.getCompilerOptions()) && (i = yi(i, e.getDeclarationDiagnostics(t, r))), _A(i || nt); } function D3e(e, t) { let r = ""; for (const i of e) r += TX(i, t); return r; } function TX(e, t) { const r = `${FP(e)} TS${e.code}: ${Gv(e.messageText, t.getNewLine())}${t.getNewLine()}`; if (e.file) { const { line: i, character: o } = il(e.file, e.start), s = e.file.fileName; return `${nI(s, t.getCurrentDirectory(), (f) => t.getCanonicalFileName(f))}(${i + 1},${o + 1}): ` + r; } return r; } function Nhe(e) { switch (e) { case 1: return "\x1B[91m"; case 0: return "\x1B[93m"; case 2: return D.fail("Should never get an Info diagnostic on the command line."); case 3: return "\x1B[94m"; } } function V1(e, t) { return t + e + OX; } function Ohe(e, t, r, i, o, s) { const { line: c, character: f } = il(e, t), { line: d, character: y } = il(e, t + r), m = il(e, e.text.length).line, b = d - c >= 4; let A = (d + 1 + "").length; b && (A = Math.max(PX.length, A)); let C = ""; for (let I = c; I <= d; I++) { C += s.getNewLine(), b && c + 1 < I && I < d - 1 && (C += i + V1(NS(PX, A), Y5) + $5 + s.getNewLine(), I = d - 1); const O = AR(e, I, 0), k = I < m ? AR(e, I + 1, 0) : e.text.length; let B = e.text.slice(O, k); if (B = aR(B), B = B.replace(/\t/g, " "), C += i + V1(NS(I + 1 + "", A), Y5) + $5, C += B + s.getNewLine(), C += i + V1(NS("", A), Y5) + $5, C += o, I === c) { const U = I === d ? y : void 0; C += B.slice(0, f).replace(/\S/g, " "), C += B.slice(f, U).replace(/./g, "~"); } else I === d ? C += B.slice(0, y).replace(/./g, "~") : C += B.replace(/./g, "~"); C += OX; } return C; } function SX(e, t, r, i = V1) { const { line: o, character: s } = il(e, t), c = r ? nI(e.fileName, r.getCurrentDirectory(), (d) => r.getCanonicalFileName(d)) : e.fileName; let f = ""; return f += i(c, "\x1B[96m"), f += ":", f += i(`${o + 1}`, "\x1B[93m"), f += ":", f += i(`${s + 1}`, "\x1B[93m"), f; } function Phe(e, t) { let r = ""; for (const i of e) { if (i.file) { const { file: o, start: s } = i; r += SX(o, s, t), r += " - "; } if (r += V1(FP(i), Nhe(i.category)), r += V1(` TS${i.code}: `, "\x1B[90m"), r += Gv(i.messageText, t.getNewLine()), i.file && (r += t.getNewLine(), r += Ohe(i.file, i.start, i.length, "", Nhe(i.category), t)), i.relatedInformation) { r += t.getNewLine(); for (const { file: o, start: s, length: c, messageText: f } of i.relatedInformation) o && (r += t.getNewLine(), r += Bhe + SX(o, s, t), r += Ohe(o, s, c, MX, "\x1B[96m", t)), r += t.getNewLine(), r += MX + Gv(f, t.getNewLine()); } r += t.getNewLine(); } return r; } function Gv(e, t, r = 0) { if (Va(e)) return e; if (e === void 0) return ""; let i = ""; if (r) { i += t; for (let o = 0; o < r; o++) i += " "; } if (i += e.messageText, r++, e.next) for (const o of e.next) i += Gv(o, t, r); return i; } function S8(e, t) { return (Va(e) ? t : e.resolutionMode) || t; } function xX(e, t) { if (e.impliedNodeFormat !== void 0) return hp(e, X5(e, t)); } function AX(e) { var t; return Kc(e) ? e.isTypeOnly : !!((t = e.importClause) != null && t.isTypeOnly); } function hp(e, t) { var r, i; if (e.impliedNodeFormat === void 0) return; if ((Gc(t.parent) || Kc(t.parent)) && AX(t.parent)) { const c = Px(t.parent.assertClause); if (c) return c; } if (t.parent.parent && dg(t.parent.parent)) { const s = Px((r = t.parent.parent.assertions) == null ? void 0 : r.assertClause); if (s) return s; } if (e.impliedNodeFormat !== 99) return tf(Cv(t.parent)) ? 99 : 1; const o = (i = Cv(t.parent)) == null ? void 0 : i.parent; return o && tu(o) ? 1 : 99; } function Px(e, t) { if (!e) return; if (Ne(e.elements) !== 1) { t == null || t(e, _.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require); return; } const r = e.elements[0]; if (Ts(r.name)) { if (r.name.text !== "resolution-mode") { t == null || t(r.name, _.resolution_mode_is_the_only_valid_key_for_type_import_assertions); return; } if (Ts(r.value)) { if (r.value.text !== "import" && r.value.text !== "require") { t == null || t(r.value, _.resolution_mode_should_be_either_require_or_import); return; } return r.value.text === "import" ? 99 : 1; } } } function CX(e) { return e.text; } function LX(e, t, r, i, o) { return { nameAndMode: $k, resolve: (s, c) => Mk(s, e, r, i, o, t, c) }; } function H5(e) { return Va(e) ? e : I_(e.fileName); } function W5(e, t, r, i, o) { return { nameAndMode: C8, resolve: (s, c) => lK(s, e, r, i, t, o, c) }; } function x8(e, t, r, i, o, s, c, f) { if (e.length === 0) return nt; const d = [], y = /* @__PURE__ */ new Map(), m = f(t, r, i, s, c); for (const b of e) { const A = m.nameAndMode.getName(b), C = m.nameAndMode.getMode(b, o), I = Pk(A, C); let O = y.get(I); O || y.set(I, O = m.resolve(A, C)), d.push(O); } return d; } function Mhe(e, t) { return A8(void 0, e, (r, i) => r && t(r, i)); } function A8(e, t, r, i) { let o; return s(e, t, void 0); function s(c, f, d) { if (i) { const y = i(c, d); if (y) return y; } return Ye(f, (y, m) => { if (y && (o != null && o.has(y.sourceFile.path))) return; const b = r(y, d, m); return b || !y ? b : ((o || (o = /* @__PURE__ */ new Set())).add(y.sourceFile.path), s(y.commandLine.projectReferences, y.references, y)); }); } } function Z0(e) { switch (e == null ? void 0 : e.kind) { case 3: case 4: case 5: case 7: return !0; default: return !1; } } function DC(e) { return e.pos !== void 0; } function Xk(e, t) { var r, i, o, s, c, f; const d = D.checkDefined(e(t.file)), { kind: y, index: m } = t; let b, A, C, I; switch (y) { case 3: const O = X5(d, m); if (C = (o = (i = (r = d.resolvedModules) == null ? void 0 : r.get(O.text, xX(d, m))) == null ? void 0 : i.resolvedModule) == null ? void 0 : o.packageId, O.pos === -1) return { file: d, packageId: C, text: O.text }; b = zo(d.text, O.pos), A = O.end; break; case 4: ({ pos: b, end: A } = d.referencedFiles[m]); break; case 5: ({ pos: b, end: A, resolutionMode: I } = d.typeReferenceDirectives[m]), C = (f = (c = (s = d.resolvedTypeReferenceDirectiveNames) == null ? void 0 : s.get(I_(d.typeReferenceDirectives[m].fileName), I || d.impliedNodeFormat)) == null ? void 0 : c.resolvedTypeReferenceDirective) == null ? void 0 : f.packageId; break; case 7: ({ pos: b, end: A } = d.libReferenceDirectives[m]); break; default: return D.assertNever(y); } return { file: d, pos: b, end: A, packageId: C }; } function IX(e, t, r, i, o, s, c, f, d) { if (!e || c != null && c() || !Bp(e.getRootFileNames(), t)) return !1; let y; if (!Bp(e.getProjectReferences(), d, C) || e.getSourceFiles().some(b) || e.getMissingFilePaths().some(o)) return !1; const m = e.getCompilerOptions(); if (!Mz(m, r)) return !1; if (m.configFile && r.configFile) return m.configFile.text === r.configFile.text; return !0; function b(O) { return !A(O) || s(O.path); } function A(O) { return O.version === i(O.resolvedPath, O.fileName); } function C(O, k, B) { return bW(O, k) && I(e.getResolvedProjectReferences()[B], O); } function I(O, k) { if (O) { if (Ii(y, O)) return !0; const U = Yk(k), j = f(U); return !j || O.commandLine.options.configFile !== j.options.configFile || !Bp(O.commandLine.fileNames, j.fileNames) ? !1 : ((y || (y = [])).push(O), !Ye(O.references, (te, X) => !I(te, O.commandLine.projectReferences[X]))); } const B = Yk(k); return !f(B); } } function OT(e) { return e.options.configFile ? [...e.options.configFile.parseDiagnostics, ...e.errors] : e.errors; } function z5(e, t, r, i) { const o = kX(e, t, r, i); return typeof o == "object" ? o.impliedNodeFormat : o; } function kX(e, t, r, i) { switch (gl(i)) { case 3: case 99: return vc(e, [".d.mts", ".mts", ".mjs"]) ? 99 : vc(e, [".d.cts", ".cts", ".cjs"]) ? 1 : vc(e, [".d.ts", ".ts", ".tsx", ".js", ".jsx"]) ? o() : void 0; default: return; } function o() { const s = u5(t, r, i), c = []; s.failedLookupLocations = c, s.affectingLocations = c; const f = d5(e, s); return { impliedNodeFormat: (f == null ? void 0 : f.contents.packageJsonContent.type) === "module" ? 99 : 1, packageJsonLocations: c, packageJsonScope: f }; } } function R3e(e, t) { return e ? TA(e.getCompilerOptions(), t, Q7) : !1; } function N3e(e, t, r, i, o, s) { return { rootNames: e, options: t, host: r, oldProgram: i, configFileParsingDiagnostics: o, typeScriptVersion: s }; } function q5(e, t, r, i, o) { var s, c, f, d, y, m, b, A, C, I, O, k, B, U, j, te; const X = Ga(e) ? N3e(e, t, r, i, o) : e, { rootNames: Y, options: P, configFileParsingDiagnostics: ue, projectReferences: ne, typeScriptVersion: ge } = X; let { oldProgram: ie } = X; const H = hd(() => y_("ignoreDeprecations", _.Invalid_value_for_ignoreDeprecations)); let le, pe, ye, Te, ee, $e, Ge; const Fe = /* @__PURE__ */ new Map(); let We = o_(); const Re = {}, Pe = {}; let Ke = kT(), He, Me, ot; const At = typeof P.maxNodeModuleJsDepth == "number" ? P.maxNodeModuleJsDepth : 0; let bt = 0; const Vt = /* @__PURE__ */ new Map(), et = /* @__PURE__ */ new Map(); (s = hi) == null || s.push(hi.Phase.Program, "createProgram", { configFilePath: P.configFilePath, rootDir: P.rootDir }, !0), rl("beforeProgram"); const it = X.host || Rhe(P), nn = K5(it); let Xt = P.noLib; const On = hd(() => it.getDefaultLibFileName(P)), Hn = it.getDefaultLibLocation ? it.getDefaultLibLocation() : fi(On()), In = HA(), Yt = it.getCurrentDirectory(), fr = tk(P), xi = zN(P, fr), Ji = /* @__PURE__ */ new Map(); let Ki, Rr, xt; const gn = it.hasInvalidatedResolutions || Qb; it.resolveModuleNameLiterals ? (xt = it.resolveModuleNameLiterals.bind(it), Rr = (c = it.getModuleResolutionCache) == null ? void 0 : c.call(it)) : it.resolveModuleNames ? (xt = (Ce, Be, Lt, Ot, pn, vn) => it.resolveModuleNames(Ce.map(CX), Be, vn == null ? void 0 : vn.map(CX), Lt, Ot, pn).map((Tn) => Tn ? Tn.extension !== void 0 ? { resolvedModule: Tn } : { resolvedModule: { ...Tn, extension: YN(Tn.resolvedFileName) } } : FX), Rr = (f = it.getModuleResolutionCache) == null ? void 0 : f.call(it)) : (Rr = s5(Yt, ae, P), xt = (Ce, Be, Lt, Ot, pn) => x8(Ce, Be, Lt, Ot, pn, it, Rr, LX)); let Ht; if (it.resolveTypeReferenceDirectiveReferences) Ht = it.resolveTypeReferenceDirectiveReferences.bind(it); else if (it.resolveTypeReferenceDirectives) Ht = (Ce, Be, Lt, Ot, pn) => it.resolveTypeReferenceDirectives(Ce.map(H5), Be, Lt, Ot, pn == null ? void 0 : pn.impliedNodeFormat).map((vn) => ({ resolvedTypeReferenceDirective: vn })); else { const Ce = l5(Yt, ae, void 0, Rr == null ? void 0 : Rr.getPackageJsonInfoCache()); Ht = (Be, Lt, Ot, pn, vn) => x8(Be, Lt, Ot, pn, vn, it, Ce, W5); } const ln = /* @__PURE__ */ new Map(); let rr = /* @__PURE__ */ new Map(), lr = o_(), Di = !1; const _i = /* @__PURE__ */ new Map(); let Rn; const en = it.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0; let Pn, xr, Ur, Ie; const gt = !!((d = it.useSourceOfProjectReferenceRedirect) != null && d.call(it)) && !P.disableSourceOfProjectReferenceRedirect, { onProgramCreateComplete: Nt, fileExists: xe, directoryExists: _t } = O3e({ compilerHost: it, getSymlinkCache: Ca, useSourceOfProjectReferenceRedirect: gt, toPath: pt, getResolvedProjectReferences: dt, getSourceOfProjectReferenceRedirect: ul, forEachResolvedProjectReference: ls }), _e = it.readFile.bind(it); (y = hi) == null || y.push(hi.Phase.Program, "shouldProgramCreateNewSourceFiles", { hasOldProgram: !!ie }); const re = R3e(ie, P); (m = hi) == null || m.pop(); let me; if ((b = hi) == null || b.push(hi.Phase.Program, "tryReuseStructureFromOldProgram", {}), me = we(), (A = hi) == null || A.pop(), me !== 2) { if (le = [], pe = [], ne && (Pn || (Pn = ne.map(Pt)), Y.length && (Pn == null || Pn.forEach((Ce, Be) => { if (!Ce) return; const Lt = Ws(Ce.commandLine.options); if (gt) { if (Lt || Zc(Ce.commandLine.options) === 0) for (const Ot of Ce.commandLine.fileNames) _n(Ot, { kind: 1, index: Be }); } else if (Lt) _n(x1(Lt, ".d.ts"), { kind: 2, index: Be }); else if (Zc(Ce.commandLine.options) === 0) { const Ot = hd(() => Kk(Ce.commandLine, !it.useCaseSensitiveFileNames())); for (const pn of Ce.commandLine.fileNames) !sd(pn) && !oc(pn, ".json") && _n(Jk(pn, Ce.commandLine, !it.useCaseSensitiveFileNames(), Ot), { kind: 2, index: Be }); } }))), (C = hi) == null || C.push(hi.Phase.Program, "processRootFiles", { count: Y.length }), Ye(Y, (Ce, Be) => Gl(Ce, !1, !1, { kind: 0, index: Be })), (I = hi) == null || I.pop(), Me ?? (Me = Y.length ? o5(P, it) : nt), ot = kT(), Me.length) { (O = hi) == null || O.push(hi.Phase.Program, "processTypeReferences", { count: Me.length }); const Ce = P.configFilePath ? fi(P.configFilePath) : it.getCurrentDirectory(), Be = Oi(Ce, Q5), Lt = Oe(Me, Be); for (let Ot = 0; Ot < Me.length; Ot++) ot.set(Me[Ot], void 0, Lt[Ot]), Dt(Me[Ot], void 0, Lt[Ot], { kind: 8, typeReference: Me[Ot], packageId: (B = (k = Lt[Ot]) == null ? void 0 : k.resolvedTypeReferenceDirective) == null ? void 0 : B.packageId }); (U = hi) == null || U.pop(); } if (Y.length && !Xt) { const Ce = On(); !P.lib && Ce ? Gl(Ce, !0, !1, { kind: 6 }) : Ye(P.lib, (Be, Lt) => { Gl(zi(Be), !0, !1, { kind: 6, index: Lt }); }); } Rn = ko(KD(_i.entries(), ([Ce, Be]) => Be === void 0 ? Ce : void 0)), ye = ry(le, br).concat(pe), le = void 0, pe = void 0; } if (D.assert(!!Rn), ie && it.onReleaseOldSourceFile) { const Ce = ie.getSourceFiles(); for (const Be of Ce) { const Lt = sa(Be.resolvedPath); (re || !Lt || Lt.impliedNodeFormat !== Be.impliedNodeFormat || Be.resolvedPath === Be.path && Lt.resolvedPath !== Be.path) && it.onReleaseOldSourceFile(Be, ie.getCompilerOptions(), !!sa(Be.path)); } it.getParsedCommandLine || ie.forEachResolvedProjectReference((Be) => { Ul(Be.sourceFile.path) || it.onReleaseOldSourceFile(Be.sourceFile, ie.getCompilerOptions(), !1); }); } ie && it.onReleaseParsedCommandLine && A8(ie.getProjectReferences(), ie.getResolvedProjectReferences(), (Ce, Be, Lt) => { const Ot = (Be == null ? void 0 : Be.commandLine.projectReferences[Lt]) || ie.getProjectReferences()[Lt], pn = Yk(Ot); xr != null && xr.has(pt(pn)) || it.onReleaseParsedCommandLine(pn, Ce, ie.getCompilerOptions()); }), ie = void 0; const V = { getRootFileNames: () => Y, getSourceFile: no, getSourceFileByPath: sa, getSourceFiles: () => ye, getMissingFilePaths: () => Rn, getModuleResolutionCache: () => Rr, getFilesByNameMap: () => _i, getCompilerOptions: () => P, getSyntacticDiagnostics: qr, getOptionsDiagnostics: pl, getGlobalDiagnostics: qs, getSemanticDiagnostics: is, getCachedSemanticDiagnostics: ui, getSuggestionDiagnostics: Jo, getDeclarationDiagnostics: da, getBindAndCheckDiagnostics: la, getProgramDiagnostics: wn, getTypeChecker: Si, getClassifiableNames: rt, getCommonSourceDirectory: Wt, emit: Bi, getCurrentDirectory: () => Yt, getNodeCount: () => Si().getNodeCount(), getIdentifierCount: () => Si().getIdentifierCount(), getSymbolCount: () => Si().getSymbolCount(), getTypeCount: () => Si().getTypeCount(), getInstantiationCount: () => Si().getInstantiationCount(), getRelationCacheSizes: () => Si().getRelationCacheSizes(), getFileProcessingDiagnostics: () => He, getResolvedTypeReferenceDirectives: () => Ke, getAutomaticTypeDirectiveNames: () => Me, getAutomaticTypeDirectiveResolutions: () => ot, isSourceFileFromExternalLibrary: ii, isSourceFileDefaultLibrary: Ti, getSourceFileFromReference: Q, getLibFileFromReference: jt, sourceFileToPackageName: rr, redirectTargetsMap: lr, usesUriStyleNodeCoreModules: Di, isEmittedFile: Yn, getConfigFileParsingDiagnostics: Zt, getProjectReferences: dn, getResolvedProjectReferences: dt, getProjectReferenceRedirect: cl, getResolvedProjectReferenceToRedirect: vs, getResolvedProjectReferenceByPath: Ul, forEachResolvedProjectReference: ls, isSourceOfProjectReferenceRedirect: Vd, emitBuildInfo: ht, fileExists: xe, readFile: _e, directoryExists: _t, getSymlinkCache: Ca, realpath: (j = it.realpath) == null ? void 0 : j.bind(it), useCaseSensitiveFileNames: () => it.useCaseSensitiveFileNames(), getCanonicalFileName: ae, getFileIncludeReasons: () => We, structureIsReused: me, writeFile: Rt }; return Nt(), He == null || He.forEach((Ce) => { switch (Ce.kind) { case 1: return In.add(Ua(Ce.file && sa(Ce.file), Ce.fileProcessingReason, Ce.diagnostic, Ce.args || nt)); case 0: const { file: Be, pos: Lt, end: Ot } = Xk(sa, Ce.reason); return In.add(Lc(Be, D.checkDefined(Lt), D.checkDefined(Ot) - Lt, Ce.diagnostic, ...Ce.args || nt)); case 2: return Ce.diagnostics.forEach((pn) => In.add(pn)); default: D.assertNever(Ce); } }), sn(), rl("afterProgram"), Vf("Program", "beforeProgram", "afterProgram"), (te = hi) == null || te.pop(), V; function je(Ce) { var Be; (Be = Ce.resolutionDiagnostics) != null && Be.length && (He ?? (He = [])).push({ kind: 2, diagnostics: Ce.resolutionDiagnostics }); } function Qe(Ce, Be, Lt, Ot) { if (it.resolveModuleNameLiterals || !it.resolveModuleNames) return je(Lt); if (!Rr || Oc(Be)) return; const pn = Na(Ce.originalFileName, Yt), vn = fi(pn), Tn = on(Ce), Wn = Rr.getFromNonRelativeNameCache(Be, Ot, vn, Tn); Wn && je(Wn); } function Je(Ce, Be, Lt) { var Ot, pn; if (!Ce.length) return nt; const vn = Na(Be.originalFileName, Yt), Tn = on(Be); (Ot = hi) == null || Ot.push(hi.Phase.Program, "resolveModuleNamesWorker", { containingFileName: vn }), rl("beforeResolveModule"); const Wn = xt(Ce, vn, Tn, P, Be, Lt); return rl("afterResolveModule"), Vf("ResolveModule", "beforeResolveModule", "afterResolveModule"), (pn = hi) == null || pn.pop(), Wn; } function Ut(Ce, Be, Lt) { var Ot, pn; if (!Ce.length) return []; const vn = Va(Be) ? void 0 : Be, Tn = Va(Be) ? Be : Na(Be.originalFileName, Yt), Wn = vn && on(vn); (Ot = hi) == null || Ot.push(hi.Phase.Program, "resolveTypeReferenceDirectiveNamesWorker", { containingFileName: Tn }), rl("beforeResolveTypeReference"); const Hr = Ht(Ce, Tn, Wn, P, vn, Lt); return rl("afterResolveTypeReference"), Vf("ResolveTypeReference", "beforeResolveTypeReference", "afterResolveTypeReference"), (pn = hi) == null || pn.pop(), Hr; } function on(Ce) { const Be = vs(Ce.originalFileName); if (Be || !sd(Ce.originalFileName)) return Be; const Lt = Sn(Ce.path); if (Lt) return Lt; if (!it.realpath || !P.preserveSymlinks || !lu(Ce.originalFileName, Ty)) return; const Ot = pt(it.realpath(Ce.originalFileName)); return Ot === Ce.path ? void 0 : Sn(Ot); } function Sn(Ce) { const Be = ul(Ce); if (Va(Be)) return vs(Be); if (Be) return ls((Lt) => { const Ot = Ws(Lt.commandLine.options); if (Ot) return pt(Ot) === Ce ? Lt : void 0; }); } function br(Ce, Be) { return js(ce(Ce), ce(Be)); } function ce(Ce) { if (hv(Hn, Ce.fileName, !1)) { const Be = cu(Ce.fileName); if (Be === "lib.d.ts" || Be === "lib.es6.d.ts") return 0; const Lt = lA($L(Be, "lib."), ".d.ts"), Ot = XO.indexOf(Lt); if (Ot !== -1) return Ot + 1; } return XO.length + 2; } function pt(Ce) { return Hs(Ce, Yt, ae); } function Wt() { if (ee === void 0) { const Ce = yn(ye, (Be) => tx(Be, V)); ee = y8(P, () => _a(Ce, (Be) => Be.isDeclarationFile ? void 0 : Be.fileName), Yt, ae, (Be) => Mt(Ce, Be)); } return ee; } function rt() { var Ce; if (!Ge) { Si(), Ge = /* @__PURE__ */ new Set(); for (const Be of ye) (Ce = Be.classifiableNames) == null || Ce.forEach((Lt) => Ge.add(Lt)); } return Ge; } function K(Ce, Be) { var Lt; if (me === 0 && !Be.ambientModuleNames.length) return Je(Ce, Be, void 0); const Ot = ie && ie.getSourceFile(Be.fileName); if (Ot !== Be && Be.resolvedModules) { const fn = []; for (const ur of Ce) { const Ta = Be.resolvedModules.get(ur.text, hp(Be, ur)); fn.push(Ta); } return fn; } let pn, vn, Tn; const Wn = FX; for (let fn = 0; fn < Ce.length; fn++) { const ur = Ce[fn]; if (Be === Ot && !gn(Ot.path)) { const Ks = hp(Be, ur), ic = (Lt = Ot.resolvedModules) == null ? void 0 : Lt.get(ur.text, Ks); if (ic != null && ic.resolvedModule) { Bv(P, it) && pa(it, ic.resolvedModule.packageId ? _.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : _.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2, ur.text, Na(Be.originalFileName, Yt), ic.resolvedModule.resolvedFileName, ic.resolvedModule.packageId && tT(ic.resolvedModule.packageId)), (vn ?? (vn = new Array(Ce.length)))[fn] = ic, (Tn ?? (Tn = [])).push(ur); continue; } } let Ta = !1; Ii(Be.ambientModuleNames, ur.text) ? (Ta = !0, Bv(P, it) && pa(it, _.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1, ur.text, Na(Be.originalFileName, Yt))) : Ta = tr(ur), Ta ? (vn || (vn = new Array(Ce.length)))[fn] = Wn : (pn ?? (pn = [])).push(ur); } const Hr = pn && pn.length ? Je(pn, Be, Tn) : nt; if (!vn) return D.assert(Hr.length === Ce.length), Hr; let Hi = 0; for (let fn = 0; fn < vn.length; fn++) vn[fn] || (vn[fn] = Hr[Hi], Hi++); return D.assert(Hi === Hr.length), vn; function tr(fn) { const ur = SA(Ot, fn.text, hp(Be, fn)), Ta = ur && ie.getSourceFile(ur.resolvedFileName); if (ur && Ta) return !1; const Ks = Fe.get(fn.text); return Ks ? (Bv(P, it) && pa(it, _.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified, fn.text, Ks), !0) : !1; } } function Oe(Ce, Be) { var Lt; if (me === 0) return Ut(Ce, Be, void 0); const Ot = Va(Be) ? void 0 : ie && ie.getSourceFile(Be.fileName); if (!Va(Be) && Ot !== Be && Be.resolvedTypeReferenceDirectiveNames) { const fn = []; for (const ur of Ce) { const Ta = Be.resolvedTypeReferenceDirectiveNames.get(H5(ur), S8(ur, Be.impliedNodeFormat)); fn.push(Ta); } return fn; } let pn, vn, Tn; const Wn = Va(Be) ? void 0 : Be, Hr = Va(Be) ? !gn(pt(Be)) : Be === Ot && !gn(Ot.path); for (let fn = 0; fn < Ce.length; fn++) { const ur = Ce[fn]; if (Hr) { const Ta = H5(ur), Ks = S8(ur, Wn == null ? void 0 : Wn.impliedNodeFormat), ic = (Lt = Va(Be) ? ie == null ? void 0 : ie.getAutomaticTypeDirectiveResolutions() : Ot == null ? void 0 : Ot.resolvedTypeReferenceDirectiveNames) == null ? void 0 : Lt.get(Ta, Ks); if (ic != null && ic.resolvedTypeReferenceDirective) { Bv(P, it) && pa(it, ic.resolvedTypeReferenceDirective.packageId ? _.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_successfully_resolved_to_2, Ta, Va(Be) ? Be : Na(Be.originalFileName, Yt), ic.resolvedTypeReferenceDirective.resolvedFileName, ic.resolvedTypeReferenceDirective.packageId && tT(ic.resolvedTypeReferenceDirective.packageId)), (vn ?? (vn = new Array(Ce.length)))[fn] = ic, (Tn ?? (Tn = [])).push(ur); continue; } } (pn ?? (pn = [])).push(ur); } if (!pn) return vn || nt; const Hi = Ut(pn, Be, Tn); if (!vn) return D.assert(Hi.length === Ce.length), Hi; let tr = 0; for (let fn = 0; fn < vn.length; fn++) vn[fn] || (vn[fn] = Hi[tr], tr++); return D.assert(tr === Hi.length), vn; } function Z() { return !A8(ie.getProjectReferences(), ie.getResolvedProjectReferences(), (Ce, Be, Lt) => { const Ot = (Be ? Be.commandLine.projectReferences : ne)[Lt], pn = Pt(Ot); return Ce ? !pn || pn.sourceFile !== Ce.sourceFile || !Bp(Ce.commandLine.fileNames, pn.commandLine.fileNames) : pn !== void 0; }, (Ce, Be) => { const Lt = Be ? Ul(Be.sourceFile.path).commandLine.projectReferences : ne; return !Bp(Ce, Lt, bW); }); } function we() { var Ce; if (!ie) return 0; const Be = ie.getCompilerOptions(); if (vW(Be, P)) return 0; const Lt = ie.getRootFileNames(); if (!Bp(Lt, Y) || !Z()) return 0; ne && (Pn = ne.map(Pt)); const Ot = [], pn = []; if (me = 2, ie.getMissingFilePaths().some((tr) => it.fileExists(tr))) return 0; const vn = ie.getSourceFiles(); let Tn; ((tr) => { tr[tr.Exists = 0] = "Exists", tr[tr.Modified = 1] = "Modified"; })(Tn || (Tn = {})); const Wn = /* @__PURE__ */ new Map(); for (const tr of vn) { const fn = as(tr.fileName, Rr, it, P); let ur = it.getSourceFileByPath ? it.getSourceFileByPath(tr.fileName, tr.resolvedPath, fn, void 0, re || fn.impliedNodeFormat !== tr.impliedNodeFormat) : it.getSourceFile(tr.fileName, fn, void 0, re || fn.impliedNodeFormat !== tr.impliedNodeFormat); if (!ur) return 0; ur.packageJsonLocations = (Ce = fn.packageJsonLocations) != null && Ce.length ? fn.packageJsonLocations : void 0, ur.packageJsonScope = fn.packageJsonScope, D.assert(!ur.redirectInfo, "Host should not return a redirect source file from `getSourceFile`"); let Ta; if (tr.redirectInfo) { if (ur !== tr.redirectInfo.unredirected) return 0; Ta = !1, ur = tr; } else if (ie.redirectTargetsMap.has(tr.path)) { if (ur !== tr) return 0; Ta = !1; } else Ta = ur !== tr; ur.path = tr.path, ur.originalFileName = tr.originalFileName, ur.resolvedPath = tr.resolvedPath, ur.fileName = tr.fileName; const Ks = ie.sourceFileToPackageName.get(tr.path); if (Ks !== void 0) { const ic = Wn.get(Ks), zm = Ta ? 1 : 0; if (ic !== void 0 && zm === 1 || ic === 1) return 0; Wn.set(Ks, zm); } Ta ? (tr.impliedNodeFormat !== ur.impliedNodeFormat ? me = 1 : Bp(tr.libReferenceDirectives, ur.libReferenceDirectives, yu) ? tr.hasNoDefaultLib !== ur.hasNoDefaultLib ? me = 1 : Bp(tr.referencedFiles, ur.referencedFiles, yu) ? (It(ur), Bp(tr.imports, ur.imports, Bu) && Bp(tr.moduleAugmentations, ur.moduleAugmentations, Bu) ? (tr.flags & 6291456) !== (ur.flags & 6291456) ? me = 1 : Bp(tr.typeReferenceDirectives, ur.typeReferenceDirectives, yu) || (me = 1) : me = 1) : me = 1 : me = 1, pn.push({ oldFile: tr, newFile: ur })) : gn(tr.path) && (me = 1, pn.push({ oldFile: tr, newFile: ur })), Ot.push(ur); } if (me !== 2) return me; const Hr = pn.map((tr) => tr.oldFile); for (const tr of vn) if (!Ii(Hr, tr)) for (const fn of tr.ambientModuleNames) Fe.set(fn, tr.fileName); for (const { oldFile: tr, newFile: fn } of pn) { const ur = Fhe(fn), Ta = K(ur, fn); EW(ur, fn, Ta, tr.resolvedModules, bce, $k) ? (me = 1, fn.resolvedModules = _K(fn, ur, Ta, $k)) : fn.resolvedModules = tr.resolvedModules; const ic = fn.typeReferenceDirectives, zm = Oe(ic, fn); EW(ic, fn, zm, tr.resolvedTypeReferenceDirectiveNames, Ece, C8) ? (me = 1, fn.resolvedTypeReferenceDirectiveNames = _K(fn, ic, zm, C8)) : fn.resolvedTypeReferenceDirectiveNames = tr.resolvedTypeReferenceDirectiveNames; } if (me !== 2) return me; if (hce(Be, P)) return 1; if (it.hasChangedAutomaticTypeDirectiveNames) { if (it.hasChangedAutomaticTypeDirectiveNames()) return 1; } else if (Me = o5(P, it), !Bp(ie.getAutomaticTypeDirectiveNames(), Me)) return 1; Rn = ie.getMissingFilePaths(), D.assert(Ot.length === ie.getSourceFiles().length); for (const tr of Ot) _i.set(tr.path, tr); return ie.getFilesByNameMap().forEach((tr, fn) => { if (!tr) { _i.set(fn, tr); return; } if (tr.path === fn) { ie.isSourceFileFromExternalLibrary(tr) && et.set(tr.path, !0); return; } _i.set(fn, _i.get(tr.path)); }), ye = Ot, We = ie.getFileIncludeReasons(), He = ie.getFileProcessingDiagnostics(), Ke = ie.getResolvedTypeReferenceDirectives(), Me = ie.getAutomaticTypeDirectiveNames(), ot = ie.getAutomaticTypeDirectiveResolutions(), rr = ie.sourceFileToPackageName, lr = ie.redirectTargetsMap, Di = ie.usesUriStyleNodeCoreModules, 2; } function q(Ce) { return { getPrependNodes: $n, getCanonicalFileName: ae, getCommonSourceDirectory: V.getCommonSourceDirectory, getCompilerOptions: V.getCompilerOptions, getCurrentDirectory: () => Yt, getSourceFile: V.getSourceFile, getSourceFileByPath: V.getSourceFileByPath, getSourceFiles: V.getSourceFiles, getLibFileFromReference: V.getLibFileFromReference, isSourceFileFromExternalLibrary: ii, getResolvedProjectReferenceToRedirect: vs, getProjectReferenceRedirect: cl, isSourceOfProjectReferenceRedirect: Vd, getSymlinkCache: Ca, writeFile: Ce || Rt, isEmitBlocked: fo, readFile: (Be) => it.readFile(Be), fileExists: (Be) => { const Lt = pt(Be); return sa(Lt) ? !0 : Ii(Rn, Lt) ? !1 : it.fileExists(Be); }, useCaseSensitiveFileNames: () => it.useCaseSensitiveFileNames(), getBuildInfo: (Be) => { var Lt; return (Lt = V.getBuildInfo) == null ? void 0 : Lt.call(V, Be); }, getSourceFileFromReference: (Be, Lt) => V.getSourceFileFromReference(Be, Lt), redirectTargetsMap: lr, getFileIncludeReasons: V.getFileIncludeReasons, createHash: Fo(it, it.createHash) }; } function Rt(Ce, Be, Lt, Ot, pn, vn) { it.writeFile(Ce, Be, Lt, Ot, pn, vn); } function ht(Ce) { var Be, Lt; D.assert(!Ws(P)), (Be = hi) == null || Be.push(hi.Phase.Emit, "emitBuildInfo", {}, !0), rl("beforeEmit"); const Ot = F5(G5, q(Ce), void 0, lX, !1, !0); return rl("afterEmit"), Vf("Emit", "beforeEmit", "afterEmit"), (Lt = hi) == null || Lt.pop(), Ot; } function dt() { return Pn; } function dn() { return ne; } function $n() { return DX(ne, (Ce, Be) => { var Lt; return (Lt = Pn[Be]) == null ? void 0 : Lt.commandLine; }, (Ce) => { const Be = pt(Ce), Lt = sa(Be); return Lt ? Lt.text : _i.has(Be) ? void 0 : it.readFile(Be); }, it); } function ii(Ce) { return !!et.get(Ce.path); } function Ti(Ce) { if (!Ce.isDeclarationFile) return !1; if (Ce.hasNoDefaultLib) return !0; if (!P.noLib) return !1; const Be = it.useCaseSensitiveFileNames() ? RS : DS; return P.lib ? kt(P.lib, (Lt) => Be(Ce.fileName, zi(Lt))) : Be(Ce.fileName, On()); } function Si() { return $e || ($e = yme(V)); } function Bi(Ce, Be, Lt, Ot, pn, vn) { var Tn, Wn; (Tn = hi) == null || Tn.push(hi.Phase.Emit, "emit", { path: Ce == null ? void 0 : Ce.path }, !0); const Hr = tl(() => vo(V, Ce, Be, Lt, Ot, pn, vn)); return (Wn = hi) == null || Wn.pop(), Hr; } function fo(Ce) { return Ji.has(pt(Ce)); } function vo(Ce, Be, Lt, Ot, pn, vn, Tn) { if (!Tn) { const Hi = wX(Ce, Be, Lt, Ot); if (Hi) return Hi; } const Wn = Si().getEmitResolver(Ws(P) ? void 0 : Be, Ot); rl("beforeEmit"); const Hr = F5(Wn, q(Lt), Be, sX(P, vn, pn), pn, !1, Tn); return rl("afterEmit"), Vf("Emit", "beforeEmit", "afterEmit"), Hr; } function no(Ce) { return sa(pt(Ce)); } function sa(Ce) { return _i.get(Ce) || void 0; } function Gi(Ce, Be, Lt) { return _A(Ce ? Be(Ce, Lt) : Mo(V.getSourceFiles(), (Ot) => (Lt && Lt.throwIfCancellationRequested(), Be(Ot, Lt)))); } function qr(Ce, Be) { return Gi(Ce, $l, Be); } function is(Ce, Be) { return Gi(Ce, Ml, Be); } function ui(Ce) { var Be; return Ce ? (Be = Re.perFile) == null ? void 0 : Be.get(Ce.path) : Re.allDiagnostics; } function la(Ce, Be) { return zl(Ce, Be); } function wn(Ce) { var Be; if (nk(Ce, P, V)) return nt; const Lt = In.getDiagnostics(Ce.fileName); return (Be = Ce.commentDirectives) != null && Be.length ? Aa(Ce, Ce.commentDirectives, Lt).diagnostics : Lt; } function da(Ce, Be) { const Lt = V.getCompilerOptions(); return !Ce || Ws(Lt) ? Ud(Ce, Be) : Gi(Ce, ks, Be); } function $l(Ce) { return Ju(Ce) ? (Ce.additionalSyntacticDiagnostics || (Ce.additionalSyntacticDiagnostics = Xc(Ce)), ha(Ce.additionalSyntacticDiagnostics, Ce.parseDiagnostics)) : Ce.parseDiagnostics; } function tl(Ce) { try { return Ce(); } catch (Be) { throw Be instanceof eI && ($e = void 0), Be; } } function Ml(Ce, Be) { return ha(J5(zl(Ce, Be), P), wn(Ce)); } function zl(Ce, Be) { return jc(Ce, Be, Re, Fl); } function Fl(Ce, Be) { return tl(() => { if (nk(Ce, P, V)) return nt; const Lt = Si(); D.assert(!!Ce.bindDiagnostics); const pn = (Ce.scriptKind === 1 || Ce.scriptKind === 2) && $N(Ce, P), vn = LM(Ce, P.checkJs), Wn = !(!!Ce.checkJsDirective && Ce.checkJsDirective.enabled === !1) && (Ce.scriptKind === 3 || Ce.scriptKind === 4 || Ce.scriptKind === 5 || vn || pn || Ce.scriptKind === 7); let Hr = Wn ? Ce.bindDiagnostics : nt, Hi = Wn ? Lt.getDiagnostics(Ce, Be) : nt; return vn && (Hr = yn(Hr, (tr) => Z5.has(tr.code)), Hi = yn(Hi, (tr) => Z5.has(tr.code))), So(Ce, Wn && !vn, Hr, Hi, pn ? Ce.jsDocDiagnostics : void 0); }); } function So(Ce, Be, ...Lt) { var Ot; const pn = nd(Lt); if (!Be || !((Ot = Ce.commentDirectives) != null && Ot.length)) return pn; const { diagnostics: vn, directives: Tn } = Aa(Ce, Ce.commentDirectives, pn); for (const Wn of Tn.getUnusedExpectations()) vn.push(BW(Ce, Wn.range, _.Unused_ts_expect_error_directive)); return vn; } function Aa(Ce, Be, Lt) { const Ot = Lce(Ce, Be); return { diagnostics: Lt.filter((vn) => Bl(vn, Ot) === -1), directives: Ot }; } function Jo(Ce, Be) { return tl(() => Si().getSuggestionDiagnostics(Ce, Be)); } function Bl(Ce, Be) { const { file: Lt, start: Ot } = Ce; if (!Lt) return -1; const pn = Qh(Lt); let vn = CR(pn, Ot).line - 1; for (; vn >= 0; ) { if (Be.markUsed(vn)) return vn; const Tn = Lt.text.slice(pn[vn], pn[vn + 1]).trim(); if (Tn !== "" && !/^(\s*)\/\/(.*)$/.test(Tn)) return -1; vn--; } return -1; } function Xc(Ce) { return tl(() => { const Be = []; return Lt(Ce, Ce), FO(Ce, Lt, Ot), Be; function Lt(Wn, Hr) { switch (Hr.kind) { case 166: case 169: case 171: if (Hr.questionToken === Wn) return Be.push(Tn(Wn, _.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")), "skip"; case 170: case 173: case 174: case 175: case 215: case 259: case 216: case 257: if (Hr.type === Wn) return Be.push(Tn(Wn, _.Type_annotations_can_only_be_used_in_TypeScript_files)), "skip"; } switch (Wn.kind) { case 270: if (Wn.isTypeOnly) return Be.push(Tn(Hr, _._0_declarations_can_only_be_used_in_TypeScript_files, "import type")), "skip"; break; case 275: if (Wn.isTypeOnly) return Be.push(Tn(Wn, _._0_declarations_can_only_be_used_in_TypeScript_files, "export type")), "skip"; break; case 273: case 278: if (Wn.isTypeOnly) return Be.push(Tn(Wn, _._0_declarations_can_only_be_used_in_TypeScript_files, Td(Wn) ? "import...type" : "export...type")), "skip"; break; case 268: return Be.push(Tn(Wn, _.import_can_only_be_used_in_TypeScript_files)), "skip"; case 274: if (Wn.isExportEquals) return Be.push(Tn(Wn, _.export_can_only_be_used_in_TypeScript_files)), "skip"; break; case 294: if (Wn.token === 117) return Be.push(Tn(Wn, _.implements_clauses_can_only_be_used_in_TypeScript_files)), "skip"; break; case 261: const tr = mo(118); return D.assertIsDefined(tr), Be.push(Tn(Wn, _._0_declarations_can_only_be_used_in_TypeScript_files, tr)), "skip"; case 264: const fn = Wn.flags & 16 ? mo(143) : mo(142); return D.assertIsDefined(fn), Be.push(Tn(Wn, _._0_declarations_can_only_be_used_in_TypeScript_files, fn)), "skip"; case 262: return Be.push(Tn(Wn, _.Type_aliases_can_only_be_used_in_TypeScript_files)), "skip"; case 263: const ur = D.checkDefined(mo(92)); return Be.push(Tn(Wn, _._0_declarations_can_only_be_used_in_TypeScript_files, ur)), "skip"; case 232: return Be.push(Tn(Wn, _.Non_null_assertions_can_only_be_used_in_TypeScript_files)), "skip"; case 231: return Be.push(Tn(Wn.type, _.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)), "skip"; case 235: return Be.push(Tn(Wn.type, _.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)), "skip"; case 213: D.fail(); } } function Ot(Wn, Hr) { if (xJ(Hr)) { const Hi = un(Hr.modifiers, Du); Hi && Be.push(Tn(Hi, _.Decorators_are_not_valid_here)); } else if (wx(Hr) && Hr.modifiers) { const Hi = $i(Hr.modifiers, Du); if (Hi >= 0) { if (Ma(Hr) && !P.experimentalDecorators) Be.push(Tn(Hr.modifiers[Hi], _.Decorators_are_not_valid_here)); else if (kc(Hr)) { const tr = $i(Hr.modifiers, v7); if (tr >= 0) { const fn = $i(Hr.modifiers, yfe); if (Hi > tr && fn >= 0 && Hi < fn) Be.push(Tn(Hr.modifiers[Hi], _.Decorators_are_not_valid_here)); else if (tr >= 0 && Hi < tr) { const ur = $i(Hr.modifiers, Du, tr); ur >= 0 && Be.push(qo(Tn(Hr.modifiers[ur], _.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), Tn(Hr.modifiers[Hi], _.Decorator_used_before_export_here))); } } } } } switch (Hr.kind) { case 260: case 228: case 171: case 173: case 174: case 175: case 215: case 259: case 216: if (Wn === Hr.typeParameters) return Be.push(vn(Wn, _.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)), "skip"; case 240: if (Wn === Hr.modifiers) return pn(Hr.modifiers, Hr.kind === 240), "skip"; break; case 169: if (Wn === Hr.modifiers) { for (const Hi of Wn) lo(Hi) && Hi.kind !== 124 && Hi.kind !== 127 && Be.push(Tn(Hi, _.The_0_modifier_can_only_be_used_in_TypeScript_files, mo(Hi.kind))); return "skip"; } break; case 166: if (Wn === Hr.modifiers && kt(Wn, lo)) return Be.push(vn(Wn, _.Parameter_modifiers_can_only_be_used_in_TypeScript_files)), "skip"; break; case 210: case 211: case 230: case 282: case 283: case 212: if (Wn === Hr.typeArguments) return Be.push(vn(Wn, _.Type_arguments_can_only_be_used_in_TypeScript_files)), "skip"; break; } } function pn(Wn, Hr) { for (const Hi of Wn) switch (Hi.kind) { case 85: if (Hr) continue; case 123: case 121: case 122: case 146: case 136: case 126: case 161: case 101: case 145: Be.push(Tn(Hi, _.The_0_modifier_can_only_be_used_in_TypeScript_files, mo(Hi.kind))); break; case 124: case 93: case 88: case 127: } } function vn(Wn, Hr, Hi, tr, fn) { const ur = Wn.pos; return Lc(Ce, ur, Wn.end - ur, Hr, Hi, tr, fn); } function Tn(Wn, Hr, Hi, tr, fn) { return id(Ce, Wn, Hr, Hi, tr, fn); } }); } function Ud(Ce, Be) { return jc(Ce, Be, Pe, rc); } function rc(Ce, Be) { return tl(() => { const Lt = Si().getEmitResolver(Ce, Be); return dhe(q(io), Lt, Ce) || nt; }); } function jc(Ce, Be, Lt, Ot) { var pn; const vn = Ce ? (pn = Lt.perFile) == null ? void 0 : pn.get(Ce.path) : Lt.allDiagnostics; if (vn) return vn; const Tn = Ot(Ce, Be); return Ce ? (Lt.perFile || (Lt.perFile = /* @__PURE__ */ new Map())).set(Ce.path, Tn) : Lt.allDiagnostics = Tn, Tn; } function ks(Ce, Be) { return Ce.isDeclarationFile ? [] : Ud(Ce, Be); } function pl() { return _A(ha(In.getGlobalDiagnostics(), Qs())); } function Qs() { if (!P.configFile) return nt; let Ce = In.getDiagnostics(P.configFile.fileName); return ls((Be) => { Ce = ha(Ce, In.getDiagnostics(Be.sourceFile.fileName)); }), Ce; } function qs() { return Y.length ? _A(Si().getGlobalDiagnostics().slice()) : nt; } function Zt() { return ue || nt; } function Gl(Ce, Be, Lt, Ot) { St(Wo(Ce), Be, Lt, void 0, Ot); } function yu(Ce, Be) { return Ce.fileName === Be.fileName; } function Bu(Ce, Be) { return Ce.kind === 79 ? Be.kind === 79 && Ce.escapedText === Be.escapedText : Be.kind === 10 && Ce.text === Be.text; } function de(Ce, Be) { const Lt = N.createStringLiteral(Ce), Ot = N.createImportDeclaration(void 0, void 0, Lt, void 0); return ux(Ot, 2), Bo(Lt, Ot), Bo(Ot, Be), Lt.flags &= -9, Ot.flags &= -9, Lt; } function It(Ce) { if (Ce.imports) return; const Be = Ju(Ce), Lt = Yl(Ce); let Ot, pn, vn; if ((F_(P) || Lt) && !Ce.isDeclarationFile) { P.importHelpers && (Ot = [de(J0, Ce)]); const tr = A3(x3(P, Ce), P); tr && (Ot || (Ot = [])).push(de(tr, Ce)); } for (const tr of Ce.statements) Wn(tr, !1); const Tn = Be && gl(P) !== 100; (Ce.flags & 2097152 || Tn) && Hr(Ce), Ce.imports = Ot || nt, Ce.moduleAugmentations = pn || nt, Ce.ambientModuleNames = vn || nt; return; function Wn(tr, fn) { if (KR(tr)) { const ur = OA(tr); ur && Go(ur) && ur.text && (!fn || !Oc(ur.text)) && (Dv(tr, !1), Ot = Fn(Ot, ur), !Di && bt === 0 && !Ce.isDeclarationFile && (Di = Ea(ur.text, "node:"))); } else if (Hl(tr) && ku(tr) && (fn || Jr(tr, 2) || Ce.isDeclarationFile)) { tr.name.parent = tr; const ur = P_(tr.name); if (Lt || fn && !Oc(ur)) (pn || (pn = [])).push(tr.name); else if (!fn) { Ce.isDeclarationFile && (vn || (vn = [])).push(ur); const Ta = tr.body; if (Ta) for (const Ks of Ta.statements) Wn(Ks, !0); } } } function Hr(tr) { const fn = /import|require/g; for (; fn.exec(tr.text) !== null; ) { const ur = Hi(tr, fn.lastIndex); Tn && vd(ur, !0) || tf(ur) && ur.arguments.length >= 1 && Ts(ur.arguments[0]) ? (Dv(ur, !1), Ot = Fn(Ot, ur.arguments[0])) : B0(ur) && (Dv(ur, !1), Ot = Fn(Ot, ur.argument.literal)); } } function Hi(tr, fn) { let ur = tr; const Ta = (Ks) => { if (Ks.pos <= fn && (fn < Ks.end || fn === Ks.end && Ks.kind === 1)) return Ks; }; for (; ; ) { const Ks = Be && yf(ur) && Ye(ur.jsDoc, Ta) || Oa(ur, Ta); if (!Ks) return ur; ur = Ks; } } } function jt(Ce) { const Be = I_(Ce.fileName), Lt = YO.get(Be); if (Lt) return no(zi(Lt)); } function Q(Ce, Be) { return at(j5(Be.fileName, Ce.fileName), no); } function at(Ce, Be, Lt, Ot) { if (dA(Ce)) { const pn = it.getCanonicalFileName(Ce); if (!P.allowNonTsExtensions && !Ye(nd(xi), (Tn) => oc(pn, Tn))) { Lt && (lx(pn) ? Lt(_.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option, Ce) : Lt(_.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1, Ce, "'" + nd(fr).join("', '") + "'")); return; } const vn = Be(Ce); if (Lt) if (vn) Z0(Ot) && pn === it.getCanonicalFileName(sa(Ot.file).fileName) && Lt(_.A_file_cannot_have_a_reference_to_itself); else { const Tn = cl(Ce); Tn ? Lt(_.Output_file_0_has_not_been_built_from_source_file_1, Tn, Ce) : Lt(_.File_0_not_found, Ce); } return vn; } else { const pn = P.allowNonTsExtensions && Be(Ce); if (pn) return pn; if (Lt && P.allowNonTsExtensions) { Lt(_.File_0_not_found, Ce); return; } const vn = Ye(fr[0], (Tn) => Be(Ce + Tn)); return Lt && !vn && Lt(_.Could_not_resolve_the_path_0_with_the_extensions_Colon_1, Ce, "'" + nd(fr).join("', '") + "'"), vn; } } function St(Ce, Be, Lt, Ot, pn) { at(Ce, (vn) => va(vn, Be, Lt, pn, Ot), (vn, ...Tn) => Vo(void 0, pn, vn, Tn), pn); } function _n(Ce, Be) { return St(Ce, !1, !1, void 0, Be); } function kr(Ce, Be, Lt) { !Z0(Lt) && kt(We.get(Be.path), Z0) ? Vo(Be, Lt, _.Already_included_file_name_0_differs_from_file_name_1_only_in_casing, [Be.fileName, Ce]) : Vo(Be, Lt, _.File_name_0_differs_from_already_included_file_name_1_only_in_casing, [Ce, Be.fileName]); } function Nr(Ce, Be, Lt, Ot, pn, vn, Tn) { var Wn; const Hr = jm.createRedirectedSourceFile({ redirectTarget: Ce, unredirected: Be }); return Hr.fileName = Lt, Hr.path = Ot, Hr.resolvedPath = pn, Hr.originalFileName = vn, Hr.packageJsonLocations = (Wn = Tn.packageJsonLocations) != null && Wn.length ? Tn.packageJsonLocations : void 0, Hr.packageJsonScope = Tn.packageJsonScope, et.set(Ot, bt > 0), Hr; } function va(Ce, Be, Lt, Ot, pn) { var vn, Tn; (vn = hi) == null || vn.push(hi.Phase.Program, "findSourceFile", { fileName: Ce, isDefaultLib: Be || void 0, fileIncludeKind: HP[Ot.kind] }); const Wn = _o(Ce, Be, Lt, Ot, pn); return (Tn = hi) == null || Tn.pop(), Wn; } function as(Ce, Be, Lt, Ot) { const pn = kX(Na(Ce, Yt), Be == null ? void 0 : Be.getPackageJsonInfoCache(), Lt, Ot), vn = $o(Ot), Tn = VN(Ot); return typeof pn == "object" ? { ...pn, languageVersion: vn, setExternalModuleIndicator: Tn } : { languageVersion: vn, impliedNodeFormat: pn, setExternalModuleIndicator: Tn }; } function _o(Ce, Be, Lt, Ot, pn) { var vn, Tn; const Wn = pt(Ce); if (gt) { let ur = ul(Wn); if (!ur && it.realpath && P.preserveSymlinks && sd(Ce) && lu(Ce, Ty)) { const Ta = pt(it.realpath(Ce)); Ta !== Wn && (ur = ul(Ta)); } if (ur) { const Ta = Va(ur) ? va(ur, Be, Lt, Ot, pn) : void 0; return Ta && Ka(Ta, Wn, void 0), Ta; } } const Hr = Ce; if (_i.has(Wn)) { const ur = _i.get(Wn); if (Uo(ur || void 0, Ot), ur && P.forceConsistentCasingInFileNames !== !1) { const Ta = ur.fileName; pt(Ta) !== pt(Ce) && (Ce = cl(Ce) || Ce); const ic = IH(Ta, Yt), zm = IH(Ce, Yt); ic !== zm && kr(Ce, ur, Ot); } return ur && et.get(ur.path) && bt === 0 ? (et.set(ur.path, !1), P.noResolve || (Lf(ur, Be), Se(ur)), P.noLib || xo(ur), Vt.set(ur.path, !1), lt(ur)) : ur && Vt.get(ur.path) && bt < At && (Vt.set(ur.path, !1), lt(ur)), ur || void 0; } let Hi; if (Z0(Ot) && !gt) { const ur = lc(Ce); if (ur) { if (Ws(ur.commandLine.options)) return; const Ta = ld(ur, Ce); Ce = Ta, Hi = pt(Ta); } } const tr = as(Ce, Rr, it, P), fn = it.getSourceFile(Ce, tr, (ur) => Vo(void 0, Ot, _.Cannot_read_file_0_Colon_1, [Ce, ur]), re || ((vn = ie == null ? void 0 : ie.getSourceFileByPath(pt(Ce))) == null ? void 0 : vn.impliedNodeFormat) !== tr.impliedNodeFormat); if (pn) { const ur = tT(pn), Ta = ln.get(ur); if (Ta) { const Ks = Nr(Ta, fn, Ce, Wn, pt(Ce), Hr, tr); return lr.add(Ta.path, Ce), Ka(Ks, Wn, Hi), Uo(Ks, Ot), rr.set(Wn, AM(pn)), pe.push(Ks), Ks; } else fn && (ln.set(ur, fn), rr.set(Wn, AM(pn))); } if (Ka(fn, Wn, Hi), fn) { if (et.set(Wn, bt > 0), fn.fileName = Ce, fn.path = Wn, fn.resolvedPath = pt(Ce), fn.originalFileName = Hr, fn.packageJsonLocations = (Tn = tr.packageJsonLocations) != null && Tn.length ? tr.packageJsonLocations : void 0, fn.packageJsonScope = tr.packageJsonScope, Uo(fn, Ot), it.useCaseSensitiveFileNames()) { const ur = I_(Wn), Ta = en.get(ur); Ta ? kr(Ce, Ta, Ot) : en.set(ur, fn); } Xt = Xt || fn.hasNoDefaultLib && !Lt, P.noResolve || (Lf(fn, Be), Se(fn)), P.noLib || xo(fn), lt(fn), Be ? le.push(fn) : pe.push(fn); } return fn; } function Uo(Ce, Be) { Ce && We.add(Ce.path, Be); } function Ka(Ce, Be, Lt) { Lt ? (_i.set(Lt, Ce), _i.set(Be, Ce || !1)) : _i.set(Be, Ce); } function cl(Ce) { const Be = lc(Ce); return Be && ld(Be, Ce); } function lc(Ce) { if (!(!Pn || !Pn.length || sd(Ce) || oc(Ce, ".json"))) return vs(Ce); } function ld(Ce, Be) { const Lt = Ws(Ce.commandLine.options); return Lt ? x1(Lt, ".d.ts") : Jk(Be, Ce.commandLine, !it.useCaseSensitiveFileNames()); } function vs(Ce) { Ur === void 0 && (Ur = /* @__PURE__ */ new Map(), ls((Lt) => { pt(P.configFilePath) !== Lt.sourceFile.path && Lt.commandLine.fileNames.forEach((Ot) => Ur.set(pt(Ot), Lt.sourceFile.path)); })); const Be = Ur.get(pt(Ce)); return Be && Ul(Be); } function ls(Ce) { return Mhe(Pn, Ce); } function ul(Ce) { if (sd(Ce)) return Ie === void 0 && (Ie = /* @__PURE__ */ new Map(), ls((Be) => { const Lt = Ws(Be.commandLine.options); if (Lt) { const Ot = x1(Lt, ".d.ts"); Ie.set(pt(Ot), !0); } else { const Ot = hd(() => Kk(Be.commandLine, !it.useCaseSensitiveFileNames())); Ye(Be.commandLine.fileNames, (pn) => { if (!sd(pn) && !oc(pn, ".json")) { const vn = Jk(pn, Be.commandLine, !it.useCaseSensitiveFileNames(), Ot); Ie.set(pt(vn), pn); } }); } })), Ie.get(Ce); } function Vd(Ce) { return gt && !!vs(Ce); } function Ul(Ce) { if (xr) return xr.get(Ce) || void 0; } function Lf(Ce, Be) { Ye(Ce.referencedFiles, (Lt, Ot) => { St(j5(Lt.fileName, Ce.fileName), Be, !1, void 0, { kind: 4, file: Ce.path, index: Ot }); }); } function Se(Ce) { const Be = Ce.typeReferenceDirectives; if (!Be.length) { Ce.resolvedTypeReferenceDirectiveNames = void 0; return; } const Lt = Oe(Be, Ce); for (let Ot = 0; Ot < Be.length; Ot++) { const pn = Ce.typeReferenceDirectives[Ot], vn = Lt[Ot], Tn = I_(pn.fileName); vce(Ce, Tn, vn, S8(pn, Ce.impliedNodeFormat)); const Wn = pn.resolutionMode || Ce.impliedNodeFormat; Wn && gl(P) !== 3 && gl(P) !== 99 && (He ?? (He = [])).push({ kind: 2, diagnostics: [ BW(Ce, pn, _.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext) ] }), Dt(Tn, Wn, vn, { kind: 5, file: Ce.path, index: Ot }); } } function Dt(Ce, Be, Lt, Ot) { var pn, vn; (pn = hi) == null || pn.push(hi.Phase.Program, "processTypeReferenceDirective", { directive: Ce, hasResolved: !!Lt.resolvedTypeReferenceDirective, refKind: Ot.kind, refPath: Z0(Ot) ? Ot.file : void 0 }), Nn(Ce, Be, Lt, Ot), (vn = hi) == null || vn.pop(); } function Nn(Ce, Be, Lt, Ot) { var pn; je(Lt); const vn = (pn = Ke.get(Ce, Be)) == null ? void 0 : pn.resolvedTypeReferenceDirective; if (vn && vn.primary) return; let Tn = !0; const { resolvedTypeReferenceDirective: Wn } = Lt; if (Wn) { if (Wn.isExternalLibraryImport && bt++, Wn.primary) St(Wn.resolvedFileName, !1, !1, Wn.packageId, Ot); else if (vn) { if (Wn.resolvedFileName !== vn.resolvedFileName) { const Hr = it.readFile(Wn.resolvedFileName), Hi = no(vn.resolvedFileName); Hr !== Hi.text && Vo(Hi, Ot, _.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict, [Ce, Wn.resolvedFileName, vn.resolvedFileName]); } Tn = !1; } else St(Wn.resolvedFileName, !1, !1, Wn.packageId, Ot); Wn.isExternalLibraryImport && bt--; } else Vo(void 0, Ot, _.Cannot_find_type_definition_file_for_0, [Ce]); Tn && Ke.set(Ce, Be, Lt); } function zi(Ce) { const Be = Ce.split("."); let Lt = Be[1], Ot = 2; for (; Be[Ot] && Be[Ot] !== "d"; ) Lt += (Ot === 2 ? "/" : "-") + Be[Ot], Ot++; const pn = Oi(Yt, `__lib_node_modules_lookup_${Ce}__.ts`), vn = Mk("@typescript/lib-" + Lt, pn, { moduleResolution: 2 }, it, Rr); return vn != null && vn.resolvedModule ? vn.resolvedModule.resolvedFileName : Oi(Hn, Ce); } function xo(Ce) { Ye(Ce.libReferenceDirectives, (Be, Lt) => { const Ot = I_(Be.fileName), pn = YO.get(Ot); if (pn) Gl(zi(pn), !0, !0, { kind: 7, file: Ce.path, index: Lt }); else { const vn = lA($L(Ot, "lib."), ".d.ts"), Tn = YL(vn, XO, _l), Wn = Tn ? _.Cannot_find_lib_definition_for_0_Did_you_mean_1 : _.Cannot_find_lib_definition_for_0; (He || (He = [])).push({ kind: 0, reason: { kind: 7, file: Ce.path, index: Lt }, diagnostic: Wn, args: [Ot, Tn] }); } }); } function ae(Ce) { return it.getCanonicalFileName(Ce); } function lt(Ce) { var Be; if (It(Ce), Ce.imports.length || Ce.moduleAugmentations.length) { const Lt = Fhe(Ce), Ot = K(Lt, Ce); D.assert(Ot.length === Lt.length); const pn = (gt ? (Be = on(Ce)) == null ? void 0 : Be.commandLine.options : void 0) || P; for (let vn = 0; vn < Lt.length; vn++) { const Tn = Ot[vn].resolvedModule, Wn = Lt[vn].text, Hr = hp(Ce, Lt[vn]); if (yce(Ce, Wn, Ot[vn], Hr), Qe(Ce, Wn, Ot[vn], Hr), !Tn) continue; const Hi = Tn.isExternalLibraryImport, tr = !XN(Tn.extension), fn = Hi && tr, ur = Tn.resolvedFileName; Hi && bt++; const Ta = fn && bt > At, Ks = ur && !RX(pn, Tn, Ce) && !pn.noResolve && vn < Ce.imports.length && !Ta && !(tr && !HN(pn)) && (dr(Ce.imports[vn]) || !(Ce.imports[vn].flags & 8388608)); Ta ? Vt.set(Ce.path, !0) : Ks && va(ur, !1, !1, { kind: 3, file: Ce.path, index: vn }, Tn.packageId), Hi && bt--; } } else Ce.resolvedModules = void 0; } function Mt(Ce, Be) { let Lt = !0; const Ot = it.getCanonicalFileName(Na(Be, Yt)); for (const pn of Ce) pn.isDeclarationFile || it.getCanonicalFileName(Na(pn.fileName, Yt)).indexOf(Ot) !== 0 && (bs(pn, _.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files, [pn.fileName, Be]), Lt = !1); return Lt; } function Pt(Ce) { xr || (xr = /* @__PURE__ */ new Map()); const Be = Yk(Ce), Lt = pt(Be), Ot = xr.get(Lt); if (Ot !== void 0) return Ot || void 0; let pn, vn; if (it.getParsedCommandLine) { if (pn = it.getParsedCommandLine(Be), !pn) { Ka(void 0, Lt, void 0), xr.set(Lt, !1); return; } vn = D.checkDefined(pn.options.configFile), D.assert(!vn.path || vn.path === Lt), Ka(vn, Lt, void 0); } else { const Wn = Na(fi(Be), it.getCurrentDirectory()); if (vn = it.getSourceFile(Be, 100), Ka(vn, Lt, void 0), vn === void 0) { xr.set(Lt, !1); return; } pn = WO(vn, nn, Wn, void 0, Be); } vn.fileName = Be, vn.path = Lt, vn.resolvedPath = Lt, vn.originalFileName = Be; const Tn = { commandLine: pn, sourceFile: vn }; return xr.set(Lt, Tn), pn.projectReferences && (Tn.references = pn.projectReferences.map(Pt)), Tn; } function sn() { P.strictPropertyInitialization && !f_(P, "strictNullChecks") && Ko(_.Option_0_cannot_be_specified_without_specifying_option_1, "strictPropertyInitialization", "strictNullChecks"), P.exactOptionalPropertyTypes && !f_(P, "strictNullChecks") && Ko(_.Option_0_cannot_be_specified_without_specifying_option_1, "exactOptionalPropertyTypes", "strictNullChecks"), (P.isolatedModules || P.verbatimModuleSyntax) && (P.out && Ko(_.Option_0_cannot_be_specified_with_option_1, "out", P.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules"), P.outFile && Ko(_.Option_0_cannot_be_specified_with_option_1, "outFile", P.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules")), P.inlineSourceMap && (P.sourceMap && Ko(_.Option_0_cannot_be_specified_with_option_1, "sourceMap", "inlineSourceMap"), P.mapRoot && Ko(_.Option_0_cannot_be_specified_with_option_1, "mapRoot", "inlineSourceMap")), P.composite && (P.declaration === !1 && Ko(_.Composite_projects_may_not_disable_declaration_emit, "declaration"), P.incremental === !1 && Ko(_.Composite_projects_may_not_disable_incremental_compilation, "declaration")); const Ce = Ws(P); if (P.tsBuildInfoFile ? jN(P) || Ko(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "tsBuildInfoFile", "incremental", "composite") : P.incremental && !Ce && !P.configFilePath && In.add(Ps(_.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)), Zr(), cd(), P.composite) { const Tn = new Set(Y.map(pt)); for (const Wn of ye) tx(Wn, V) && !Tn.has(Wn.path) && bs(Wn, _.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern, [Wn.fileName, P.configFilePath || ""]); } if (P.paths) { for (const Tn in P.paths) if (Ns(P.paths, Tn)) if (zz(Tn) || Ql(!0, Tn, _.Pattern_0_can_have_at_most_one_Asterisk_character, Tn), Ga(P.paths[Tn])) { const Wn = P.paths[Tn].length; Wn === 0 && Ql(!1, Tn, _.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array, Tn); for (let Hr = 0; Hr < Wn; Hr++) { const Hi = P.paths[Tn][Hr], tr = typeof Hi; tr === "string" ? (zz(Hi) || sf(Tn, Hr, _.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character, Hi, Tn), !P.baseUrl && !gf(Hi) && !tI(Hi) && sf(Tn, Hr, _.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)) : sf(Tn, Hr, _.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2, Hi, Tn, tr); } } else Ql(!1, Tn, _.Substitutions_for_pattern_0_should_be_an_array, Tn); } !P.sourceMap && !P.inlineSourceMap && (P.inlineSources && Ko(_.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, "inlineSources"), P.sourceRoot && Ko(_.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, "sourceRoot")), P.out && P.outFile && Ko(_.Option_0_cannot_be_specified_with_option_1, "out", "outFile"), P.mapRoot && !(P.sourceMap || P.declarationMap) && Ko(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "mapRoot", "sourceMap", "declarationMap"), P.declarationDir && (G_(P) || Ko(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "declarationDir", "declaration", "composite"), Ce && Ko(_.Option_0_cannot_be_specified_with_option_1, "declarationDir", P.out ? "out" : "outFile")), P.declarationMap && !G_(P) && Ko(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "declarationMap", "declaration", "composite"), P.lib && P.noLib && Ko(_.Option_0_cannot_be_specified_with_option_1, "lib", "noLib"), P.noImplicitUseStrict && f_(P, "alwaysStrict") && Ko(_.Option_0_cannot_be_specified_with_option_1, "noImplicitUseStrict", "alwaysStrict"); const Be = $o(P), Lt = un(ye, (Tn) => Yl(Tn) && !Tn.isDeclarationFile); if (P.isolatedModules || P.verbatimModuleSyntax) P.module === 0 && Be < 2 && P.isolatedModules && Ko(_.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher, "isolatedModules", "target"), P.preserveConstEnums === !1 && Ko(_.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled, P.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules", "preserveConstEnums"); else if (Lt && Be < 2 && P.module === 0) { const Tn = p1(Lt, typeof Lt.externalModuleIndicator == "boolean" ? Lt : Lt.externalModuleIndicator); In.add(Lc(Lt, Tn.start, Tn.length, _.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)); } if (Ce && !P.emitDeclarationOnly) { if (P.module && !(P.module === 2 || P.module === 4)) Ko(_.Only_amd_and_system_modules_are_supported_alongside_0, P.out ? "out" : "outFile", "module"); else if (P.module === void 0 && Lt) { const Tn = p1(Lt, typeof Lt.externalModuleIndicator == "boolean" ? Lt : Lt.externalModuleIndicator); In.add(Lc(Lt, Tn.start, Tn.length, _.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, P.out ? "out" : "outFile")); } } if (gT(P) && (gl(P) === 1 ? Ko(_.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic, "resolveJsonModule") : b3(P) || Ko(_.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext, "resolveJsonModule", "module")), P.outDir || P.rootDir || P.sourceRoot || P.mapRoot) { const Tn = Wt(); P.outDir && Tn === "" && ye.some((Wn) => Vp(Wn.fileName) > 1) && Ko(_.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir"); } P.useDefineForClassFields && Be === 0 && Ko(_.Option_0_cannot_be_specified_when_option_target_is_ES3, "useDefineForClassFields"), P.checkJs && !HN(P) && In.add(Ps(_.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs")), P.emitDeclarationOnly && (G_(P) || Ko(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "emitDeclarationOnly", "declaration", "composite"), P.noEmit && Ko(_.Option_0_cannot_be_specified_with_option_1, "emitDeclarationOnly", "noEmit")), P.emitDecoratorMetadata && !P.experimentalDecorators && Ko(_.Option_0_cannot_be_specified_without_specifying_option_1, "emitDecoratorMetadata", "experimentalDecorators"), P.jsxFactory ? (P.reactNamespace && Ko(_.Option_0_cannot_be_specified_with_option_1, "reactNamespace", "jsxFactory"), (P.jsx === 4 || P.jsx === 5) && Ko(_.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxFactory", Nk.get("" + P.jsx)), Rx(P.jsxFactory, Be) || y_("jsxFactory", _.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name, P.jsxFactory)) : P.reactNamespace && !w_(P.reactNamespace, Be) && y_("reactNamespace", _.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier, P.reactNamespace), P.jsxFragmentFactory && (P.jsxFactory || Ko(_.Option_0_cannot_be_specified_without_specifying_option_1, "jsxFragmentFactory", "jsxFactory"), (P.jsx === 4 || P.jsx === 5) && Ko(_.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxFragmentFactory", Nk.get("" + P.jsx)), Rx(P.jsxFragmentFactory, Be) || y_("jsxFragmentFactory", _.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name, P.jsxFragmentFactory)), P.reactNamespace && (P.jsx === 4 || P.jsx === 5) && Ko(_.Option_0_cannot_be_specified_when_option_jsx_is_1, "reactNamespace", Nk.get("" + P.jsx)), P.jsxImportSource && P.jsx === 2 && Ko(_.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxImportSource", Nk.get("" + P.jsx)), P.preserveValueImports && Zc(P) < 5 && Ko(_.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later, "preserveValueImports"); const Ot = Zc(P); P.verbatimModuleSyntax && ((Ot === 2 || Ot === 3 || Ot === 4) && Ko(_.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System, "verbatimModuleSyntax"), P.isolatedModules && Ze("isolatedModules", "verbatimModuleSyntax"), P.preserveValueImports && Ze("preserveValueImports", "verbatimModuleSyntax"), P.importsNotUsedAsValues && Ze("importsNotUsedAsValues", "verbatimModuleSyntax")), P.allowImportingTsExtensions && !(P.noEmit || P.emitDeclarationOnly) && y_("allowImportingTsExtensions", _.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set); const pn = gl(P); if (P.resolvePackageJsonExports && !sx(pn) && Ko(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, "resolvePackageJsonExports"), P.resolvePackageJsonImports && !sx(pn) && Ko(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, "resolvePackageJsonImports"), P.customConditions && !sx(pn) && Ko(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, "customConditions"), pn === 100 && !jz(Ot) && y_("moduleResolution", _.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later, "bundler"), !P.noEmit && !P.suppressOutputPathCheck) { const Tn = q(), Wn = /* @__PURE__ */ new Set(); cX(Tn, (Hr) => { P.emitDeclarationOnly || vn(Hr.jsFilePath, Wn), vn(Hr.declarationFilePath, Wn); }); } function vn(Tn, Wn) { if (Tn) { const Hr = pt(Tn); if (_i.has(Hr)) { let tr; P.configFilePath || (tr = Da(void 0, _.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)), tr = Da(tr, _.Cannot_write_file_0_because_it_would_overwrite_input_file, Tn), zt(Tn, y3(tr)); } const Hi = it.useCaseSensitiveFileNames() ? Hr : I_(Hr); Wn.has(Hi) ? zt(Tn, Ps(_.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files, Tn)) : Wn.add(Hi); } } } function jn() { const Ce = P.ignoreDeprecations; if (Ce) { if (Ce === "5.0") return new k_(Ce); H(); } return k_.zero; } function wr(Ce, Be, Lt, Ot) { const pn = new k_(Ce), vn = new k_(Be), Tn = new k_(ge || ve), Wn = jn(), Hr = vn.compareTo(Tn) !== 1, Hi = !Hr && Wn.compareTo(pn) === -1; (Hr || Hi) && Ot((tr, fn, ur) => { Hr ? fn === void 0 ? Lt(tr, fn, ur, _.Option_0_has_been_removed_Please_remove_it_from_your_configuration, tr) : Lt(tr, fn, ur, _.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration, tr, fn) : fn === void 0 ? Lt(tr, fn, ur, _.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error, tr, Be, Ce) : Lt(tr, fn, ur, _.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error, tr, fn, Be, Ce); }); } function Zr() { function Ce(Be, Lt, Ot, pn, vn, Tn, Wn, Hr) { if (Ot) { const Hi = Da(void 0, _.Use_0_instead, Ot), tr = Da(Hi, pn, vn, Tn, Wn, Hr); J_(!Lt, Be, void 0, tr); } else J_(!Lt, Be, void 0, pn, vn, Tn, Wn, Hr); } wr("5.0", "5.5", Ce, (Be) => { P.target === 0 && Be("target", "ES3"), P.noImplicitUseStrict && Be("noImplicitUseStrict"), P.keyofStringsOnly && Be("keyofStringsOnly"), P.suppressExcessPropertyErrors && Be("suppressExcessPropertyErrors"), P.suppressImplicitAnyIndexErrors && Be("suppressImplicitAnyIndexErrors"), P.noStrictGenericChecks && Be("noStrictGenericChecks"), P.charset && Be("charset"), P.out && Be("out", void 0, "outFile"), P.importsNotUsedAsValues && Be("importsNotUsedAsValues", void 0, "verbatimModuleSyntax"), P.preserveValueImports && Be("preserveValueImports", void 0, "verbatimModuleSyntax"); }); } function Ri(Ce, Be, Lt) { function Ot(pn, vn, Tn, Wn, Hr, Hi, tr, fn) { cf(Be, Lt, Wn, Hr, Hi, tr, fn); } wr("5.0", "5.5", Ot, (pn) => { Ce.prepend && pn("prepend"); }); } function Ua(Ce, Be, Lt, Ot) { var pn; let vn, Tn, Wn = Z0(Be) ? Be : void 0; Ce && ((pn = We.get(Ce.path)) == null || pn.forEach(ur)), Be && ur(Be), Wn && (vn == null ? void 0 : vn.length) === 1 && (vn = void 0); const Hr = Wn && Xk(sa, Wn), Hi = vn && Da(vn, _.The_file_is_in_the_program_because_Colon), tr = Ce && QX(Ce), fn = Da(tr ? Hi ? [Hi, ...tr] : tr : Hi, Lt, ...Ot || nt); return Hr && DC(Hr) ? OM(Hr.file, Hr.pos, Hr.end - Hr.pos, fn, Tn) : y3(fn, Tn); function ur(Ta) { (vn || (vn = [])).push(tY(V, Ta)), !Wn && Z0(Ta) ? Wn = Ta : Wn !== Ta && (Tn = Fn(Tn, Js(Ta))), Ta === Be && (Be = void 0); } } function Vo(Ce, Be, Lt, Ot) { (He || (He = [])).push({ kind: 1, file: Ce && Ce.path, fileProcessingReason: Be, diagnostic: Lt, args: Ot }); } function bs(Ce, Be, Lt) { In.add(Ua(Ce, void 0, Be, Lt)); } function Js(Ce) { if (Z0(Ce)) { const Ot = Xk(sa, Ce); let pn; switch (Ce.kind) { case 3: pn = _.File_is_included_via_import_here; break; case 4: pn = _.File_is_included_via_reference_here; break; case 5: pn = _.File_is_included_via_type_library_reference_here; break; case 7: pn = _.File_is_included_via_library_reference_here; break; default: D.assertNever(Ce); } return DC(Ot) ? Lc(Ot.file, Ot.pos, Ot.end - Ot.pos, pn) : void 0; } if (!P.configFile) return; let Be, Lt; switch (Ce.kind) { case 0: if (!P.configFile.configFileSpecs) return; const Ot = Na(Y[Ce.index], Yt), pn = ZX(V, Ot); if (pn) { Be = jM(P.configFile, "files", pn), Lt = _.File_is_matched_by_files_list_specified_here; break; } const vn = eY(V, Ot); if (!vn || !Va(vn)) return; Be = jM(P.configFile, "include", vn), Lt = _.File_is_matched_by_include_pattern_specified_here; break; case 1: case 2: const Tn = D.checkDefined(Pn == null ? void 0 : Pn[Ce.index]), Wn = A8(ne, Pn, (ur, Ta, Ks) => ur === Tn ? { sourceFile: (Ta == null ? void 0 : Ta.sourceFile) || P.configFile, index: Ks } : void 0); if (!Wn) return; const { sourceFile: Hr, index: Hi } = Wn, tr = En($R(Hr, "references"), (ur) => Ru(ur.initializer) ? ur.initializer : void 0); return tr && tr.elements.length > Hi ? id(Hr, tr.elements[Hi], Ce.kind === 2 ? _.File_is_output_from_referenced_project_specified_here : _.File_is_source_from_referenced_project_specified_here) : void 0; case 8: if (!P.types) return; Be = g_("types", Ce.typeReference), Lt = _.File_is_entry_point_of_type_library_specified_here; break; case 6: if (Ce.index !== void 0) { Be = g_("lib", P.lib[Ce.index]), Lt = _.File_is_library_specified_here; break; } const fn = Zd(ZO.type, (ur, Ta) => ur === $o(P) ? Ta : void 0); Be = fn ? lf("target", fn) : void 0, Lt = _.File_is_default_library_for_target_specified_here; break; default: D.assertNever(Ce); } return Be && id(P.configFile, Be, Lt); } function cd() { const Ce = P.suppressOutputPathCheck ? void 0 : xy(P); A8(ne, Pn, (Be, Lt, Ot) => { const pn = (Lt ? Lt.commandLine.projectReferences : ne)[Ot], vn = Lt && Lt.sourceFile; if (Ri(pn, vn, Ot), !Be) { cf(vn, Ot, _.File_0_not_found, pn.path); return; } const Tn = Be.commandLine.options; if ((!Tn.composite || Tn.noEmit) && (Lt ? Lt.commandLine.fileNames : Y).length && (Tn.composite || cf(vn, Ot, _.Referenced_project_0_must_have_setting_composite_Colon_true, pn.path), Tn.noEmit && cf(vn, Ot, _.Referenced_project_0_may_not_disable_emit, pn.path)), pn.prepend) { const Wn = Ws(Tn); Wn ? it.fileExists(Wn) || cf(vn, Ot, _.Output_file_0_from_project_1_does_not_exist, Wn, pn.path) : cf(vn, Ot, _.Cannot_prepend_project_0_because_it_does_not_have_outFile_set, pn.path); } !Lt && Ce && Ce === xy(Tn) && (cf(vn, Ot, _.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1, Ce, pn.path), Ji.set(pt(Ce), !0)); }); } function sf(Ce, Be, Lt, Ot, pn, vn) { let Tn = !0; const Wn = vu(); for (const Hr of Wn) if (As(Hr.initializer)) for (const Hi of wA(Hr.initializer, Ce)) { const tr = Hi.initializer; Ru(tr) && tr.elements.length > Be && (In.add(id(P.configFile, tr.elements[Be], Lt, Ot, pn, vn)), Tn = !1); } Tn && In.add(Ps(Lt, Ot, pn, vn)); } function Ql(Ce, Be, Lt, Ot) { let pn = !0; const vn = vu(); for (const Tn of vn) As(Tn.initializer) && G(Tn.initializer, Ce, Be, void 0, Lt, Ot) && (pn = !1); pn && In.add(Ps(Lt, Ot)); } function jd(Ce) { const Be = Tp(); return Be && wA(Be, Ce); } function vu() { return jd("paths") || nt; } function lf(Ce, Be) { const Lt = jd(Ce); return Lt && En(Lt, (Ot) => Go(Ot.initializer) && Ot.initializer.text === Be ? Ot.initializer : void 0); } function g_(Ce, Be) { const Lt = Tp(); return Lt && qce(Lt, Ce, Be); } function Ko(Ce, Be, Lt, Ot) { J_(!0, Be, Lt, Ce, Be, Lt, Ot); } function y_(Ce, Be, Lt, Ot) { J_(!1, Ce, void 0, Be, Lt, Ot); } function cf(Ce, Be, Lt, Ot, pn, vn, Tn) { const Wn = En($R(Ce || P.configFile, "references"), (Hr) => Ru(Hr.initializer) ? Hr.initializer : void 0); Wn && Wn.elements.length > Be ? In.add(id(Ce || P.configFile, Wn.elements[Be], Lt, Ot, pn, vn, Tn)) : In.add(Ps(Lt, Ot, pn, vn, Tn)); } function J_(Ce, Be, Lt, Ot, pn, vn, Tn, Wn) { const Hr = Tp(); (!Hr || !G(Hr, Ce, Be, Lt, Ot, pn, vn, Tn, Wn)) && ("messageText" in Ot ? In.add(y3(Ot)) : In.add(Ps(Ot, pn, vn, Tn, Wn))); } function Tp() { if (Ki === void 0) { Ki = !1; const Ce = LI(P.configFile); if (Ce) { for (const Be of wA(Ce, "compilerOptions")) if (As(Be.initializer)) { Ki = Be.initializer; break; } } } return Ki || void 0; } function G(Ce, Be, Lt, Ot, pn, vn, Tn, Wn, Hr) { const Hi = wA(Ce, Lt, Ot); for (const tr of Hi) "messageText" in pn ? In.add(rg(P.configFile, Be ? tr.name : tr.initializer, pn)) : In.add(id(P.configFile, Be ? tr.name : tr.initializer, pn, vn, Tn, Wn, Hr)); return !!Hi.length; } function Ze(Ce, Be) { const Lt = Tp(); Lt ? G(Lt, !0, Ce, void 0, _.Option_0_is_redundant_and_cannot_be_specified_with_option_1, Ce, Be) : Ko(_.Option_0_is_redundant_and_cannot_be_specified_with_option_1, Ce, Be); } function zt(Ce, Be) { Ji.set(pt(Ce), !0), In.add(Be); } function Yn(Ce) { if (P.noEmit) return !1; const Be = pt(Ce); if (sa(Be)) return !1; const Lt = Ws(P); if (Lt) return ka(Be, Lt) || ka(Be, Od(Lt) + ".d.ts"); if (P.declarationDir && hv(P.declarationDir, Be, Yt, !it.useCaseSensitiveFileNames())) return !0; if (P.outDir) return hv(P.outDir, Be, Yt, !it.useCaseSensitiveFileNames()); if (vc(Be, uk) || sd(Be)) { const Ot = Od(Be); return !!sa(Ot + ".ts") || !!sa(Ot + ".tsx"); } return !1; } function ka(Ce, Be) { return JE(Ce, Be, Yt, !it.useCaseSensitiveFileNames()) === 0; } function Ca() { return it.getSymlinkCache ? it.getSymlinkCache() : (Te || (Te = hde(Yt, ae)), ye && ot && !Te.hasProcessedResolutions() && Te.setSymlinksFromResolutions(ye, ot), Te); } } function O3e(e) { let t; const r = e.compilerHost.fileExists, i = e.compilerHost.directoryExists, o = e.compilerHost.getDirectories, s = e.compilerHost.realpath; if (!e.useSourceOfProjectReferenceRedirect) return { onProgramCreateComplete: io, fileExists: d }; e.compilerHost.fileExists = d; let c; return i && (c = e.compilerHost.directoryExists = (C) => i.call(e.compilerHost, C) ? (b(C), !0) : e.getResolvedProjectReferences() ? (t || (t = /* @__PURE__ */ new Set(), e.forEachResolvedProjectReference((I) => { const O = Ws(I.commandLine.options); if (O) t.add(fi(e.toPath(O))); else { const k = I.commandLine.options.declarationDir || I.commandLine.options.outDir; k && t.add(e.toPath(k)); } })), A(C, !1)) : !1), o && (e.compilerHost.getDirectories = (C) => !e.getResolvedProjectReferences() || i && i.call(e.compilerHost, C) ? o.call(e.compilerHost, C) : []), s && (e.compilerHost.realpath = (C) => { var I; return ((I = e.getSymlinkCache().getSymlinkedFiles()) == null ? void 0 : I.get(e.toPath(C))) || s.call(e.compilerHost, C); }), { onProgramCreateComplete: f, fileExists: d, directoryExists: c }; function f() { e.compilerHost.fileExists = r, e.compilerHost.directoryExists = i, e.compilerHost.getDirectories = o; } function d(C) { return r.call(e.compilerHost, C) ? !0 : !e.getResolvedProjectReferences() || !sd(C) ? !1 : A(C, !0); } function y(C) { const I = e.getSourceOfProjectReferenceRedirect(e.toPath(C)); return I !== void 0 ? Va(I) ? r.call(e.compilerHost, I) : !0 : void 0; } function m(C) { const I = e.toPath(C), O = `${I}${Os}`; return EI(t, (k) => I === k || Ea(k, O) || Ea(I, `${k}/`)); } function b(C) { var I; if (!e.getResolvedProjectReferences() || ok(C) || !s || !lu(C, Ty)) return; const O = e.getSymlinkCache(), k = Iu(e.toPath(C)); if ((I = O.getSymlinkedDirectories()) != null && I.has(k)) return; const B = Wo(s.call(e.compilerHost, C)); let U; if (B === C || (U = Iu(e.toPath(B))) === k) { O.setSymlinkedDirectory(k, !1); return; } O.setSymlinkedDirectory(C, { real: Iu(B), realPath: U }); } function A(C, I) { var O; const k = I ? (X) => y(X) : (X) => m(X), B = k(C); if (B !== void 0) return B; const U = e.getSymlinkCache(), j = U.getSymlinkedDirectories(); if (!j) return !1; const te = e.toPath(C); return lu(te, Ty) ? I && ((O = U.getSymlinkedFiles()) != null && O.has(te)) ? !0 : ni(j.entries(), ([X, Y]) => { if (!Y || !Ea(te, X)) return; const P = k(te.replace(X, Y.realPath)); if (I && P) { const ue = Na(C, e.compilerHost.getCurrentDirectory()); U.setSymlinkedFile(te, `${Y.real}${ue.replace(new RegExp(X, "i"), "")}`); } return P; }) || !1 : !1; } } function wX(e, t, r, i) { const o = e.getCompilerOptions(); if (o.noEmit) return e.getSemanticDiagnostics(t, i), t || Ws(o) ? eF : e.emitBuildInfo(r, i); if (!o.noEmitOnError) return; let s = [ ...e.getOptionsDiagnostics(i), ...e.getSyntacticDiagnostics(t, i), ...e.getGlobalDiagnostics(i), ...e.getSemanticDiagnostics(t, i) ]; if (s.length === 0 && G_(e.getCompilerOptions()) && (s = e.getDeclarationDiagnostics(void 0, i)), !s.length) return; let c; if (!t && !Ws(o)) { const f = e.emitBuildInfo(r, i); f.diagnostics && (s = [...s, ...f.diagnostics]), c = f.emittedFiles; } return { diagnostics: s, sourceMaps: void 0, emittedFiles: c, emitSkipped: !0 }; } function J5(e, t) { return yn(e, (r) => !r.skippedOn || !t[r.skippedOn]); } function K5(e, t = e) { return { fileExists: (r) => t.fileExists(r), readDirectory(r, i, o, s, c) { return D.assertIsDefined(t.readDirectory, "'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"), t.readDirectory(r, i, o, s, c); }, readFile: (r) => t.readFile(r), useCaseSensitiveFileNames: e.useCaseSensitiveFileNames(), getCurrentDirectory: () => e.getCurrentDirectory(), onUnRecoverableConfigFileDiagnostic: e.onUnRecoverableConfigFileDiagnostic || R0, trace: e.trace ? (r) => e.trace(r) : void 0 }; } function DX(e, t, r, i) { if (!e) return nt; let o; for (let s = 0; s < e.length; s++) { const c = e[s], f = t(c, s); if (c.prepend && f && f.options) { if (!Ws(f.options)) continue; const { jsFilePath: y, sourceMapFilePath: m, declarationFilePath: b, declarationMapPath: A, buildInfoPath: C } = zk(f.options, !0), I = Rq(r, y, m, b, A, C, i, f.options); (o || (o = [])).push(I); } } return o || nt; } function Yk(e) { return lY(e.path); } function RX(e, { extension: t }, { isDeclarationFile: r }) { 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() || o(); case ".js": case ".mjs": case ".cjs": return o(); case ".json": return s(); default: return c(); } function i() { return e.jsx ? void 0 : _.Module_0_was_resolved_to_1_but_jsx_is_not_set; } function o() { return HN(e) || !f_(e, "noImplicitAny") ? void 0 : _.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type; } function s() { return gT(e) ? void 0 : _.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used; } function c() { return r || e.allowArbitraryExtensions ? void 0 : _.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set; } } function Fhe({ imports: e, moduleAugmentations: t }) { const r = e.map((i) => i); for (const i of t) i.kind === 10 && r.push(i); return r; } function X5({ imports: e, moduleAugmentations: t }, r) { if (r < e.length) return e[r]; let i = e.length; for (const o of t) if (o.kind === 10) { if (r === i) return o; i++; } D.fail("should never ask for module name at index higher than possible module name"); } var NX, Y5, $5, OX, PX, Bhe, MX, FX, $k, C8, Q5, Z5, eF, P3e = L({ "src/compiler/program.ts"() { Ra(), Ra(), i1(), NX = /* @__PURE__ */ ((e) => (e.Grey = "\x1B[90m", e.Red = "\x1B[91m", e.Yellow = "\x1B[93m", e.Blue = "\x1B[94m", e.Cyan = "\x1B[96m", e))(NX || {}), Y5 = "\x1B[7m", $5 = " ", OX = "\x1B[0m", PX = "...", Bhe = " ", MX = " ", FX = { resolvedModule: void 0, resolvedTypeReferenceDirective: void 0 }, $k = { getName: CX, getMode: (e, t) => hp(t, e) }, C8 = { getName: H5, getMode: (e, t) => S8(e, t == null ? void 0 : t.impliedNodeFormat) }, Q5 = "__inferred type names__.ts", Z5 = /* @__PURE__ */ new Set([ _.Cannot_redeclare_block_scoped_variable_0.code, _.A_module_cannot_have_multiple_default_exports.code, _.Another_export_default_is_here.code, _.The_first_export_default_is_here.code, _.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code, _.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code, _.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code, _.constructor_is_a_reserved_word.code, _.delete_cannot_be_called_on_an_identifier_in_strict_mode.code, _.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, _.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code, _.Invalid_use_of_0_in_strict_mode.code, _.A_label_is_not_allowed_here.code, _.Octal_literals_are_not_allowed_in_strict_mode.code, _.with_statements_are_not_allowed_in_strict_mode.code, _.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code, _.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code, _.A_class_declaration_without_the_default_modifier_must_have_a_name.code, _.A_class_member_cannot_have_the_0_keyword.code, _.A_comma_expression_is_not_allowed_in_a_computed_property_name.code, _.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code, _.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code, _.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code, _.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code, _.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code, _.A_definite_assignment_assertion_is_not_permitted_in_this_context.code, _.A_destructuring_declaration_must_have_an_initializer.code, _.A_get_accessor_cannot_have_parameters.code, _.A_rest_element_cannot_contain_a_binding_pattern.code, _.A_rest_element_cannot_have_a_property_name.code, _.A_rest_element_cannot_have_an_initializer.code, _.A_rest_element_must_be_last_in_a_destructuring_pattern.code, _.A_rest_parameter_cannot_have_an_initializer.code, _.A_rest_parameter_must_be_last_in_a_parameter_list.code, _.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code, _.A_return_statement_cannot_be_used_inside_a_class_static_block.code, _.A_set_accessor_cannot_have_rest_parameter.code, _.A_set_accessor_must_have_exactly_one_parameter.code, _.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code, _.An_export_declaration_cannot_have_modifiers.code, _.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code, _.An_import_declaration_cannot_have_modifiers.code, _.An_object_member_cannot_be_declared_optional.code, _.Argument_of_dynamic_import_cannot_be_spread_element.code, _.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code, _.Cannot_redeclare_identifier_0_in_catch_clause.code, _.Catch_clause_variable_cannot_have_an_initializer.code, _.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code, _.Classes_can_only_extend_a_single_class.code, _.Classes_may_not_have_a_field_named_constructor.code, _.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, _.Duplicate_label_0.code, _.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code, _.For_await_loops_cannot_be_used_inside_a_class_static_block.code, _.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code, _.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code, _.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code, _.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code, _.Jump_target_cannot_cross_function_boundary.code, _.Line_terminator_not_permitted_before_arrow.code, _.Modifiers_cannot_appear_here.code, _.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code, _.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code, _.Private_identifiers_are_not_allowed_outside_class_bodies.code, _.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, _.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code, _.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code, _.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code, _.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code, _.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code, _.Trailing_comma_not_allowed.code, _.Variable_declaration_list_cannot_be_empty.code, _._0_and_1_operations_cannot_be_mixed_without_parentheses.code, _._0_expected.code, _._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code, _._0_list_cannot_be_empty.code, _._0_modifier_already_seen.code, _._0_modifier_cannot_appear_on_a_constructor_declaration.code, _._0_modifier_cannot_appear_on_a_module_or_namespace_element.code, _._0_modifier_cannot_appear_on_a_parameter.code, _._0_modifier_cannot_appear_on_class_elements_of_this_kind.code, _._0_modifier_cannot_be_used_here.code, _._0_modifier_must_precede_1_modifier.code, _.const_declarations_can_only_be_declared_inside_a_block.code, _.const_declarations_must_be_initialized.code, _.extends_clause_already_seen.code, _.let_declarations_can_only_be_declared_inside_a_block.code, _.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code, _.Class_constructor_may_not_be_a_generator.code, _.Class_constructor_may_not_be_an_accessor.code, _.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code ]), eF = { diagnostics: nt, sourceMaps: void 0, emittedFiles: void 0, emitSkipped: !0 }; } }), M3e = L({ "src/compiler/builderStatePublic.ts"() { } }); function Ghe(e, t, r, i, o, s) { const c = [], { emitSkipped: f, diagnostics: d } = e.emit(t, y, i, r, o, s); return { outputFiles: c, emitSkipped: f, diagnostics: d }; function y(m, b, A) { c.push({ name: m, writeByteOrderMark: A, text: b }); } } var Wm, F3e = L({ "src/compiler/builderState.ts"() { Ra(), ((e) => { function t() { function ie(H, le, pe) { const ye = { getKeys: (Te) => le.get(Te), getValues: (Te) => H.get(Te), keys: () => H.keys(), deleteKey: (Te) => { (pe || (pe = /* @__PURE__ */ new Set())).add(Te); const ee = H.get(Te); return ee ? (ee.forEach(($e) => i(le, $e, Te)), H.delete(Te), !0) : !1; }, set: (Te, ee) => { pe == null || pe.delete(Te); const $e = H.get(Te); return H.set(Te, ee), $e == null || $e.forEach((Ge) => { ee.has(Ge) || i(le, Ge, Te); }), ee.forEach((Ge) => { $e != null && $e.has(Ge) || r(le, Ge, Te); }), ye; } }; return ye; } return ie(/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map(), void 0); } e.createManyToManyPathMap = t; function r(ie, H, le) { let pe = ie.get(H); pe || (pe = /* @__PURE__ */ new Set(), ie.set(H, pe)), pe.add(le); } function i(ie, H, le) { const pe = ie.get(H); return pe != null && pe.delete(le) ? (pe.size || ie.delete(H), !0) : !1; } function o(ie) { return _a(ie.declarations, (H) => { var le; return (le = Zn(H)) == null ? void 0 : le.resolvedPath; }); } function s(ie, H) { const le = ie.getSymbolAtLocation(H); return le && o(le); } function c(ie, H, le, pe) { return Hs(ie.getProjectReferenceRedirect(H) || H, le, pe); } function f(ie, H, le) { let pe; if (H.imports && H.imports.length > 0) { const $e = ie.getTypeChecker(); for (const Ge of H.imports) { const Fe = s($e, Ge); Fe == null || Fe.forEach(ee); } } const ye = fi(H.resolvedPath); if (H.referencedFiles && H.referencedFiles.length > 0) for (const $e of H.referencedFiles) { const Ge = c(ie, $e.fileName, ye, le); ee(Ge); } if (H.resolvedTypeReferenceDirectiveNames && H.resolvedTypeReferenceDirectiveNames.forEach(({ resolvedTypeReferenceDirective: $e }) => { if (!$e) return; const Ge = $e.resolvedFileName, Fe = c(ie, Ge, ye, le); ee(Fe); }), H.moduleAugmentations.length) { const $e = ie.getTypeChecker(); for (const Ge of H.moduleAugmentations) { if (!Go(Ge)) continue; const Fe = $e.getSymbolAtLocation(Ge); Fe && Te(Fe); } } for (const $e of ie.getTypeChecker().getAmbientModules()) $e.declarations && $e.declarations.length > 1 && Te($e); return pe; function Te($e) { if ($e.declarations) for (const Ge of $e.declarations) { const Fe = Zn(Ge); Fe && Fe !== H && ee(Fe.resolvedPath); } } function ee($e) { (pe || (pe = /* @__PURE__ */ new Set())).add($e); } } function d(ie, H) { return H && !H.referencedMap == !ie; } e.canReuseOldState = d; function y(ie, H, le) { var pe, ye, Te; const ee = /* @__PURE__ */ new Map(), $e = ie.getCompilerOptions(), Ge = Ws($e), Fe = $e.module !== 0 && !Ge ? t() : void 0, We = Fe ? t() : void 0, Re = d(Fe, H); ie.getTypeChecker(); for (const Pe of ie.getSourceFiles()) { const Ke = D.checkDefined(Pe.version, "Program intended to be used with Builder should have source files with versions set"), He = Re ? (pe = H.oldSignatures) == null ? void 0 : pe.get(Pe.resolvedPath) : void 0, Me = He === void 0 ? Re ? (ye = H.fileInfos.get(Pe.resolvedPath)) == null ? void 0 : ye.signature : void 0 : He || void 0; if (Fe) { const ot = f(ie, Pe, ie.getCanonicalFileName); if (ot && Fe.set(Pe.resolvedPath, ot), Re) { const At = (Te = H.oldExportedModulesMap) == null ? void 0 : Te.get(Pe.resolvedPath), bt = At === void 0 ? H.exportedModulesMap.getValues(Pe.resolvedPath) : At || void 0; bt && We.set(Pe.resolvedPath, bt); } } ee.set(Pe.resolvedPath, { version: Ke, signature: Me, affectsGlobalScope: Ge ? void 0 : P(Pe) || void 0, impliedFormat: Pe.impliedNodeFormat }); } return { fileInfos: ee, referencedMap: Fe, exportedModulesMap: We, useFileVersionAsSignature: !le && !Re }; } e.create = y; function m(ie) { ie.allFilesExcludingDefaultLibraryFile = void 0, ie.allFileNames = void 0; } e.releaseCache = m; function b(ie, H, le, pe, ye) { var Te, ee; const $e = A(ie, H, le, pe, ye); return (Te = ie.oldSignatures) == null || Te.clear(), (ee = ie.oldExportedModulesMap) == null || ee.clear(), $e; } e.getFilesAffectedBy = b; function A(ie, H, le, pe, ye) { const Te = H.getSourceFileByPath(le); return Te ? O(ie, H, Te, pe, ye) ? (ie.referencedMap ? ge : ne)(ie, H, Te, pe, ye) : [Te] : nt; } e.getFilesAffectedByWithOldState = A; function C(ie, H, le) { ie.fileInfos.get(le).signature = H, (ie.hasCalledUpdateShapeSignature || (ie.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(le); } e.updateSignatureOfFile = C; function I(ie, H, le, pe, ye) { ie.emit(H, (Te, ee, $e, Ge, Fe, We) => { D.assert(sd(Te), `File extension for signature expected to be dts: Got:: ${Te}`), ye(VX(ie, H, ee, pe, We), Fe); }, le, !0, void 0, !0); } e.computeDtsSignature = I; function O(ie, H, le, pe, ye, Te = ie.useFileVersionAsSignature) { var ee; if ((ee = ie.hasCalledUpdateShapeSignature) != null && ee.has(le.resolvedPath)) return !1; const $e = ie.fileInfos.get(le.resolvedPath), Ge = $e.signature; let Fe; if (!le.isDeclarationFile && !Te && I(H, le, pe, ye, (We, Re) => { Fe = We, Fe !== Ge && k(ie, le, Re[0].exportedModulesFromDeclarationEmit); }), Fe === void 0 && (Fe = le.version, ie.exportedModulesMap && Fe !== Ge)) { (ie.oldExportedModulesMap || (ie.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(le.resolvedPath, ie.exportedModulesMap.getValues(le.resolvedPath) || !1); const We = ie.referencedMap ? ie.referencedMap.getValues(le.resolvedPath) : void 0; We ? ie.exportedModulesMap.set(le.resolvedPath, We) : ie.exportedModulesMap.deleteKey(le.resolvedPath); } return (ie.oldSignatures || (ie.oldSignatures = /* @__PURE__ */ new Map())).set(le.resolvedPath, Ge || !1), (ie.hasCalledUpdateShapeSignature || (ie.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(le.resolvedPath), $e.signature = Fe, Fe !== Ge; } e.updateShapeSignature = O; function k(ie, H, le) { if (!ie.exportedModulesMap) return; (ie.oldExportedModulesMap || (ie.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(H.resolvedPath, ie.exportedModulesMap.getValues(H.resolvedPath) || !1); const pe = B(le); pe ? ie.exportedModulesMap.set(H.resolvedPath, pe) : ie.exportedModulesMap.deleteKey(H.resolvedPath); } e.updateExportedModules = k; function B(ie) { let H; return ie == null || ie.forEach((le) => o(le).forEach((pe) => (H ?? (H = /* @__PURE__ */ new Set())).add(pe))), H; } e.getExportedModules = B; function U(ie, H, le) { const pe = H.getCompilerOptions(); if (Ws(pe) || !ie.referencedMap || P(le)) return j(ie, H); const ye = /* @__PURE__ */ new Set(), Te = [le.resolvedPath]; for (; Te.length; ) { const ee = Te.pop(); if (!ye.has(ee)) { ye.add(ee); const $e = ie.referencedMap.getValues(ee); if ($e) for (const Ge of $e.keys()) Te.push(Ge); } } return ko(KD(ye.keys(), (ee) => { var $e, Ge; return (Ge = ($e = H.getSourceFileByPath(ee)) == null ? void 0 : $e.fileName) != null ? Ge : ee; })); } e.getAllDependencies = U; function j(ie, H) { if (!ie.allFileNames) { const le = H.getSourceFiles(); ie.allFileNames = le === nt ? nt : le.map((pe) => pe.fileName); } return ie.allFileNames; } function te(ie, H) { const le = ie.referencedMap.getKeys(H); return le ? ko(le.keys()) : []; } e.getReferencedByPaths = te; function X(ie) { for (const H of ie.statements) if (!DM(H)) return !1; return !0; } function Y(ie) { return kt(ie.moduleAugmentations, (H) => Hp(H.parent)); } function P(ie) { return Y(ie) || !ef(ie) && !l_(ie) && !X(ie); } function ue(ie, H, le) { if (ie.allFilesExcludingDefaultLibraryFile) return ie.allFilesExcludingDefaultLibraryFile; let pe; le && ye(le); for (const Te of H.getSourceFiles()) Te !== le && ye(Te); return ie.allFilesExcludingDefaultLibraryFile = pe || nt, ie.allFilesExcludingDefaultLibraryFile; function ye(Te) { H.isSourceFileDefaultLibrary(Te) || (pe || (pe = [])).push(Te); } } e.getAllFilesExcludingDefaultLibraryFile = ue; function ne(ie, H, le) { const pe = H.getCompilerOptions(); return pe && Ws(pe) ? [le] : ue(ie, H, le); } function ge(ie, H, le, pe, ye) { if (P(le)) return ue(ie, H, le); const Te = H.getCompilerOptions(); if (Te && (F_(Te) || Ws(Te))) return [le]; const ee = /* @__PURE__ */ new Map(); ee.set(le.resolvedPath, le); const $e = te(ie, le.resolvedPath); for (; $e.length > 0; ) { const Ge = $e.pop(); if (!ee.has(Ge)) { const Fe = H.getSourceFileByPath(Ge); ee.set(Ge, Fe), Fe && O(ie, H, Fe, pe, ye) && $e.push(...te(ie, Fe.resolvedPath)); } } return ko(KD(ee.values(), (Ge) => Ge)); } })(Wm || (Wm = {})); } }); function Uv(e) { let t = 1; return e.sourceMap && (t = t | 2), e.inlineSourceMap && (t = t | 4), G_(e) && (t = t | 8), e.declarationMap && (t = t | 16), e.emitDeclarationOnly && (t = t & 24), t; } function RC(e, t) { const r = t && (iy(t) ? t : Uv(t)), i = iy(e) ? e : Uv(e); if (r === i) return 0; if (!r || !i) return i; const o = r ^ i; let s = 0; return o & 7 && (s = i & 7), o & 24 && (s = s | i & 24), s; } function B3e(e, t) { return e === t || e !== void 0 && t !== void 0 && e.size === t.size && !EI(e, (r) => !t.has(r)); } function G3e(e, t) { var r, i; const o = Wm.create(e, t, !1); o.program = e; const s = e.getCompilerOptions(); o.compilerOptions = s; const c = Ws(s); c ? s.composite && (t != null && t.outSignature) && c === Ws(t == null ? void 0 : t.compilerOptions) && (o.outSignature = t.outSignature && Vhe(s, t.compilerOptions, t.outSignature)) : o.semanticDiagnosticsPerFile = /* @__PURE__ */ new Map(), o.changedFilesSet = /* @__PURE__ */ new Set(), o.latestChangedDtsFile = s.composite ? t == null ? void 0 : t.latestChangedDtsFile : void 0; const f = Wm.canReuseOldState(o.referencedMap, t), d = f ? t.compilerOptions : void 0, y = f && t.semanticDiagnosticsPerFile && !!o.semanticDiagnosticsPerFile && !_de(s, d), m = s.composite && (t == null ? void 0 : t.emitSignatures) && !c && !mde(s, t.compilerOptions); f ? ((r = t.changedFilesSet) == null || r.forEach((O) => o.changedFilesSet.add(O)), !c && ((i = t.affectedFilesPendingEmit) != null && i.size) && (o.affectedFilesPendingEmit = new Map(t.affectedFilesPendingEmit), o.seenAffectedFiles = /* @__PURE__ */ new Set()), o.programEmitPending = t.programEmitPending) : o.buildInfoEmitPending = !0; const b = o.referencedMap, A = f ? t.referencedMap : void 0, C = y && !s.skipLibCheck == !d.skipLibCheck, I = C && !s.skipDefaultLibCheck == !d.skipDefaultLibCheck; if (o.fileInfos.forEach((O, k) => { var B; let U, j; if (!f || !(U = t.fileInfos.get(k)) || U.version !== O.version || U.impliedFormat !== O.impliedFormat || !B3e(j = b && b.getValues(k), A && A.getValues(k)) || j && EI(j, (te) => !o.fileInfos.has(te) && t.fileInfos.has(te))) Uhe(o, k); else if (y) { const te = e.getSourceFileByPath(k); if (te.isDeclarationFile && !C || te.hasNoDefaultLib && !I) return; const X = t.semanticDiagnosticsPerFile.get(k); X && (o.semanticDiagnosticsPerFile.set(k, t.hasReusableDiagnostic ? U3e(X, e) : X), o.semanticDiagnosticsFromOldState || (o.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set()), o.semanticDiagnosticsFromOldState.add(k)); } if (m) { const te = t.emitSignatures.get(k); te && ((B = o.emitSignatures) != null ? B : o.emitSignatures = /* @__PURE__ */ new Map()).set(k, Vhe(s, t.compilerOptions, te)); } }), f && Zd(t.fileInfos, (O, k) => o.fileInfos.has(k) ? !1 : c || O.affectsGlobalScope ? !0 : (o.buildInfoEmitPending = !0, !1))) Wm.getAllFilesExcludingDefaultLibraryFile(o, e, void 0).forEach((O) => Uhe(o, O.resolvedPath)); else if (d) { const O = pde(s, d) ? Uv(s) : RC(s, d); O !== 0 && (c ? o.programEmitPending = o.programEmitPending ? o.programEmitPending | O : O : (e.getSourceFiles().forEach((k) => { o.changedFilesSet.has(k.resolvedPath) || HX(o, k.resolvedPath, O); }), D.assert(!o.seenAffectedFiles || !o.seenAffectedFiles.size), o.seenAffectedFiles = o.seenAffectedFiles || /* @__PURE__ */ new Set(), o.buildInfoEmitPending = !0)); } return c && !o.changedFilesSet.size && (f && (o.bundle = t.bundle), kt(e.getProjectReferences(), (O) => !!O.prepend) && (o.programEmitPending = Uv(s))), o; } function Uhe(e, t) { e.changedFilesSet.add(t), e.buildInfoEmitPending = !0, e.programEmitPending = void 0; } function Vhe(e, t, r) { return !!e.declarationMap == !!t.declarationMap ? r : Va(r) ? [r] : r[0]; } function U3e(e, t) { if (!e.length) return nt; let r; return e.map((o) => { const s = jhe(o, t, i); s.reportsUnnecessary = o.reportsUnnecessary, s.reportsDeprecated = o.reportDeprecated, s.source = o.source, s.skippedOn = o.skippedOn; const { relatedInformation: c } = o; return s.relatedInformation = c ? c.length ? c.map((f) => jhe(f, t, i)) : [] : void 0, s; }); function i(o) { return r ?? (r = fi(Na(xy(t.getCompilerOptions()), t.getCurrentDirectory()))), Hs(o, r, t.getCanonicalFileName); } } function jhe(e, t, r) { const { file: i } = e; return { ...e, file: i ? t.getSourceFileByPath(r(i)) : void 0 }; } function V3e(e) { Wm.releaseCache(e), e.program = void 0; } function j3e(e) { const t = Ws(e.compilerOptions); return D.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 }; } function H3e(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, t.changedFilesSet && (e.changedFilesSet = t.changedFilesSet); } function Hhe(e, t) { D.assert(!t || !e.affectedFiles || e.affectedFiles[e.affectedFilesIndex - 1] !== t || !e.semanticDiagnosticsPerFile.has(t.resolvedPath)); } function Whe(e, t, r) { for (var i, o; ; ) { const { affectedFiles: s } = e; if (s) { const y = e.seenAffectedFiles; let m = e.affectedFilesIndex; for (; m < s.length; ) { const b = s[m]; if (!y.has(b.resolvedPath)) return e.affectedFilesIndex = m, HX(e, b.resolvedPath, Uv(e.compilerOptions)), q3e(e, b, t, r), b; m++; } e.changedFilesSet.delete(e.currentChangedFilePath), e.currentChangedFilePath = void 0, (i = e.oldSignatures) == null || i.clear(), (o = e.oldExportedModulesMap) == null || o.clear(), e.affectedFiles = void 0; } const c = e.changedFilesSet.keys().next(); if (c.done) return; const f = D.checkDefined(e.program), d = f.getCompilerOptions(); if (Ws(d)) return D.assert(!e.semanticDiagnosticsPerFile), f; e.affectedFiles = Wm.getFilesAffectedByWithOldState(e, f, c.value, t, r), e.currentChangedFilePath = c.value, e.affectedFilesIndex = 0, e.seenAffectedFiles || (e.seenAffectedFiles = /* @__PURE__ */ new Set()); } } function W3e(e, t) { var r; if ((r = e.affectedFilesPendingEmit) != null && r.size) { if (!t) return e.affectedFilesPendingEmit = void 0; e.affectedFilesPendingEmit.forEach((i, o) => { const s = i & 7; s ? e.affectedFilesPendingEmit.set(o, s) : e.affectedFilesPendingEmit.delete(o); }); } } function z3e(e, t) { var r; if ((r = e.affectedFilesPendingEmit) != null && r.size) return Zd(e.affectedFilesPendingEmit, (i, o) => { var s; const c = e.program.getSourceFileByPath(o); if (!c || !tx(c, e.program)) { e.affectedFilesPendingEmit.delete(o); return; } const f = (s = e.seenEmittedFiles) == null ? void 0 : s.get(c.resolvedPath); let d = RC(i, f); if (t && (d = d & 24), d) return { affectedFile: c, emitKind: d }; }); } function zhe(e) { if (!e.cleanedDiagnosticsOfLibFiles) { e.cleanedDiagnosticsOfLibFiles = !0; const t = D.checkDefined(e.program), r = t.getCompilerOptions(); Ye(t.getSourceFiles(), (i) => t.isSourceFileDefaultLibrary(i) && !nk(i, r, t) && BX(e, i.resolvedPath)); } } function q3e(e, t, r, i) { if (BX(e, t.resolvedPath), e.allFilesExcludingDefaultLibraryFile === e.affectedFiles) { zhe(e), Wm.updateShapeSignature(e, D.checkDefined(e.program), t, r, i); return; } e.compilerOptions.assumeChangesOnlyAffectDirectDependencies || J3e(e, t, r, i); } function tF(e, t, r, i) { if (BX(e, t), !e.changedFilesSet.has(t)) { const o = D.checkDefined(e.program), s = o.getSourceFileByPath(t); s && (Wm.updateShapeSignature(e, o, s, r, i, !0), G_(e.compilerOptions) && HX(e, t, e.compilerOptions.declarationMap ? 24 : 8)); } } function BX(e, t) { return e.semanticDiagnosticsFromOldState ? (e.semanticDiagnosticsFromOldState.delete(t), e.semanticDiagnosticsPerFile.delete(t), !e.semanticDiagnosticsFromOldState.size) : !0; } function qhe(e, t) { const r = D.checkDefined(e.oldSignatures).get(t) || void 0; return D.checkDefined(e.fileInfos.get(t)).signature !== r; } function GX(e, t, r, i) { var o; return (o = e.fileInfos.get(t)) != null && o.affectsGlobalScope ? (Wm.getAllFilesExcludingDefaultLibraryFile(e, e.program, void 0).forEach((s) => tF(e, s.resolvedPath, r, i)), zhe(e), !0) : !1; } function J3e(e, t, r, i) { var o; if (!e.exportedModulesMap || !e.changedFilesSet.has(t.resolvedPath) || !qhe(e, t.resolvedPath)) return; if (F_(e.compilerOptions)) { const c = /* @__PURE__ */ new Map(); c.set(t.resolvedPath, !0); const f = Wm.getReferencedByPaths(e, t.resolvedPath); for (; f.length > 0; ) { const d = f.pop(); if (!c.has(d)) { if (c.set(d, !0), GX(e, d, r, i)) return; if (tF(e, d, r, i), qhe(e, d)) { const y = D.checkDefined(e.program).getSourceFileByPath(d); f.push(...Wm.getReferencedByPaths(e, y.resolvedPath)); } } } } const s = /* @__PURE__ */ new Set(); (o = e.exportedModulesMap.getKeys(t.resolvedPath)) == null || o.forEach((c) => { if (GX(e, c, r, i)) return !0; const f = e.referencedMap.getKeys(c); return f && EI(f, (d) => Jhe(e, d, s, r, i)); }); } function Jhe(e, t, r, i, o) { var s, c; if (Yb(r, t)) { if (GX(e, t, i, o)) return !0; tF(e, t, i, o), (s = e.exportedModulesMap.getKeys(t)) == null || s.forEach((f) => Jhe(e, f, r, i, o)), (c = e.referencedMap.getKeys(t)) == null || c.forEach((f) => !r.has(f) && tF(e, f, i, o)); } } function UX(e, t, r) { return ha(K3e(e, t, r), D.checkDefined(e.program).getProgramDiagnostics(t)); } function K3e(e, t, r) { const i = t.resolvedPath; if (e.semanticDiagnosticsPerFile) { const s = e.semanticDiagnosticsPerFile.get(i); if (s) return J5(s, e.compilerOptions); } const o = D.checkDefined(e.program).getBindAndCheckDiagnostics(t, r); return e.semanticDiagnosticsPerFile && e.semanticDiagnosticsPerFile.set(i, o), J5(o, e.compilerOptions); } function Khe(e) { return !!Ws(e.options || {}); } function X3e(e, t) { var r, i, o; const s = D.checkDefined(e.program).getCurrentDirectory(), c = fi(Na(xy(e.compilerOptions), s)), f = e.latestChangedDtsFile ? X(e.latestChangedDtsFile) : void 0, d = [], y = /* @__PURE__ */ new Map(), m = []; if (Ws(e.compilerOptions)) { const ie = ko(e.fileInfos.entries(), ([ee, $e]) => { const Ge = P(ee); return ne(ee, Ge), $e.impliedFormat ? { version: $e.version, impliedFormat: $e.impliedFormat, signature: void 0, affectsGlobalScope: void 0 } : $e.version; }), H = { fileNames: d, fileInfos: ie, root: m, options: ge(e.compilerOptions), outSignature: e.outSignature, latestChangedDtsFile: f, pendingEmit: e.programEmitPending ? e.programEmitPending === Uv(e.compilerOptions) ? !1 : e.programEmitPending : void 0 }, { js: le, dts: pe, commonSourceDirectory: ye, sourceFiles: Te } = t; return e.bundle = t = { commonSourceDirectory: ye, sourceFiles: Te, js: le || (e.compilerOptions.emitDeclarationOnly || (r = e.bundle) == null ? void 0 : r.js), dts: pe || (G_(e.compilerOptions) ? (i = e.bundle) == null ? void 0 : i.dts : void 0) }, v8(H, t); } let b, A, C; const I = ko(e.fileInfos.entries(), ([ie, H]) => { var le, pe; const ye = P(ie); ne(ie, ye), D.assert(d[ye - 1] === Y(ie)); const Te = (le = e.oldSignatures) == null ? void 0 : le.get(ie), ee = Te !== void 0 ? Te || void 0 : H.signature; if (e.compilerOptions.composite) { const $e = e.program.getSourceFileByPath(ie); if (!l_($e) && tx($e, e.program)) { const Ge = (pe = e.emitSignatures) == null ? void 0 : pe.get(ie); Ge !== ee && (C || (C = [])).push(Ge === void 0 ? ye : [ye, !Va(Ge) && Ge[0] === ee ? nt : Ge]); } } return H.version === ee ? H.affectsGlobalScope || H.impliedFormat ? { version: H.version, signature: void 0, affectsGlobalScope: H.affectsGlobalScope, impliedFormat: H.impliedFormat } : H.version : ee !== void 0 ? Te === void 0 ? H : { version: H.version, signature: ee, affectsGlobalScope: H.affectsGlobalScope, impliedFormat: H.impliedFormat } : { version: H.version, signature: !1, affectsGlobalScope: H.affectsGlobalScope, impliedFormat: H.impliedFormat }; }); let O; e.referencedMap && (O = ko(e.referencedMap.keys()).sort(Lu).map((ie) => [ P(ie), ue(e.referencedMap.getValues(ie)) ])); let k; e.exportedModulesMap && (k = _a(ko(e.exportedModulesMap.keys()).sort(Lu), (ie) => { var H; const le = (H = e.oldExportedModulesMap) == null ? void 0 : H.get(ie); if (le === void 0) return [P(ie), ue(e.exportedModulesMap.getValues(ie))]; if (le) return [P(ie), ue(le)]; })); let B; if (e.semanticDiagnosticsPerFile) for (const ie of ko(e.semanticDiagnosticsPerFile.keys()).sort(Lu)) { const H = e.semanticDiagnosticsPerFile.get(ie); (B || (B = [])).push(H.length ? [ P(ie), $3e(H, Y) ] : P(ie)); } let U; if ((o = e.affectedFilesPendingEmit) != null && o.size) { const ie = Uv(e.compilerOptions), H = /* @__PURE__ */ new Set(); for (const le of ko(e.affectedFilesPendingEmit.keys()).sort(Lu)) if (Yb(H, le)) { const pe = e.program.getSourceFileByPath(le); if (!pe || !tx(pe, e.program)) continue; const ye = P(le), Te = e.affectedFilesPendingEmit.get(le); (U || (U = [])).push(Te === ie ? ye : Te === 8 ? [ye] : [ye, Te]); } } let j; if (e.changedFilesSet.size) for (const ie of ko(e.changedFilesSet.keys()).sort(Lu)) (j || (j = [])).push(P(ie)); const te = { fileNames: d, fileInfos: I, root: m, options: ge(e.compilerOptions), fileIdsList: b, referencedMap: O, exportedModulesMap: k, semanticDiagnosticsPerFile: B, affectedFilesPendingEmit: U, changeFileSet: j, emitSignatures: C, latestChangedDtsFile: f }; return v8(te, t); function X(ie) { return Y(Na(ie, s)); } function Y(ie) { return o1(Am(c, ie, e.program.getCanonicalFileName)); } function P(ie) { let H = y.get(ie); return H === void 0 && (d.push(Y(ie)), y.set(ie, H = d.length)), H; } function ue(ie) { const H = ko(ie.keys(), P).sort(js), le = H.join(); let pe = A == null ? void 0 : A.get(le); return pe === void 0 && ((b || (b = [])).push(H), (A || (A = /* @__PURE__ */ new Map())).set(le, pe = b.length)), pe; } function ne(ie, H) { const le = e.program.getSourceFile(ie); if (!e.program.getFileIncludeReasons().get(le.path).some((ee) => ee.kind === 0)) return; if (!m.length) return m.push(H); const pe = m[m.length - 1], ye = Ga(pe); if (ye && pe[1] === H - 1) return pe[1] = H; if (ye || m.length === 1 || pe !== H - 1) return m.push(H); const Te = m[m.length - 2]; return !iy(Te) || Te !== pe - 1 ? m.push(H) : (m[m.length - 2] = [Te, H], m.length = m.length - 1); } function ge(ie) { let H; const { optionsNameMap: le } = AC(); for (const pe of Xh(ie).sort(Lu)) { const ye = le.get(pe.toLowerCase()); ye != null && ye.affectsBuildInfo && ((H || (H = {}))[pe] = Y3e(ye, ie[pe], X)); } return H; } } function Y3e(e, t, r) { if (e) { if (D.assert(e.type !== "listOrElement"), e.type === "list") { const i = t; if (e.element.isFilePath && i.length) return i.map(r); } else if (e.isFilePath) return r(t); } return t; } function $3e(e, t) { return D.assert(!!e.length), e.map((r) => { const i = Xhe(r, t); i.reportsUnnecessary = r.reportsUnnecessary, i.reportDeprecated = r.reportsDeprecated, i.source = r.source, i.skippedOn = r.skippedOn; const { relatedInformation: o } = r; return i.relatedInformation = o ? o.length ? o.map((s) => Xhe(s, t)) : [] : void 0, i; }); } function Xhe(e, t) { const { file: r } = e; return { ...e, file: r ? t(r.resolvedPath) : void 0 }; } function nF(e, t, r, i, o, s) { let c, f, d; return e === void 0 ? (D.assert(t === void 0), c = r, d = i, D.assert(!!d), f = d.getProgram()) : Ga(e) ? (d = i, f = q5({ rootNames: e, options: t, host: r, oldProgram: d && d.getProgramOrUndefined(), configFileParsingDiagnostics: o, projectReferences: s }), c = r) : (f = e, c = t, d = r, o = i), { host: c, newProgram: f, oldProgram: d, configFileParsingDiagnostics: o || nt }; } function Yhe(e, t) { return (t == null ? void 0 : t.sourceMapUrlPos) !== void 0 ? e.substring(0, t.sourceMapUrlPos) : e; } function VX(e, t, r, i, o) { var s, c; r = Yhe(r, o); let f; return (s = o == null ? void 0 : o.diagnostics) != null && s.length && (r += o.diagnostics.map((m) => `${y(m)}${uR[m.category]}${m.code}: ${d(m.messageText)}`).join(` `)), ((c = i.createHash) != null ? c : _R)(r); function d(m) { return Va(m) ? m : m === void 0 ? "" : m.next ? m.messageText + m.next.map(d).join(` `) : m.messageText; } function y(m) { return m.file.resolvedPath === t.resolvedPath ? `(${m.start},${m.length})` : (f === void 0 && (f = fi(t.resolvedPath)), `${o1(Am(f, m.file.resolvedPath, e.getCanonicalFileName))}(${m.start},${m.length})`); } } function PT(e, t, r) { var i; return ((i = t.createHash) != null ? i : _R)(Yhe(e, r)); } function jX(e, { newProgram: t, host: r, oldProgram: i, configFileParsingDiagnostics: o }) { let s = i && i.getState(); if (s && t === s.program && o === t.getConfigFileParsingDiagnostics()) return t = void 0, s = void 0, i; const c = G3e(t, s); t.getBuildInfo = (O) => X3e(c, O), t = void 0, i = void 0, s = void 0; const f = () => c, d = zX(f, o); return d.getState = f, d.saveEmitState = () => j3e(c), d.restoreEmitState = (O) => H3e(c, O), d.hasChangedEmitSignature = () => !!c.hasChangedEmitSignature, d.getAllDependencies = (O) => Wm.getAllDependencies(c, D.checkDefined(c.program), O), d.getSemanticDiagnostics = I, d.emit = A, d.releaseProgram = () => V3e(c), e === 0 ? d.getSemanticDiagnosticsOfNextAffectedFile = C : e === 1 ? (d.getSemanticDiagnosticsOfNextAffectedFile = C, d.emitNextAffectedFile = m, d.emitBuildInfo = y) : ja(), d; function y(O, k) { if (c.buildInfoEmitPending) { const B = D.checkDefined(c.program).emitBuildInfo(O || Fo(r, r.writeFile), k); return c.buildInfoEmitPending = !1, B; } return eF; } function m(O, k, B, U) { var j, te, X, Y, P; let ue = Whe(c, k, r); const ne = Uv(c.compilerOptions); let ge = B ? ne & 24 : ne; if (!ue) if (Ws(c.compilerOptions)) { if (!c.programEmitPending || (ge = c.programEmitPending, B && (ge = ge & 24), !ge)) return; ue = c.program; } else { const le = z3e(c, B); if (!le) { if (!c.buildInfoEmitPending) return; const pe = c.program, ye = pe.emitBuildInfo(O || Fo(r, r.writeFile), k); return c.buildInfoEmitPending = !1, { result: ye, affected: pe }; } ({ affectedFile: ue, emitKind: ge } = le); } let ie; ge & 7 && (ie = 0), ge & 24 && (ie = ie === void 0 ? 1 : void 0), ue === c.program && (c.programEmitPending = c.changedFilesSet.size ? RC(ne, ge) : c.programEmitPending ? RC(c.programEmitPending, ge) : void 0); const H = c.program.emit(ue === c.program ? void 0 : ue, b(O, U), k, ie, U); if (ue !== c.program) { const le = ue; c.seenAffectedFiles.add(le.resolvedPath), c.affectedFilesIndex !== void 0 && c.affectedFilesIndex++, c.buildInfoEmitPending = !0; const pe = ((j = c.seenEmittedFiles) == null ? void 0 : j.get(le.resolvedPath)) || 0; ((te = c.seenEmittedFiles) != null ? te : c.seenEmittedFiles = /* @__PURE__ */ new Map()).set(le.resolvedPath, ge | pe); const ye = ((X = c.affectedFilesPendingEmit) == null ? void 0 : X.get(le.resolvedPath)) || ne, Te = RC(ye, ge | pe); Te ? ((Y = c.affectedFilesPendingEmit) != null ? Y : c.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(le.resolvedPath, Te) : (P = c.affectedFilesPendingEmit) == null || P.delete(le.resolvedPath); } else c.changedFilesSet.clear(); return { result: H, affected: ue }; } function b(O, k) { return G_(c.compilerOptions) ? (B, U, j, te, X, Y) => { var P, ue, ne, ge, ie, H, le; if (sd(B)) if (Ws(c.compilerOptions)) { if (c.compilerOptions.composite) { const ye = pe(c.outSignature, void 0); if (!ye) return; c.outSignature = ye; } } else { D.assert((X == null ? void 0 : X.length) === 1); let ye; if (!k) { const Te = X[0], ee = c.fileInfos.get(Te.resolvedPath); if (ee.signature === Te.version) { const $e = VX(c.program, Te, U, r, Y); (P = Y == null ? void 0 : Y.diagnostics) != null && P.length || (ye = $e), $e !== Te.version && (r.storeFilesChangingSignatureDuringEmit && ((ue = c.filesChangingSignature) != null ? ue : c.filesChangingSignature = /* @__PURE__ */ new Set()).add(Te.resolvedPath), c.exportedModulesMap && Wm.updateExportedModules(c, Te, Te.exportedModulesFromDeclarationEmit), c.affectedFiles ? (((ne = c.oldSignatures) == null ? void 0 : ne.get(Te.resolvedPath)) === void 0 && ((ge = c.oldSignatures) != null ? ge : c.oldSignatures = /* @__PURE__ */ new Map()).set(Te.resolvedPath, ee.signature || !1), ee.signature = $e) : (ee.signature = $e, (ie = c.oldExportedModulesMap) == null || ie.clear())); } } if (c.compilerOptions.composite) { const Te = X[0].resolvedPath; if (ye = pe((H = c.emitSignatures) == null ? void 0 : H.get(Te), ye), !ye) return; ((le = c.emitSignatures) != null ? le : c.emitSignatures = /* @__PURE__ */ new Map()).set(Te, ye); } } O ? O(B, U, j, te, X, Y) : r.writeFile ? r.writeFile(B, U, j, te, X, Y) : c.program.writeFile(B, U, j, te, X, Y); function pe(ye, Te) { const ee = !ye || Va(ye) ? ye : ye[0]; if (Te ?? (Te = PT(U, r, Y)), Te === ee) { if (ye === ee) return; Y ? Y.differsOnlyInMap = !0 : Y = { differsOnlyInMap: !0 }; } else c.hasChangedEmitSignature = !0, c.latestChangedDtsFile = B; return Te; } } : O || Fo(r, r.writeFile); } function A(O, k, B, U, j) { e === 1 && Hhe(c, O); const te = wX(d, O, k, B); if (te) return te; if (!O) if (e === 1) { let X = [], Y = !1, P, ue = [], ne; for (; ne = m(k, B, U, j); ) Y = Y || ne.result.emitSkipped, P = yi(P, ne.result.diagnostics), ue = yi(ue, ne.result.emittedFiles), X = yi(X, ne.result.sourceMaps); return { emitSkipped: Y, diagnostics: P || nt, emittedFiles: ue, sourceMaps: X }; } else W3e(c, U); return D.checkDefined(c.program).emit(O, b(k, j), B, U, j); } function C(O, k) { for (; ; ) { const B = Whe(c, O, r); let U; if (B) if (B !== c.program) { const j = B; if ((!k || !k(j)) && (U = UX(c, j, O)), c.seenAffectedFiles.add(j.resolvedPath), c.affectedFilesIndex++, c.buildInfoEmitPending = !0, !U) continue; } else U = c.program.getSemanticDiagnostics(void 0, O), c.changedFilesSet.clear(), c.programEmitPending = Uv(c.compilerOptions); else return; return { result: U, affected: B }; } } function I(O, k) { Hhe(c, O); const B = D.checkDefined(c.program).getCompilerOptions(); if (Ws(B)) return D.assert(!c.semanticDiagnosticsPerFile), D.checkDefined(c.program).getSemanticDiagnostics(O, k); if (O) return UX(c, O, k); for (; C(k); ) ; let U; for (const j of D.checkDefined(c.program).getSourceFiles()) U = yi(U, UX(c, j, k)); return U || nt; } } function HX(e, t, r) { var i, o; const s = ((i = e.affectedFilesPendingEmit) == null ? void 0 : i.get(t)) || 0; ((o = e.affectedFilesPendingEmit) != null ? o : e.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(t, s | r); } function $he(e) { return Va(e) ? { version: e, signature: e, affectsGlobalScope: void 0, impliedFormat: void 0 } : Va(e.signature) ? e : { version: e.version, signature: e.signature === !1 ? void 0 : e.version, affectsGlobalScope: e.affectsGlobalScope, impliedFormat: e.impliedFormat }; } function Qhe(e, t) { return iy(e) ? t : e[1] || 8; } function Zhe(e, t) { return e || Uv(t || {}); } function ege(e, t, r) { var i, o, s, c; const f = e.program, d = fi(Na(t, r.getCurrentDirectory())), y = $c(r.useCaseSensitiveFileNames()); let m; const b = (i = f.fileNames) == null ? void 0 : i.map(I); let A; const C = f.latestChangedDtsFile ? O(f.latestChangedDtsFile) : void 0; if (Khe(f)) { const j = /* @__PURE__ */ new Map(); f.fileInfos.forEach((te, X) => { const Y = k(X + 1); j.set(Y, Va(te) ? { version: te, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : te); }), m = { fileInfos: j, compilerOptions: f.options ? jJ(f.options, O) : {}, latestChangedDtsFile: C, outSignature: f.outSignature, programEmitPending: f.pendingEmit === void 0 ? void 0 : Zhe(f.pendingEmit, f.options), bundle: e.bundle }; } else { A = (o = f.fileIdsList) == null ? void 0 : o.map((Y) => new Set(Y.map(k))); const j = /* @__PURE__ */ new Map(), te = (s = f.options) != null && s.composite && !Ws(f.options) ? /* @__PURE__ */ new Map() : void 0; f.fileInfos.forEach((Y, P) => { const ue = k(P + 1), ne = $he(Y); j.set(ue, ne), te && ne.signature && te.set(ue, ne.signature); }), (c = f.emitSignatures) == null || c.forEach((Y) => { if (iy(Y)) te.delete(k(Y)); else { const P = k(Y[0]); te.set(P, !Va(Y[1]) && !Y[1].length ? [te.get(P)] : Y[1]); } }); const X = f.affectedFilesPendingEmit ? Uv(f.options || {}) : void 0; m = { fileInfos: j, compilerOptions: f.options ? jJ(f.options, O) : {}, referencedMap: U(f.referencedMap), exportedModulesMap: U(f.exportedModulesMap), semanticDiagnosticsPerFile: f.semanticDiagnosticsPerFile && $b(f.semanticDiagnosticsPerFile, (Y) => k(iy(Y) ? Y : Y[0]), (Y) => iy(Y) ? nt : Y[1]), hasReusableDiagnostic: !0, affectedFilesPendingEmit: f.affectedFilesPendingEmit && $b(f.affectedFilesPendingEmit, (Y) => k(iy(Y) ? Y : Y[0]), (Y) => Qhe(Y, X)), changedFilesSet: new Set(rn(f.changeFileSet, k)), latestChangedDtsFile: C, emitSignatures: te != null && te.size ? te : void 0 }; } return { getState: () => m, saveEmitState: io, restoreEmitState: io, getProgram: ja, getProgramOrUndefined: R0, releaseProgram: io, getCompilerOptions: () => m.compilerOptions, getSourceFile: ja, getSourceFiles: ja, getOptionsDiagnostics: ja, getGlobalDiagnostics: ja, getConfigFileParsingDiagnostics: ja, getSyntacticDiagnostics: ja, getDeclarationDiagnostics: ja, getSemanticDiagnostics: ja, emit: ja, getAllDependencies: ja, getCurrentDirectory: ja, emitNextAffectedFile: ja, getSemanticDiagnosticsOfNextAffectedFile: ja, emitBuildInfo: ja, close: io, hasChangedEmitSignature: Qb }; function I(j) { return Hs(j, d, y); } function O(j) { return Na(j, d); } function k(j) { return b[j - 1]; } function B(j) { return A[j - 1]; } function U(j) { if (!j) return; const te = Wm.createManyToManyPathMap(); return j.forEach(([X, Y]) => te.set(k(X), B(Y))), te; } } function WX(e, t, r) { const i = fi(Na(t, r.getCurrentDirectory())), o = $c(r.useCaseSensitiveFileNames()), s = /* @__PURE__ */ new Map(); let c = 0; const f = []; return e.fileInfos.forEach((d, y) => { const m = Hs(e.fileNames[y], i, o), b = Va(d) ? d : d.version; if (s.set(m, b), c < e.root.length) { const A = e.root[c], C = y + 1; Ga(A) ? A[0] <= C && C <= A[1] && (f.push(m), A[1] === C && c++) : A === C && (f.push(m), c++); } }), { fileInfos: s, roots: f }; } function zX(e, t) { return { getState: ja, saveEmitState: io, restoreEmitState: io, getProgram: r, getProgramOrUndefined: () => e().program, releaseProgram: () => e().program = void 0, getCompilerOptions: () => e().compilerOptions, getSourceFile: (i) => r().getSourceFile(i), getSourceFiles: () => r().getSourceFiles(), getOptionsDiagnostics: (i) => r().getOptionsDiagnostics(i), getGlobalDiagnostics: (i) => r().getGlobalDiagnostics(i), getConfigFileParsingDiagnostics: () => t, getSyntacticDiagnostics: (i, o) => r().getSyntacticDiagnostics(i, o), getDeclarationDiagnostics: (i, o) => r().getDeclarationDiagnostics(i, o), getSemanticDiagnostics: (i, o) => r().getSemanticDiagnostics(i, o), emit: (i, o, s, c, f) => r().emit(i, o, s, c, f), emitBuildInfo: (i, o) => r().emitBuildInfo(i, o), getAllDependencies: ja, getCurrentDirectory: () => r().getCurrentDirectory(), close: io }; function r() { return D.checkDefined(e().program); } } var qX, JX, Q3e = L({ "src/compiler/builder.ts"() { Ra(), Ra(), qX = /* @__PURE__ */ ((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))(qX || {}), JX = /* @__PURE__ */ ((e) => (e[e.SemanticDiagnosticsBuilderProgram = 0] = "SemanticDiagnosticsBuilderProgram", e[e.EmitAndSemanticDiagnosticsBuilderProgram = 1] = "EmitAndSemanticDiagnosticsBuilderProgram", e))(JX || {}); } }); function Z3e(e, t, r, i, o, s) { return jX(0, nF(e, t, r, i, o, s)); } function KX(e, t, r, i, o, s) { return jX(1, nF(e, t, r, i, o, s)); } function e7e(e, t, r, i, o, s) { const { newProgram: c, configFileParsingDiagnostics: f } = nF(e, t, r, i, o, s); return zX(() => ({ program: c, compilerOptions: c.getCompilerOptions() }), f); } var t7e = L({ "src/compiler/builderPublic.ts"() { Ra(); } }); function XX(e) { return tc(e, "/node_modules/.staging") ? lA(e, "/.staging") : kt(yR, (t) => lu(e, t)) ? void 0 : e; } function L8(e) { const t = Vp(e); if (e.length === t) return !1; let r = e.indexOf(Os, t); if (r === -1) return !1; let i = e.substring(t, r + 1); const o = t > 1 || e.charCodeAt(0) !== 47; if (o && e.search(/[a-zA-Z]:/) !== 0 && i.search(/[a-zA-Z]\$\//) === 0) { if (r = e.indexOf(Os, r + 1), r === -1) return !1; i = e.substring(t + i.length, r + 1); } if (o && i.search(/users\//i) !== 0) return !0; for (let s = r + 1, c = 2; c > 0; c--) if (s = e.indexOf(Os, s) + 1, s === 0) return !1; return !0; } function tge(e, t, r) { let i, o, s; const c = o_(), f = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(); let b = !1, A, C, I, O, k; const B = hd(() => e.getCurrentDirectory()), U = e.getCachedDirectoryStructureHost(), j = /* @__PURE__ */ new Map(), te = s5(B(), e.getCanonicalFileName, e.getCompilationSettings()), X = /* @__PURE__ */ new Map(), Y = l5(B(), e.getCanonicalFileName, e.getCompilationSettings(), te.getPackageJsonInfoCache()), P = [".ts", ".tsx", ".js", ".jsx", ".json"], ue = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ new Map(), ie = t && qE(Na(t, B())), H = ie && e.toPath(ie), le = H !== void 0 ? H.split(Os).length : 0, pe = /* @__PURE__ */ new Map(); return { getModuleResolutionCache: () => te, startRecordingFilesWithChangedResolutions: Ge, finishRecordingFilesWithChangedResolutions: Fe, startCachingPerDirectoryResolution: Pe, finishCachingPerDirectoryResolution: Ke, resolveModuleNameLiterals: bt, resolveTypeReferenceDirectiveReferences: At, resolveSingleModuleNameWithoutWatching: Vt, removeResolutionsFromProjectReferenceRedirects: gn, removeResolutionsOfFile: Ht, hasChangedAutomaticTypeDirectiveNames: () => b, invalidateResolutionOfFile: rr, invalidateResolutionsOfFailedLookupLocations: _i, setFilesWithInvalidatedNonRelativeUnresolvedImports: lr, createHasInvalidatedResolutions: Re, isFileWithInvalidatedNonRelativeUnresolvedImports: We, updateTypeRootsWatch: gt, closeTypeRootsWatch: xr, clear: $e }; function ye(xe) { return xe.resolvedModule; } function Te(xe) { return xe.resolvedTypeReferenceDirective; } function ee(xe, _t) { return xe === void 0 || _t.length <= xe.length ? !1 : Ea(_t, xe) && _t[xe.length] === Os; } function $e() { Jf(ne, Hm), Jf(ge, Hm), ue.clear(), c.clear(), xr(), j.clear(), X.clear(), y.clear(), f.clear(), d.clear(), I = void 0, O = void 0, k = void 0, C = void 0, A = void 0, te.clear(), Y.clear(), te.update(e.getCompilationSettings()), Y.update(e.getCompilationSettings()), m.clear(), b = !1; } function Ge() { i = []; } function Fe() { const xe = i; return i = void 0, xe; } function We(xe) { if (!s) return !1; const _t = s.get(xe); return !!_t && !!_t.length; } function Re(xe) { _i(); const _t = o; return o = void 0, (_e) => xe(_e) || !!(_t != null && _t.has(_e)) || We(_e); } function Pe() { te.clearAllExceptPackageJsonInfoCache(), Y.clearAllExceptPackageJsonInfoCache(), c.forEach(fr), c.clear(); } function Ke(xe, _t) { s = void 0, c.forEach(fr), c.clear(), xe !== _t && (xe == null || xe.getSourceFiles().forEach((_e) => { var re, me, V; const je = ef(_e) && (me = (re = _e.packageJsonLocations) == null ? void 0 : re.length) != null ? me : 0, Qe = (V = m.get(_e.path)) != null ? V : nt; for (let Je = Qe.length; Je < je; Je++) Yt(_e.packageJsonLocations[Je], !1); if (Qe.length > je) for (let Je = je; Je < Qe.length; Je++) ge.get(Qe[Je]).files--; je ? m.set(_e.path, _e.packageJsonLocations) : m.delete(_e.path); }), m.forEach((_e, re) => { xe != null && xe.getSourceFileByPath(re) || (_e.forEach((me) => ge.get(me).files--), m.delete(re)); })), ne.forEach((_e, re) => { _e.refCount === 0 && (ne.delete(re), _e.watcher.close()); }), ge.forEach((_e, re) => { _e.files === 0 && _e.resolutions === 0 && (ge.delete(re), _e.watcher.close()); }), b = !1; } function He(xe, _t, _e, re, me) { var V; const je = ((V = e.getCompilerHost) == null ? void 0 : V.call(e)) || e, Qe = Mk(xe, _t, _e, je, te, re, me); if (!e.getGlobalCache) return Qe; const Je = e.getGlobalCache(); if (Je !== void 0 && !Oc(xe) && !(Qe.resolvedModule && k3(Qe.resolvedModule.extension))) { const { resolvedModule: Ut, failedLookupLocations: on, affectingLocations: Sn, resolutionDiagnostics: br } = Ype(D.checkDefined(e.globalCacheResolutionModuleName)(xe), e.projectName, _e, je, Je, te); if (Ut) return Qe.resolvedModule = Ut, Qe.failedLookupLocations = IC(Qe.failedLookupLocations, on), Qe.affectingLocations = IC(Qe.affectingLocations, Sn), Qe.resolutionDiagnostics = IC(Qe.resolutionDiagnostics, br), Qe; } return Qe; } function Me(xe, _t, _e) { return { nameAndMode: $k, resolve: (re, me) => He(re, xe, _e, _t, me) }; } function ot({ entries: xe, containingFile: _t, containingSourceFile: _e, redirectedReference: re, options: me, perFileCache: V, reusedNames: je, loader: Qe, getResolutionWithResolvedFileName: Je, shouldRetryResolution: Ut, logChanges: on }) { var Sn; const br = e.toPath(_t), ce = V.get(br) || V.set(br, kT()).get(br), pt = [], Wt = on && We(br), rt = e.getCurrentProgram(), K = rt && rt.getResolvedProjectReferenceToRedirect(_t), Oe = K ? !re || re.sourceFile.path !== K.sourceFile.path : !!re, Z = kT(); for (const q of xe) { const Rt = Qe.nameAndMode.getName(q), ht = Qe.nameAndMode.getMode(q, _e); let dt = ce.get(Rt, ht); if (!Z.has(Rt, ht) && Oe || !dt || dt.isInvalidated || Wt && !Oc(Rt) && Ut(dt)) { const dn = dt; dt = Qe.resolve(Rt, ht), e.onDiscoveredSymlink && n7e(dt) && e.onDiscoveredSymlink(), ce.set(Rt, ht, dt), On(Rt, dt, br, Je), dn && Ji(dn, br, Je), on && i && !we(dn, dt) && (i.push(br), on = !1); } else { const dn = ((Sn = e.getCompilerHost) == null ? void 0 : Sn.call(e)) || e; if (Bv(me, dn) && !Z.has(Rt, ht)) { const $n = Je(dt); pa(dn, V === j ? $n != null && $n.resolvedFileName ? $n.packageId ? _.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : _.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_not_resolved : $n != null && $n.resolvedFileName ? $n.packageId ? _.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_successfully_resolved_to_2 : _.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved, Rt, _t, $n == null ? void 0 : $n.resolvedFileName, ($n == null ? void 0 : $n.packageId) && tT($n.packageId)); } } D.assert(dt !== void 0 && !dt.isInvalidated), Z.set(Rt, ht, !0), pt.push(dt); } return je == null || je.forEach((q) => Z.set(Qe.nameAndMode.getName(q), Qe.nameAndMode.getMode(q, _e), !0)), ce.size() !== Z.size() && ce.forEach((q, Rt, ht) => { Z.has(Rt, ht) || (Ji(q, br, Je), ce.delete(Rt, ht)); }), pt; function we(q, Rt) { if (q === Rt) return !0; if (!q || !Rt) return !1; const ht = Je(q), dt = Je(Rt); return ht === dt ? !0 : !ht || !dt ? !1 : ht.resolvedFileName === dt.resolvedFileName; } } function At(xe, _t, _e, re, me, V) { var je; return ot({ entries: xe, containingFile: _t, containingSourceFile: me, redirectedReference: _e, options: re, reusedNames: V, perFileCache: X, loader: W5(_t, _e, re, ((je = e.getCompilerHost) == null ? void 0 : je.call(e)) || e, Y), getResolutionWithResolvedFileName: Te, shouldRetryResolution: (Qe) => Qe.resolvedTypeReferenceDirective === void 0 }); } function bt(xe, _t, _e, re, me, V) { return ot({ entries: xe, containingFile: _t, containingSourceFile: me, redirectedReference: _e, options: re, reusedNames: V, perFileCache: j, loader: Me(_t, _e, re), getResolutionWithResolvedFileName: ye, shouldRetryResolution: (je) => !je.resolvedModule || !XN(je.resolvedModule.extension), logChanges: r }); } function Vt(xe, _t) { const _e = e.toPath(_t), re = j.get(_e), me = re == null ? void 0 : re.get(xe, void 0); return me && !me.isInvalidated ? me : He(xe, _t, e.getCompilationSettings()); } function et(xe) { return tc(xe, "/node_modules/@types"); } function it(xe, _t) { if (ee(H, _t)) { xe = xm(xe) ? Wo(xe) : Na(xe, B()); const _e = _t.split(Os), re = xe.split(Os); return D.assert(re.length === _e.length, `FailedLookup: ${xe} failedLookupLocationPath: ${_t}`), _e.length > le + 1 ? { dir: re.slice(0, le + 1).join(Os), dirPath: _e.slice(0, le + 1).join(Os) } : { dir: ie, dirPath: H, nonRecursive: !1 }; } return nn(fi(Na(xe, B())), fi(_t)); } function nn(xe, _t) { for (; Nx(_t); ) xe = fi(xe), _t = fi(_t); if (eM(_t)) return L8(fi(_t)) ? { dir: xe, dirPath: _t } : void 0; let _e = !0, re, me; if (H !== void 0) for (; !ee(_t, H); ) { const V = fi(_t); if (V === _t) break; _e = !1, re = _t, me = xe, _t = V, xe = fi(xe); } return L8(_t) ? { dir: me || xe, dirPath: re || _t, nonRecursive: _e } : void 0; } function Xt(xe) { return vc(xe, P); } function On(xe, _t, _e, re) { var me, V; if (_t.refCount) _t.refCount++, D.assertIsDefined(_t.files); else { _t.refCount = 1, D.assert(!((me = _t.files) != null && me.size)), Oc(xe) ? Hn(_t) : c.add(xe, _t); const je = re(_t); if (je && je.resolvedFileName) { const Qe = e.toPath(je.resolvedFileName); let Je = y.get(Qe); Je || y.set(Qe, Je = /* @__PURE__ */ new Set()), Je.add(_t); } } ((V = _t.files) != null ? V : _t.files = /* @__PURE__ */ new Set()).add(_e); } function Hn(xe) { D.assert(!!xe.refCount); const { failedLookupLocations: _t, affectingLocations: _e } = xe; if (!(_t != null && _t.length) && !(_e != null && _e.length)) return; _t != null && _t.length && f.add(xe); let re = !1; if (_t) { for (const me of _t) { const V = e.toPath(me), je = it(me, V); if (je) { const { dir: Qe, dirPath: Je, nonRecursive: Ut } = je; if (!Xt(V)) { const on = ue.get(V) || 0; ue.set(V, on + 1); } Je === H ? (D.assert(!Ut), re = !0) : xi(Qe, Je, Ut); } } re && xi(ie, H, !0); } In(xe, !(_t != null && _t.length)); } function In(xe, _t) { D.assert(!!xe.refCount); const { affectingLocations: _e } = xe; if (_e != null && _e.length) { _t && d.add(xe); for (const re of _e) Yt(re, !0); } } function Yt(xe, _t) { const _e = ge.get(xe); if (_e) { _t ? _e.resolutions++ : _e.files++; return; } let re = xe; if (e.realpath && (re = e.realpath(xe), xe !== re)) { const Qe = ge.get(re); if (Qe) { _t ? Qe.resolutions++ : Qe.files++, Qe.paths.add(xe), ge.set(xe, Qe); return; } } const me = /* @__PURE__ */ new Set(); me.add(re); let V = L8(e.toPath(re)) ? e.watchAffectingFileLocation(re, (Qe, Je) => { U == null || U.addOrDeleteFile(Qe, e.toPath(re), Je); const Ut = te.getPackageJsonInfoCache().getInternalMap(); me.forEach((on) => { je.resolutions && (C ?? (C = /* @__PURE__ */ new Set())).add(on), je.files && (A ?? (A = /* @__PURE__ */ new Set())).add(on), Ut == null || Ut.delete(e.toPath(on)); }), e.scheduleInvalidateResolutionsOfFailedLookupLocations(); }) : NC; const je = { watcher: V !== NC ? { close: () => { V.close(), V = NC; } } : V, resolutions: _t ? 1 : 0, files: _t ? 0 : 1, paths: me }; ge.set(re, je), xe !== re && (ge.set(xe, je), me.add(xe)); } function fr(xe, _t) { const _e = e.getCurrentProgram(); !_e || !_e.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(_t) ? xe.forEach(Hn) : xe.forEach((re) => In(re, !0)); } function xi(xe, _t, _e) { const re = ne.get(_t); re ? (D.assert(!!_e == !!re.nonRecursive), re.refCount++) : ne.set(_t, { watcher: Rr(xe, _t, _e), refCount: 1, nonRecursive: _e }); } function Ji(xe, _t, _e) { if (D.checkDefined(xe.files).delete(_t), xe.refCount--, xe.refCount) return; const re = _e(xe); if (re && re.resolvedFileName) { const je = e.toPath(re.resolvedFileName), Qe = y.get(je); Qe != null && Qe.delete(xe) && !Qe.size && y.delete(je); } const { failedLookupLocations: me, affectingLocations: V } = xe; if (f.delete(xe)) { let je = !1; for (const Qe of me) { const Je = e.toPath(Qe), Ut = it(Qe, Je); if (Ut) { const { dirPath: on } = Ut, Sn = ue.get(Je); Sn && (Sn === 1 ? ue.delete(Je) : (D.assert(Sn > 1), ue.set(Je, Sn - 1))), on === H ? je = !0 : Ki(on); } } je && Ki(H); } else V != null && V.length && d.delete(xe); if (V) for (const je of V) { const Qe = ge.get(je); Qe.resolutions--; } } function Ki(xe) { const _t = ne.get(xe); _t.refCount--; } function Rr(xe, _t, _e) { return e.watchDirectoryOfFailedLookupLocation(xe, (re) => { const me = e.toPath(re); U && U.addOrDeleteFileOrDirectory(re, me), Di(me, _t === me); }, _e ? 0 : 1); } function xt(xe, _t, _e) { const re = xe.get(_t); re && (re.forEach((me) => Ji(me, _t, _e)), xe.delete(_t)); } function gn(xe) { if (!oc(xe, ".json")) return; const _t = e.getCurrentProgram(); if (!_t) return; const _e = _t.getResolvedProjectReferenceByPath(xe); _e && _e.commandLine.fileNames.forEach((re) => Ht(e.toPath(re))); } function Ht(xe) { xt(j, xe, ye), xt(X, xe, Te); } function ln(xe, _t) { if (!xe) return !1; let _e = !1; return xe.forEach((re) => { if (!(re.isInvalidated || !_t(re))) { re.isInvalidated = _e = !0; for (const me of D.checkDefined(re.files)) (o ?? (o = /* @__PURE__ */ new Set())).add(me), b = b || tc(me, Q5); } }), _e; } function rr(xe) { Ht(xe); const _t = b; ln(y.get(xe), Zb) && b && !_t && e.onChangedAutomaticTypeDirectiveNames(); } function lr(xe) { D.assert(s === xe || s === void 0), s = xe; } function Di(xe, _t) { if (_t) (k || (k = /* @__PURE__ */ new Set())).add(xe); else { const _e = XX(xe); if (!_e || (xe = _e, e.fileIsOpen(xe))) return !1; const re = fi(xe); if (et(xe) || eM(xe) || et(re) || eM(re)) (I || (I = /* @__PURE__ */ new Set())).add(xe), (O || (O = /* @__PURE__ */ new Set())).add(xe); else { if (!Xt(xe) && !ue.has(xe) || Ihe(e.getCurrentProgram(), xe)) return !1; (I || (I = /* @__PURE__ */ new Set())).add(xe); const me = pK(xe); me && (O || (O = /* @__PURE__ */ new Set())).add(me); } } e.scheduleInvalidateResolutionsOfFailedLookupLocations(); } function _i() { var xe; let _t = !1; if (A && ((xe = e.getCurrentProgram()) == null || xe.getSourceFiles().forEach((re) => { kt(re.packageJsonLocations, (me) => A.has(me)) && ((o ?? (o = /* @__PURE__ */ new Set())).add(re.path), _t = !0); }), A = void 0), !I && !O && !k && !C) return _t; _t = ln(f, Rn) || _t; const _e = te.getPackageJsonInfoCache().getInternalMap(); return _e && (I || O || k) && _e.forEach((re, me) => en(me) ? _e.delete(me) : void 0), I = void 0, O = void 0, k = void 0, _t = ln(d, Pn) || _t, C = void 0, _t; } function Rn(xe) { var _t; return Pn(xe) ? !0 : !I && !O && !k ? !1 : (_t = xe.failedLookupLocations) == null ? void 0 : _t.some((_e) => en(e.toPath(_e))); } function en(xe) { return (I == null ? void 0 : I.has(xe)) || ni((O == null ? void 0 : O.keys()) || [], (_t) => Ea(xe, _t) ? !0 : void 0) || ni((k == null ? void 0 : k.keys()) || [], (_t) => ee(_t, xe) ? !0 : void 0); } function Pn(xe) { var _t; return !!C && ((_t = xe.affectingLocations) == null ? void 0 : _t.some((_e) => C.has(_e))); } function xr() { Jf(pe, Pm); } function Ur(xe, _t) { if (ee(H, _t)) return H; const _e = nn(xe, _t); return _e && ne.has(_e.dirPath) ? _e.dirPath : void 0; } function Ie(xe, _t) { return e.watchTypeRootsDirectory(_t, (_e) => { const re = e.toPath(_e); U && U.addOrDeleteFileOrDirectory(_e, re), b = !0, e.onChangedAutomaticTypeDirectiveNames(); const me = Ur(_t, xe); me && Di(re, me === re); }, 1); } function gt() { const xe = e.getCompilationSettings(); if (xe.types) { xr(); return; } const _t = r8(xe, { directoryExists: Nt, getCurrentDirectory: B }); _t ? KA(pe, $b(_t, (_e) => e.toPath(_e)), { createNewValue: Ie, onDeleteValue: Pm }) : xr(); } function Nt(xe) { const _t = fi(fi(xe)), _e = e.toPath(_t); return _e === H || L8(_e); } } function n7e(e) { var t, r; return !!((t = e.resolvedModule) != null && t.originalPath || (r = e.resolvedTypeReferenceDirective) != null && r.originalPath); } var r7e = L({ "src/compiler/resolutionCache.ts"() { Ra(), Ra(); } }); function I8(e, t) { const r = e === zc && oY ? oY : { getCurrentDirectory: () => e.getCurrentDirectory(), getNewLine: () => e.newLine, getCanonicalFileName: $c(e.useCaseSensitiveFileNames) }; if (!t) return (o) => e.write(TX(o, r)); const i = new Array(1); return (o) => { i[0] = o, e.write(Phe(i, r) + r.getNewLine()), i[0] = void 0; }; } function nge(e, t, r) { return e.clearScreen && !r.preserveWatchOutput && !r.extendedDiagnostics && !r.diagnostics && Ii(lF, t.code) ? (e.clearScreen(), !0) : !1; } function i7e(e, t) { return Ii(lF, e.code) ? t + t : t; } function k8(e) { return e.now ? e.now().toLocaleTimeString("en-US", { timeZone: "UTC" }).replace(" ", " ") : (/* @__PURE__ */ new Date()).toLocaleTimeString(); } function rge(e, t) { return t ? (r, i, o) => { nge(e, r, o); let s = `[${V1(k8(e), "\x1B[90m")}] `; s += `${Gv(r.messageText, e.newLine)}${i + i}`, e.write(s); } : (r, i, o) => { let s = ""; nge(e, r, o) || (s += i), s += `${k8(e)} - `, s += `${Gv(r.messageText, e.newLine)}${i7e(r, i)}`, e.write(s); }; } function a7e(e, t, r, i, o, s) { const c = o; c.onUnRecoverableConfigFileDiagnostic = (d) => uge(o, s, d); const f = UO(e, t, c, r, i); return c.onUnRecoverableConfigFileDiagnostic = void 0, f; } function rF(e) { return xa(e, (t) => t.category === 1); } function iF(e) { return yn(e, (r) => r.category === 1).map((r) => { if (r.file !== void 0) return `${r.file.fileName}`; }).map((r) => { if (r === void 0) return; const i = un(e, (o) => o.file !== void 0 && o.file.fileName === r); if (i !== void 0) { const { line: o } = il(i.file, i.start); return { fileName: r, line: o + 1 }; } }); } function YX(e) { return e === 1 ? _.Found_1_error_Watching_for_file_changes : _.Found_0_errors_Watching_for_file_changes; } function ige(e, t) { const r = V1(":" + e.line, "\x1B[90m"); return tI(e.fileName) && tI(t) ? Am(t, e.fileName, !1) + r : e.fileName + r; } function age(e, t, r, i) { if (e === 0) return ""; const o = t.filter((y) => y !== void 0), s = o.map((y) => `${y.fileName}:${y.line}`).filter((y, m, b) => b.indexOf(y) === m), c = o[0] && ige(o[0], i.getCurrentDirectory()), f = e === 1 ? Ps(t[0] !== void 0 ? _.Found_1_error_in_1 : _.Found_1_error, e, c) : Ps(s.length === 0 ? _.Found_0_errors : s.length === 1 ? _.Found_0_errors_in_the_same_file_starting_at_Colon_1 : _.Found_0_errors_in_1_files, e, s.length === 1 ? c : s.length), d = s.length > 1 ? o7e(o, i) : ""; return `${r}${Gv(f.messageText, r)}${r}${r}${d}`; } function o7e(e, t) { const r = e.filter((b, A, C) => A === C.findIndex((I) => (I == null ? void 0 : I.fileName) === (b == null ? void 0 : b.fileName))); if (r.length === 0) return ""; const i = (b) => Math.log(b) * Math.LOG10E + 1, o = r.map((b) => [b, xa(e, (A) => A.fileName === b.fileName)]), s = o.reduce((b, A) => Math.max(b, A[1] || 0), 0), c = _.Errors_Files.message, f = c.split(" ")[0].length, d = Math.max(f, i(s)), y = Math.max(i(s) - f, 0); let m = ""; return m += " ".repeat(y) + c + ` `, o.forEach((b) => { const [A, C] = b, I = Math.log(C) * Math.LOG10E + 1 | 0, O = I < d ? " ".repeat(d - I) : "", k = ige(A, t.getCurrentDirectory()); m += `${O}${C} ${k} `; }), m; } function oge(e) { return !!e.getState; } function $X(e, t) { const r = e.getCompilerOptions(); r.explainFiles ? sge(oge(e) ? e.getProgram() : e, t) : (r.listFiles || r.listFilesOnly) && Ye(e.getSourceFiles(), (i) => { t(i.fileName); }); } function sge(e, t) { var r, i; const o = e.getFileIncludeReasons(), s = (c) => nI(c, e.getCurrentDirectory(), e.getCanonicalFileName); for (const c of e.getSourceFiles()) t(`${Mx(c, s)}`), (r = o.get(c.path)) == null || r.forEach((f) => t(` ${tY(e, f, s).messageText}`)), (i = QX(c, s)) == null || i.forEach((f) => t(` ${f.messageText}`)); } function QX(e, t) { var r; let i; if (e.path !== e.resolvedPath && (i ?? (i = [])).push(Da(void 0, _.File_is_output_of_project_reference_source_0, Mx(e.originalFileName, t))), e.redirectInfo && (i ?? (i = [])).push(Da(void 0, _.File_redirects_to_file_0, Mx(e.redirectInfo.redirectTarget, t))), ef(e)) switch (e.impliedNodeFormat) { case 99: e.packageJsonScope && (i ?? (i = [])).push(Da(void 0, _.File_is_ECMAScript_module_because_0_has_field_type_with_value_module, Mx(Ho(e.packageJsonLocations), t))); break; case 1: e.packageJsonScope ? (i ?? (i = [])).push(Da(void 0, e.packageJsonScope.contents.packageJsonContent.type ? _.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, Mx(Ho(e.packageJsonLocations), t))) : (r = e.packageJsonLocations) != null && r.length && (i ?? (i = [])).push(Da(void 0, _.File_is_CommonJS_module_because_package_json_was_not_found)); break; } return i; } function ZX(e, t) { var r; const i = e.getCompilerOptions().configFile; if (!((r = i == null ? void 0 : i.configFileSpecs) != null && r.validatedFilesSpec)) return; const o = e.getCanonicalFileName(t), s = fi(Na(i.fileName, e.getCurrentDirectory())); return un(i.configFileSpecs.validatedFilesSpec, (c) => e.getCanonicalFileName(Na(c, s)) === o); } function eY(e, t) { var r, i; const o = e.getCompilerOptions().configFile; if (!((r = o == null ? void 0 : o.configFileSpecs) != null && r.validatedIncludeSpecs)) return; if (o.configFileSpecs.isDefaultIncludeSpec) return !0; const s = oc(t, ".json"), c = fi(Na(o.fileName, e.getCurrentDirectory())), f = e.useCaseSensitiveFileNames(); return un((i = o == null ? void 0 : o.configFileSpecs) == null ? void 0 : i.validatedIncludeSpecs, (d) => { if (s && !tc(d, ".json")) return !1; const y = Kz(d, c, "files"); return !!y && wv(`(${y})$`, f).test(t); }); } function tY(e, t, r) { var i, o; const s = e.getCompilerOptions(); if (Z0(t)) { const c = Xk((y) => e.getSourceFileByPath(y), t), f = DC(c) ? c.file.text.substring(c.pos, c.end) : `"${c.text}"`; let d; switch (D.assert(DC(c) || t.kind === 3, "Only synthetic references are imports"), t.kind) { case 3: DC(c) ? d = c.packageId ? _.Imported_via_0_from_file_1_with_packageId_2 : _.Imported_via_0_from_file_1 : c.text === J0 ? d = c.packageId ? _.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions : _.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions : d = c.packageId ? _.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions : _.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions; break; case 4: D.assert(!c.packageId), d = _.Referenced_via_0_from_file_1; break; case 5: d = c.packageId ? _.Type_library_referenced_via_0_from_file_1_with_packageId_2 : _.Type_library_referenced_via_0_from_file_1; break; case 7: D.assert(!c.packageId), d = _.Library_referenced_via_0_from_file_1; break; default: D.assertNever(t); } return Da(void 0, d, f, Mx(c.file, r), c.packageId && tT(c.packageId)); } switch (t.kind) { case 0: if (!((i = s.configFile) != null && i.configFileSpecs)) return Da(void 0, _.Root_file_specified_for_compilation); const c = Na(e.getRootFileNames()[t.index], e.getCurrentDirectory()); if (ZX(e, c)) return Da(void 0, _.Part_of_files_list_in_tsconfig_json); const d = eY(e, c); return Va(d) ? Da(void 0, _.Matched_by_include_pattern_0_in_1, d, Mx(s.configFile, r)) : Da(void 0, d ? _.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk : _.Root_file_specified_for_compilation); case 1: case 2: const y = t.kind === 2, m = D.checkDefined((o = e.getResolvedProjectReferences()) == null ? void 0 : o[t.index]); return Da(void 0, Ws(s) ? y ? _.Output_from_referenced_project_0_included_because_1_specified : _.Source_from_referenced_project_0_included_because_1_specified : y ? _.Output_from_referenced_project_0_included_because_module_is_specified_as_none : _.Source_from_referenced_project_0_included_because_module_is_specified_as_none, Mx(m.sourceFile.fileName, r), s.outFile ? "--outFile" : "--out"); case 8: return Da(void 0, s.types ? t.packageId ? _.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1 : _.Entry_point_of_type_library_0_specified_in_compilerOptions : t.packageId ? _.Entry_point_for_implicit_type_library_0_with_packageId_1 : _.Entry_point_for_implicit_type_library_0, t.typeReference, t.packageId && tT(t.packageId)); case 6: if (t.index !== void 0) return Da(void 0, _.Library_0_specified_in_compilerOptions, s.lib[t.index]); const b = Zd(ZO.type, (A, C) => A === $o(s) ? C : void 0); return Da(void 0, b ? _.Default_library_for_target_0 : _.Default_library, b); default: D.assertNever(t); } } function Mx(e, t) { const r = Va(e) ? e : e.fileName; return t ? t(r) : r; } function aF(e, t, r, i, o, s, c, f) { const d = !!e.getCompilerOptions().listFilesOnly, y = e.getConfigFileParsingDiagnostics().slice(), m = y.length; yi(y, e.getSyntacticDiagnostics(void 0, s)), y.length === m && (yi(y, e.getOptionsDiagnostics(s)), d || (yi(y, e.getGlobalDiagnostics(s)), y.length === m && yi(y, e.getSemanticDiagnostics(void 0, s)))); const b = d ? { emitSkipped: !0, diagnostics: nt } : e.emit(void 0, o, s, c, f), { emittedFiles: A, diagnostics: C } = b; yi(y, C); const I = _A(y); if (I.forEach(t), r) { const O = e.getCurrentDirectory(); Ye(A, (k) => { const B = Na(k, O); r(`TSFILE: ${B}`); }), $X(e, r); } return i && i(rF(I), iF(I)), { emitResult: b, diagnostics: I }; } function lge(e, t, r, i, o, s, c, f) { const { emitResult: d, diagnostics: y } = aF(e, t, r, i, o, s, c, f); return d.emitSkipped && y.length > 0 ? 1 : y.length > 0 ? 2 : 0; } function nY(e = zc, t) { return { onWatchStatusChange: t || rge(e), watchFile: Fo(e, e.watchFile) || w8, watchDirectory: Fo(e, e.watchDirectory) || w8, setTimeout: Fo(e, e.setTimeout) || io, clearTimeout: Fo(e, e.clearTimeout) || io }; } function rY(e, t) { const r = e.trace ? t.extendedDiagnostics ? 2 : t.diagnostics ? 1 : 0 : 0, i = r !== 0 ? (s) => e.trace(s) : io, o = khe(e, r, i); return o.writeLog = i, o; } function iY(e, t, r = e) { const i = e.useCaseSensitiveFileNames(), o = { getSourceFile: vX((s, c) => c ? e.readFile(s, c) : o.readFile(s), t, void 0), getDefaultLibLocation: Fo(e, e.getDefaultLibLocation), getDefaultLibFileName: (s) => e.getDefaultLibFileName(s), writeFile: bX((s, c, f) => e.writeFile(s, c, f), (s) => e.createDirectory(s), (s) => e.directoryExists(s)), getCurrentDirectory: hd(() => e.getCurrentDirectory()), useCaseSensitiveFileNames: () => i, getCanonicalFileName: $c(i), getNewLine: () => z0(t()), fileExists: (s) => e.fileExists(s), readFile: (s) => e.readFile(s), trace: Fo(e, e.trace), directoryExists: Fo(r, r.directoryExists), getDirectories: Fo(r, r.getDirectories), realpath: Fo(e, e.realpath), getEnvironmentVariable: Fo(e, e.getEnvironmentVariable) || (() => ""), createHash: Fo(e, e.createHash), readDirectory: Fo(e, e.readDirectory), storeFilesChangingSignatureDuringEmit: e.storeFilesChangingSignatureDuringEmit }; return o; } function oF(e, t) { if (t.match(VK)) { let r = t.length, i = r; for (let o = r - 1; o >= 0; o--) { const s = t.charCodeAt(o); switch (s) { case 10: o && t.charCodeAt(o - 1) === 13 && o--; case 13: break; default: if (s < 127 || !uu(s)) { i = o; continue; } break; } const c = t.substring(i, r); if (c.match(L5)) { t = t.substring(0, i); break; } else if (!c.match(I5)) break; r = i; } } return (e.createHash || _R)(t); } function sF(e) { const t = e.getSourceFile; e.getSourceFile = (...r) => { const i = t.call(e, ...r); return i && (i.version = oF(e, i.text)), i; }; } function aY(e, t) { const r = hd(() => fi(Wo(e.getExecutingFilePath()))); return { useCaseSensitiveFileNames: () => e.useCaseSensitiveFileNames, getNewLine: () => e.newLine, getCurrentDirectory: hd(() => e.getCurrentDirectory()), getDefaultLibLocation: r, getDefaultLibFileName: (i) => Oi(r(), oM(i)), fileExists: (i) => e.fileExists(i), readFile: (i, o) => e.readFile(i, o), directoryExists: (i) => e.directoryExists(i), getDirectories: (i) => e.getDirectories(i), readDirectory: (i, o, s, c, f) => e.readDirectory(i, o, s, c, f), realpath: Fo(e, e.realpath), getEnvironmentVariable: Fo(e, e.getEnvironmentVariable), trace: (i) => e.write(i + e.newLine), createDirectory: (i) => e.createDirectory(i), writeFile: (i, o, s) => e.writeFile(i, o, s), createHash: Fo(e, e.createHash), createProgram: t || KX, storeFilesChangingSignatureDuringEmit: e.storeFilesChangingSignatureDuringEmit, now: Fo(e, e.now) }; } function cge(e = zc, t, r, i) { const o = (c) => e.write(c + e.newLine), s = aY(e, t); return sj(s, nY(e, i)), s.afterProgramCreate = (c) => { const f = c.getCompilerOptions(), d = z0(f); aF(c, r, o, (y) => s.onWatchStatusChange(Ps(YX(y), y), d, f, y)); }, s; } function uge(e, t, r) { t(r), e.exit(1); } function dge({ configFileName: e, optionsToExtend: t, watchOptionsToExtend: r, extraFileExtensions: i, system: o, createProgram: s, reportDiagnostic: c, reportWatchStatus: f }) { const d = c || I8(o), y = cge(o, s, d, f); return y.onUnRecoverableConfigFileDiagnostic = (m) => uge(o, d, m), y.configFileName = e, y.optionsToExtend = t, y.watchOptionsToExtend = r, y.extraFileExtensions = i, y; } function fge({ rootFiles: e, options: t, watchOptions: r, projectReferences: i, system: o, createProgram: s, reportDiagnostic: c, reportWatchStatus: f }) { const d = cge(o, s, c || I8(o), f); return d.rootFiles = e, d.options = t, d.watchOptions = r, d.projectReferences = i, d; } function s7e(e) { const t = e.system || zc, r = e.host || (e.host = sY(e.options, t)), i = _ge(e), o = lge(i, e.reportDiagnostic || I8(t), (s) => r.trace && r.trace(s), e.reportErrorSummary || e.options.pretty ? (s, c) => t.write(age(s, c, t.newLine, r)) : void 0); return e.afterProgramEmitAndDiagnostics && e.afterProgramEmitAndDiagnostics(i), o; } var oY, lF, NC, w8, m_, l7e = L({ "src/compiler/watch.ts"() { Ra(), oY = zc ? { getCurrentDirectory: () => zc.getCurrentDirectory(), getNewLine: () => zc.newLine, getCanonicalFileName: $c(zc.useCaseSensitiveFileNames) } : void 0, lF = [ _.Starting_compilation_in_watch_mode.code, _.File_change_detected_Starting_incremental_compilation.code ], NC = { close: io }, w8 = () => NC, m_ = { 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" }; } }); function cF(e, t) { const r = xy(e); if (!r) return; let i; if (t.getBuildInfo) i = t.getBuildInfo(r, e.configFilePath); else { const o = t.readFile(r); if (!o) return; i = B5(r, o); } if (!(!i || i.version !== Ue || !i.program)) return ege(i, r, t); } function sY(e, t = zc) { const r = EX(e, void 0, t); return r.createHash = Fo(t, t.createHash), r.storeFilesChangingSignatureDuringEmit = t.storeFilesChangingSignatureDuringEmit, sF(r), T8(r, (i) => Hs(i, r.getCurrentDirectory(), r.getCanonicalFileName)), r; } function _ge({ rootNames: e, options: t, configFileParsingDiagnostics: r, projectReferences: i, host: o, createProgram: s }) { o = o || sY(t), s = s || KX; const c = cF(t, o); return s(e, t, o, c, r, i); } function c7e(e, t, r, i, o, s, c, f) { return Ga(e) ? fge({ rootFiles: e, options: t, watchOptions: f, projectReferences: c, system: r, createProgram: i, reportDiagnostic: o, reportWatchStatus: s }) : dge({ configFileName: e, optionsToExtend: t, watchOptionsToExtend: c, extraFileExtensions: f, system: r, createProgram: i, reportDiagnostic: o, reportWatchStatus: s }); } function u7e(e) { let t, r, i, o, s, c, f, d, y = e.extendedConfigCache, m = !1; const b = /* @__PURE__ */ new Map(); let A, C = !1; const I = e.useCaseSensitiveFileNames(), O = e.getCurrentDirectory(), { configFileName: k, optionsToExtend: B = {}, watchOptionsToExtend: U, extraFileExtensions: j, createProgram: te } = e; let { rootFiles: X, options: Y, watchOptions: P, projectReferences: ue } = e, ne, ge, ie = !1, H = !1; const le = k === void 0 ? void 0 : Ahe(e, O, I), pe = le || e, ye = K5(e, pe); let Te = nn(); k && e.configFileParsingResult && (Pn(e.configFileParsingResult), Te = nn()), Ki(_.Starting_compilation_in_watch_mode), k && !e.configFileParsingResult && (Te = z0(B), D.assert(!X), en(), Te = nn()), D.assert(Y), D.assert(X); const { watchFile: ee, watchDirectory: $e, writeLog: Ge } = rY(e, Y), Fe = $c(I); Ge(`Current directory: ${O} CaseSensitiveFileNames: ${I}`); let We; k && (We = ee(k, rr, 2e3, P, m_.ConfigFile)); const Re = iY(e, () => Y, pe); sF(Re); const Pe = Re.getSourceFile; Re.getSourceFile = (Qe, ...Je) => Yt(Qe, Xt(Qe), ...Je), Re.getSourceFileByPath = Yt, Re.getNewLine = () => Te, Re.fileExists = In, Re.onReleaseOldSourceFile = Ji, Re.onReleaseParsedCommandLine = Ie, Re.toPath = Xt, Re.getCompilationSettings = () => Y, Re.useSourceOfProjectReferenceRedirect = Fo(e, e.useSourceOfProjectReferenceRedirect), Re.watchDirectoryOfFailedLookupLocation = (Qe, Je, Ut) => $e(Qe, Je, Ut, P, m_.FailedLookupLocations), Re.watchAffectingFileLocation = (Qe, Je) => ee(Qe, Je, 2e3, P, m_.AffectingFileLocation), Re.watchTypeRootsDirectory = (Qe, Je, Ut) => $e(Qe, Je, Ut, P, m_.TypeRoots), Re.getCachedDirectoryStructureHost = () => le, Re.scheduleInvalidateResolutionsOfFailedLookupLocations = gn, Re.onInvalidatedResolution = ln, Re.onChangedAutomaticTypeDirectiveNames = ln, Re.fileIsOpen = Qb, Re.getCurrentProgram = bt, Re.writeLog = Ge, Re.getParsedCommandLine = xr; const Ke = tge(Re, k ? fi(Na(k, O)) : O, !1); Re.resolveModuleNameLiterals = Fo(e, e.resolveModuleNameLiterals), Re.resolveModuleNames = Fo(e, e.resolveModuleNames), !Re.resolveModuleNameLiterals && !Re.resolveModuleNames && (Re.resolveModuleNameLiterals = Ke.resolveModuleNameLiterals.bind(Ke)), Re.resolveTypeReferenceDirectiveReferences = Fo(e, e.resolveTypeReferenceDirectiveReferences), Re.resolveTypeReferenceDirectives = Fo(e, e.resolveTypeReferenceDirectives), !Re.resolveTypeReferenceDirectiveReferences && !Re.resolveTypeReferenceDirectives && (Re.resolveTypeReferenceDirectiveReferences = Ke.resolveTypeReferenceDirectiveReferences.bind(Ke)), Re.getModuleResolutionCache = e.resolveModuleNameLiterals || e.resolveModuleNames ? Fo(e, e.getModuleResolutionCache) : () => Ke.getModuleResolutionCache(); const Me = !!e.resolveModuleNameLiterals || !!e.resolveTypeReferenceDirectiveReferences || !!e.resolveModuleNames || !!e.resolveTypeReferenceDirectives ? Fo(e, e.hasInvalidatedResolutions) || Zb : Qb; return t = cF(Y, Re), Vt(), re(), k && V(Xt(k), Y, P, m_.ExtendedConfigFile), k ? { getCurrentProgram: At, getProgram: Di, close: ot } : { getCurrentProgram: At, getProgram: Di, updateRootFileNames: it, close: ot }; function ot() { xt(), Ke.clear(), Jf(b, (Qe) => { Qe && Qe.fileWatcher && (Qe.fileWatcher.close(), Qe.fileWatcher = void 0); }), We && (We.close(), We = void 0), y == null || y.clear(), y = void 0, d && (Jf(d, Hm), d = void 0), o && (Jf(o, Hm), o = void 0), i && (Jf(i, Pm), i = void 0), f && (Jf(f, (Qe) => { var Je; (Je = Qe.watcher) == null || Je.close(), Qe.watcher = void 0, Qe.watchedDirectories && Jf(Qe.watchedDirectories, Hm), Qe.watchedDirectories = void 0; }), f = void 0); } function At() { return t; } function bt() { return t && t.getProgramOrUndefined(); } function Vt() { Ge("Synchronizing program"), D.assert(Y), D.assert(X), xt(); const Qe = At(); C && (Te = nn(), Qe && vW(Qe.getCompilerOptions(), Y) && Ke.clear()); const Je = Ke.createHasInvalidatedResolutions(Me), { originalReadFile: Ut, originalFileExists: on, originalDirectoryExists: Sn, originalCreateDirectory: br, originalWriteFile: ce, readFileWithCache: pt } = T8(Re, Xt); return IX(bt(), X, Y, (Wt) => xi(Wt, pt), (Wt) => Re.fileExists(Wt), Je, Rr, xr, ue) ? H && (m && Ki(_.File_change_detected_Starting_incremental_compilation), t = te(void 0, void 0, Re, t, ge, ue), H = !1) : (m && Ki(_.File_change_detected_Starting_incremental_compilation), et(Je)), m = !1, e.afterProgramCreate && Qe !== t && e.afterProgramCreate(t), Re.readFile = Ut, Re.fileExists = on, Re.directoryExists = Sn, Re.createDirectory = br, Re.writeFile = ce, t; } function et(Qe) { Ge("CreatingProgramWith::"), Ge(` roots: ${JSON.stringify(X)}`), Ge(` options: ${JSON.stringify(Y)}`), ue && Ge(` projectReferences: ${JSON.stringify(ue)}`); const Je = C || !bt(); C = !1, H = !1, Ke.startCachingPerDirectoryResolution(), Re.hasInvalidatedResolutions = Qe, Re.hasChangedAutomaticTypeDirectiveNames = Rr; const Ut = bt(); if (t = te(X, Y, Re, t, ge, ue), Ke.finishCachingPerDirectoryResolution(t.getProgram(), Ut), Lhe(t.getProgram(), i || (i = /* @__PURE__ */ new Map()), _t), Je && Ke.updateTypeRootsWatch(), A) { for (const on of A) i.has(on) || b.delete(on); A = void 0; } } function it(Qe) { D.assert(!k, "Cannot update root file names with config file watch mode"), X = Qe, ln(); } function nn() { return z0(Y || B); } function Xt(Qe) { return Hs(Qe, O, Fe); } function On(Qe) { return typeof Qe == "boolean"; } function Hn(Qe) { return typeof Qe.version == "boolean"; } function In(Qe) { const Je = Xt(Qe); return On(b.get(Je)) ? !1 : pe.fileExists(Qe); } function Yt(Qe, Je, Ut, on, Sn) { const br = b.get(Je); if (!On(br)) { if (br === void 0 || Sn || Hn(br)) { const ce = Pe(Qe, Ut, on); if (br) ce ? (br.sourceFile = ce, br.version = ce.version, br.fileWatcher || (br.fileWatcher = gt(Je, Qe, Nt, 250, P, m_.SourceFile))) : (br.fileWatcher && br.fileWatcher.close(), b.set(Je, !1)); else if (ce) { const pt = gt(Je, Qe, Nt, 250, P, m_.SourceFile); b.set(Je, { sourceFile: ce, version: ce.version, fileWatcher: pt }); } else b.set(Je, !1); return ce; } return br.sourceFile; } } function fr(Qe) { const Je = b.get(Qe); Je !== void 0 && (On(Je) ? b.set(Qe, { version: !1 }) : Je.version = !1); } function xi(Qe, Je) { const Ut = b.get(Qe); if (!Ut) return; if (Ut.version) return Ut.version; const on = Je(Qe); return on !== void 0 ? oF(Re, on) : void 0; } function Ji(Qe, Je, Ut) { const on = b.get(Qe.resolvedPath); on !== void 0 && (On(on) ? (A || (A = [])).push(Qe.path) : on.sourceFile === Qe && (on.fileWatcher && on.fileWatcher.close(), b.delete(Qe.resolvedPath), Ut || Ke.removeResolutionsOfFile(Qe.path))); } function Ki(Qe) { e.onWatchStatusChange && e.onWatchStatusChange(Ps(Qe), Te, Y || B); } function Rr() { return Ke.hasChangedAutomaticTypeDirectiveNames(); } function xt() { return c ? (e.clearTimeout(c), c = void 0, !0) : !1; } function gn() { if (!e.setTimeout || !e.clearTimeout) return Ke.invalidateResolutionsOfFailedLookupLocations(); const Qe = xt(); Ge(`Scheduling invalidateFailedLookup${Qe ? ", Cancelled earlier one" : ""}`), c = e.setTimeout(Ht, 250); } function Ht() { c = void 0, Ke.invalidateResolutionsOfFailedLookupLocations() && ln(); } function ln() { !e.setTimeout || !e.clearTimeout || (s && e.clearTimeout(s), Ge("Scheduling update"), s = e.setTimeout(lr, 250)); } function rr() { D.assert(!!k), r = 2, ln(); } function lr() { s = void 0, m = !0, Di(); } function Di() { switch (r) { case 1: Up.logStartUpdateProgram("PartialConfigReload"), _i(); break; case 2: Up.logStartUpdateProgram("FullConfigReload"), Rn(); break; default: Up.logStartUpdateProgram("SynchronizeProgram"), Vt(); break; } return Up.logStopUpdateProgram("Done"), At(); } function _i() { Ge("Reloading new file names and options"), D.assert(Y), D.assert(k), r = 0, X = JO(Y.configFile.configFileSpecs, Na(fi(k), O), Y, ye, j), zJ(X, Na(k, O), Y.configFile.configFileSpecs, ge, ie) && (H = !0), Vt(); } function Rn() { D.assert(k), Ge(`Reloading config file: ${k}`), r = 0, le && le.clearCache(), en(), C = !0, Vt(), re(), V(Xt(k), Y, P, m_.ExtendedConfigFile); } function en() { D.assert(k), Pn(UO(k, B, ye, y || (y = /* @__PURE__ */ new Map()), U, j)); } function Pn(Qe) { X = Qe.fileNames, Y = Qe.options, P = Qe.watchOptions, ue = Qe.projectReferences, ne = Qe.wildcardDirectories, ge = OT(Qe).slice(), ie = zO(Qe.raw), H = !0; } function xr(Qe) { const Je = Xt(Qe); let Ut = f == null ? void 0 : f.get(Je); if (Ut) { if (!Ut.reloadLevel) return Ut.parsedCommandLine; if (Ut.parsedCommandLine && Ut.reloadLevel === 1 && !e.getParsedCommandLine) { Ge("Reloading new file names and options"), D.assert(Y); const Sn = JO(Ut.parsedCommandLine.options.configFile.configFileSpecs, Na(fi(Qe), O), Y, ye); return Ut.parsedCommandLine = { ...Ut.parsedCommandLine, fileNames: Sn }, Ut.reloadLevel = void 0, Ut.parsedCommandLine; } } Ge(`Loading config file: ${Qe}`); const on = e.getParsedCommandLine ? e.getParsedCommandLine(Qe) : Ur(Qe); return Ut ? (Ut.parsedCommandLine = on, Ut.reloadLevel = void 0) : (f || (f = /* @__PURE__ */ new Map())).set(Je, Ut = { parsedCommandLine: on }), je(Qe, Je, Ut), on; } function Ur(Qe) { const Je = ye.onUnRecoverableConfigFileDiagnostic; ye.onUnRecoverableConfigFileDiagnostic = io; const Ut = UO(Qe, void 0, ye, y || (y = /* @__PURE__ */ new Map()), U); return ye.onUnRecoverableConfigFileDiagnostic = Je, Ut; } function Ie(Qe) { var Je; const Ut = Xt(Qe), on = f == null ? void 0 : f.get(Ut); on && (f.delete(Ut), on.watchedDirectories && Jf(on.watchedDirectories, Hm), (Je = on.watcher) == null || Je.close(), Che(Ut, d)); } function gt(Qe, Je, Ut, on, Sn, br) { return ee(Je, (ce, pt) => Ut(ce, pt, Qe), on, Sn, br); } function Nt(Qe, Je, Ut) { xe(Qe, Ut, Je), Je === 2 && b.has(Ut) && Ke.invalidateResolutionOfFile(Ut), fr(Ut), ln(); } function xe(Qe, Je, Ut) { le && le.addOrDeleteFile(Qe, Je, Ut); } function _t(Qe) { return f != null && f.has(Qe) ? NC : gt(Qe, Qe, _e, 500, P, m_.MissingFile); } function _e(Qe, Je, Ut) { xe(Qe, Ut, Je), Je === 0 && i.has(Ut) && (i.get(Ut).close(), i.delete(Ut), fr(Ut), ln()); } function re() { ne ? U5(o || (o = /* @__PURE__ */ new Map()), new Map(Object.entries(ne)), me) : o && Jf(o, Hm); } function me(Qe, Je) { return $e(Qe, (Ut) => { D.assert(k), D.assert(Y); const on = Xt(Ut); le && le.addOrDeleteFileOrDirectory(Ut, on), fr(on), !V5({ watchedDirPath: Xt(Qe), fileOrDirectory: Ut, fileOrDirectoryPath: on, configFileName: k, extraFileExtensions: j, options: Y, program: At() || X, currentDirectory: O, useCaseSensitiveFileNames: I, writeLog: Ge, toPath: Xt }) && r !== 2 && (r = 1, ln()); }, Je, P, m_.WildcardDirectory); } function V(Qe, Je, Ut, on) { D.assert(k), mX(Qe, Je, d || (d = /* @__PURE__ */ new Map()), (Sn, br) => ee(Sn, (ce, pt) => { var Wt; xe(Sn, br, pt), y && hX(y, br, Xt); const rt = (Wt = d.get(br)) == null ? void 0 : Wt.projects; rt != null && rt.size && rt.forEach((K) => { if (Xt(k) === K) r = 2; else { const Oe = f == null ? void 0 : f.get(K); Oe && (Oe.reloadLevel = 2), Ke.removeResolutionsFromProjectReferenceRedirects(K); } ln(); }); }, 2e3, Ut, on), Xt); } function je(Qe, Je, Ut) { var on, Sn, br, ce, pt; Ut.watcher || (Ut.watcher = ee(Qe, (Wt, rt) => { xe(Qe, Je, rt); const K = f == null ? void 0 : f.get(Je); K && (K.reloadLevel = 2), Ke.removeResolutionsFromProjectReferenceRedirects(Je), ln(); }, 2e3, ((on = Ut.parsedCommandLine) == null ? void 0 : on.watchOptions) || P, m_.ConfigFileOfReferencedProject)), (Sn = Ut.parsedCommandLine) != null && Sn.wildcardDirectories ? U5(Ut.watchedDirectories || (Ut.watchedDirectories = /* @__PURE__ */ new Map()), new Map(Object.entries((br = Ut.parsedCommandLine) == null ? void 0 : br.wildcardDirectories)), (Wt, rt) => { var K; return $e(Wt, (Oe) => { const Z = Xt(Oe); le && le.addOrDeleteFileOrDirectory(Oe, Z), fr(Z); const we = f == null ? void 0 : f.get(Je); we != null && we.parsedCommandLine && (V5({ watchedDirPath: Xt(Wt), fileOrDirectory: Oe, fileOrDirectoryPath: Z, configFileName: Qe, options: we.parsedCommandLine.options, program: we.parsedCommandLine.fileNames, currentDirectory: O, useCaseSensitiveFileNames: I, writeLog: Ge, toPath: Xt }) || we.reloadLevel !== 2 && (we.reloadLevel = 1, ln())); }, rt, ((K = Ut.parsedCommandLine) == null ? void 0 : K.watchOptions) || P, m_.WildcardDirectoryOfReferencedProject); }) : Ut.watchedDirectories && (Jf(Ut.watchedDirectories, Hm), Ut.watchedDirectories = void 0), V(Je, (ce = Ut.parsedCommandLine) == null ? void 0 : ce.options, ((pt = Ut.parsedCommandLine) == null ? void 0 : pt.watchOptions) || P, m_.ExtendedConfigOfReferencedProject); } } var d7e = L({ "src/compiler/watchPublic.ts"() { Ra(), Ra(); } }); function lY(e) { return oc(e, ".json") ? e : Oi(e, "tsconfig.json"); } var cY, f7e = L({ "src/compiler/tsbuild.ts"() { Ra(), cY = /* @__PURE__ */ ((e) => (e[e.Unbuildable = 0] = "Unbuildable", e[e.UpToDate = 1] = "UpToDate", e[e.UpToDateWithUpstreamTypes = 2] = "UpToDateWithUpstreamTypes", e[e.OutOfDateWithPrepend = 3] = "OutOfDateWithPrepend", e[e.OutputMissing = 4] = "OutputMissing", e[e.ErrorReadingFile = 5] = "ErrorReadingFile", e[e.OutOfDateWithSelf = 6] = "OutOfDateWithSelf", e[e.OutOfDateWithUpstream = 7] = "OutOfDateWithUpstream", e[e.OutOfDateBuildInfo = 8] = "OutOfDateBuildInfo", e[e.OutOfDateOptions = 9] = "OutOfDateOptions", e[e.OutOfDateRoots = 10] = "OutOfDateRoots", e[e.UpstreamOutOfDate = 11] = "UpstreamOutOfDate", e[e.UpstreamBlocked = 12] = "UpstreamBlocked", e[e.ComputingUpstream = 13] = "ComputingUpstream", e[e.TsVersionOutputOfDate = 14] = "TsVersionOutputOfDate", e[e.UpToDateWithInputFileText = 15] = "UpToDateWithInputFileText", e[e.ContainerOnly = 16] = "ContainerOnly", e[e.ForceBuild = 17] = "ForceBuild", e))(cY || {}); } }); function _7e(e, t, r) { const i = e.get(t); let o; return i || (o = r(), e.set(t, o)), i || o; } function uY(e, t) { return _7e(e, t, () => /* @__PURE__ */ new Map()); } function D8(e) { return e.now ? e.now() : /* @__PURE__ */ new Date(); } function Fx(e) { return !!e && !!e.buildOrder; } function uF(e) { return Fx(e) ? e.buildOrder : e; } function pge(e, t) { return (r) => { let i = t ? `[${V1(k8(e), "\x1B[90m")}] ` : `${k8(e)} - `; i += `${Gv(r.messageText, e.newLine)}${e.newLine + e.newLine}`, e.write(i); }; } function mge(e, t, r, i) { const o = aY(e, t); return o.getModifiedTime = e.getModifiedTime ? (s) => e.getModifiedTime(s) : R0, o.setModifiedTime = e.setModifiedTime ? (s, c) => e.setModifiedTime(s, c) : io, o.deleteFile = e.deleteFile ? (s) => e.deleteFile(s) : io, o.reportDiagnostic = r || I8(e), o.reportSolutionBuilderStatus = i || pge(e), o.now = Fo(e, e.now), o; } function p7e(e = zc, t, r, i, o) { const s = mge(e, t, r, i); return s.reportErrorSummary = o, s; } function m7e(e = zc, t, r, i, o) { const s = mge(e, t, r, i), c = nY(e, o); return sj(s, c), s; } function h7e(e) { const t = {}; return QO.forEach((r) => { Ns(e, r.name) && (t[r.name] = e[r.name]); }), t; } function g7e(e, t, r) { return Bge(!1, e, t, r); } function y7e(e, t, r, i) { return Bge(!0, e, t, r, i); } function v7e(e, t, r, i, o) { const s = t, c = t, f = h7e(i), d = iY(s, () => I.projectCompilerOptions); sF(d), d.getParsedCommandLine = (O) => MT(I, O, gp(I, O)), d.resolveModuleNameLiterals = Fo(s, s.resolveModuleNameLiterals), d.resolveTypeReferenceDirectiveReferences = Fo(s, s.resolveTypeReferenceDirectiveReferences), d.resolveModuleNames = Fo(s, s.resolveModuleNames), d.resolveTypeReferenceDirectives = Fo(s, s.resolveTypeReferenceDirectives), d.getModuleResolutionCache = Fo(s, s.getModuleResolutionCache); let y, m; !d.resolveModuleNameLiterals && !d.resolveModuleNames && (y = s5(d.getCurrentDirectory(), d.getCanonicalFileName), d.resolveModuleNameLiterals = (O, k, B, U, j) => x8(O, k, B, U, j, s, y, LX), d.getModuleResolutionCache = () => y), !d.resolveTypeReferenceDirectiveReferences && !d.resolveTypeReferenceDirectives && (m = l5(d.getCurrentDirectory(), d.getCanonicalFileName, void 0, y == null ? void 0 : y.getPackageJsonInfoCache()), d.resolveTypeReferenceDirectiveReferences = (O, k, B, U, j) => x8(O, k, B, U, j, s, m, W5)), d.getBuildInfo = (O, k) => kge(I, O, gp(I, k), void 0); const { watchFile: b, watchDirectory: A, writeLog: C } = rY(c, i), I = { host: s, hostWithWatch: c, parseConfigFileHost: K5(s), write: Fo(s, s.trace), options: i, baseCompilerOptions: f, rootNames: r, baseWatchOptions: o, resolvedConfigFilePaths: /* @__PURE__ */ new Map(), configFileCache: /* @__PURE__ */ new Map(), projectStatus: /* @__PURE__ */ new Map(), extendedConfigCache: /* @__PURE__ */ new Map(), buildInfoCache: /* @__PURE__ */ new Map(), outputTimeStamps: /* @__PURE__ */ new Map(), builderPrograms: /* @__PURE__ */ new Map(), diagnostics: /* @__PURE__ */ new Map(), projectPendingBuild: /* @__PURE__ */ new Map(), projectErrorsReported: /* @__PURE__ */ new Map(), compilerHost: d, moduleResolutionCache: y, typeReferenceDirectiveResolutionCache: m, buildOrder: void 0, readFileWithCache: (O) => s.readFile(O), projectCompilerOptions: f, cache: void 0, allProjectBuildPending: !0, needsSummary: !0, watchAllProjectsPending: e, watch: e, allWatchedWildcardDirectories: /* @__PURE__ */ new Map(), allWatchedInputFiles: /* @__PURE__ */ new Map(), allWatchedConfigFiles: /* @__PURE__ */ new Map(), allWatchedExtendedConfigFiles: /* @__PURE__ */ new Map(), allWatchedPackageJsonFiles: /* @__PURE__ */ new Map(), filesWatched: /* @__PURE__ */ new Map(), lastCachedPackageJsonLookups: /* @__PURE__ */ new Map(), timerToBuildInvalidatedProject: void 0, reportFileChangeDetected: !1, watchFile: b, watchDirectory: A, writeLog: C }; return I; } function Fd(e, t) { return Hs(t, e.compilerHost.getCurrentDirectory(), e.compilerHost.getCanonicalFileName); } function gp(e, t) { const { resolvedConfigFilePaths: r } = e, i = r.get(t); if (i !== void 0) return i; const o = Fd(e, t); return r.set(t, o), o; } function hge(e) { return !!e.options; } function b7e(e, t) { const r = e.configFileCache.get(t); return r && hge(r) ? r : void 0; } function MT(e, t, r) { const { configFileCache: i } = e, o = i.get(r); if (o) return hge(o) ? o : void 0; rl("SolutionBuilder::beforeConfigFileParsing"); let s; const { parseConfigFileHost: c, baseCompilerOptions: f, baseWatchOptions: d, extendedConfigCache: y, host: m } = e; let b; return m.getParsedCommandLine ? (b = m.getParsedCommandLine(t), b || (s = Ps(_.File_0_not_found, t))) : (c.onUnRecoverableConfigFileDiagnostic = (A) => s = A, b = UO(t, f, c, y, d), c.onUnRecoverableConfigFileDiagnostic = io), i.set(r, b || s), rl("SolutionBuilder::afterConfigFileParsing"), Vf("SolutionBuilder::Config file parsing", "SolutionBuilder::beforeConfigFileParsing", "SolutionBuilder::afterConfigFileParsing"), b; } function OC(e, t) { return lY(mv(e.compilerHost.getCurrentDirectory(), t)); } function gge(e, t) { const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = []; let s, c; for (const d of t) f(d); return c ? { buildOrder: s || nt, circularDiagnostics: c } : s || nt; function f(d, y) { const m = gp(e, d); if (i.has(m)) return; if (r.has(m)) { y || (c || (c = [])).push(Ps(_.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0, o.join(`\r `))); return; } r.set(m, !0), o.push(d); const b = MT(e, d, m); if (b && b.projectReferences) for (const A of b.projectReferences) { const C = OC(e, A.path); f(C, y || A.circular); } o.pop(), i.set(m, !0), (s || (s = [])).push(d); } } function R8(e) { return e.buildOrder || E7e(e); } function E7e(e) { const t = gge(e, e.rootNames.map((o) => OC(e, o))); e.resolvedConfigFilePaths.clear(); const r = new Map(uF(t).map((o) => [gp(e, o), !0])), i = { onDeleteValue: io }; return lg(e.configFileCache, r, i), lg(e.projectStatus, r, i), lg(e.builderPrograms, r, i), lg(e.diagnostics, r, i), lg(e.projectPendingBuild, r, i), lg(e.projectErrorsReported, r, i), lg(e.buildInfoCache, r, i), lg(e.outputTimeStamps, r, i), e.watch && (lg(e.allWatchedConfigFiles, r, { onDeleteValue: Pm }), e.allWatchedExtendedConfigFiles.forEach((o) => { o.projects.forEach((s) => { r.has(s) || o.projects.delete(s); }), o.close(); }), lg(e.allWatchedWildcardDirectories, r, { onDeleteValue: (o) => o.forEach(Hm) }), lg(e.allWatchedInputFiles, r, { onDeleteValue: (o) => o.forEach(Pm) }), lg(e.allWatchedPackageJsonFiles, r, { onDeleteValue: (o) => o.forEach(Pm) })), e.buildOrder = t; } function yge(e, t, r) { const i = t && OC(e, t), o = R8(e); if (Fx(o)) return o; if (i) { const c = gp(e, i); if ($i(o, (d) => gp(e, d) === c) === -1) return; } const s = i ? gge(e, [i]) : o; return D.assert(!Fx(s)), D.assert(!r || i !== void 0), D.assert(!r || s[s.length - 1] === i), r ? s.slice(0, s.length - 1) : s; } function vge(e) { e.cache && dY(e); const { compilerHost: t, host: r } = e, i = e.readFileWithCache, o = t.getSourceFile, { originalReadFile: s, originalFileExists: c, originalDirectoryExists: f, originalCreateDirectory: d, originalWriteFile: y, getSourceFileWithCache: m, readFileWithCache: b } = T8(r, (A) => Fd(e, A), (...A) => o.call(t, ...A)); e.readFileWithCache = b, t.getSourceFile = m, e.cache = { originalReadFile: s, originalFileExists: c, originalDirectoryExists: f, originalCreateDirectory: d, originalWriteFile: y, originalReadFileWithCache: i, originalGetSourceFile: o }; } function dY(e) { if (!e.cache) return; const { cache: t, host: r, compilerHost: i, extendedConfigCache: o, moduleResolutionCache: s, typeReferenceDirectiveResolutionCache: c } = e; r.readFile = t.originalReadFile, r.fileExists = t.originalFileExists, r.directoryExists = t.originalDirectoryExists, r.createDirectory = t.originalCreateDirectory, r.writeFile = t.originalWriteFile, i.getSourceFile = t.originalGetSourceFile, e.readFileWithCache = t.originalReadFileWithCache, o.clear(), s == null || s.clear(), c == null || c.clear(), e.cache = void 0; } function bge(e, t) { e.projectStatus.delete(t), e.diagnostics.delete(t); } function Ege({ projectPendingBuild: e }, t, r) { const i = e.get(t); (i === void 0 || i < r) && e.set(t, r); } function Tge(e, t) { if (!e.allProjectBuildPending) return; e.allProjectBuildPending = !1, e.options.watch && SY(e, _.Starting_compilation_in_watch_mode), vge(e), uF(R8(e)).forEach((i) => e.projectPendingBuild.set(gp(e, i), 0)), t && t.throwIfCancellationRequested(); } function Sge(e, t) { return e.projectPendingBuild.delete(t), e.diagnostics.has(t) ? 1 : 0; } function T7e(e, t, r, i, o) { let s = !0; return { kind: 2, project: t, projectPath: r, buildOrder: o, getCompilerOptions: () => i.options, getCurrentDirectory: () => e.compilerHost.getCurrentDirectory(), updateOutputFileStatmps: () => { Dge(e, i, r), s = !1; }, done: () => (s && Dge(e, i, r), rl("SolutionBuilder::Timestamps only updates"), Sge(e, r)) }; } function xge(e, t, r, i, o, s, c) { let f = e === 0 ? 0 : 4, d, y, m; return e === 0 ? { kind: e, project: r, projectPath: i, buildOrder: c, getCompilerOptions: () => s.options, getCurrentDirectory: () => t.compilerHost.getCurrentDirectory(), getBuilderProgram: () => A(_l), getProgram: () => A((P) => P.getProgramOrUndefined()), getSourceFile: (P) => A((ue) => ue.getSourceFile(P)), getSourceFiles: () => C((P) => P.getSourceFiles()), getOptionsDiagnostics: (P) => C((ue) => ue.getOptionsDiagnostics(P)), getGlobalDiagnostics: (P) => C((ue) => ue.getGlobalDiagnostics(P)), getConfigFileParsingDiagnostics: () => C((P) => P.getConfigFileParsingDiagnostics()), getSyntacticDiagnostics: (P, ue) => C((ne) => ne.getSyntacticDiagnostics(P, ue)), getAllDependencies: (P) => C((ue) => ue.getAllDependencies(P)), getSemanticDiagnostics: (P, ue) => C((ne) => ne.getSemanticDiagnostics(P, ue)), getSemanticDiagnosticsOfNextAffectedFile: (P, ue) => A((ne) => ne.getSemanticDiagnosticsOfNextAffectedFile && ne.getSemanticDiagnosticsOfNextAffectedFile(P, ue)), emit: (P, ue, ne, ge, ie) => { if (P || ge) return A((H) => { var le, pe; return H.emit(P, ue, ne, ge, ie || ((pe = (le = t.host).getCustomTransformers) == null ? void 0 : pe.call(le, r))); }); if (Y(2, ne), f === 5) return j(ue, ne); if (f === 3) return U(ue, ne, ie); }, done: b } : { kind: e, project: r, projectPath: i, buildOrder: c, getCompilerOptions: () => s.options, getCurrentDirectory: () => t.compilerHost.getCurrentDirectory(), emit: (P, ue) => f !== 4 ? m : X(P, ue), done: b }; function b(P, ue, ne) { return Y(8, P, ue, ne), rl(e === 0 ? "SolutionBuilder::Projects built" : "SolutionBuilder::Bundles updated"), Sge(t, i); } function A(P) { return Y(0), d && P(d); } function C(P) { return A(P) || nt; } function I() { var P, ue; if (D.assert(d === void 0), t.options.dry) { Mu(t, _.A_non_dry_build_would_build_project_0, r), y = 1, f = 7; return; } if (t.options.verbose && Mu(t, _.Building_project_0, r), s.fileNames.length === 0) { PC(t, i, OT(s)), y = 0, f = 7; return; } const { host: ne, compilerHost: ge } = t; t.projectCompilerOptions = s.options, (P = t.moduleResolutionCache) == null || P.update(s.options), (ue = t.typeReferenceDirectiveResolutionCache) == null || ue.update(s.options), d = ne.createProgram(s.fileNames, s.options, ge, x7e(t, i, s), OT(s), s.projectReferences), t.watch && (t.lastCachedPackageJsonLookups.set(i, t.moduleResolutionCache && rn(t.moduleResolutionCache.getPackageJsonInfoCache().entries(), ([ie, H]) => [t.host.realpath && H ? Fd(t, t.host.realpath(ie)) : ie, H])), t.builderPrograms.set(i, d)), f++; } function O(P, ue, ne) { P.length ? { buildResult: y, step: f } = pY(t, i, d, s, P, ue, ne) : f++; } function k(P) { D.assertIsDefined(d), O([ ...d.getConfigFileParsingDiagnostics(), ...d.getOptionsDiagnostics(P), ...d.getGlobalDiagnostics(P), ...d.getSyntacticDiagnostics(void 0, P) ], 8, "Syntactic"); } function B(P) { O(D.checkDefined(d).getSemanticDiagnostics(void 0, P), 16, "Semantic"); } function U(P, ue, ne) { var ge, ie, H; D.assertIsDefined(d), D.assert(f === 3); const le = d.saveEmitState(); let pe; const ye = (ot) => (pe || (pe = [])).push(ot), Te = [], { emitResult: ee } = aF(d, ye, void 0, void 0, (ot, At, bt, Vt, et, it) => Te.push({ name: ot, text: At, writeByteOrderMark: bt, data: it }), ue, !1, ne || ((ie = (ge = t.host).getCustomTransformers) == null ? void 0 : ie.call(ge, r))); if (pe) return d.restoreEmitState(le), { buildResult: y, step: f } = pY(t, i, d, s, pe, 32, "Declaration file"), { emitSkipped: !0, diagnostics: ee.diagnostics }; const { host: $e, compilerHost: Ge } = t, Fe = (H = d.hasChangedEmitSignature) != null && H.call(d) ? 0 : 2, We = HA(), Re = /* @__PURE__ */ new Map(), Pe = d.getCompilerOptions(), Ke = jN(Pe); let He, Me; return Te.forEach(({ name: ot, text: At, writeByteOrderMark: bt, data: Vt }) => { const et = Fd(t, ot); Re.set(Fd(t, ot), ot), Vt != null && Vt.buildInfo && hY(t, Vt.buildInfo, i, Pe, Fe); const it = Vt != null && Vt.differsOnlyInMap ? BS(t.host, ot) : void 0; BI(P ? { writeFile: P } : Ge, We, ot, At, bt), Vt != null && Vt.differsOnlyInMap ? t.host.setModifiedTime(ot, it) : !Ke && t.watch && (He || (He = mY(t, i))).set(et, Me || (Me = D8(t.host))); }), te(We, Re, Te.length ? Te[0].name : dX(s, !$e.useCaseSensitiveFileNames()), Fe), ee; } function j(P, ue) { D.assertIsDefined(d), D.assert(f === 5); const ne = d.emitBuildInfo((ge, ie, H, le, pe, ye) => { ye != null && ye.buildInfo && hY(t, ye.buildInfo, i, d.getCompilerOptions(), 2), P ? P(ge, ie, H, le, pe, ye) : t.compilerHost.writeFile(ge, ie, H, le, pe, ye); }, ue); return ne.diagnostics.length && (O8(t, ne.diagnostics), t.diagnostics.set(i, [...t.diagnostics.get(i), ...ne.diagnostics]), y = 64 & y), ne.emittedFiles && t.write && ne.emittedFiles.forEach((ge) => Lge(t, s, ge)), _Y(t, d, s), f = 7, ne; } function te(P, ue, ne, ge) { const ie = P.getDiagnostics(); return ie.length ? ({ buildResult: y, step: f } = pY(t, i, d, s, ie, 64, "Emit"), ie) : (t.write && ue.forEach((H) => Lge(t, s, H)), wge(t, s, i, _.Updating_unchanged_output_timestamps_of_project_0, ue), t.diagnostics.delete(i), t.projectStatus.set(i, { type: 1, oldestOutputFileName: ne }), _Y(t, d, s), f = 7, y = ge, ie); } function X(P, ue) { var ne, ge, ie, H; if (D.assert(e === 1), t.options.dry) { Mu(t, _.A_non_dry_build_would_update_output_of_project_0, r), y = 1, f = 7; return; } t.options.verbose && Mu(t, _.Updating_output_of_project_0, r); const { compilerHost: le } = t; t.projectCompilerOptions = s.options, (ge = (ne = t.host).beforeEmitBundle) == null || ge.call(ne, s); const pe = xhe(s, le, (Fe) => { const We = OC(t, Fe.path); return MT(t, We, gp(t, We)); }, ue || ((H = (ie = t.host).getCustomTransformers) == null ? void 0 : H.call(ie, r))); if (Va(pe)) return Mu(t, _.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1, r, wc(t, pe)), f = 6, m = xge(0, t, r, i, o, s, c); D.assert(!!pe.length); const ye = HA(), Te = /* @__PURE__ */ new Map(); let ee = 2; const $e = t.buildInfoCache.get(i).buildInfo || void 0; return pe.forEach(({ name: Fe, text: We, writeByteOrderMark: Re, data: Pe }) => { var Ke, He; Te.set(Fd(t, Fe), Fe), Pe != null && Pe.buildInfo && (((Ke = Pe.buildInfo.program) == null ? void 0 : Ke.outSignature) !== ((He = $e == null ? void 0 : $e.program) == null ? void 0 : He.outSignature) && (ee &= -3), hY(t, Pe.buildInfo, i, s.options, ee)), BI(P ? { writeFile: P } : le, ye, Fe, We, Re); }), { emitSkipped: !1, diagnostics: te(ye, Te, pe[0].name, ee) }; } function Y(P, ue, ne, ge) { for (; f <= P && f < 8; ) { const ie = f; switch (f) { case 0: I(); break; case 1: k(ue); break; case 2: B(ue); break; case 3: U(ne, ue, ge); break; case 5: j(ne, ue); break; case 4: X(ne, ge); break; case 6: D.checkDefined(m).done(ue, ne, ge), f = 8; break; case 7: I7e(t, r, i, o, s, c, D.checkDefined(y)), f++; break; } D.assert(f > ie); } } } function S7e({ options: e }, t, r) { return t.type !== 3 || e.force ? !0 : r.fileNames.length === 0 || !!OT(r).length || !jN(r.options); } function Age(e, t, r) { if (!e.projectPendingBuild.size || Fx(t)) return; const { options: i, projectPendingBuild: o } = e; for (let s = 0; s < t.length; s++) { const c = t[s], f = gp(e, c), d = e.projectPendingBuild.get(f); if (d === void 0) continue; r && (r = !1, Vge(e, t)); const y = MT(e, c, f); if (!y) { Gge(e, f), o.delete(f); continue; } d === 2 ? (Pge(e, c, f, y), Mge(e, f, y), Fge(e, c, f, y), EY(e, c, f, y), TY(e, c, f, y)) : d === 1 && (y.fileNames = JO(y.options.configFile.configFileSpecs, fi(c), y.options, e.parseConfigFileHost), zJ(y.fileNames, c, y.options.configFile.configFileSpecs, y.errors, zO(y.raw)), EY(e, c, f, y), TY(e, c, f, y)); const m = vY(e, y, f); if (!i.force) { if (m.type === 1) { _F(e, c, m), PC(e, f, OT(y)), o.delete(f), i.dry && Mu(e, _.Project_0_is_up_to_date, c); continue; } if (m.type === 2 || m.type === 15) return PC(e, f, OT(y)), { kind: 2, status: m, project: c, projectPath: f, projectIndex: s, config: y }; } if (m.type === 12) { _F(e, c, m), PC(e, f, OT(y)), o.delete(f), i.verbose && Mu(e, m.upstreamProjectBlocked ? _.Skipping_build_of_project_0_because_its_dependency_1_was_not_built : _.Skipping_build_of_project_0_because_its_dependency_1_has_errors, c, m.upstreamProjectName); continue; } if (m.type === 16) { _F(e, c, m), PC(e, f, OT(y)), o.delete(f); continue; } return { kind: S7e(e, m, y) ? 0 : 1, status: m, project: c, projectPath: f, projectIndex: s, config: y }; } } function Cge(e, t, r) { return _F(e, t.project, t.status), t.kind !== 2 ? xge(t.kind, e, t.project, t.projectPath, t.projectIndex, t.config, r) : T7e(e, t.project, t.projectPath, t.config, r); } function fY(e, t, r) { const i = Age(e, t, r); return i && Cge(e, i, t); } function Lge({ write: e }, t, r) { e && t.options.listEmittedFiles && e(`TSFILE: ${r}`); } function x7e({ options: e, builderPrograms: t, compilerHost: r }, i, o) { if (e.force) return; const s = t.get(i); return s || cF(o.options, r); } function _Y(e, t, r) { t ? (e.write && $X(t, e.write), e.host.afterProgramEmitAndDiagnostics && e.host.afterProgramEmitAndDiagnostics(t), t.releaseProgram()) : e.host.afterEmitBundle && e.host.afterEmitBundle(r), e.projectCompilerOptions = e.baseCompilerOptions; } function pY(e, t, r, i, o, s, c) { const f = r && !Ws(r.getCompilerOptions()); return PC(e, t, o), e.projectStatus.set(t, { type: 0, reason: `${c} errors` }), f ? { buildResult: s, step: 5 } : (_Y(e, r, i), { buildResult: s, step: 7 }); } function dF(e) { return !!e.watcher; } function Ige(e, t) { const r = Fd(e, t), i = e.filesWatched.get(r); if (e.watch && i) { if (!dF(i)) return i; if (i.modifiedTime) return i.modifiedTime; } const o = BS(e.host, t); return e.watch && (i ? i.modifiedTime = o : e.filesWatched.set(r, o)), o; } function fF(e, t, r, i, o, s, c) { const f = Fd(e, t), d = e.filesWatched.get(f); if (d && dF(d)) d.callbacks.push(r); else { const y = e.watchFile(t, (m, b, A) => { const C = D.checkDefined(e.filesWatched.get(f)); D.assert(dF(C)), C.modifiedTime = A, C.callbacks.forEach((I) => I(m, b, A)); }, i, o, s, c); e.filesWatched.set(f, { callbacks: [r], watcher: y, modifiedTime: d }); } return { close: () => { const y = D.checkDefined(e.filesWatched.get(f)); D.assert(dF(y)), y.callbacks.length === 1 ? (e.filesWatched.delete(f), Hm(y)) : iR(y.callbacks, r); } }; } function mY(e, t) { if (!e.watch) return; let r = e.outputTimeStamps.get(t); return r || e.outputTimeStamps.set(t, r = /* @__PURE__ */ new Map()), r; } function hY(e, t, r, i, o) { const s = xy(i), c = gY(e, s, r), f = D8(e.host); c ? (c.buildInfo = t, c.modifiedTime = f, o & 2 || (c.latestChangedDtsTime = f)) : e.buildInfoCache.set(r, { path: Fd(e, s), buildInfo: t, modifiedTime: f, latestChangedDtsTime: o & 2 ? void 0 : f }); } function gY(e, t, r) { const i = Fd(e, t), o = e.buildInfoCache.get(r); return (o == null ? void 0 : o.path) === i ? o : void 0; } function kge(e, t, r, i) { const o = Fd(e, t), s = e.buildInfoCache.get(r); if (s !== void 0 && s.path === o) return s.buildInfo || void 0; const c = e.readFileWithCache(t), f = c ? B5(t, c) : void 0; return e.buildInfoCache.set(r, { path: o, buildInfo: f || !1, modifiedTime: i || Yh }), f; } function yY(e, t, r, i) { const o = Ige(e, t); if (r < o) return { type: 6, outOfDateOutputFileName: i, newerInputFileName: t }; } function A7e(e, t, r) { var i, o; if (!t.fileNames.length && !zO(t.raw)) return { type: 16 }; let s; const c = !!e.options.force; if (t.projectReferences) { e.projectStatus.set(r, { type: 13 }); for (const ne of t.projectReferences) { const ge = Yk(ne), ie = gp(e, ge), H = MT(e, ge, ie), le = vY(e, H, ie); if (!(le.type === 13 || le.type === 16)) { if (le.type === 0 || le.type === 12) return { type: 12, upstreamProjectName: ne.path, upstreamProjectBlocked: le.type === 12 }; if (le.type !== 1) return { type: 11, upstreamProjectName: ne.path }; c || (s || (s = [])).push({ ref: ne, refStatus: le, resolvedRefPath: ie, resolvedConfig: H }); } } } if (c) return { type: 17 }; const { host: f } = e, d = xy(t.options); let y, m = Hge, b, A, C; if (d) { const ne = gY(e, d, r); if (b = (ne == null ? void 0 : ne.modifiedTime) || BS(f, d), b === Yh) return ne || e.buildInfoCache.set(r, { path: Fd(e, d), buildInfo: !1, modifiedTime: b }), { type: 4, missingOutputFileName: d }; const ge = kge(e, d, r, b); if (!ge) return { type: 5, fileName: d }; if ((ge.bundle || ge.program) && ge.version !== Ue) return { type: 14, version: ge.version }; if (ge.program) { if ((i = ge.program.changeFileSet) != null && i.length || (t.options.noEmit ? kt(ge.program.semanticDiagnosticsPerFile, Ga) : (o = ge.program.affectedFilesPendingEmit) != null && o.length)) return { type: 8, buildInfoFile: d }; if (!t.options.noEmit && RC(t.options, ge.program.options || {})) return { type: 9, buildInfoFile: d }; A = ge.program; } m = b, y = d; } let I, O = jge, k = !1; const B = /* @__PURE__ */ new Set(); for (const ne of t.fileNames) { const ge = Ige(e, ne); if (ge === Yh) return { type: 0, reason: `${ne} does not exist` }; if (b && b < ge) { let ie, H; if (A) { C || (C = WX(A, d, f)), ie = C.fileInfos.get(Fd(e, ne)); const le = ie ? e.readFileWithCache(ne) : void 0; H = le !== void 0 ? oF(f, le) : void 0, ie && ie === H && (k = !0); } if (!ie || ie !== H) return { type: 6, outOfDateOutputFileName: d, newerInputFileName: ne }; } ge > O && (I = ne, O = ge), A && B.add(Fd(e, ne)); } if (A) { C || (C = WX(A, d, f)); for (const ne of C.roots) if (!B.has(ne)) return { type: 10, buildInfoFile: d, inputFile: ne }; } if (!d) { const ne = M5(t, !f.useCaseSensitiveFileNames()), ge = mY(e, r); for (const ie of ne) { const H = Fd(e, ie); let le = ge == null ? void 0 : ge.get(H); if (le || (le = BS(e.host, ie), ge == null || ge.set(H, le)), le === Yh) return { type: 4, missingOutputFileName: ie }; if (le < O) return { type: 6, outOfDateOutputFileName: ie, newerInputFileName: I }; le < m && (m = le, y = ie); } } const U = e.buildInfoCache.get(r); let j = !1, te = !1, X; if (s) for (const { ref: ne, refStatus: ge, resolvedConfig: ie, resolvedRefPath: H } of s) { if (te = te || !!ne.prepend, ge.newestInputFileTime && ge.newestInputFileTime <= m) continue; if (U && C7e(e, U, H)) return { type: 7, outOfDateOutputFileName: d, newerProjectName: ne.path }; const le = L7e(e, ie.options, H); if (le && le <= m) { j = !0, X = ne.path; continue; } return D.assert(y !== void 0, "Should have an oldest output filename here"), { type: 7, outOfDateOutputFileName: y, newerProjectName: ne.path }; } const Y = yY(e, t.options.configFilePath, m, y); if (Y) return Y; const P = Ye(t.options.configFile.extendedSourceFiles || nt, (ne) => yY(e, ne, m, y)); if (P) return P; const ue = Ye(e.lastCachedPackageJsonLookups.get(r) || nt, ([ne]) => yY(e, ne, m, y)); return ue || (te && j ? { type: 3, outOfDateOutputFileName: y, newerProjectName: X } : { type: j ? 2 : k ? 15 : 1, newestInputFileTime: O, newestInputFileName: I, oldestOutputFileName: y }); } function C7e(e, t, r) { return e.buildInfoCache.get(r).path === t.path; } function vY(e, t, r) { if (t === void 0) return { type: 0, reason: "File deleted mid-build" }; const i = e.projectStatus.get(r); if (i !== void 0) return i; rl("SolutionBuilder::beforeUpToDateCheck"); const o = A7e(e, t, r); return rl("SolutionBuilder::afterUpToDateCheck"), Vf("SolutionBuilder::Up-to-date check", "SolutionBuilder::beforeUpToDateCheck", "SolutionBuilder::afterUpToDateCheck"), e.projectStatus.set(r, o), o; } function wge(e, t, r, i, o) { if (t.options.noEmit) return; let s; const c = xy(t.options); if (c) { o != null && o.has(Fd(e, c)) || (e.options.verbose && Mu(e, i, t.options.configFilePath), e.host.setModifiedTime(c, s = D8(e.host)), gY(e, c, r).modifiedTime = s), e.outputTimeStamps.delete(r); return; } const { host: f } = e, d = M5(t, !f.useCaseSensitiveFileNames()), y = mY(e, r), m = y ? /* @__PURE__ */ new Set() : void 0; if (!o || d.length !== o.size) { let b = !!e.options.verbose; for (const A of d) { const C = Fd(e, A); o != null && o.has(C) || (b && (b = !1, Mu(e, i, t.options.configFilePath)), f.setModifiedTime(A, s || (s = D8(e.host))), y && (y.set(C, s), m.add(C))); } } y == null || y.forEach((b, A) => { !(o != null && o.has(A)) && !m.has(A) && y.delete(A); }); } function L7e(e, t, r) { if (!t.composite) return; const i = D.checkDefined(e.buildInfoCache.get(r)); if (i.latestChangedDtsTime !== void 0) return i.latestChangedDtsTime || void 0; const o = i.buildInfo && i.buildInfo.program && i.buildInfo.program.latestChangedDtsFile ? e.host.getModifiedTime(Na(i.buildInfo.program.latestChangedDtsFile, fi(i.path))) : void 0; return i.latestChangedDtsTime = o || !1, o; } function Dge(e, t, r) { if (e.options.dry) return Mu(e, _.A_non_dry_build_would_update_timestamps_for_output_of_project_0, t.options.configFilePath); wge(e, t, r, _.Updating_output_timestamps_of_project_0), e.projectStatus.set(r, { type: 1, oldestOutputFileName: dX(t, !e.host.useCaseSensitiveFileNames()) }); } function I7e(e, t, r, i, o, s, c) { if (!(c & 124) && o.options.composite) for (let f = i + 1; f < s.length; f++) { const d = s[f], y = gp(e, d); if (e.projectPendingBuild.has(y)) continue; const m = MT(e, d, y); if (!(!m || !m.projectReferences)) for (const b of m.projectReferences) { const A = OC(e, b.path); if (gp(e, A) !== r) continue; const C = e.projectStatus.get(y); if (C) switch (C.type) { case 1: if (c & 2) { b.prepend ? e.projectStatus.set(y, { type: 3, outOfDateOutputFileName: C.oldestOutputFileName, newerProjectName: t }) : C.type = 2; break; } case 15: case 2: case 3: c & 2 || e.projectStatus.set(y, { type: 7, outOfDateOutputFileName: C.type === 3 ? C.outOfDateOutputFileName : C.oldestOutputFileName, newerProjectName: t }); break; case 12: gp(e, OC(e, C.upstreamProjectName)) === r && bge(e, y); break; } Ege(e, y, 0); break; } } } function Rge(e, t, r, i, o, s) { rl("SolutionBuilder::beforeBuild"); const c = k7e(e, t, r, i, o, s); return rl("SolutionBuilder::afterBuild"), Vf("SolutionBuilder::Build", "SolutionBuilder::beforeBuild", "SolutionBuilder::afterBuild"), c; } function k7e(e, t, r, i, o, s) { const c = yge(e, t, s); if (!c) return 3; Tge(e, r); let f = !0, d = 0; for (; ; ) { const y = fY(e, c, f); if (!y) break; f = !1, y.done(r, i, o == null ? void 0 : o(y.project)), e.diagnostics.has(y.projectPath) || d++; } return dY(e), Uge(e, c), N7e(e, c), Fx(c) ? 4 : c.some((y) => e.diagnostics.has(gp(e, y))) ? d ? 2 : 1 : 0; } function Nge(e, t, r) { rl("SolutionBuilder::beforeClean"); const i = w7e(e, t, r); return rl("SolutionBuilder::afterClean"), Vf("SolutionBuilder::Clean", "SolutionBuilder::beforeClean", "SolutionBuilder::afterClean"), i; } function w7e(e, t, r) { const i = yge(e, t, r); if (!i) return 3; if (Fx(i)) return O8(e, i.circularDiagnostics), 4; const { options: o, host: s } = e, c = o.dry ? [] : void 0; for (const f of i) { const d = gp(e, f), y = MT(e, f, d); if (y === void 0) { Gge(e, d); continue; } const m = M5(y, !s.useCaseSensitiveFileNames()); if (!m.length) continue; const b = new Set(y.fileNames.map((A) => Fd(e, A))); for (const A of m) b.has(Fd(e, A)) || s.fileExists(A) && (c ? c.push(A) : (s.deleteFile(A), bY(e, d, 0))); } return c && Mu(e, _.A_non_dry_build_would_delete_the_following_files_Colon_0, c.map((f) => `\r * ${f}`).join("")), 0; } function bY(e, t, r) { e.host.getParsedCommandLine && r === 1 && (r = 2), r === 2 && (e.configFileCache.delete(t), e.buildOrder = void 0), e.needsSummary = !0, bge(e, t), Ege(e, t, r), vge(e); } function N8(e, t, r) { e.reportFileChangeDetected = !0, bY(e, t, r), Oge(e, 250, !0); } function Oge(e, t, r) { const { hostWithWatch: i } = e; !i.setTimeout || !i.clearTimeout || (e.timerToBuildInvalidatedProject && i.clearTimeout(e.timerToBuildInvalidatedProject), e.timerToBuildInvalidatedProject = i.setTimeout(D7e, t, e, r)); } function D7e(e, t) { rl("SolutionBuilder::beforeBuild"); const r = R7e(e, t); rl("SolutionBuilder::afterBuild"), Vf("SolutionBuilder::Build", "SolutionBuilder::beforeBuild", "SolutionBuilder::afterBuild"), r && Uge(e, r); } function R7e(e, t) { e.timerToBuildInvalidatedProject = void 0, e.reportFileChangeDetected && (e.reportFileChangeDetected = !1, e.projectErrorsReported.clear(), SY(e, _.File_change_detected_Starting_incremental_compilation)); let r = 0; const i = R8(e), o = fY(e, i, !1); if (o) for (o.done(), r++; e.projectPendingBuild.size; ) { if (e.timerToBuildInvalidatedProject) return; const s = Age(e, i, !1); if (!s) break; if (s.kind !== 2 && (t || r === 5)) { Oge(e, 100, !1); return; } Cge(e, s, i).done(), s.kind !== 2 && r++; } return dY(e), i; } function Pge(e, t, r, i) { !e.watch || e.allWatchedConfigFiles.has(r) || e.allWatchedConfigFiles.set(r, fF(e, t, () => N8(e, r, 2), 2e3, i == null ? void 0 : i.watchOptions, m_.ConfigFile, t)); } function Mge(e, t, r) { mX(t, r == null ? void 0 : r.options, e.allWatchedExtendedConfigFiles, (i, o) => fF(e, i, () => { var s; return (s = e.allWatchedExtendedConfigFiles.get(o)) == null ? void 0 : s.projects.forEach((c) => N8(e, c, 2)); }, 2e3, r == null ? void 0 : r.watchOptions, m_.ExtendedConfigFile), (i) => Fd(e, i)); } function Fge(e, t, r, i) { e.watch && U5(uY(e.allWatchedWildcardDirectories, r), new Map(Object.entries(i.wildcardDirectories)), (o, s) => e.watchDirectory(o, (c) => { var f; V5({ watchedDirPath: Fd(e, o), fileOrDirectory: c, fileOrDirectoryPath: Fd(e, c), configFileName: t, currentDirectory: e.compilerHost.getCurrentDirectory(), options: i.options, program: e.builderPrograms.get(r) || ((f = b7e(e, r)) == null ? void 0 : f.fileNames), useCaseSensitiveFileNames: e.parseConfigFileHost.useCaseSensitiveFileNames, writeLog: (d) => e.writeLog(d), toPath: (d) => Fd(e, d) }) || N8(e, r, 1); }, s, i == null ? void 0 : i.watchOptions, m_.WildcardDirectory, t)); } function EY(e, t, r, i) { e.watch && KA(uY(e.allWatchedInputFiles, r), $b(i.fileNames, (o) => Fd(e, o)), { createNewValue: (o, s) => fF(e, s, () => N8(e, r, 0), 250, i == null ? void 0 : i.watchOptions, m_.SourceFile, t), onDeleteValue: Pm }); } function TY(e, t, r, i) { !e.watch || !e.lastCachedPackageJsonLookups || KA(uY(e.allWatchedPackageJsonFiles, r), new Map(e.lastCachedPackageJsonLookups.get(r)), { createNewValue: (o, s) => fF(e, o, () => N8(e, r, 0), 2e3, i == null ? void 0 : i.watchOptions, m_.PackageJson, t), onDeleteValue: Pm }); } function N7e(e, t) { if (e.watchAllProjectsPending) { rl("SolutionBuilder::beforeWatcherCreation"), e.watchAllProjectsPending = !1; for (const r of uF(t)) { const i = gp(e, r), o = MT(e, r, i); Pge(e, r, i, o), Mge(e, i, o), o && (Fge(e, r, i, o), EY(e, r, i, o), TY(e, r, i, o)); } rl("SolutionBuilder::afterWatcherCreation"), Vf("SolutionBuilder::Watcher creation", "SolutionBuilder::beforeWatcherCreation", "SolutionBuilder::afterWatcherCreation"); } } function O7e(e) { Jf(e.allWatchedConfigFiles, Pm), Jf(e.allWatchedExtendedConfigFiles, Hm), Jf(e.allWatchedWildcardDirectories, (t) => Jf(t, Hm)), Jf(e.allWatchedInputFiles, (t) => Jf(t, Pm)), Jf(e.allWatchedPackageJsonFiles, (t) => Jf(t, Pm)); } function Bge(e, t, r, i, o) { const s = v7e(e, t, r, i, o); return { build: (c, f, d, y) => Rge(s, c, f, d, y), clean: (c) => Nge(s, c), buildReferences: (c, f, d, y) => Rge(s, c, f, d, y, !0), cleanReferences: (c) => Nge(s, c, !0), getNextInvalidatedProject: (c) => (Tge(s, c), fY(s, R8(s), !1)), getBuildOrder: () => R8(s), getUpToDateStatusOfProject: (c) => { const f = OC(s, c), d = gp(s, f); return vY(s, MT(s, f, d), d); }, invalidateProject: (c, f) => bY(s, c, f || 0), close: () => O7e(s) }; } function wc(e, t) { return nI(t, e.compilerHost.getCurrentDirectory(), e.compilerHost.getCanonicalFileName); } function Mu(e, t, ...r) { e.host.reportSolutionBuilderStatus(Ps(t, ...r)); } function SY(e, t, ...r) { var i, o; (o = (i = e.hostWithWatch).onWatchStatusChange) == null || o.call(i, Ps(t, ...r), e.host.getNewLine(), e.baseCompilerOptions); } function O8({ host: e }, t) { t.forEach((r) => e.reportDiagnostic(r)); } function PC(e, t, r) { O8(e, r), e.projectErrorsReported.set(t, !0), r.length && e.diagnostics.set(t, r); } function Gge(e, t) { PC(e, t, [e.configFileCache.get(t)]); } function Uge(e, t) { if (!e.needsSummary) return; e.needsSummary = !1; const r = e.watch || !!e.host.reportErrorSummary, { diagnostics: i } = e; let o = 0, s = []; Fx(t) ? (Vge(e, t.buildOrder), O8(e, t.circularDiagnostics), r && (o += rF(t.circularDiagnostics)), r && (s = [...s, ...iF(t.circularDiagnostics)])) : (t.forEach((c) => { const f = gp(e, c); e.projectErrorsReported.has(f) || O8(e, i.get(f) || nt); }), r && i.forEach((c) => o += rF(c)), r && i.forEach((c) => [...s, ...iF(c)])), e.watch ? SY(e, YX(o), o) : e.host.reportErrorSummary && e.host.reportErrorSummary(o, s); } function Vge(e, t) { e.options.verbose && Mu(e, _.Projects_in_this_build_Colon_0, t.map((r) => `\r * ` + wc(e, r)).join("")); } function P7e(e, t, r) { switch (r.type) { case 6: return Mu(e, _.Project_0_is_out_of_date_because_output_1_is_older_than_input_2, wc(e, t), wc(e, r.outOfDateOutputFileName), wc(e, r.newerInputFileName)); case 7: return Mu(e, _.Project_0_is_out_of_date_because_output_1_is_older_than_input_2, wc(e, t), wc(e, r.outOfDateOutputFileName), wc(e, r.newerProjectName)); case 4: return Mu(e, _.Project_0_is_out_of_date_because_output_file_1_does_not_exist, wc(e, t), wc(e, r.missingOutputFileName)); case 5: return Mu(e, _.Project_0_is_out_of_date_because_there_was_error_reading_file_1, wc(e, t), wc(e, r.fileName)); case 8: return Mu(e, _.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted, wc(e, t), wc(e, r.buildInfoFile)); case 9: return Mu(e, _.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions, wc(e, t), wc(e, r.buildInfoFile)); case 10: return Mu(e, _.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more, wc(e, t), wc(e, r.buildInfoFile), wc(e, r.inputFile)); case 1: if (r.newestInputFileTime !== void 0) return Mu(e, _.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2, wc(e, t), wc(e, r.newestInputFileName || ""), wc(e, r.oldestOutputFileName || "")); break; case 3: return Mu(e, _.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed, wc(e, t), wc(e, r.newerProjectName)); case 2: return Mu(e, _.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies, wc(e, t)); case 15: return Mu(e, _.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files, wc(e, t)); case 11: return Mu(e, _.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date, wc(e, t), wc(e, r.upstreamProjectName)); case 12: return Mu(e, r.upstreamProjectBlocked ? _.Project_0_can_t_be_built_because_its_dependency_1_was_not_built : _.Project_0_can_t_be_built_because_its_dependency_1_has_errors, wc(e, t), wc(e, r.upstreamProjectName)); case 0: return Mu(e, _.Failed_to_parse_file_0_Colon_1, wc(e, t), r.reason); case 14: return Mu(e, _.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2, wc(e, t), r.version, Ue); case 17: return Mu(e, _.Project_0_is_being_forcibly_rebuilt, wc(e, t)); } } function _F(e, t, r) { e.options.verbose && P7e(e, t, r); } var jge, Hge, xY, M7e = L({ "src/compiler/tsbuildPublic.ts"() { Ra(), Ra(), i1(), jge = /* @__PURE__ */ new Date(-864e13), Hge = /* @__PURE__ */ new Date(864e13), xY = /* @__PURE__ */ ((e) => (e[e.Build = 0] = "Build", e[e.UpdateBundle = 1] = "UpdateBundle", e[e.UpdateOutputFileStamps = 2] = "UpdateOutputFileStamps", e))(xY || {}); } }), Ra = L({ "src/compiler/_namespaces/ts.ts"() { Ct(), mNe(), hNe(), CNe(), kNe(), wNe(), VNe(), zse(), QNe(), oOe(), sOe(), fOe(), NOe(), Q8e(), Z8e(), e6e(), t6e(), _6e(), g6e(), y6e(), M6e(), m4e(), h4e(), L4e(), ePe(), wPe(), MPe(), FPe(), KPe(), eMe(), cMe(), hMe(), kMe(), wMe(), DMe(), FMe(), BMe(), GMe(), UMe(), VMe(), jMe(), HMe(), WMe(), zMe(), qMe(), JMe(), KMe(), XMe(), YMe(), QMe(), ZMe(), e3e(), t3e(), n3e(), r3e(), c3e(), m3e(), C3e(), k3e(), P3e(), M3e(), F3e(), Q3e(), t7e(), r7e(), l7e(), d7e(), f7e(), M7e(), wK(), i1(); } }); function Wge(e, t) { return new k_(ZD(t, `ts${ve}`) || ZD(t, "latest")).compareTo(e.version) <= 0; } function zge(e) { return kY.has(e) ? "node" : e; } function F7e(e, t) { const r = VO(t, (i) => e.readFile(i)); return new Map(Object.entries(r.config)); } function B7e(e, t) { var r; const i = VO(t, (o) => e.readFile(o)); if ((r = i.config) != null && r.simpleMap) return new Map(Object.entries(i.config.simpleMap)); } function G7e(e, t, r, i, o, s, c, f, d, y) { if (!c || !c.enable) return { cachedTypingPaths: [], newTypingNames: [], filesToWatch: [] }; const m = /* @__PURE__ */ new Map(); r = _a(r, (te) => { const X = Wo(te); if (lx(X)) return X; }); const b = []; c.include && B(c.include, "Explicitly included types"); const A = c.exclude || []; if (!y.types) { const te = new Set(r.map(fi)); te.add(i), te.forEach((X) => { U(X, "bower.json", "bower_components", b), U(X, "package.json", "node_modules", b); }); } if (c.disableFilenameBasedTypeAcquisition || j(r), f) { const te = oA(f.map(zge), RS, Lu); B(te, "Inferred typings from unresolved imports"); } s.forEach((te, X) => { const Y = d.get(X); m.has(X) && m.get(X) === void 0 && Y !== void 0 && Wge(te, Y) && m.set(X, te.typingLocation); }); for (const te of A) m.delete(te) && t && t(`Typing for ${te} is in exclude list, will be ignored.`); const C = [], I = []; m.forEach((te, X) => { te !== void 0 ? I.push(te) : C.push(X); }); const O = { cachedTypingPaths: I, newTypingNames: C, filesToWatch: b }; return t && t(`Result: ${JSON.stringify(O)}`), O; function k(te) { m.has(te) || m.set(te, void 0); } function B(te, X) { t && t(`${X}: ${JSON.stringify(te)}`), Ye(te, k); } function U(te, X, Y, P) { const ue = Oi(te, X); let ne, ge; e.fileExists(ue) && (P.push(ue), ne = VO(ue, (pe) => e.readFile(pe)).config, ge = Mo([ne.dependencies, ne.devDependencies, ne.optionalDependencies, ne.peerDependencies], Xh), B(ge, `Typing names in '${ue}' dependencies`)); const ie = Oi(te, Y); if (P.push(ie), !e.directoryExists(ie)) return; const H = [], le = ge ? ge.map((pe) => Oi(ie, pe, X)) : e.readDirectory(ie, [".json"], void 0, void 0, 3).filter((pe) => { if (cu(pe) !== X) return !1; const ye = rd(Wo(pe)), Te = ye[ye.length - 3][0] === "@"; return Te && I_(ye[ye.length - 4]) === Y || !Te && I_(ye[ye.length - 3]) === Y; }); t && t(`Searching for typing names in ${ie}; all files: ${JSON.stringify(le)}`); for (const pe of le) { const ye = Wo(pe), ee = VO(ye, (Ge) => e.readFile(Ge)).config; if (!ee.name) continue; const $e = ee.types || ee.typings; if ($e) { const Ge = Na($e, fi(ye)); e.fileExists(Ge) ? (t && t(` Package '${ee.name}' provides its own types.`), m.set(ee.name, Ge)) : t && t(` Package '${ee.name}' provides its own types but they are missing.`); } else H.push(ee.name); } B(H, " Found package names"); } function j(te) { const X = _a(te, (P) => { if (!lx(P)) return; const ue = Od(I_(cu(P))), ne = gse(ue); return o.get(ne); }); X.length && B(X, "Inferred typings from file names"), kt(te, (P) => oc(P, ".jsx")) && (t && t("Inferred 'react' typings due to presence of '.jsx' extension"), k("react")); } } function U7e(e) { return AY(e, !0); } function AY(e, t) { if (!e) return 1; if (e.length > DY) return 2; if (e.charCodeAt(0) === 46) return 3; if (e.charCodeAt(0) === 95) return 4; if (t) { const r = /^@([^/]+)\/([^/]+)$/.exec(e); if (r) { const i = AY(r[1], !1); if (i !== 0) return { name: r[1], isScopeName: !0, result: i }; const o = AY(r[2], !1); return o !== 0 ? { name: r[2], isScopeName: !1, result: o } : 0; } } return encodeURIComponent(e) !== e ? 5 : 0; } function V7e(e, t) { return typeof e == "object" ? qge(t, e.result, e.name, e.isScopeName) : qge(t, e, t, !1); } function qge(e, t, r, i) { const o = i ? "Scope" : "Package"; switch (t) { case 1: return `'${e}':: ${o} name '${r}' cannot be empty`; case 2: return `'${e}':: ${o} name '${r}' should be less than ${DY} characters`; case 3: return `'${e}':: ${o} name '${r}' cannot start with '.'`; case 4: return `'${e}':: ${o} name '${r}' cannot start with '_'`; case 5: return `'${e}':: ${o} name '${r}' contains non URI safe characters`; case 0: return D.fail(); default: throw D.assertNever(t); } } var CY, LY, IY, kY, wY, DY, j7e = L({ "src/jsTyping/jsTyping.ts"() { pF(), CY = [ "assert", "assert/strict", "async_hooks", "buffer", "child_process", "cluster", "console", "constants", "crypto", "dgram", "diagnostics_channel", "dns", "dns/promises", "domain", "events", "fs", "fs/promises", "http", "https", "http2", "inspector", "module", "net", "os", "path", "perf_hooks", "process", "punycode", "querystring", "readline", "repl", "stream", "stream/promises", "string_decoder", "timers", "timers/promises", "tls", "trace_events", "tty", "url", "util", "util/types", "v8", "vm", "wasi", "worker_threads", "zlib" ], LY = CY.map((e) => `node:${e}`), IY = [...CY, ...LY], kY = new Set(IY), wY = /* @__PURE__ */ ((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))(wY || {}), DY = 214; } }), FT = {}; fe(FT, { NameValidationResult: () => wY, discoverTypings: () => G7e, isTypingUpToDate: () => Wge, loadSafeList: () => F7e, loadTypesMap: () => B7e, nodeCoreModuleList: () => IY, nodeCoreModules: () => kY, nonRelativeModuleNameForTypingCache: () => zge, prefixedNodeCoreModuleList: () => LY, renderPackageNameValidationFailure: () => V7e, validatePackageName: () => U7e }); var H7e = L({ "src/jsTyping/_namespaces/ts.JsTyping.ts"() { j7e(); } }); function W7e(e) { return zc.args.indexOf(e) >= 0; } function z7e(e) { const t = zc.args.indexOf(e); return t >= 0 && t < zc.args.length - 1 ? zc.args[t + 1] : void 0; } function q7e() { const e = /* @__PURE__ */ new Date(); return `${NS(e.getHours().toString(), 2, "0")}:${NS(e.getMinutes().toString(), 2, "0")}:${NS(e.getSeconds().toString(), 2, "0")}.${NS(e.getMilliseconds().toString(), 3, "0")}`; } var Jge, Kge, Xge, Yge, $ge, Qge, Zge, RY, J7e = L({ "src/jsTyping/shared.ts"() { pF(), Jge = "action::set", Kge = "action::invalidate", Xge = "action::packageInstalled", Yge = "event::typesRegistry", $ge = "event::beginInstallTypes", Qge = "event::endInstallTypes", Zge = "event::initializationFailed", ((e) => { e.GlobalCacheLocation = "--globalTypingsCacheLocation", e.LogFile = "--logFile", e.EnableTelemetry = "--enableTelemetry", e.TypingSafeListLocation = "--typingSafeListLocation", e.TypesMapLocation = "--typesMapLocation", e.NpmLocation = "--npmLocation", e.ValidateDefaultNpmLocation = "--validateDefaultNpmLocation"; })(RY || (RY = {})); } }), K7e = L({ "src/jsTyping/types.ts"() { } }), eye = {}; fe(eye, { ActionInvalidate: () => Kge, ActionPackageInstalled: () => Xge, ActionSet: () => Jge, Arguments: () => RY, EventBeginInstallTypes: () => $ge, EventEndInstallTypes: () => Qge, EventInitializationFailed: () => Zge, EventTypesRegistry: () => Yge, findArgument: () => z7e, hasArgument: () => W7e, nowString: () => q7e }); var X7e = L({ "src/jsTyping/_namespaces/ts.server.ts"() { J7e(), K7e(); } }), pF = L({ "src/jsTyping/_namespaces/ts.ts"() { Ra(), H7e(), X7e(); } }); function tye(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 }; } var NY, OY, PY, MY, em, FY, BY, GY, UY, VY, jY, HY, nye, P8, WY, zY, qY, JY, KY, XY, YY, $Y, QY, Y7e = L({ "src/services/types.ts"() { ((e) => { class t { constructor(o) { this.text = o; } getText(o, s) { return o === 0 && s === this.text.length ? this.text : this.text.substring(o, s); } getLength() { return this.text.length; } getChangeRange() { } } function r(i) { return new t(i); } e.fromString = r; })(NY || (NY = {})), OY = /* @__PURE__ */ ((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))(OY || {}), PY = /* @__PURE__ */ ((e) => (e[e.Off = 0] = "Off", e[e.On = 1] = "On", e[e.Auto = 2] = "Auto", e))(PY || {}), MY = /* @__PURE__ */ ((e) => (e[e.Semantic = 0] = "Semantic", e[e.PartialSemantic = 1] = "PartialSemantic", e[e.Syntactic = 2] = "Syntactic", e))(MY || {}), em = {}, FY = /* @__PURE__ */ ((e) => (e.Original = "original", e.TwentyTwenty = "2020", e))(FY || {}), BY = /* @__PURE__ */ ((e) => (e.All = "All", e.SortAndCombine = "SortAndCombine", e.RemoveUnused = "RemoveUnused", e))(BY || {}), GY = /* @__PURE__ */ ((e) => (e[e.Invoked = 1] = "Invoked", e[e.TriggerCharacter = 2] = "TriggerCharacter", e[e.TriggerForIncompleteCompletions = 3] = "TriggerForIncompleteCompletions", e))(GY || {}), UY = /* @__PURE__ */ ((e) => (e.Type = "Type", e.Parameter = "Parameter", e.Enum = "Enum", e))(UY || {}), VY = /* @__PURE__ */ ((e) => (e.none = "none", e.definition = "definition", e.reference = "reference", e.writtenReference = "writtenReference", e))(VY || {}), jY = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Block = 1] = "Block", e[e.Smart = 2] = "Smart", e))(jY || {}), HY = /* @__PURE__ */ ((e) => (e.Ignore = "ignore", e.Insert = "insert", e.Remove = "remove", e))(HY || {}), nye = tye(` `), P8 = /* @__PURE__ */ ((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))(P8 || {}), WY = /* @__PURE__ */ ((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))(WY || {}), zY = /* @__PURE__ */ ((e) => (e.Comment = "comment", e.Region = "region", e.Code = "code", e.Imports = "imports", e))(zY || {}), qY = /* @__PURE__ */ ((e) => (e[e.JavaScript = 0] = "JavaScript", e[e.SourceMap = 1] = "SourceMap", e[e.Declaration = 2] = "Declaration", e))(qY || {}), JY = /* @__PURE__ */ ((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))(JY || {}), KY = /* @__PURE__ */ ((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))(KY || {}), XY = /* @__PURE__ */ ((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.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))(XY || {}), YY = /* @__PURE__ */ ((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))(YY || {}), $Y = /* @__PURE__ */ ((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))($Y || {}), QY = /* @__PURE__ */ ((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))(QY || {}); } }); function M8(e) { switch (e.kind) { case 257: return dr(e) && qH(e) ? 7 : 1; case 166: case 205: case 169: case 168: case 299: case 300: case 171: case 170: case 173: case 174: case 175: case 259: case 215: case 216: case 295: case 288: return 1; case 165: case 261: case 262: case 184: return 2; case 349: return e.name === void 0 ? 3 : 2; case 302: case 260: return 3; case 264: return ku(e) || _g(e) === 1 ? 5 : 4; case 263: case 272: case 273: case 268: case 269: case 274: case 275: return 7; case 308: return 5; } return 7; } function BT(e) { e = u$(e); const t = e.parent; return e.kind === 308 ? 1 : Pl(t) || od(t) || Um(t) || Td(t) || Gm(t) || tu(t) && e === t.name ? 7 : mF(e) ? $7e(e) : sg(e) ? M8(t) : $d(e) && nr(e, Sm(Ck, zS, $0)) ? 7 : t5e(e) ? 2 : Q7e(e) ? 4 : Ol(t) ? (D.assert(mp(t.parent)), 2) : X0(t) ? 3 : 1; } function $7e(e) { const t = e.kind === 163 ? e : Ed(e.parent) && e.parent.right === e ? e.parent : void 0; return t && t.parent.kind === 268 ? 7 : 4; } function mF(e) { for (; e.parent.kind === 163; ) e = e.parent; return RA(e.parent) && e.parent.moduleReference === e; } function Q7e(e) { return Z7e(e) || e5e(e); } function Z7e(e) { let t = e, r = !0; if (t.parent.kind === 163) { for (; t.parent && t.parent.kind === 163; ) t = t.parent; r = t.right === e; } return t.parent.kind === 180 && !r; } function e5e(e) { let t = e, r = !0; if (t.parent.kind === 208) { for (; t.parent && t.parent.kind === 208; ) t = t.parent; r = t.name === e; } if (!r && t.parent.kind === 230 && t.parent.parent.kind === 294) { const i = t.parent.parent.parent; return i.kind === 260 && t.parent.parent.token === 117 || i.kind === 261 && t.parent.parent.token === 94; } return !1; } function t5e(e) { switch (WI(e) && (e = e.parent), e.kind) { case 108: return !ag(e); case 194: return !0; } switch (e.parent.kind) { case 180: return !0; case 202: return !e.parent.isTypeOf; case 230: return _h(e.parent); } return !1; } function ZY(e, t = !1, r = !1) { return Zk(e, eo, hF, t, r); } function Qk(e, t = !1, r = !1) { return Zk(e, I1, hF, t, r); } function e$(e, t = !1, r = !1) { return Zk(e, ng, hF, t, r); } function rye(e, t = !1, r = !1) { return Zk(e, bT, n5e, t, r); } function iye(e, t = !1, r = !1) { return Zk(e, Du, hF, t, r); } function aye(e, t = !1, r = !1) { return Zk(e, qu, r5e, t, r); } function hF(e) { return e.expression; } function n5e(e) { return e.tag; } function r5e(e) { return e.tagName; } function Zk(e, t, r, i, o) { let s = i ? oye(e) : gF(e); return o && (s = pu(s)), !!s && !!s.parent && t(s.parent) && r(s.parent) === s; } function gF(e) { return MC(e) ? e.parent : e; } function oye(e) { return MC(e) || i$(e) ? e.parent : e; } function yF(e, t) { for (; e; ) { if (e.kind === 253 && e.label.escapedText === t) return e.label; e = e.parent; } } function F8(e, t) { return Pr(e.expression) ? e.expression.name.text === t : !1; } function B8(e) { var t; return Ve(e) && ((t = ri(e.parent, mI)) == null ? void 0 : t.label) === e; } function t$(e) { var t; return Ve(e) && ((t = ri(e.parent, k1)) == null ? void 0 : t.label) === e; } function n$(e) { return t$(e) || B8(e); } function r$(e) { var t; return ((t = ri(e.parent, bI)) == null ? void 0 : t.tagName) === e; } function sye(e) { var t; return ((t = ri(e.parent, Ed)) == null ? void 0 : t.right) === e; } function MC(e) { var t; return ((t = ri(e.parent, Pr)) == null ? void 0 : t.name) === e; } function i$(e) { var t; return ((t = ri(e.parent, sl)) == null ? void 0 : t.argumentExpression) === e; } function a$(e) { var t; return ((t = ri(e.parent, Hl)) == null ? void 0 : t.name) === e; } function o$(e) { var t; return Ve(e) && ((t = ri(e.parent, qa)) == null ? void 0 : t.name) === e; } function vF(e) { switch (e.parent.kind) { case 169: case 168: case 299: case 302: case 171: case 170: case 174: case 175: case 264: return La(e.parent) === e; case 209: return e.parent.argumentExpression === e; case 164: return !0; case 198: return e.parent.parent.kind === 196; default: return !1; } } function lye(e) { return G0(e.parent.parent) && wI(e.parent.parent) === e; } function GT(e) { for (c_(e) && (e = e.parent.parent); ; ) { if (e = e.parent, !e) return; switch (e.kind) { case 308: case 171: case 170: case 259: case 215: case 174: case 175: case 260: case 261: case 263: case 264: return e; } } } function j1(e) { switch (e.kind) { case 308: return Yl(e) ? "module" : "script"; case 264: return "module"; case 260: case 228: return "class"; case 261: return "interface"; case 262: case 341: case 349: return "type"; case 263: return "enum"; case 257: return t(e); case 205: return t(Rm(e)); case 216: case 259: case 215: return "function"; case 174: return "getter"; case 175: return "setter"; case 171: case 170: return "method"; case 299: const { initializer: r } = e; return qa(r) ? "method" : "property"; case 169: case 168: case 300: case 301: return "property"; case 178: return "index"; case 177: return "construct"; case 176: return "call"; case 173: case 172: return "constructor"; case 165: return "type parameter"; case 302: return "enum member"; case 166: return Jr(e, 16476) ? "property" : "parameter"; case 268: case 273: case 278: case 271: case 277: return "alias"; case 223: const i = xl(e), { right: o } = e; switch (i) { case 7: case 8: case 9: case 0: return ""; case 1: case 2: const c = j1(o); return c === "" ? "const" : c; case 3: return Ms(o) ? "method" : "property"; case 4: return "property"; case 5: return Ms(o) ? "method" : "property"; case 6: return "local class"; default: return ""; } case 79: return Gm(e.parent) ? "alias" : ""; case 274: const s = j1(e.expression); return s === "" ? "const" : s; default: return ""; } function t(r) { return ig(r) ? "const" : CI(r) ? "let" : "var"; } } function FC(e) { switch (e.kind) { case 108: return !0; case 79: return Tz(e) && e.parent.kind === 166; default: return !1; } } function h_(e, t) { const r = Qh(t), i = t.getLineAndCharacterOfPosition(e).line; return r[i]; } function af(e, t) { return s$(e.pos, e.end, t); } function cye(e, t) { return U8(e, t.pos) && U8(e, t.end); } function G8(e, t) { return e.pos <= t && t <= e.end; } function U8(e, t) { return e.pos < t && t < e.end; } function s$(e, t, r) { return e <= r.pos && t >= r.end; } function V8(e, t, r) { return e.pos <= t && e.end >= r; } function ew(e, t, r) { return bF(e.pos, e.end, t, r); } function l$(e, t, r, i) { return bF(e.getStart(t), e.end, r, i); } function bF(e, t, r, i) { const o = Math.max(e, r), s = Math.min(t, i); return o < s; } function c$(e, t, r) { return D.assert(e.pos <= t), t < e.end || !z_(e, r); } function z_(e, t) { if (e === void 0 || Sl(e)) return !1; switch (e.kind) { case 260: case 261: case 263: case 207: case 203: case 184: case 238: case 265: case 266: case 272: case 276: return EF(e, 19, t); case 295: return z_(e.block, t); case 211: if (!e.arguments) return !0; case 210: case 214: case 193: return EF(e, 21, t); case 181: case 182: return z_(e.type, t); case 173: case 174: case 175: case 259: case 215: case 171: case 170: case 177: case 176: case 216: return e.body ? z_(e.body, t) : e.type ? z_(e.type, t) : j8(e, 21, t); case 264: return !!e.body && z_(e.body, t); case 242: return e.elseStatement ? z_(e.elseStatement, t) : z_(e.thenStatement, t); case 241: return z_(e.expression, t) || j8(e, 26, t); case 206: case 204: case 209: case 164: case 186: return EF(e, 23, t); case 178: return e.type ? z_(e.type, t) : j8(e, 23, t); case 292: case 293: return !1; case 245: case 246: case 247: case 244: return z_(e.statement, t); case 243: return j8(e, 115, t) ? EF(e, 21, t) : z_(e.statement, t); case 183: return z_(e.exprName, t); case 218: case 217: case 219: case 226: case 227: return z_(e.expression, t); case 212: return z_(e.template, t); case 225: const i = Zs(e.templateSpans); return z_(i, t); case 236: return s_(e.literal); case 275: case 269: return s_(e.moduleSpecifier); case 221: return z_(e.operand, t); case 223: return z_(e.right, t); case 224: return z_(e.whenFalse, t); default: return !0; } } function EF(e, t, r) { const i = e.getChildren(r); if (i.length) { const o = Ho(i); if (o.kind === t) return !0; if (o.kind === 26 && i.length !== 1) return i[i.length - 2].kind === t; } return !1; } function uye(e) { const t = TF(e); if (!t) return; const r = t.getChildren(); return { listItemIndex: xA(r, e), list: t }; } function j8(e, t, r) { return !!ys(e, t, r); } function ys(e, t, r) { return un(e.getChildren(r), (i) => i.kind === t); } function TF(e) { const t = un(e.parent.getChildren(), (r) => vC(r) && af(r, e)); return D.assert(!t || Ii(t.getChildren(), e)), t; } function dye(e) { return e.kind === 88; } function i5e(e) { return e.kind === 84; } function a5e(e) { return e.kind === 98; } function o5e(e) { if (du(e)) return e.name; if (kc(e)) { const t = e.modifiers && un(e.modifiers, dye); if (t) return t; } if (Nu(e)) { const t = un(e.getChildren(), i5e); if (t) return t; } } function s5e(e) { if (du(e)) return e.name; if (pc(e)) { const t = un(e.modifiers, dye); if (t) return t; } if (Ms(e)) { const t = un(e.getChildren(), a5e); if (t) return t; } } function l5e(e) { let t; return nr(e, (r) => (Pi(r) && (t = r), !Ed(r.parent) && !Pi(r.parent) && !QE(r.parent))), t; } function SF(e, t) { if (e.flags & 8388608) return; const r = jF(e, t); if (r) return r; const i = l5e(e); return i && t.getTypeAtLocation(i); } function c5e(e, t) { if (!t) switch (e.kind) { case 260: case 228: return o5e(e); case 259: case 215: return s5e(e); case 173: return e; } if (du(e)) return e.name; } function fye(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 (by(e.importClause.namedBindings)) { const r = bm(e.importClause.namedBindings.elements); return r ? r.name : void 0; } else if (Ov(e.importClause.namedBindings)) return e.importClause.namedBindings.name; } } if (!t) return e.moduleSpecifier; } function _ye(e, t) { if (e.exportClause) { if (j_(e.exportClause)) return bm(e.exportClause.elements) ? e.exportClause.elements[0].name : void 0; if (Sh(e.exportClause)) return e.exportClause.name; } if (!t) return e.moduleSpecifier; } function u5e(e) { if (e.types.length === 1) return e.types[0].expression; } function pye(e, t) { const { parent: r } = e; if (lo(e) && (t || e.kind !== 88) ? H_(r) && Ii(r.modifiers, e) : e.kind === 84 ? kc(r) || Nu(e) : e.kind === 98 ? pc(r) || Ms(e) : e.kind === 118 ? Yu(r) : e.kind === 92 ? Y0(r) : e.kind === 154 ? Xp(r) : e.kind === 143 || e.kind === 142 ? Hl(r) : e.kind === 100 ? tu(r) : e.kind === 137 ? U_(r) : e.kind === 151 && Kf(r)) { const i = c5e(r, t); if (i) return i; } if ((e.kind === 113 || e.kind === 85 || e.kind === 119) && Ou(r) && r.declarations.length === 1) { const i = r.declarations[0]; if (Ve(i.name)) return i.name; } if (e.kind === 154) { if (Gm(r) && r.isTypeOnly) { const i = fye(r.parent, t); if (i) return i; } if (Kc(r) && r.isTypeOnly) { const i = _ye(r, t); if (i) return i; } } if (e.kind === 128) { if (Td(r) && r.propertyName || od(r) && r.propertyName || Ov(r) || Sh(r)) return r.name; if (Kc(r) && r.exportClause && Sh(r.exportClause)) return r.exportClause.name; } if (e.kind === 100 && Gc(r)) { const i = fye(r, t); if (i) return i; } if (e.kind === 93) { if (Kc(r)) { const i = _ye(r, t); if (i) return i; } if (Pl(r)) return pu(r.expression); } if (e.kind === 147 && Um(r)) return r.expression; if (e.kind === 158 && (Gc(r) || Kc(r)) && r.moduleSpecifier) return r.moduleSpecifier; if ((e.kind === 94 || e.kind === 117) && Md(r) && r.token === e.kind) { const i = u5e(r); if (i) return i; } if (e.kind === 94) { if (Ol(r) && r.constraint && V_(r.constraint)) return r.constraint.typeName; if (cC(r) && V_(r.extendsType)) return r.extendsType.typeName; } if (e.kind === 138 && uC(r)) return r.typeParameter.name; if (e.kind === 101 && Ol(r) && bk(r.parent)) return r.name; if (e.kind === 141 && vx(r) && r.operator === 141 && V_(r.type)) return r.type.typeName; if (e.kind === 146 && vx(r) && r.operator === 146 && Yq(r.type) && V_(r.type.elementType)) return r.type.elementType.typeName; if (!t) { if ((e.kind === 103 && I1(r) || e.kind === 114 && Ex(r) || e.kind === 112 && fC(r) || e.kind === 133 && _C(r) || e.kind === 125 && S7(r) || e.kind === 89 && Lfe(r)) && r.expression) return pu(r.expression); if ((e.kind === 101 || e.kind === 102) && vr(r) && r.operatorToken === e) return pu(r.right); if (e.kind === 128 && bO(r) && V_(r.type)) return r.type.typeName; if (e.kind === 101 && tJ(r) || e.kind === 162 && EO(r)) return pu(r.expression); } return e; } function u$(e) { return pye(e, !1); } function xF(e) { return pye(e, !0); } function Af(e, t) { return tw(e, t, (r) => O_(r) || bd(r.kind) || ki(r)); } function tw(e, t, r) { return mye(e, t, !1, r, !1); } function ra(e, t) { return mye(e, t, !0, void 0, !1); } function mye(e, t, r, i, o) { let s = e, c; e: for (; ; ) { const d = s.getChildren(e), y = kS(d, t, (m, b) => b, (m, b) => { const A = d[m].getEnd(); if (A < t) return -1; const C = r ? d[m].getFullStart() : d[m].getStart(e, !0); return C > t ? 1 : f(d[m], C, A) ? d[m - 1] && f(d[m - 1]) ? 1 : 0 : i && C === t && d[m - 1] && d[m - 1].getEnd() === t && f(d[m - 1]) ? 1 : -1; }); if (c) return c; if (y >= 0 && d[y]) { s = d[y]; continue e; } return s; } function f(d, y, m) { if (m ?? (m = d.getEnd()), m < t || (y ?? (y = r ? d.getFullStart() : d.getStart(e, !0)), y > t)) return !1; if (t < m || t === m && (d.kind === 1 || o)) return !0; if (i && m === t) { const b = Tc(t, e, d); if (b && i(b)) return c = b, !0; } return !1; } } function hye(e, t) { let r = ra(e, t); for (; H8(r); ) { const i = UT(r, r.parent, e); if (!i) return; r = i; } return r; } function AF(e, t) { const r = ra(e, t); return US(r) && t > r.getStart(e) && t < r.getEnd() ? r : Tc(t, e); } function UT(e, t, r) { return i(t); function i(o) { return US(o) && o.pos === e.end ? o : En(o.getChildren(r), (s) => (s.pos <= e.pos && s.end > e.end || s.pos === e.end) && h$(s, r) ? i(s) : void 0); } } function Tc(e, t, r, i) { const o = s(r || t); return D.assert(!(o && H8(o))), o; function s(c) { if (gye(c) && c.kind !== 1) return c; const f = c.getChildren(t), d = kS(f, e, (m, b) => b, (m, b) => e < f[m].end ? !f[m - 1] || e >= f[m - 1].end ? 0 : 1 : -1); if (d >= 0 && f[d]) { const m = f[d]; if (e < m.end) if (m.getStart(t, !i) >= e || !h$(m, t) || H8(m)) { const C = f$(f, d, t, c.kind); return C && d$(C, t); } else return s(m); } D.assert(r !== void 0 || c.kind === 308 || c.kind === 1 || _W(c)); const y = f$(f, f.length, t, c.kind); return y && d$(y, t); } } function gye(e) { return US(e) && !H8(e); } function d$(e, t) { if (gye(e)) return e; const r = e.getChildren(t); if (r.length === 0) return e; const i = f$(r, r.length, t, e.kind); return i && d$(i, t); } function f$(e, t, r, i) { for (let o = t - 1; o >= 0; o--) { const s = e[o]; if (H8(s)) o === 0 && (i === 11 || i === 282) && D.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`"); else if (h$(e[o], r)) return e[o]; } } function VT(e, t, r = Tc(t, e)) { if (r && nW(r)) { const i = r.getStart(e), o = r.getEnd(); if (i < t && t < o) return !0; if (t === o) return !!r.isUnterminated; } return !1; } function yye(e, t) { const r = ra(e, t); return r ? !!(r.kind === 11 || r.kind === 29 && r.parent.kind === 11 || r.kind === 29 && r.parent.kind === 291 || r && r.kind === 19 && r.parent.kind === 291 || r.kind === 29 && r.parent.kind === 284) : !1; } function H8(e) { return _x(e) && e.containsOnlyTriviaWhiteSpaces; } function _$(e, t) { const r = ra(e, t); return Ev(r.kind) && t > r.getStart(e); } function vye(e, t) { const r = ra(e, t); return !!(_x(r) || r.kind === 18 && xk(r.parent) && Ey(r.parent.parent) || r.kind === 29 && qu(r.parent) && Ey(r.parent.parent)); } function CF(e, t) { function r(i) { for (; i; ) if (i.kind >= 282 && i.kind <= 291 || i.kind === 11 || i.kind === 29 || i.kind === 31 || i.kind === 79 || i.kind === 19 || i.kind === 18 || i.kind === 43) i = i.parent; else if (i.kind === 281) { if (t > i.getStart(e)) return !0; i = i.parent; } else return !1; return !1; } return r(ra(e, t)); } function LF(e, t, r) { const i = mo(e.kind), o = mo(t), s = e.getFullStart(), c = r.text.lastIndexOf(o, s); if (c === -1) return; if (r.text.lastIndexOf(i, s - 1) < c) { const y = Tc(c + 1, r); if (y && y.kind === t) return y; } const f = e.kind; let d = 0; for (; ; ) { const y = Tc(e.getFullStart(), r); if (!y) return; if (e = y, e.kind === t) { if (d === 0) return e; d--; } else e.kind === f && d++; } } function bye(e, t, r) { return t ? e.getNonNullableType() : r ? e.getNonOptionalType() : e; } function W8(e, t, r) { const i = m$(e, t); return i !== void 0 && (_h(i.called) || p$(i.called, i.nTypeArguments, r).length !== 0 || W8(i.called, t, r)); } function p$(e, t, r) { let i = r.getTypeAtLocation(e); return fu(e.parent) && (i = bye(i, _I(e.parent), !0)), (I1(e.parent) ? i.getConstructSignatures() : i.getCallSignatures()).filter((s) => !!s.typeParameters && s.typeParameters.length >= t); } function m$(e, t) { if (t.text.lastIndexOf("<", e ? e.pos : t.text.length) === -1) return; let r = e, i = 0, o = 0; for (; r; ) { switch (r.kind) { case 29: if (r = Tc(r.getFullStart(), t), r && r.kind === 28 && (r = Tc(r.getFullStart(), t)), !r || !Ve(r)) return; if (!i) return sg(r) ? void 0 : { called: r, nTypeArguments: o }; i--; break; case 49: i = 3; break; case 48: i = 2; break; case 31: i++; break; case 19: if (r = LF(r, 18, t), !r) return; break; case 21: if (r = LF(r, 20, t), !r) return; break; case 23: if (r = LF(r, 22, t), !r) return; break; case 27: o++; break; case 38: case 79: case 10: case 8: case 9: case 110: case 95: case 112: case 94: case 141: case 24: case 51: case 57: case 58: break; default: if (Pi(r)) break; return; } r = Tc(r.getFullStart(), t); } } function Ay(e, t, r) { return Sc.getRangeOfEnclosingComment(e, t, void 0, r); } function Eye(e, t) { const r = ra(e, t); return !!nr(r, Vm); } function h$(e, t) { return e.kind === 1 ? !!e.jsDoc : e.getWidth(t) !== 0; } function nw(e, t = 0) { const r = [], i = _u(e) ? VH(e) & ~t : 0; return i & 8 && r.push("private"), i & 16 && r.push("protected"), i & 4 && r.push("public"), (i & 32 || Cl(e)) && r.push("static"), i & 256 && r.push("abstract"), i & 1 && r.push("export"), i & 8192 && r.push("deprecated"), e.flags & 16777216 && r.push("declare"), e.kind === 274 && r.push("export"), r.length > 0 ? r.join(",") : ""; } function Tye(e) { if (e.kind === 180 || e.kind === 210) return e.typeArguments; if (qa(e) || e.kind === 260 || e.kind === 261) return e.typeParameters; } function IF(e) { return e === 2 || e === 3; } function g$(e) { return !!(e === 10 || e === 13 || Ev(e)); } function Sye(e) { if (!e.isIntersection()) return !1; const { types: t, checker: r } = e; return t.length === 2 && t[0].flags & 4 && r.isEmptyAnonymousObjectType(t[1]); } function xye(e) { return 18 <= e && e <= 78; } function z8(e, t, r) { return Ev(e.kind) && e.getStart(r) < t && t < e.end || !!e.isUnterminated && t === e.end; } function y$(e) { switch (e) { case 123: case 121: case 122: return !0; } return !1; } function Aye(e) { const t = oj(e); return HJ(t, e && e.configFile), t; } function Cy(e) { return !!((e.kind === 206 || e.kind === 207) && (e.parent.kind === 223 && e.parent.left === e && e.parent.operatorToken.kind === 63 || e.parent.kind === 247 && e.parent.initializer === e || Cy(e.parent.kind === 299 ? e.parent.parent : e.parent))); } function Cye(e, t) { return Iye(e, t, !0); } function Lye(e, t) { return Iye(e, t, !1); } function Iye(e, t, r) { const i = Ay(e, t, void 0); return !!i && r === cve.test(e.text.substring(i.pos, i.end)); } function v$(e) { if (e) switch (e.kind) { case 10: case 14: return b$(e); default: return $u(e); } } function $u(e, t, r) { return fc(e.getStart(t), (r || e).getEnd()); } function b$(e) { if (!e.isUnterminated) return fc(e.getStart() + 1, e.getEnd() - 1); } function E$(e, t) { return u_(e.getStart(t), e.end); } function Vv(e) { return fc(e.pos, e.end); } function kF(e) { return u_(e.start, e.start + e.length); } function wF(e, t, r) { return q8(Cc(e, t), r); } function q8(e, t) { return { span: e, newText: t }; } function rw(e) { return Ii(i9, e); } function T$(e) { return e.kind === 154; } function DF(e) { return T$(e) || Ve(e) && e.text === "type"; } function J8(e) { return !!(e.flags & 1536) && e.name.charCodeAt(0) === 34; } function BC() { const e = []; return (t) => { const r = ds(t); return !e[r] && (e[r] = !0); }; } function RF(e) { return e.getText(0, e.getLength()); } function K8(e, t) { let r = ""; for (let i = 0; i < t; i++) r += e; return r; } function S$(e) { return e.isTypeParameter() && e.getConstraint() || e; } function X8(e) { return e.kind === 164 ? Hf(e.expression) ? e.expression.text : void 0 : ki(e) ? Or(e) : P_(e); } function kye(e) { return e.getSourceFiles().some((t) => !t.isDeclarationFile && !e.isSourceFileFromExternalLibrary(t) && !!(t.externalModuleIndicator || t.commonJsModuleIndicator)); } function wye(e) { return e.getSourceFiles().some((t) => !t.isDeclarationFile && !e.isSourceFileFromExternalLibrary(t) && !!t.externalModuleIndicator); } function x$(e) { return !!e.module || $o(e) >= 2 || !!e.noEmit; } function Bx(e, t) { return { fileExists: (r) => e.fileExists(r), getCurrentDirectory: () => t.getCurrentDirectory(), readFile: Fo(t, t.readFile), useCaseSensitiveFileNames: Fo(t, t.useCaseSensitiveFileNames), getSymlinkCache: Fo(t, t.getSymlinkCache) || e.getSymlinkCache, getModuleSpecifierCache: Fo(t, t.getModuleSpecifierCache), getPackageJsonInfoCache: () => { var r; return (r = e.getModuleResolutionCache()) == null ? void 0 : r.getPackageJsonInfoCache(); }, getGlobalTypingsCacheLocation: Fo(t, t.getGlobalTypingsCacheLocation), redirectTargetsMap: e.redirectTargetsMap, getProjectReferenceRedirect: (r) => e.getProjectReferenceRedirect(r), isSourceOfProjectReferenceRedirect: (r) => e.isSourceOfProjectReferenceRedirect(r), getNearestAncestorDirectoryWithPackageJson: Fo(t, t.getNearestAncestorDirectoryWithPackageJson), getFileIncludeReasons: () => e.getFileIncludeReasons() }; } function A$(e, t) { return { ...Bx(e, t), getCommonSourceDirectory: () => e.getCommonSourceDirectory() }; } function NF(e) { return e === 2 || e >= 3 && e <= 99 || e === 100; } function Dye(e, t, r, i) { return e || t && t.length ? Ly(e, t, r, i) : void 0; } function Ly(e, t, r, i, o) { return N.createImportDeclaration(void 0, e || t ? N.createImportClause(!!o, e, t && t.length ? N.createNamedImports(t) : void 0) : void 0, typeof r == "string" ? OF(r, i) : r, void 0); } function OF(e, t) { return N.createStringLiteral(e, t === 0); } function C$(e, t) { return QM(e, t) ? 1 : 0; } function yp(e, t) { if (t.quotePreference && t.quotePreference !== "auto") return t.quotePreference === "single" ? 0 : 1; { const r = e.imports && un(e.imports, (i) => Go(i) && !$s(i.parent)); return r ? C$(r, e) : 1; } } function Rye(e) { switch (e) { case 0: return "'"; case 1: return '"'; default: return D.assertNever(e); } } function PF(e) { const t = MF(e); return t === void 0 ? void 0 : Zi(t); } function MF(e) { return e.escapedName !== "default" ? e.escapedName : En(e.declarations, (t) => { const r = La(t); return r && r.kind === 79 ? r.escapedText : void 0; }); } function FF(e) { return Ts(e) && (Um(e.parent) || Gc(e.parent) || vd(e.parent, !1) && e.parent.arguments[0] === e || tf(e.parent) && e.parent.arguments[0] === e); } function Y8(e) { return us(e) && Bm(e.parent) && Ve(e.name) && !e.propertyName; } function BF(e, t) { const r = e.getTypeAtLocation(t.parent); return r && e.getPropertyOfType(r, t.name.text); } function $8(e, t, r) { if (e) for (; e.parent; ) { if (ji(e.parent) || !d5e(r, e.parent, t)) return e; e = e.parent; } } function d5e(e, t, r) { return GH(e, t.getStart(r)) && t.getEnd() <= Qc(e); } function GC(e, t) { return H_(e) ? un(e.modifiers, (r) => r.kind === t) : void 0; } function GF(e, t, r, i, o) { const c = (Ga(r) ? r[0] : r).kind === 240 ? XW : rT, f = yn(t.statements, c); let d = Ga(r) ? q_.detectImportDeclarationSorting(r, o) : 3; const y = q_.getOrganizeImportsComparer(o, d === 2), m = Ga(r) ? ry(r, (b, A) => q_.compareImportsOrRequireStatements(b, A, y)) : [r]; if (!f.length) e.insertNodesAtTopOfFile(t, m, i); else if (f && (d = q_.detectImportDeclarationSorting(f, o))) { const b = q_.getOrganizeImportsComparer(o, d === 2); for (const A of m) { const C = q_.getImportDeclarationInsertionIndex(f, A, b); if (C === 0) { const I = f[0] === t.statements[0] ? { leadingTriviaOption: hr.LeadingTriviaOption.Exclude } : {}; e.insertNodeBefore(t, f[0], A, !1, I); } else { const I = f[C - 1]; e.insertNodeAfter(t, I, A); } } } else { const b = Zs(f); b ? e.insertNodesAfter(t, b, m) : e.insertNodesAtTopOfFile(t, m, i); } } function L$(e, t) { return D.assert(e.isTypeOnly), ro(e.getChildAt(0, t), T$); } function UC(e, t) { return !!e && !!t && e.start === t.start && e.length === t.length; } function f5e(e, t) { return e.fileName === t.fileName && UC(e.textSpan, t.textSpan); } function I$(e, t) { if (e) { for (let r = 0; r < e.length; r++) if (e.indexOf(e[r]) === r) { const i = t(e[r], r); if (i) return i; } } } function Nye(e, t, r) { for (let i = t; i < r; i++) if (!Zh(e.charCodeAt(i))) return !1; return !0; } function Q8(e, t, r) { const i = t.tryGetSourcePosition(e); return i && (!r || r(Wo(i.fileName)) ? i : void 0); } function k$(e, t, r) { const { fileName: i, textSpan: o } = e, s = Q8({ fileName: i, pos: o.start }, t, r); if (!s) return; const c = Q8({ fileName: i, pos: o.start + o.length }, t, r), f = c ? c.pos - s.pos : o.length; return { fileName: s.fileName, textSpan: { start: s.pos, length: f }, originalFileName: e.fileName, originalTextSpan: e.textSpan, contextSpan: Oye(e, t, r), originalContextSpan: e.contextSpan }; } function Oye(e, t, r) { const i = e.contextSpan && Q8({ fileName: e.fileName, pos: e.contextSpan.start }, t, r), o = e.contextSpan && Q8({ fileName: e.fileName, pos: e.contextSpan.start + e.contextSpan.length }, t, r); return i && o ? { start: i.pos, length: o.pos - i.pos } : void 0; } function w$(e) { const t = e.declarations ? Wc(e.declarations) : void 0; return !!nr(t, (r) => Ma(r) ? !0 : us(r) || Bm(r) || dC(r) ? !1 : "quit"); } function _5e() { const e = tO * 10; let t, r, i, o; m(); const s = (b) => f(b, 17); return { displayParts: () => { const b = t.length && t[t.length - 1].text; return o > e && b && b !== "..." && (Zh(b.charCodeAt(b.length - 1)) || t.push(Sd(" ", 16)), t.push(Sd("...", 15))), t; }, writeKeyword: (b) => f(b, 5), writeOperator: (b) => f(b, 12), writePunctuation: (b) => f(b, 15), writeTrailingSemicolon: (b) => f(b, 15), writeSpace: (b) => f(b, 16), writeStringLiteral: (b) => f(b, 8), writeParameter: (b) => f(b, 13), writeProperty: (b) => f(b, 14), writeLiteral: (b) => f(b, 8), writeSymbol: d, writeLine: y, write: s, writeComment: s, getText: () => "", getTextPos: () => 0, getColumn: () => 0, getLine: () => 0, isAtStartOfLine: () => !1, hasTrailingWhitespace: () => !1, hasTrailingComment: () => !1, rawWrite: ja, getIndent: () => i, increaseIndent: () => { i++; }, decreaseIndent: () => { i--; }, clear: m }; function c() { if (!(o > e) && r) { const b = c3(i); b && (o += b.length, t.push(Sd(b, 16))), r = !1; } } function f(b, A) { o > e || (c(), o += b.length, t.push(Sd(b, A))); } function d(b, A) { o > e || (c(), o += b.length, t.push(Pye(b, A))); } function y() { o > e || (o += 1, t.push(VC()), r = !0); } function m() { t = [], r = !0, i = 0, o = 0; } } function Pye(e, t) { return Sd(e, r(t)); function r(i) { const o = i.flags; return o & 3 ? w$(i) ? 13 : 9 : o & 4 || o & 32768 || o & 65536 ? 14 : o & 8 ? 19 : o & 16 ? 20 : o & 32 ? 1 : o & 64 ? 4 : o & 384 ? 2 : o & 1536 ? 11 : o & 8192 ? 10 : o & 262144 ? 18 : o & 524288 || o & 2097152 ? 0 : 17; } } function Sd(e, t) { return { text: e, kind: P8[t] }; } function yl() { return Sd(" ", 16); } function Bd(e) { return Sd(mo(e), 5); } function hu(e) { return Sd(mo(e), 15); } function iw(e) { return Sd(mo(e), 12); } function Mye(e) { return Sd(e, 13); } function Fye(e) { return Sd(e, 14); } function D$(e) { const t = KE(e); return t === void 0 ? Cf(e) : Bd(t); } function Cf(e) { return Sd(e, 17); } function Bye(e) { return Sd(e, 0); } function Gye(e) { return Sd(e, 18); } function UF(e) { return Sd(e, 24); } function Uye(e, t) { return { text: e, kind: P8[23], target: { fileName: Zn(t).fileName, textSpan: $u(t) } }; } function R$(e) { return Sd(e, 22); } function Vye(e, t) { var r; const i = Ofe(e) ? "link" : Pfe(e) ? "linkcode" : "linkplain", o = [R$(`{@${i} `)]; if (!e.name) e.text && o.push(UF(e.text)); else { const s = t == null ? void 0 : t.getSymbolAtLocation(e.name), c = m5e(e.text), f = bc(e.name) + e.text.slice(0, c), d = p5e(e.text.slice(c)), y = (s == null ? void 0 : s.valueDeclaration) || ((r = s == null ? void 0 : s.declarations) == null ? void 0 : r[0]); y ? (o.push(Uye(f, y)), d && o.push(UF(d))) : o.push(UF(f + (c ? "" : " ") + d)); } return o.push(R$("}")), o; } function p5e(e) { let t = 0; if (e.charCodeAt(t++) === 124) { for (; t < e.length && e.charCodeAt(t) === 32; ) t++; return e.slice(t); } return e; } function m5e(e) { let t = e.indexOf("://"); if (t === 0) { for (; t < e.length && e.charCodeAt(t) !== 124; ) t++; return t; } if (e.indexOf("()") === 0) return 2; if (e.charAt(0) === "<") { let r = 0, i = 0; for (; i < e.length; ) if (e[i] === "<" && r++, e[i] === ">" && r--, i++, !r) return i; } return 0; } function eb(e, t) { var r; return (t == null ? void 0 : t.newLineCharacter) || ((r = e.getNewLine) == null ? void 0 : r.call(e)) || uve; } function VC() { return Sd(` `, 6); } function jv(e) { try { return e(a9), a9.displayParts(); } finally { a9.clear(); } } function Z8(e, t, r, i = 0) { return jv((o) => { e.writeType(t, r, i | 1024 | 16384, o); }); } function aw(e, t, r, i, o = 0) { return jv((s) => { e.writeSymbol(t, r, i, o | 8, s); }); } function N$(e, t, r, i = 0) { return i |= 25632, jv((o) => { e.writeSignature(t, r, i, void 0, o); }); } function h5e(e, t) { const r = t.getSourceFile(); return jv((i) => { b8().writeNode(4, e, r, i); }); } function jye(e) { return !!e.parent && VS(e.parent) && e.parent.propertyName === e; } function O$(e, t) { return L3(e, t.getScriptKind && t.getScriptKind(e)); } function Hye(e, t) { let r = e; for (; g5e(r) || km(r) && r.links.target; ) km(r) && r.links.target ? r = r.links.target : r = nf(r, t); return r; } function g5e(e) { return (e.flags & 2097152) !== 0; } function Wye(e, t) { return go(nf(e, t)); } function zye(e, t) { for (; Zh(e.charCodeAt(t)); ) t += 1; return t; } function P$(e, t) { for (; t > -1 && Cm(e.charCodeAt(t)); ) t -= 1; return t + 1; } function Il(e, t = !0) { const r = e && qye(e); return r && !t && Gd(r), r; } function e6(e, t, r) { let i = r(e); return i ? Vr(i, e) : i = qye(e, r), i && !t && Gd(i), i; } function qye(e, t) { const r = t ? (s) => e6(s, !0, t) : Il, o = Bn(e, r, pg, t ? (s) => s && M$(s, !0, t) : (s) => s && H1(s), r); if (o === e) { const s = Go(e) ? Vr(N.createStringLiteralFromNode(e), e) : __(e) ? Vr(N.createNumericLiteral(e.text, e.numericLiteralFlags), e) : N.cloneNode(e); return mt(s, e); } return o.parent = void 0, o; } function H1(e, t = !0) { return e && N.createNodeArray(e.map((r) => Il(r, t)), e.hasTrailingComma); } function M$(e, t, r) { return N.createNodeArray(e.map((i) => e6(i, t, r)), e.hasTrailingComma); } function Gd(e) { VF(e), Jye(e); } function VF(e) { F$(e, 1024, v5e); } function Jye(e) { F$(e, 2048, Fz); } function jT(e, t) { const r = e.getSourceFile(), i = r.text; y5e(e, i) ? jC(e, t, r) : n6(e, t, r), ow(e, t, r); } function y5e(e, t) { const r = e.getFullStart(), i = e.getStart(); for (let o = r; o < i; o++) if (t.charCodeAt(o) === 10) return !0; return !1; } function F$(e, t, r) { Kp(e, t); const i = r(e); i && F$(i, t, r); } function v5e(e) { return e.forEachChild((t) => t); } function HT(e, t) { let r = e; for (let i = 1; !IM(t, r); i++) r = `${e}_${i}`; return r; } function t6(e, t, r, i) { let o = 0, s = -1; for (const { fileName: c, textChanges: f } of e) { D.assert(c === t); for (const d of f) { const { span: y, newText: m } = d, b = b5e(m, ex(r)); if (b !== -1 && (s = y.start + o + b, !i)) return s; o += m.length - y.length; } } return D.assert(i), D.assert(s >= 0), s; } function jC(e, t, r, i, o) { LR(r.text, e.pos, B$(t, r, i, o, uO)); } function ow(e, t, r, i, o) { IR(r.text, e.end, B$(t, r, i, o, H3)); } function n6(e, t, r, i, o) { IR(r.text, e.pos, B$(t, r, i, o, uO)); } function B$(e, t, r, i, o) { return (s, c, f, d) => { f === 3 ? (s += 2, c -= 2) : s += 2, o(e, r || f, t.text.slice(s, c), i !== void 0 ? i : d); }; } function b5e(e, t) { if (Ea(e, t)) return 0; let r = e.indexOf(" " + t); return r === -1 && (r = e.indexOf("." + t)), r === -1 && (r = e.indexOf('"' + t)), r === -1 ? -1 : r + 1; } function G$(e) { return vr(e) && e.operatorToken.kind === 27 || As(e) || bO(e) && As(e.expression); } function jF(e, t, r) { const i = Cv(e.parent); switch (i.kind) { case 211: return t.getContextualType(i, r); case 223: { const { left: o, operatorToken: s, right: c } = i; return HF(s.kind) ? t.getTypeAtLocation(e === c ? o : c) : t.getContextualType(e, r); } case 292: return V$(i, t); default: return t.getContextualType(e, r); } } function sw(e, t, r) { const i = yp(e, t), o = JSON.stringify(r); return i === 0 ? `'${M_(o).replace(/'/g, "\\'").replace(/\\"/g, '"')}'` : o; } function HF(e) { switch (e) { case 36: case 34: case 37: case 35: return !0; default: return !1; } } function Kye(e) { switch (e.kind) { case 10: case 14: case 225: case 212: return !0; default: return !1; } } function U$(e) { return !!e.getStringIndexType() || !!e.getNumberIndexType(); } function V$(e, t) { return t.getTypeAtLocation(e.parent.parent.expression); } function lw(e, t, r, i) { const o = r.getTypeChecker(); let s = !0; const c = () => s = !1, f = o.typeToTypeNode(e, t, 1, { trackSymbol: (d, y, m) => (s = s && o.isSymbolAccessible(d, y, m, !1).accessibility === 0, !s), reportInaccessibleThisError: c, reportPrivateInBaseOfClassExpression: c, reportInaccessibleUniqueSymbolError: c, moduleResolverHost: A$(r, i) }); return s ? f : void 0; } function j$(e) { return e === 176 || e === 177 || e === 178 || e === 168 || e === 170; } function Xye(e) { return e === 259 || e === 173 || e === 171 || e === 174 || e === 175; } function Yye(e) { return e === 264; } function WF(e) { return e === 240 || e === 241 || e === 243 || e === 248 || e === 249 || e === 250 || e === 254 || e === 256 || e === 169 || e === 262 || e === 269 || e === 268 || e === 275 || e === 267 || e === 274; } function E5e(e, t) { const r = e.getLastToken(t); if (r && r.kind === 26) return !1; if (j$(e.kind)) { if (r && r.kind === 27) return !1; } else if (Yye(e.kind)) { const f = Ho(e.getChildren(t)); if (f && Yp(f)) return !1; } else if (Xye(e.kind)) { const f = Ho(e.getChildren(t)); if (f && aT(f)) return !1; } else if (!WF(e.kind)) return !1; if (e.kind === 243) return !0; const i = nr(e, (f) => !f.parent), o = UT(e, i, t); if (!o || o.kind === 19) return !0; const s = t.getLineAndCharacterOfPosition(e.getEnd()).line, c = t.getLineAndCharacterOfPosition(o.getStart(t)).line; return s !== c; } function zF(e, t, r) { const i = nr(t, (o) => o.end !== e ? "quit" : Z$(o.kind)); return !!i && E5e(i, r); } function qF(e) { let t = 0, r = 0; const i = 5; return Oa(e, function o(s) { if (WF(s.kind)) { const c = s.getLastToken(e); (c == null ? void 0 : c.kind) === 26 ? t++ : r++; } else if (j$(s.kind)) { const c = s.getLastToken(e); if ((c == null ? void 0 : c.kind) === 26) t++; else if (c && c.kind !== 27) { const f = il(e, c.getStart(e)).line, d = il(e, _y(e, c.end).start).line; f !== d && r++; } } return t + r >= i ? !0 : Oa(s, o); }), t === 0 && r <= 1 ? !0 : t / r > 1 / i; } function JF(e, t) { return $F(e, e.getDirectories, t) || []; } function H$(e, t, r, i, o) { return $F(e, e.readDirectory, t, r, i, o) || nt; } function KF(e, t) { return $F(e, e.fileExists, t); } function XF(e, t) { return YF(() => zp(t, e)) || !1; } function YF(e) { try { return e(); } catch { return; } } function $F(e, t, ...r) { return YF(() => t && t.apply(e, r)); } function W$(e, t, r) { const i = []; return $h(e, (o) => { if (o === r) return !0; const s = Oi(o, "package.json"); KF(t, s) && i.push(s); }), i; } function $ye(e, t) { let r; return $h(e, (i) => { if (i === "node_modules" || (r = whe(i, (o) => KF(t, o), "package.json"), r)) return !0; }), r; } function Qye(e, t) { if (!t.fileExists) return []; const r = []; return $h(fi(e), (i) => { const o = Oi(i, "package.json"); if (t.fileExists(o)) { const s = Zye(o, t); s && r.push(s); } }), r; } function Zye(e, t) { if (!t.readFile) return; const r = ["dependencies", "devDependencies", "optionalDependencies", "peerDependencies"], i = t.readFile(e) || "", o = T5e(i), s = {}; if (o) for (const d of r) { const y = o[d]; if (!y) continue; const m = /* @__PURE__ */ new Map(); for (const b in y) m.set(b, y[b]); s[d] = m; } const c = [ [1, s.dependencies], [2, s.devDependencies], [8, s.optionalDependencies], [4, s.peerDependencies] ]; return { ...s, parseable: !!o, fileName: e, get: f, has(d, y) { return !!f(d, y); } }; function f(d, y = 15) { for (const [m, b] of c) if (b && y & m) { const A = b.get(d); if (A !== void 0) return A; } } } function cw(e, t, r) { const i = (r.getPackageJsonsVisibleToFile && r.getPackageJsonsVisibleToFile(e.fileName) || Qye(e.fileName, r)).filter((I) => I.parseable); let o, s, c; return { allowsImportingAmbientModule: d, allowsImportingSourceFile: y, allowsImportingSpecifier: m }; function f(I) { const O = C(I); for (const k of i) if (k.has(O) || k.has(p5(O))) return !0; return !1; } function d(I, O) { if (!i.length || !I.valueDeclaration) return !0; if (!s) s = /* @__PURE__ */ new Map(); else { const te = s.get(I); if (te !== void 0) return te; } const k = M_(I.getName()); if (b(k)) return s.set(I, !0), !0; const B = I.valueDeclaration.getSourceFile(), U = A(B.fileName, O); if (typeof U > "u") return s.set(I, !0), !0; const j = f(U) || f(k); return s.set(I, j), j; } function y(I, O) { if (!i.length) return !0; if (!c) c = /* @__PURE__ */ new Map(); else { const U = c.get(I); if (U !== void 0) return U; } const k = A(I.fileName, O); if (!k) return c.set(I, !0), !0; const B = f(k); return c.set(I, B), B; } function m(I) { return !i.length || b(I) || gf(I) || xm(I) ? !0 : f(I); } function b(I) { return !!(Ju(e) && FT.nodeCoreModules.has(I) && (o === void 0 && (o = QF(e)), o)); } function A(I, O) { if (!lu(I, "node_modules")) return; const k = P1.getNodeModulesPackageName(r.getCompilationSettings(), e, I, O, t); if (k && !gf(k) && !xm(k)) return C(k); } function C(I) { const O = rd(s8(I)).slice(1); return Ea(O[0], "@") ? `${O[0]}/${O[1]}` : O[0]; } } function T5e(e) { try { return JSON.parse(e); } catch { return; } } function QF(e) { return kt(e.imports, ({ text: t }) => FT.nodeCoreModules.has(t)); } function eve(e) { return Ii(rd(e), "node_modules"); } function z$(e) { return e.file !== void 0 && e.start !== void 0 && e.length !== void 0; } function tve(e, t) { const r = $u(e), i = kS(t, r, _l, SP); if (i >= 0) { const o = t[i]; return D.assertEqual(o.file, e.getSourceFile(), "Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"), ro(o, z$); } } function nve(e, t) { var r; let i = kS(t, e.start, (c) => c.start, js); for (i < 0 && (i = ~i); ((r = t[i - 1]) == null ? void 0 : r.start) === e.start; ) i--; const o = [], s = Qc(e); for (; ; ) { const c = ri(t[i], z$); if (!c || c.start > s) break; Ele(e, c) && o.push(c), i++; } return o; } function Gx({ startPosition: e, endPosition: t }) { return fc(e, t === void 0 ? e : t); } function q$(e, t) { const r = ra(e, t.start); return nr(r, (o) => o.getStart(e) < t.start || o.getEnd() > Qc(t) ? "quit" : yt(o) && UC(t, $u(o, e))); } function rve(e, t, r = _l) { return e ? Ga(e) ? r(rn(e, t)) : t(e, 0) : void 0; } function J$(e) { return Ga(e) ? ss(e) : e; } function ive(e, t) { if (ave(e)) { const r = ove(e); if (r) return r; const i = Fu.moduleSymbolToValidIdentifier(K$(e), t, !1), o = Fu.moduleSymbolToValidIdentifier(K$(e), t, !0); return i === o ? i : [i, o]; } return e.name; } function ZF(e, t, r) { return ave(e) ? ove(e) || Fu.moduleSymbolToValidIdentifier(K$(e), t, !!r) : e.name; } function ave(e) { return !(e.flags & 33554432) && (e.escapedName === "export=" || e.escapedName === "default"); } function ove(e) { return En(e.declarations, (t) => { var r, i; return Pl(t) ? (r = ri(pu(t.expression), Ve)) == null ? void 0 : r.text : (i = ri(La(t), Ve)) == null ? void 0 : i.text; }); } function K$(e) { var t; return D.checkDefined(e.parent, `Symbol parent was undefined. Flags: ${D.formatSymbolFlags(e.flags)}. Declarations: ${(t = e.declarations) == null ? void 0 : t.map((r) => { const i = D.formatSyntaxKind(r.kind), o = dr(r), { expression: s } = r; return (o ? "[JS]" : "") + i + (s ? ` (expression: ${D.formatSyntaxKind(s.kind)})` : ""); }).join(", ")}.`); } function sve(e, t, r) { const i = t.length; if (i + r > e.length) return !1; for (let o = 0; o < i; o++) if (t.charCodeAt(o) !== e.charCodeAt(o + r)) return !1; return !0; } function X$(e) { return e.charCodeAt(0) === 95; } function S5e(e) { return !lve(e); } function lve(e) { const t = e.getSourceFile(); return !t.externalModuleIndicator && !t.commonJsModuleIndicator ? !1 : dr(e) || !nr(e, (r) => Hl(r) && Hp(r)); } function e9(e) { return !!(VH(e) & 8192); } function t9(e, t) { const r = En(e.imports, (i) => { if (FT.nodeCoreModules.has(i.text)) return Ea(i.text, "node:"); }); return r ?? t.usesUriStyleNodeCoreModules; } function r6(e) { return e === ` ` ? 1 : 0; } function Ux(e) { return Ga(e) ? gh(Do(e[0]), e.slice(1)) : Do(e); } function n9({ options: e }, t) { const r = !e.semicolons || e.semicolons === "ignore", i = e.semicolons === "remove" || r && !qF(t); return { ...e, semicolons: i ? "remove" : "ignore" }; } function Y$(e) { return e === 2 || e === 3; } function uw(e, t) { return e.isSourceFileFromExternalLibrary(t) || e.isSourceFileDefaultLibrary(t); } function r9(e, t) { const r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(); for (const f of t) if (!CO(f)) { const d = Us(f.expression); if ($E(d)) switch (d.kind) { case 14: case 10: r.add(d.text); break; case 8: i.add(parseInt(d.text)); break; case 9: const y = xde(tc(d.text, "n") ? d.text.slice(0, -1) : d.text); y && o.add(A1(y)); break; } else { const y = e.getSymbolAtLocation(f.expression); if (y && y.valueDeclaration && D1(y.valueDeclaration)) { const m = e.getConstantValue(y.valueDeclaration); m !== void 0 && s(m); } } } return { addValue: s, hasValue: c }; function s(f) { switch (typeof f) { case "string": r.add(f); break; case "number": i.add(f); } } function c(f) { switch (typeof f) { case "string": return r.has(f); case "number": return i.has(f); case "object": return o.has(A1(f)); } } } var gu, $$, cve, i9, Q$, a9, uve, o9, Z$, x5e = L({ "src/services/utilities.ts"() { Kr(), gu = sy(99, !0), $$ = /* @__PURE__ */ ((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))($$ || {}), cve = /^\/\/\/\s* (e[e.Single = 0] = "Single", e[e.Double = 1] = "Double", e))(Q$ || {}), a9 = _5e(), uve = ` `, o9 = "anonymous function", Z$ = Sm(j$, Xye, Yye, WF); } }); function dve(e) { let t = 1; const r = o_(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(); let s; const c = { isUsableByFile: (C) => C === s, isEmpty: () => !r.size, clear: () => { r.clear(), i.clear(), s = void 0; }, add: (C, I, O, k, B, U, j, te) => { C !== s && (c.clear(), s = C); let X; if (B) { const Te = sq(B.fileName); if (Te) { const { topLevelNodeModulesIndex: ee, topLevelPackageNameIndex: $e, packageRootIndex: Ge } = Te; if (X = m5(s8(B.fileName.substring($e + 1, Ge))), Ea(C, B.path.substring(0, ee))) { const Fe = o.get(X), We = B.fileName.substring(0, $e + 1); if (Fe) { const Re = Fe.indexOf(Ty); ee > Re && o.set(X, We); } else o.set(X, We); } } } const P = U === 1 && qA(I) || I, ue = U === 0 || J8(P) ? Zi(O) : ive(P, void 0), ne = typeof ue == "string" ? ue : ue[0], ge = typeof ue == "string" ? void 0 : ue[1], ie = M_(k.name), H = t++, le = nf(I, te), pe = I.flags & 33554432 ? void 0 : I, ye = k.flags & 33554432 ? void 0 : k; (!pe || !ye) && i.set(H, [I, k]), r.add(d(ne, I, Oc(ie) ? void 0 : ie, te), { id: H, symbolTableKey: O, symbolName: ne, capitalizedSymbolName: ge, moduleName: ie, moduleFile: B, moduleFileName: B == null ? void 0 : B.fileName, packageName: X, exportKind: U, targetFlags: le.flags, isFromPackageJson: j, symbol: pe, moduleSymbol: ye }); }, get: (C, I) => { if (C !== s) return; const O = r.get(I); return O == null ? void 0 : O.map(f); }, search: (C, I, O, k) => { if (C === s) return Zd(r, (B, U) => { const { symbolName: j, ambientModuleName: te } = y(U), X = I && B[0].capitalizedSymbolName || j; if (O(X, B[0].targetFlags)) { const P = B.map(f).filter((ue, ne) => A(ue, B[ne].packageName)); if (P.length) { const ue = k(P, X, !!te, U); if (ue !== void 0) return ue; } } }); }, releaseSymbols: () => { i.clear(); }, onFileChanged: (C, I, O) => m(C) && m(I) ? !1 : s && s !== I.path || O && QF(C) !== QF(I) || !Bp(C.moduleAugmentations, I.moduleAugmentations) || !b(C, I) ? (c.clear(), !0) : (s = I.path, !1) }; return D.isDebugging && Object.defineProperty(c, "__cache", { get: () => r }), c; function f(C) { if (C.symbol && C.moduleSymbol) return C; const { id: I, exportKind: O, targetFlags: k, isFromPackageJson: B, moduleFileName: U } = C, [j, te] = i.get(I) || nt; if (j && te) return { symbol: j, moduleSymbol: te, moduleFileName: U, exportKind: O, targetFlags: k, isFromPackageJson: B }; const X = (B ? e.getPackageJsonAutoImportProvider() : e.getCurrentProgram()).getTypeChecker(), Y = C.moduleSymbol || te || D.checkDefined(C.moduleFile ? X.getMergedSymbol(C.moduleFile.symbol) : X.tryFindAmbientModule(C.moduleName)), P = C.symbol || j || D.checkDefined(O === 2 ? X.resolveExternalModuleSymbol(Y) : X.tryGetMemberInModuleExportsAndProperties(Zi(C.symbolTableKey), Y), `Could not find symbol '${C.symbolName}' by key '${C.symbolTableKey}' in module ${Y.name}`); return i.set(I, [P, Y]), { symbol: P, moduleSymbol: Y, moduleFileName: U, exportKind: O, targetFlags: k, isFromPackageJson: B }; } function d(C, I, O, k) { const B = O || ""; return `${C}|${go(nf(I, k))}|${B}`; } function y(C) { const I = C.substring(0, C.indexOf("|")), O = C.substring(C.lastIndexOf("|") + 1); return { symbolName: I, ambientModuleName: O === "" ? void 0 : O }; } function m(C) { return !C.commonJsModuleIndicator && !C.externalModuleIndicator && !C.moduleAugmentations && !C.ambientModuleNames; } function b(C, I) { if (!Bp(C.ambientModuleNames, I.ambientModuleNames)) return !1; let O = -1, k = -1; for (const B of I.ambientModuleNames) { const U = (j) => IW(j) && j.name.text === B; if (O = $i(C.statements, U, O + 1), k = $i(I.statements, U, k + 1), C.statements[O] !== I.statements[k]) return !1; } return !0; } function A(C, I) { if (!I || !C.moduleFileName) return !0; const O = e.getGlobalTypingsCacheLocation(); if (O && Ea(C.moduleFileName, O)) return !0; const k = o.get(I); return !k || Ea(C.moduleFileName, k); } } function eQ(e, t, r, i, o, s, c) { var f; if (t === r) return !1; const d = c == null ? void 0 : c.get(t.path, r.path, i, {}); if ((d == null ? void 0 : d.isBlockedByPackageJsonDependencies) !== void 0) return !d.isBlockedByPackageJsonDependencies; const y = H0(s), m = (f = s.getGlobalTypingsCacheLocation) == null ? void 0 : f.call(s), b = !!P1.forEachFileNameOfModule(t.fileName, r.fileName, s, !1, (A) => { const C = e.getSourceFile(A); return (C === r || !C) && A5e(t.fileName, A, y, m); }); if (o) { const A = b && o.allowsImportingSourceFile(r, s); return c == null || c.setBlockedByPackageJsonDependencies(t.path, r.path, i, {}, !A), A; } return b; } function A5e(e, t, r, i) { const o = $h(t, (c) => cu(c) === "node_modules" ? c : void 0), s = o && fi(r(o)); return s === void 0 || Ea(r(e), s) || !!i && Ea(r(i), s); } function tQ(e, t, r, i, o) { var s, c; const f = RN(t), d = r.autoImportFileExcludePatterns && _a(r.autoImportFileExcludePatterns, (m) => { const b = Kz(m, "", "exclude"); return b ? wv(b, f) : void 0; }); fve(e.getTypeChecker(), e.getSourceFiles(), d, (m, b) => o(m, b, e, !1)); const y = i && ((s = t.getPackageJsonAutoImportProvider) == null ? void 0 : s.call(t)); if (y) { const m = nl(), b = e.getTypeChecker(); fve(y.getTypeChecker(), y.getSourceFiles(), d, (A, C) => { (C && !e.getSourceFile(C.fileName) || !C && !b.resolveName(A.name, void 0, 1536, !1)) && o(A, C, y, !0); }), (c = t.log) == null || c.call(t, `forEachExternalModuleToImportFrom autoImportProvider: ${nl() - m}`); } } function fve(e, t, r, i) { var o; const s = r && ((c) => r.some((f) => f.test(c))); for (const c of e.getAmbientModules()) !lu(c.name, "*") && !(r && ((o = c.declarations) != null && o.every((f) => s(f.getSourceFile().fileName)))) && i(c, void 0); for (const c of t) ef(c) && !(s != null && s(c.fileName)) && i(e.getMergedSymbol(c.symbol), c); } function i6(e, t, r, i, o) { var s, c, f, d, y; const m = nl(); (s = t.getPackageJsonAutoImportProvider) == null || s.call(t); const b = ((c = t.getCachedExportInfoMap) == null ? void 0 : c.call(t)) || dve({ getCurrentProgram: () => r, 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 (b.isUsableByFile(e.path)) return (f = t.log) == null || f.call(t, "getExportInfoMap: cache hit"), b; (d = t.log) == null || d.call(t, "getExportInfoMap: cache miss or empty; calculating new results"); const A = r.getCompilerOptions(); let C = 0; try { tQ(r, t, i, !0, (I, O, k, B) => { ++C % 100 === 0 && (o == null || o.throwIfCancellationRequested()); const U = /* @__PURE__ */ new Map(), j = k.getTypeChecker(), te = s9(I, j, A); te && _ve(te.symbol, j) && b.add(e.path, te.symbol, te.exportKind === 1 ? "default" : "export=", I, O, te.exportKind, B, j), j.forEachExportAndPropertyOfModule(I, (X, Y) => { X !== (te == null ? void 0 : te.symbol) && _ve(X, j) && _p(U, Y) && b.add(e.path, X, Y, I, O, 0, B, j); }); }); } catch (I) { throw b.clear(), I; } return (y = t.log) == null || y.call(t, `getExportInfoMap: done in ${nl() - m} ms`), b; } function s9(e, t, r) { const i = C5e(e, t); if (!i) return; const { symbol: o, exportKind: s } = i, c = l9(o, t, r); return c && { symbol: o, exportKind: s, ...c }; } function _ve(e, t) { return !t.isUndefinedSymbol(e) && !t.isUnknownSymbol(e) && !AN(e) && !mue(e); } function C5e(e, t) { const r = t.resolveExternalModuleSymbol(e); if (r !== e) return { symbol: r, exportKind: 2 }; const i = t.tryGetMemberInModuleExports("default", e); if (i) return { symbol: i, exportKind: 1 }; } function l9(e, t, r) { const i = qA(e); if (i) return { resolvedSymbol: i, name: i.name }; const o = L5e(e); if (o !== void 0) return { resolvedSymbol: e, name: o }; if (e.flags & 2097152) { const s = t.getImmediateAliasedSymbol(e); if (s && s.parent) return l9(s, t, r); } return e.escapedName !== "default" && e.escapedName !== "export=" ? { resolvedSymbol: e, name: e.getName() } : { resolvedSymbol: e, name: ZF(e, r.target) }; } function L5e(e) { return e.declarations && En(e.declarations, (t) => { var r; if (Pl(t)) return (r = ri(pu(t.expression), Ve)) == null ? void 0 : r.text; if (od(t)) return D.assert(t.name.text === "default", "Expected the specifier to be a default export"), t.propertyName && t.propertyName.text; }); } var nQ, rQ, I5e = L({ "src/services/exportInfoMap.ts"() { Kr(), nQ = /* @__PURE__ */ ((e) => (e[e.Named = 0] = "Named", e[e.Default = 1] = "Default", e[e.Namespace = 2] = "Namespace", e[e.CommonJS = 3] = "CommonJS", e))(nQ || {}), rQ = /* @__PURE__ */ ((e) => (e[e.Named = 0] = "Named", e[e.Default = 1] = "Default", e[e.ExportEquals = 2] = "ExportEquals", e[e.UMD = 3] = "UMD", e))(rQ || {}); } }); function pve() { const e = sy(99, !1); function t(i, o, s) { return D5e(r(i, o, s), i); } function r(i, o, s) { let c = 0, f = 0; const d = [], { prefix: y, pushTemplate: m } = O5e(o); i = y + i; const b = y.length; m && d.push(15), e.setText(i); let A = 0; const C = []; let I = 0; do { c = e.scan(), VA(c) || (O(), f = c); const k = e.getTextPos(); if (w5e(e.getTokenPos(), k, b, F5e(c), C), k >= i.length) { const B = k5e(e, c, Zs(d)); B !== void 0 && (A = B); } } while (c !== 1); function O() { switch (c) { case 43: case 68: !bve[f] && e.reScanSlashToken() === 13 && (c = 13); break; case 29: f === 79 && I++; break; case 31: I > 0 && I--; break; case 131: case 152: case 148: case 134: case 153: I > 0 && !s && (c = 79); break; case 15: d.push(c); break; case 18: d.length > 0 && d.push(c); break; case 19: if (d.length > 0) { const k = Zs(d); k === 15 ? (c = e.reScanTemplateToken(!1), c === 17 ? d.pop() : D.assertEqual(c, 16, "Should have been a template middle.")) : (D.assertEqual(k, 18, "Should have been an open brace"), d.pop()); } break; default: if (!bd(c)) break; (f === 24 || bd(f) && bd(c) && !N5e(f, c)) && (c = 79); } } return { endOfLineState: A, spans: C }; } return { getClassificationsForLine: t, getEncodedLexicalClassifications: r }; } function k5e(e, t, r) { switch (t) { case 10: { if (!e.isUnterminated()) return; const i = e.getTokenText(), o = i.length - 1; let s = 0; for (; i.charCodeAt(o - s) === 92; ) s++; return s & 1 ? i.charCodeAt(0) === 34 ? 3 : 2 : void 0; } case 3: return e.isUnterminated() ? 1 : void 0; default: if (Ev(t)) { if (!e.isUnterminated()) return; switch (t) { case 17: return 5; case 14: return 4; default: return D.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #" + t); } } return r === 15 ? 6 : void 0; } } function w5e(e, t, r, i, o) { if (i === 8) return; e === 0 && r > 0 && (e += r); const s = t - e; s > 0 && o.push(e - r, s, i); } function D5e(e, t) { const r = [], i = e.spans; let o = 0; for (let c = 0; c < i.length; c += 3) { const f = i[c], d = i[c + 1], y = i[c + 2]; if (o >= 0) { const m = f - o; m > 0 && r.push({ length: m, classification: 4 }); } r.push({ length: d, classification: R5e(y) }), o = f + d; } const s = t.length - o; return s > 0 && r.push({ length: s, classification: 4 }), { entries: r, finalLexState: e.endOfLineState }; } function R5e(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 N5e(e, t) { if (!y$(e)) return !0; switch (t) { case 137: case 151: case 135: case 124: case 127: return !0; default: return !1; } } function O5e(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 D.assertNever(e); } } function P5e(e) { switch (e) { case 41: case 43: case 44: case 39: case 40: case 47: case 48: case 49: case 29: case 31: case 32: case 33: case 102: case 101: case 128: case 150: case 34: case 35: case 36: case 37: case 50: case 52: case 51: case 55: case 56: case 74: case 73: case 78: case 70: case 71: case 72: case 64: case 65: case 66: case 68: case 69: case 63: case 27: case 60: case 75: case 76: case 77: return !0; default: return !1; } } function M5e(e) { switch (e) { case 39: case 40: case 54: case 53: case 45: case 46: return !0; default: return !1; } } function F5e(e) { if (bd(e)) return 3; if (P5e(e) || M5e(e)) return 5; if (e >= 18 && e <= 78) return 10; switch (e) { case 8: return 4; case 9: return 25; case 10: return 6; case 13: return 7; case 7: case 3: case 2: return 1; case 5: case 4: return 8; case 79: default: return Ev(e) ? 6 : 2; } } function mve(e, t, r, i, o) { return yve(iQ(e, t, r, i, o)); } function hve(e, t) { switch (t) { case 264: case 260: case 261: case 259: case 228: case 215: case 216: e.throwIfCancellationRequested(); } } function iQ(e, t, r, i, o) { const s = []; return r.forEachChild(function f(d) { if (!(!d || !lM(o, d.pos, d.getFullWidth()))) { if (hve(t, d.kind), Ve(d) && !Sl(d) && i.has(d.escapedText)) { const y = e.getSymbolAtLocation(d), m = y && gve(y, BT(d), e); m && c(d.getStart(r), d.getEnd(), m); } d.forEachChild(f); } }), { spans: s, endOfLineState: 0 }; function c(f, d, y) { const m = d - f; D.assert(m > 0, `Classification had non-positive length of ${m}`), s.push(f), s.push(m), s.push(y); } } function gve(e, t, r) { const i = e.getFlags(); if (i & 2885600) return i & 32 ? 11 : i & 384 ? 12 : i & 524288 ? 16 : i & 1536 ? t & 4 || t & 1 && B5e(e) ? 14 : void 0 : i & 2097152 ? gve(r.getAliasedSymbol(e), t, r) : t & 2 ? i & 64 ? 13 : i & 262144 ? 15 : void 0 : void 0; } function B5e(e) { return kt(e.declarations, (t) => Hl(t) && _g(t) === 1); } function G5e(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 yve(e) { D.assert(e.spans.length % 3 === 0); const t = e.spans, r = []; for (let i = 0; i < t.length; i += 3) r.push({ textSpan: Cc(t[i], t[i + 1]), classificationType: G5e(t[i + 2]) }); return r; } function vve(e, t, r) { return yve(aQ(e, t, r)); } function aQ(e, t, r) { const i = r.start, o = r.length, s = sy(99, !1, t.languageVariant, t.text), c = sy(99, !1, t.languageVariant, t.text), f = []; return te(t), { spans: f, endOfLineState: 0 }; function d(X, Y, P) { f.push(X), f.push(Y), f.push(P); } function y(X) { for (s.setTextPos(X.pos); ; ) { const Y = s.getTextPos(); if (!ale(t.text, Y)) return Y; const P = s.scan(), ue = s.getTextPos(), ne = ue - Y; if (!VA(P)) return Y; switch (P) { case 4: case 5: continue; case 2: case 3: m(X, P, Y, ne), s.setTextPos(ue); continue; case 7: const ge = t.text, ie = ge.charCodeAt(Y); if (ie === 60 || ie === 62) { d(Y, ne, 1); continue; } D.assert(ie === 124 || ie === 61), O(ge, Y, ue); break; case 6: break; default: D.assertNever(P); } } } function m(X, Y, P, ue) { if (Y === 3) { const ne = A_e(t.text, P, ue); if (ne && ne.jsDoc) { Bo(ne.jsDoc, X), A(ne.jsDoc); return; } } else if (Y === 2 && C(P, ue)) return; b(P, ue); } function b(X, Y) { d(X, Y, 1); } function A(X) { var Y, P, ue, ne, ge, ie, H, le; let pe = X.pos; if (X.tags) for (const Te of X.tags) { Te.pos !== pe && b(pe, Te.pos - pe), d(Te.pos, 1, 10), d(Te.tagName.pos, Te.tagName.end - Te.tagName.pos, 18), pe = Te.tagName.end; let ee = Te.tagName.end; switch (Te.kind) { case 344: const $e = Te; ye($e), ee = $e.isNameFirst && ((Y = $e.typeExpression) == null ? void 0 : Y.end) || $e.name.end; break; case 351: const Ge = Te; ee = Ge.isNameFirst && ((P = Ge.typeExpression) == null ? void 0 : P.end) || Ge.name.end; break; case 348: I(Te), pe = Te.end, ee = Te.typeParameters.end; break; case 349: const Fe = Te; ee = ((ue = Fe.typeExpression) == null ? void 0 : ue.kind) === 312 && ((ne = Fe.fullName) == null ? void 0 : ne.end) || ((ge = Fe.typeExpression) == null ? void 0 : ge.end) || ee; break; case 341: ee = Te.typeExpression.end; break; case 347: te(Te.typeExpression), pe = Te.end, ee = Te.typeExpression.end; break; case 346: case 343: ee = Te.typeExpression.end; break; case 345: te(Te.typeExpression), pe = Te.end, ee = ((ie = Te.typeExpression) == null ? void 0 : ie.end) || ee; break; case 350: ee = ((H = Te.name) == null ? void 0 : H.end) || ee; break; case 331: case 332: ee = Te.class.end; break; case 352: te(Te.typeExpression), pe = Te.end, ee = ((le = Te.typeExpression) == null ? void 0 : le.end) || ee; break; } typeof Te.comment == "object" ? b(Te.comment.pos, Te.comment.end - Te.comment.pos) : typeof Te.comment == "string" && b(ee, Te.end - ee); } pe !== X.end && b(pe, X.end - pe); return; function ye(Te) { Te.isNameFirst && (b(pe, Te.name.pos - pe), d(Te.name.pos, Te.name.end - Te.name.pos, 17), pe = Te.name.end), Te.typeExpression && (b(pe, Te.typeExpression.pos - pe), te(Te.typeExpression), pe = Te.typeExpression.end), Te.isNameFirst || (b(pe, Te.name.pos - pe), d(Te.name.pos, Te.name.end - Te.name.pos, 17), pe = Te.name.end); } } function C(X, Y) { const P = /^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im, ue = /(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img, ne = t.text.substr(X, Y), ge = P.exec(ne); if (!ge || !ge[3] || !(ge[3] in fR)) return !1; let ie = X; b(ie, ge[1].length), ie += ge[1].length, d(ie, ge[2].length, 10), ie += ge[2].length, d(ie, ge[3].length, 21), ie += ge[3].length; const H = ge[4]; let le = ie; for (; ; ) { const ye = ue.exec(H); if (!ye) break; const Te = ie + ye.index + ye[1].length; Te > le && (b(le, Te - le), le = Te), d(le, ye[2].length, 22), le += ye[2].length, ye[3].length && (b(le, ye[3].length), le += ye[3].length), d(le, ye[4].length, 5), le += ye[4].length, ye[5].length && (b(le, ye[5].length), le += ye[5].length), d(le, ye[6].length, 24), le += ye[6].length; } ie += ge[4].length, ie > le && b(le, ie - le), ge[5] && (d(ie, ge[5].length, 10), ie += ge[5].length); const pe = X + Y; return ie < pe && b(ie, pe - ie), !0; } function I(X) { for (const Y of X.getChildren()) te(Y); } function O(X, Y, P) { let ue; for (ue = Y; ue < P && !uu(X.charCodeAt(ue)); ue++) ; for (d(Y, ue - Y, 1), c.setTextPos(ue); c.getTextPos() < P; ) k(); } function k() { const X = c.getTextPos(), Y = c.scan(), P = c.getTextPos(), ue = j(Y); ue && d(X, P - X, ue); } function B(X) { if (Vm(X) || Sl(X)) return !0; const Y = U(X); if (!US(X) && X.kind !== 11 && Y === void 0) return !1; const P = X.kind === 11 ? X.pos : y(X), ue = X.end - P; if (D.assert(ue >= 0), ue > 0) { const ne = Y || j(X.kind, X); ne && d(P, ue, ne); } return !0; } function U(X) { switch (X.parent && X.parent.kind) { case 283: if (X.parent.tagName === X) return 19; break; case 284: if (X.parent.tagName === X) return 20; break; case 282: if (X.parent.tagName === X) return 21; break; case 288: if (X.parent.name === X) return 22; break; } } function j(X, Y) { if (bd(X)) return 3; if ((X === 29 || X === 31) && Y && Tye(Y.parent)) return 10; if (xye(X)) { if (Y) { const P = Y.parent; if (X === 63 && (P.kind === 257 || P.kind === 169 || P.kind === 166 || P.kind === 288) || P.kind === 223 || P.kind === 221 || P.kind === 222 || P.kind === 224) return 5; } return 10; } else { if (X === 8) return 4; if (X === 9) return 25; if (X === 10) return Y && Y.parent.kind === 288 ? 24 : 6; if (X === 13) return 6; if (Ev(X)) return 6; if (X === 11) return 23; if (X === 79) { if (Y) { switch (Y.parent.kind) { case 260: return Y.parent.name === Y ? 11 : void 0; case 165: return Y.parent.name === Y ? 15 : void 0; case 261: return Y.parent.name === Y ? 13 : void 0; case 263: return Y.parent.name === Y ? 12 : void 0; case 264: return Y.parent.name === Y ? 14 : void 0; case 166: return Y.parent.name === Y ? _T(Y) ? 3 : 17 : void 0; } if (tg(Y.parent)) return 3; } return 2; } } } function te(X) { if (X && cM(i, o, X.pos, X.getFullWidth())) { hve(e, X.kind); for (const Y of X.getChildren(t)) B(Y) || te(Y); } } } var bve, U5e = L({ "src/services/classifier.ts"() { Kr(), bve = ose([ 79, 10, 8, 9, 13, 108, 45, 46, 21, 23, 19, 110, 95 ], (e) => e, () => !0); } }), c9, V5e = L({ "src/services/documentHighlights.ts"() { Kr(), ((e) => { function t(ie, H, le, pe, ye) { const Te = Af(le, pe); if (Te.parent && (xh(Te.parent) && Te.parent.tagName === Te || Ax(Te.parent))) { const { openingElement: ee, closingElement: $e } = Te.parent.parent, Ge = [ee, $e].map(({ tagName: Fe }) => r(Fe, le)); return [{ fileName: le.fileName, highlightSpans: Ge }]; } return i(pe, Te, ie, H, ye) || o(Te, le); } e.getDocumentHighlights = t; function r(ie, H) { return { fileName: H.fileName, textSpan: $u(ie, H), kind: "none" }; } function i(ie, H, le, pe, ye) { const Te = new Set(ye.map((Fe) => Fe.fileName)), ee = ll.getReferenceEntriesForNode(ie, H, le, ye, pe, void 0, Te); if (!ee) return; const $e = tR(ee.map(ll.toHighlightSpan), (Fe) => Fe.fileName, (Fe) => Fe.span), Ge = $c(le.useCaseSensitiveFileNames()); return ko(KD($e.entries(), ([Fe, We]) => { if (!Te.has(Fe)) { if (!le.redirectTargetsMap.has(Hs(Fe, le.getCurrentDirectory(), Ge))) return; const Re = le.getSourceFile(Fe); Fe = un(ye, (Ke) => !!Ke.redirectInfo && Ke.redirectInfo.redirectTarget === Re).fileName, D.assert(Te.has(Fe)); } return { fileName: Fe, highlightSpans: We }; })); } function o(ie, H) { const le = s(ie, H); return le && [{ fileName: H.fileName, highlightSpans: le }]; } function s(ie, H) { switch (ie.kind) { case 99: case 91: return ET(ie.parent) ? ue(ie.parent, H) : void 0; case 105: return pe(ie.parent, pp, te); case 109: return pe(ie.parent, nJ, j); case 111: case 83: case 96: const Te = ie.kind === 83 ? ie.parent.parent : ie.parent; return pe(Te, SO, U); case 107: return pe(ie.parent, TO, B); case 82: case 88: return CO(ie.parent) || Ak(ie.parent) ? pe(ie.parent.parent.parent, TO, B) : void 0; case 81: case 86: return pe(ie.parent, mI, k); case 97: case 115: case 90: return pe(ie.parent, (ee) => Tv(ee, !0), O); case 135: return le(jl, [135]); case 137: case 151: return le(F0, [137, 151]); case 133: return pe(ie.parent, _C, X); case 132: return ye(X(ie)); case 125: return ye(Y(ie)); case 101: return; default: return uy(ie.kind) && (_u(ie.parent) || sc(ie.parent)) ? ye(A(ie.kind, ie.parent)) : void 0; } function le(Te, ee) { return pe(ie.parent, Te, ($e) => { var Ge; return _a((Ge = ri($e, Lm)) == null ? void 0 : Ge.symbol.declarations, (Fe) => Te(Fe) ? un(Fe.getChildren(H), (We) => Ii(ee, We.kind)) : void 0); }); } function pe(Te, ee, $e) { return ee(Te) ? ye($e(Te, H)) : void 0; } function ye(Te) { return Te && Te.map((ee) => r(ee, H)); } } function c(ie) { return nJ(ie) ? [ie] : SO(ie) ? ha(ie.catchClause ? c(ie.catchClause) : ie.tryBlock && c(ie.tryBlock), ie.finallyBlock && c(ie.finallyBlock)) : qa(ie) ? void 0 : y(ie, c); } function f(ie) { let H = ie; for (; H.parent; ) { const le = H.parent; if (aT(le) || le.kind === 308) return le; if (SO(le) && le.tryBlock === H && le.catchClause) return H; H = le; } } function d(ie) { return mI(ie) ? [ie] : qa(ie) ? void 0 : y(ie, d); } function y(ie, H) { const le = []; return ie.forEachChild((pe) => { const ye = H(pe); ye !== void 0 && le.push(...nR(ye)); }), le; } function m(ie, H) { const le = b(H); return !!le && le === ie; } function b(ie) { return nr(ie, (H) => { switch (H.kind) { case 252: if (ie.kind === 248) return !1; case 245: case 246: case 247: case 244: case 243: return !ie.label || ge(H, ie.label.escapedText); default: return qa(H) && "quit"; } }); } function A(ie, H) { return _a(C(H, ix(ie)), (le) => GC(le, ie)); } function C(ie, H) { const le = ie.parent; switch (le.kind) { case 265: case 308: case 238: case 292: case 293: return H & 256 && kc(ie) ? [...ie.members, ie] : le.statements; case 173: case 171: case 259: return [...le.parameters, ...li(le.parent) ? le.parent.members : []]; case 260: case 228: case 261: case 184: const pe = le.members; if (H & 92) { const ye = un(le.members, jl); if (ye) return [...pe, ...ye.parameters]; } else if (H & 256) return [...pe, le]; return pe; case 207: return; default: D.assertNever(le, "Invalid container kind."); } } function I(ie, H, ...le) { return H && Ii(le, H.kind) ? (ie.push(H), !0) : !1; } function O(ie) { const H = []; if (I(H, ie.getFirstToken(), 97, 115, 90) && ie.kind === 243) { const le = ie.getChildren(); for (let pe = le.length - 1; pe >= 0 && !I(H, le[pe], 115); pe--) ; } return Ye(d(ie.statement), (le) => { m(ie, le) && I(H, le.getFirstToken(), 81, 86); }), H; } function k(ie) { const H = b(ie); if (H) switch (H.kind) { case 245: case 246: case 247: case 243: case 244: return O(H); case 252: return B(H); } } function B(ie) { const H = []; return I(H, ie.getFirstToken(), 107), Ye(ie.caseBlock.clauses, (le) => { I(H, le.getFirstToken(), 82, 88), Ye(d(le), (pe) => { m(ie, pe) && I(H, pe.getFirstToken(), 81); }); }), H; } function U(ie, H) { const le = []; if (I(le, ie.getFirstToken(), 111), ie.catchClause && I(le, ie.catchClause.getFirstToken(), 83), ie.finallyBlock) { const pe = ys(ie, 96, H); I(le, pe, 96); } return le; } function j(ie, H) { const le = f(ie); if (!le) return; const pe = []; return Ye(c(le), (ye) => { pe.push(ys(ye, 109, H)); }), aT(le) && iT(le, (ye) => { pe.push(ys(ye, 105, H)); }), pe; } function te(ie, H) { const le = bf(ie); if (!le) return; const pe = []; return iT(ro(le.body, oo), (ye) => { pe.push(ys(ye, 105, H)); }), Ye(c(le.body), (ye) => { pe.push(ys(ye, 109, H)); }), pe; } function X(ie) { const H = bf(ie); if (!H) return; const le = []; return H.modifiers && H.modifiers.forEach((pe) => { I(le, pe, 132); }), Oa(H, (pe) => { P(pe, (ye) => { _C(ye) && I(le, ye.getFirstToken(), 133); }); }), le; } function Y(ie) { const H = bf(ie); if (!H) return; const le = []; return Oa(H, (pe) => { P(pe, (ye) => { S7(ye) && I(le, ye.getFirstToken(), 125); }); }), le; } function P(ie, H) { H(ie), !qa(ie) && !li(ie) && !Yu(ie) && !Hl(ie) && !Xp(ie) && !Pi(ie) && Oa(ie, (le) => P(le, H)); } function ue(ie, H) { const le = ne(ie, H), pe = []; for (let ye = 0; ye < le.length; ye++) { if (le[ye].kind === 91 && ye < le.length - 1) { const Te = le[ye], ee = le[ye + 1]; let $e = !0; for (let Ge = ee.getStart(H) - 1; Ge >= Te.end; Ge--) if (!Cm(H.text.charCodeAt(Ge))) { $e = !1; break; } if ($e) { pe.push({ fileName: H.fileName, textSpan: fc(Te.getStart(), ee.end), kind: "reference" }), ye++; continue; } } pe.push(r(le[ye], H)); } return pe; } function ne(ie, H) { const le = []; for (; ET(ie.parent) && ie.parent.elseStatement === ie; ) ie = ie.parent; for (; ; ) { const pe = ie.getChildren(H); I(le, pe[0], 99); for (let ye = pe.length - 1; ye >= 0 && !I(le, pe[ye], 91); ye--) ; if (!ie.elseStatement || !ET(ie.elseStatement)) break; ie = ie.elseStatement; } return le; } function ge(ie, H) { return !!nr(ie.parent, (le) => k1(le) ? le.label.escapedText === H : "quit"); } })(c9 || (c9 = {})); } }); function u9(e) { return !!e.sourceFile; } function oQ(e, t) { return Eve(e, t); } function Eve(e, t = "", r) { const i = /* @__PURE__ */ new Map(), o = $c(!!e); function s() { const k = ko(i.keys()).filter((B) => B && B.charAt(0) === "_").map((B) => { const U = i.get(B), j = []; return U.forEach((te, X) => { u9(te) ? j.push({ name: X, scriptKind: te.sourceFile.scriptKind, refCount: te.languageServiceRefCount }) : te.forEach((Y, P) => j.push({ name: X, scriptKind: P, refCount: Y.languageServiceRefCount })); }), j.sort((te, X) => X.refCount - te.refCount), { bucket: B, sourceFiles: j }; }); return JSON.stringify(k, void 0, 2); } function c(k) { return typeof k.getCompilationSettings == "function" ? k.getCompilationSettings() : k; } function f(k, B, U, j, te, X) { const Y = Hs(k, t, o), P = d9(c(B)); return d(k, Y, B, P, U, j, te, X); } function d(k, B, U, j, te, X, Y, P) { return A(k, B, U, j, te, X, !0, Y, P); } function y(k, B, U, j, te, X) { const Y = Hs(k, t, o), P = d9(c(B)); return m(k, Y, B, P, U, j, te, X); } function m(k, B, U, j, te, X, Y, P) { return A(k, B, c(U), j, te, X, !1, Y, P); } function b(k, B) { const U = u9(k) ? k : k.get(D.checkDefined(B, "If there are more than one scriptKind's for same document the scriptKind should be provided")); return D.assert(B === void 0 || !U || U.sourceFile.scriptKind === B, `Script kind should match provided ScriptKind:${B} and sourceFile.scriptKind: ${U == null ? void 0 : U.sourceFile.scriptKind}, !entry: ${!U}`), U; } function A(k, B, U, j, te, X, Y, P, ue) { var ne, ge, ie, H; P = L3(k, P); const le = c(U), pe = U === le ? void 0 : U, ye = P === 6 ? 100 : $o(le), Te = typeof ue == "object" ? ue : { languageVersion: ye, impliedNodeFormat: pe && z5(B, (H = (ie = (ge = (ne = pe.getCompilerHost) == null ? void 0 : ne.call(pe)) == null ? void 0 : ge.getModuleResolutionCache) == null ? void 0 : ie.call(ge)) == null ? void 0 : H.getPackageJsonInfoCache(), pe, le), setExternalModuleIndicator: VN(le) }; Te.languageVersion = ye; const ee = i.size, $e = Tve(j, Te.impliedNodeFormat), Ge = XD(i, $e, () => /* @__PURE__ */ new Map()); if (hi) { i.size > ee && hi.instant(hi.Phase.Session, "createdDocumentRegistryBucket", { configFilePath: le.configFilePath, key: $e }); const Pe = !sd(B) && Zd(i, (Ke, He) => He !== $e && Ke.has(B) && He); Pe && hi.instant(hi.Phase.Session, "documentRegistryBucketOverlap", { path: B, key1: Pe, key2: $e }); } const Fe = Ge.get(B); let We = Fe && b(Fe, P); if (!We && r) { const Pe = r.getDocument($e, B); Pe && (D.assert(Y), We = { sourceFile: Pe, languageServiceRefCount: 0 }, Re()); } if (We) We.sourceFile.version !== X && (We.sourceFile = RQ(We.sourceFile, te, X, te.getChangeRange(We.sourceFile.scriptSnapshot)), r && r.setDocument($e, B, We.sourceFile)), Y && We.languageServiceRefCount++; else { const Pe = S9(k, te, Te, X, !1, P); r && r.setDocument($e, B, Pe), We = { sourceFile: Pe, languageServiceRefCount: 1 }, Re(); } return D.assert(We.languageServiceRefCount !== 0), We.sourceFile; function Re() { if (!Fe) Ge.set(B, We); else if (u9(Fe)) { const Pe = /* @__PURE__ */ new Map(); Pe.set(Fe.sourceFile.scriptKind, Fe), Pe.set(P, We), Ge.set(B, Pe); } else Fe.set(P, We); } } function C(k, B, U, j) { const te = Hs(k, t, o), X = d9(B); return I(te, X, U, j); } function I(k, B, U, j) { const te = D.checkDefined(i.get(Tve(B, j))), X = te.get(k), Y = b(X, U); Y.languageServiceRefCount--, D.assert(Y.languageServiceRefCount >= 0), Y.languageServiceRefCount === 0 && (u9(X) ? te.delete(k) : (X.delete(U), X.size === 1 && te.set(k, ni(X.values(), _l)))); } function O(k, B) { return ko(i.entries(), ([U, j]) => { const te = j.get(k), X = te && b(te, B); return [U, X && X.languageServiceRefCount]; }); } return { acquireDocument: f, acquireDocumentWithKey: d, updateDocument: y, updateDocumentWithKey: m, releaseDocument: C, releaseDocumentWithKey: I, getLanguageServiceRefCounts: O, reportStats: s, getKeyForCompilationSettings: d9 }; } function d9(e) { return dK(e, Q7); } function Tve(e, t) { return t ? `${e}|${t}` : e; } var j5e = L({ "src/services/documentRegistry.ts"() { Kr(); } }); function Sve(e, t, r, i, o, s, c) { const f = RN(i), d = $c(f), y = sQ(t, r, d, c), m = sQ(r, t, d, c); return hr.ChangeTracker.with({ host: i, formatContext: o, preferences: s }, (b) => { W5e(e, b, y, t, r, i.getCurrentDirectory(), f), z5e(e, b, y, m, i, d); }); } function sQ(e, t, r, i) { const o = r(e); return (c) => { const f = i && i.tryGetSourcePosition({ fileName: c, pos: 0 }), d = s(f ? f.fileName : c); return f ? d === void 0 ? void 0 : H5e(f.fileName, d, c, r) : d; }; function s(c) { if (r(c) === o) return t; const f = qz(c, o, r); return f === void 0 ? void 0 : t + "/" + f; } } function H5e(e, t, r, i) { const o = ER(e, t, i); return lQ(fi(r), o); } function W5e(e, t, r, i, o, s, c) { const { configFile: f } = e.getCompilerOptions(); if (!f) return; const d = fi(f.fileName), y = LI(f); if (!y) return; cQ(y, (C, I) => { switch (I) { case "files": case "include": case "exclude": { if (m(C) || I !== "include" || !Ru(C.initializer)) return; const k = _a(C.initializer.elements, (U) => Go(U) ? U.text : void 0); if (k.length === 0) return; const B = ek(d, [], k, c, s); wv(D.checkDefined(B.includeFilePattern), c).test(i) && !wv(D.checkDefined(B.includeFilePattern), c).test(o) && t.insertNodeAfter(f, Ho(C.initializer.elements), N.createStringLiteral(A(o))); return; } case "compilerOptions": cQ(C.initializer, (O, k) => { const B = MJ(k); D.assert((B == null ? void 0 : B.type) !== "listOrElement"), B && (B.isFilePath || B.type === "list" && B.element.isFilePath) ? m(O) : k === "paths" && cQ(O.initializer, (U) => { if (Ru(U.initializer)) for (const j of U.initializer.elements) b(j); }); }); return; } }); function m(C) { const I = Ru(C.initializer) ? C.initializer.elements : [C.initializer]; let O = !1; for (const k of I) O = b(k) || O; return O; } function b(C) { if (!Go(C)) return !1; const I = lQ(d, C.text), O = r(I); return O !== void 0 ? (t.replaceRangeWithText(f, Ave(C, f), A(O)), !0) : !1; } function A(C) { return Am(d, C, !c); } } function z5e(e, t, r, i, o, s) { const c = e.getSourceFiles(); for (const f of c) { const d = r(f.fileName), y = d ?? f.fileName, m = fi(y), b = i(f.fileName), A = b || f.fileName, C = fi(A), I = d !== void 0 || b !== void 0; K5e(f, t, (O) => { if (!gf(O)) return; const k = lQ(C, O), B = r(k); return B === void 0 ? void 0 : o1(Am(m, B, s)); }, (O) => { const k = e.getTypeChecker().getSymbolAtLocation(O); if (k != null && k.declarations && k.declarations.some((U) => ku(U))) return; const B = b !== void 0 ? xve(O, Mk(O.text, A, e.getCompilerOptions(), o), r, c) : J5e(k, O, f, e, o, r); return B !== void 0 && (B.updated || I && gf(O.text)) ? P1.updateModuleSpecifier(e.getCompilerOptions(), f, s(y), B.newFileName, Bx(e, o), O.text) : void 0; }); } } function q5e(e, t) { return Wo(Oi(e, t)); } function lQ(e, t) { return o1(q5e(e, t)); } function J5e(e, t, r, i, o, s) { var c; if (e) { const f = un(e.declarations, ji).fileName, d = s(f); return d === void 0 ? { newFileName: f, updated: !1 } : { newFileName: d, updated: !0 }; } else { const f = hp(r, t), d = o.resolveModuleNameLiterals || !o.resolveModuleNames ? (c = r.resolvedModules) == null ? void 0 : c.get(t.text, f) : o.getResolvedModuleWithFailedLookupLocationsFromCache && o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text, r.fileName, f); return xve(t, d, s, i.getSourceFiles()); } } function xve(e, t, r, i) { if (!t) return; if (t.resolvedModule) { const d = f(t.resolvedModule.resolvedFileName); if (d) return d; } const o = Ye(t.failedLookupLocations, s) || gf(e.text) && Ye(t.failedLookupLocations, c); if (o) return o; return t.resolvedModule && { newFileName: t.resolvedModule.resolvedFileName, updated: !1 }; function s(d) { const y = r(d); return y && un(i, (m) => m.fileName === y) ? c(d) : void 0; } function c(d) { return tc(d, "/package.json") ? void 0 : f(d); } function f(d) { const y = r(d); return y && { newFileName: y, updated: !0 }; } } function K5e(e, t, r, i) { for (const o of e.referencedFiles || nt) { const s = r(o.fileName); s !== void 0 && s !== e.text.slice(o.pos, o.end) && t.replaceRangeWithText(e, o, s); } for (const o of e.imports) { const s = i(o); s !== void 0 && s !== o.text && t.replaceRangeWithText(e, Ave(o, e), s); } } function Ave(e, t) { return u_(e.getStart(t) + 1, e.end - 1); } function cQ(e, t) { if (As(e)) for (const r of e.properties) Uc(r) && Go(r.name) && t(r, r.name.text); } var X5e = L({ "src/services/getEditsForFileRename.ts"() { Kr(); } }); function a6(e, t) { return { kind: e, isCaseSensitive: t }; } function Cve(e) { const t = /* @__PURE__ */ new Map(), r = e.trim().split(".").map((i) => Z5e(i.trim())); if (!r.some((i) => !i.subWordTextChunks.length)) return { getFullMatch: (i, o) => Y5e(i, o, r, t), getMatchForLastSegmentOfPattern: (i) => uQ(i, Ho(r), t), patternContainsDots: r.length > 1 }; } function Y5e(e, t, r, i) { if (!uQ(t, Ho(r), i) || r.length - 1 > e.length) return; let s; for (let c = r.length - 2, f = e.length - 1; c >= 0; c -= 1, f -= 1) s = kve(s, uQ(e[f], r[c], i)); return s; } function Lve(e, t) { let r = t.get(e); return r || t.set(e, r = Nve(e)), r; } function Ive(e, t, r) { const i = eFe(e, t.textLowerCase); if (i === 0) return a6(t.text.length === e.length ? 0 : 1, Ea(e, t.text)); if (t.isLowerCase) { if (i === -1) return; const o = Lve(e, r); for (const s of o) if (dQ(e, s, t.text, !0)) return a6(2, dQ(e, s, t.text, !1)); if (t.text.length < e.length && Vx(e.charCodeAt(i))) return a6(2, !1); } else { if (e.indexOf(t.text) > 0) return a6(2, !0); if (t.characterSpans.length > 0) { const o = Lve(e, r), s = wve(e, o, t, !1) ? !0 : wve(e, o, t, !0) ? !1 : void 0; if (s !== void 0) return a6(3, s); } } } function uQ(e, t, r) { if (f9(t.totalTextChunk.text, (s) => s !== 32 && s !== 42)) { const s = Ive(e, t.totalTextChunk, r); if (s) return s; } const i = t.subWordTextChunks; let o; for (const s of i) o = kve(o, Ive(e, s, r)); return o; } function kve(e, t) { return cj([e, t], $5e); } function $5e(e, t) { return e === void 0 ? 1 : t === void 0 ? -1 : js(e.kind, t.kind) || e1(!e.isCaseSensitive, !t.isCaseSensitive); } function dQ(e, t, r, i, o = { start: 0, length: r.length }) { return o.length <= t.length && Mve(0, o.length, (s) => Q5e(r.charCodeAt(o.start + s), e.charCodeAt(t.start + s), i)); } function Q5e(e, t, r) { return r ? fQ(e) === fQ(t) : e === t; } function wve(e, t, r, i) { const o = r.characterSpans; let s = 0, c = 0; for (; ; ) { if (c === o.length) return !0; if (s === t.length) return !1; let f = t[s], d = !1; for (; c < o.length; c++) { const y = o[c]; if (d && (!Vx(r.text.charCodeAt(o[c - 1].start)) || !Vx(r.text.charCodeAt(o[c].start))) || !dQ(e, f, r.text, i, y)) break; d = !0, f = Cc(f.start + y.length, f.length - y.length); } s++; } } function Z5e(e) { return { totalTextChunk: pQ(e), subWordTextChunks: nFe(e) }; } function Vx(e) { if (e >= 65 && e <= 90) return !0; if (e < 127 || !tM(e, 99)) return !1; const t = String.fromCharCode(e); return t === t.toUpperCase(); } function Dve(e) { if (e >= 97 && e <= 122) return !0; if (e < 127 || !tM(e, 99)) return !1; const t = String.fromCharCode(e); return t === t.toLowerCase(); } function eFe(e, t) { const r = e.length - t.length; for (let i = 0; i <= r; i++) if (f9(t, (o, s) => fQ(e.charCodeAt(s + i)) === o)) return i; return -1; } function fQ(e) { return e >= 65 && e <= 90 ? 97 + (e - 65) : e < 127 ? e : String.fromCharCode(e).toLowerCase().charCodeAt(0); } function _Q(e) { return e >= 48 && e <= 57; } function tFe(e) { return Vx(e) || Dve(e) || _Q(e) || e === 95 || e === 36; } function nFe(e) { const t = []; let r = 0, i = 0; for (let o = 0; o < e.length; o++) { const s = e.charCodeAt(o); tFe(s) ? (i === 0 && (r = o), i++) : i > 0 && (t.push(pQ(e.substr(r, i))), i = 0); } return i > 0 && t.push(pQ(e.substr(r, i))), t; } function pQ(e) { const t = e.toLowerCase(); return { text: e, textLowerCase: t, isLowerCase: e === t, characterSpans: Rve(e) }; } function Rve(e) { return Ove(e, !1); } function Nve(e) { return Ove(e, !0); } function Ove(e, t) { const r = []; let i = 0; for (let o = 1; o < e.length; o++) { const s = _Q(e.charCodeAt(o - 1)), c = _Q(e.charCodeAt(o)), f = iFe(e, t, o), d = t && rFe(e, o, i); (mQ(e.charCodeAt(o - 1)) || mQ(e.charCodeAt(o)) || s !== c || f || d) && (Pve(e, i, o) || r.push(Cc(i, o - i)), i = o); } return Pve(e, i, e.length) || r.push(Cc(i, e.length - i)), r; } function mQ(e) { switch (e) { case 33: case 34: case 35: case 37: case 38: case 39: case 40: case 41: case 42: case 44: case 45: case 46: case 47: case 58: case 59: case 63: case 64: case 91: case 92: case 93: case 95: case 123: case 125: return !0; } return !1; } function Pve(e, t, r) { return f9(e, (i) => mQ(i) && i !== 95, t, r); } function rFe(e, t, r) { return t !== r && t + 1 < e.length && Vx(e.charCodeAt(t)) && Dve(e.charCodeAt(t + 1)) && f9(e, Vx, r, t); } function iFe(e, t, r) { const i = Vx(e.charCodeAt(r - 1)); return Vx(e.charCodeAt(r)) && (!t || !i); } function Mve(e, t, r) { for (let i = e; i < t; i++) if (!r(i)) return !1; return !0; } function f9(e, t, r = 0, i = e.length) { return Mve(r, i, (o) => t(e.charCodeAt(o), o)); } var _9, aFe = L({ "src/services/patternMatcher.ts"() { Kr(), _9 = /* @__PURE__ */ ((e) => (e[e.exact = 0] = "exact", e[e.prefix = 1] = "prefix", e[e.substring = 2] = "substring", e[e.camelCase = 3] = "camelCase", e))(_9 || {}); } }); function Fve(e, t = !0, r = !1) { const i = { languageVersion: 1, pragmas: void 0, checkJsDirective: void 0, referencedFiles: [], typeReferenceDirectives: [], libReferenceDirectives: [], amdDependencies: [], hasNoDefaultLib: void 0, moduleName: void 0 }, o = []; let s, c, f, d = 0, y = !1; function m() { return c = f, f = gu.scan(), f === 18 ? d++ : f === 19 && d--, f; } function b() { const X = gu.getTokenValue(), Y = gu.getTokenPos(); return { fileName: X, pos: Y, end: Y + X.length }; } function A() { s || (s = []), s.push({ ref: b(), depth: d }); } function C() { o.push(b()), I(); } function I() { d === 0 && (y = !0); } function O() { let X = gu.getToken(); return X === 136 ? (X = m(), X === 142 && (X = m(), X === 10 && A()), !0) : !1; } function k() { if (c === 24) return !1; let X = gu.getToken(); if (X === 100) { if (X = m(), X === 20) { if (X = m(), X === 10 || X === 14) return C(), !0; } else { if (X === 10) return C(), !0; if (X === 154 && gu.lookAhead(() => { const P = gu.scan(); return P !== 158 && (P === 41 || P === 18 || P === 79 || bd(P)); }) && (X = m()), X === 79 || bd(X)) if (X = m(), X === 158) { if (X = m(), X === 10) return C(), !0; } else if (X === 63) { if (U(!0)) return !0; } else if (X === 27) X = m(); else return !0; if (X === 18) { for (X = m(); X !== 19 && X !== 1; ) X = m(); X === 19 && (X = m(), X === 158 && (X = m(), X === 10 && C())); } else X === 41 && (X = m(), X === 128 && (X = m(), (X === 79 || bd(X)) && (X = m(), X === 158 && (X = m(), X === 10 && C())))); } return !0; } return !1; } function B() { let X = gu.getToken(); if (X === 93) { if (I(), X = m(), X === 154 && gu.lookAhead(() => { const P = gu.scan(); return P === 41 || P === 18; }) && (X = m()), X === 18) { for (X = m(); X !== 19 && X !== 1; ) X = m(); X === 19 && (X = m(), X === 158 && (X = m(), X === 10 && C())); } else if (X === 41) X = m(), X === 158 && (X = m(), X === 10 && C()); else if (X === 100 && (X = m(), X === 154 && gu.lookAhead(() => { const P = gu.scan(); return P === 79 || bd(P); }) && (X = m()), (X === 79 || bd(X)) && (X = m(), X === 63 && U(!0)))) return !0; return !0; } return !1; } function U(X, Y = !1) { let P = X ? m() : gu.getToken(); return P === 147 ? (P = m(), P === 20 && (P = m(), (P === 10 || Y && P === 14) && C()), !0) : !1; } function j() { let X = gu.getToken(); if (X === 79 && gu.getTokenValue() === "define") { if (X = m(), X !== 20) return !0; if (X = m(), X === 10 || X === 14) if (X = m(), X === 27) X = m(); else return !0; if (X !== 22) return !0; for (X = m(); X !== 23 && X !== 1; ) (X === 10 || X === 14) && C(), X = m(); return !0; } return !1; } function te() { for (gu.setText(e), m(); gu.getToken() !== 1; ) { if (gu.getToken() === 15) { const X = [gu.getToken()]; e: for (; Ne(X); ) { const Y = gu.scan(); switch (Y) { case 1: break e; case 100: k(); break; case 15: X.push(Y); break; case 18: Ne(X) && X.push(Y); break; case 19: Ne(X) && (Zs(X) === 15 ? gu.reScanTemplateToken(!1) === 17 && X.pop() : X.pop()); break; } } m(); } O() || k() || B() || r && (U(!1, !0) || j()) || m(); } gu.setText(void 0); } if (t && te(), wJ(i, e), DJ(i, io), y) { if (s) for (const X of s) o.push(X.ref); return { referencedFiles: i.referencedFiles, typeReferenceDirectives: i.typeReferenceDirectives, libReferenceDirectives: i.libReferenceDirectives, importedFiles: o, isLibFile: !!i.hasNoDefaultLib, ambientExternalModules: void 0 }; } else { let X; if (s) for (const Y of s) Y.depth === 0 ? (X || (X = []), X.push(Y.ref.fileName)) : o.push(Y.ref); return { referencedFiles: i.referencedFiles, typeReferenceDirectives: i.typeReferenceDirectives, libReferenceDirectives: i.libReferenceDirectives, importedFiles: o, isLibFile: !!i.hasNoDefaultLib, ambientExternalModules: X }; } } var oFe = L({ "src/services/preProcess.ts"() { Kr(); } }); function Bve(e) { const t = $c(e.useCaseSensitiveFileNames()), r = e.getCurrentDirectory(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(); return { tryGetSourcePosition: f, tryGetGeneratedPosition: d, toLineColumnOffset: A, clearCache: C }; function s(I) { return Hs(I, r, t); } function c(I, O) { const k = s(I), B = o.get(k); if (B) return B; let U; if (e.getDocumentPositionMapper) U = e.getDocumentPositionMapper(I, O); else if (e.readFile) { const j = b(I); U = j && Gve({ getSourceFileLike: b, getCanonicalFileName: t, log: (te) => e.log(te) }, I, Cme(j.text, Qh(j)), (te) => !e.fileExists || e.fileExists(te) ? e.readFile(te) : void 0); } return o.set(k, U || k5), U || k5; } function f(I) { if (!sd(I.fileName) || !y(I.fileName)) return; const k = c(I.fileName).getSourcePosition(I); return !k || k === I ? void 0 : f(k) || k; } function d(I) { if (sd(I.fileName)) return; const O = y(I.fileName); if (!O) return; const k = e.getProgram(); if (k.isSourceOfProjectReferenceRedirect(O.fileName)) return; const B = k.getCompilerOptions(), U = Ws(B), j = U ? Od(U) + ".d.ts" : hz(I.fileName, k.getCompilerOptions(), r, k.getCommonSourceDirectory(), t); if (j === void 0) return; const te = c(j, I.fileName).getGeneratedPosition(I); return te === I ? void 0 : te; } function y(I) { const O = e.getProgram(); if (!O) return; const k = s(I), B = O.getSourceFileByPath(k); return B && B.resolvedPath === k ? B : void 0; } function m(I) { const O = s(I), k = i.get(O); if (k !== void 0) return k || void 0; if (!e.readFile || e.fileExists && !e.fileExists(O)) { i.set(O, !1); return; } const B = e.readFile(O), U = B ? sFe(B) : !1; return i.set(O, U), U || void 0; } function b(I) { return e.getSourceFileLike ? e.getSourceFileLike(I) : y(I) || m(I); } function A(I, O) { return b(I).getLineAndCharacterOfPosition(O); } function C() { i.clear(), o.clear(); } } function Gve(e, t, r, i) { let o = Lme(r); if (o) { const f = Vve.exec(o); if (f) { if (f[1]) { const d = f[1]; return Uve(e, zue(zc, d), t); } o = void 0; } } const s = []; o && s.push(o), s.push(t + ".map"); const c = o && Na(o, fi(t)); for (const f of s) { const d = Na(f, fi(t)), y = i(d, c); if (Va(y)) return Uve(e, y, d); if (y !== void 0) return y || void 0; } } function Uve(e, t, r) { const i = GK(t); if (!(!i || !i.sources || !i.file || !i.mappings) && !(i.sourcesContent && i.sourcesContent.some(Va))) return Rme(e, i, r); } function sFe(e, t) { return { text: e, lineMap: t, getLineAndCharacterOfPosition(r) { return CR(Qh(this), r); } }; } var Vve, lFe = L({ "src/services/sourcemaps.ts"() { Kr(), Kr(), Vve = /^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/; } }); function hQ(e, t, r) { t.getSemanticDiagnostics(e, r); const i = [], o = t.getTypeChecker(); !(e.impliedNodeFormat === 1 || vc(e.fileName, [".cts", ".cjs"])) && e.commonJsModuleIndicator && (wye(t) || x$(t.getCompilerOptions())) && cFe(e) && i.push(Dr(_Fe(e.commonJsModuleIndicator), _.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module)); const c = Ju(e); if (m9.clear(), f(e), hT(t.getCompilerOptions())) for (const d of e.imports) { const y = _N(d), m = uFe(y); if (!m) continue; const b = SA(e, d.text, hp(e, d)), A = b && t.getSourceFile(b.resolvedFileName); A && A.externalModuleIndicator && A.externalModuleIndicator !== !0 && Pl(A.externalModuleIndicator) && A.externalModuleIndicator.isExportEquals && i.push(Dr(m, _.Import_may_be_converted_to_a_default_import)); } return yi(i, e.bindSuggestionDiagnostics), yi(i, t.getSuggestionDiagnostics(e, r)), i.sort((d, y) => d.start - y.start); function f(d) { if (c) mFe(d, o) && i.push(Dr(Wi(d.parent) ? d.parent.name : d, _.This_constructor_function_may_be_converted_to_a_class_declaration)); else { if (sc(d) && d.parent === e && d.declarationList.flags & 2 && d.declarationList.declarations.length === 1) { const y = d.declarationList.declarations[0].initializer; y && vd(y, !0) && i.push(Dr(y, _.require_call_may_be_converted_to_an_import)); } Fu.parameterShouldGetTypeFromJSDoc(d) && i.push(Dr(d.name || d, _.JSDoc_types_may_be_moved_to_TypeScript_types)); } vQ(d) && dFe(d, o, i), d.forEachChild(f); } } function cFe(e) { return e.statements.some((t) => { switch (t.kind) { case 240: return t.declarationList.declarations.some((r) => !!r.initializer && vd(jve(r.initializer), !0)); case 241: { const { expression: r } = t; if (!vr(r)) return vd(r, !0); const i = xl(r); return i === 1 || i === 2; } default: return !1; } }); } function jve(e) { return Pr(e) ? jve(e.expression) : e; } function uFe(e) { switch (e.kind) { case 269: const { importClause: t, moduleSpecifier: r } = e; return t && !t.name && t.namedBindings && t.namedBindings.kind === 271 && Go(r) ? t.namedBindings.name : void 0; case 268: return e.name; default: return; } } function dFe(e, t, r) { fFe(e, t) && !m9.has(qve(e)) && r.push(Dr(!e.name && Wi(e.parent) && Ve(e.parent.name) ? e.parent.name : e, _.This_may_be_converted_to_an_async_function)); } function fFe(e, t) { return !jA(e) && e.body && oo(e.body) && pFe(e.body, t) && gQ(e, t); } function gQ(e, t) { const r = t.getSignatureFromDeclaration(e), i = r ? t.getReturnTypeOfSignature(r) : void 0; return !!i && !!t.getPromisedTypeOfPromise(i); } function _Fe(e) { return vr(e) ? e.left : e; } function pFe(e, t) { return !!iT(e, (r) => p9(r, t)); } function p9(e, t) { return pp(e) && !!e.expression && yQ(e.expression, t); } function yQ(e, t) { if (!Hve(e) || !Wve(e) || !e.arguments.every((i) => zve(i, t))) return !1; let r = e.expression.expression; for (; Hve(r) || Pr(r); ) if (eo(r)) { if (!Wve(r) || !r.arguments.every((i) => zve(i, t))) return !1; r = r.expression.expression; } else r = r.expression; return !0; } function Hve(e) { return eo(e) && (F8(e, "then") || F8(e, "catch") || F8(e, "finally")); } function Wve(e) { const t = e.expression.name.text, r = t === "then" ? 2 : t === "catch" || t === "finally" ? 1 : 0; return e.arguments.length > r ? !1 : e.arguments.length < r ? !0 : r === 1 || kt(e.arguments, (i) => i.kind === 104 || Ve(i) && i.text === "undefined"); } function zve(e, t) { switch (e.kind) { case 259: case 215: if (Mc(e) & 1) return !1; case 216: m9.set(qve(e), !0); case 104: return !0; case 79: case 208: { const i = t.getSymbolAtLocation(e); return i ? t.isUndefinedSymbol(i) || kt(nf(i, t).declarations, (o) => qa(o) || xv(o) && !!o.initializer && qa(o.initializer)) : !1; } default: return !1; } } function qve(e) { return `${e.pos.toString()}:${e.end.toString()}`; } function mFe(e, t) { var r, i, o, s; if (Ms(e)) { if (Wi(e.parent) && ((r = e.symbol.members) != null && r.size)) return !0; const c = t.getSymbolOfExpando(e, !1); return !!(c && ((i = c.exports) != null && i.size || (o = c.members) != null && o.size)); } return pc(e) ? !!((s = e.symbol.members) != null && s.size) : !1; } function vQ(e) { switch (e.kind) { case 259: case 171: case 215: case 216: return !0; default: return !1; } } var m9, hFe = L({ "src/services/suggestionDiagnostics.ts"() { Kr(), m9 = /* @__PURE__ */ new Map(); } }); function Jve(e, t) { const r = [], i = t.compilerOptions ? bQ(t.compilerOptions, r) : {}, o = T9(); for (const A in o) Ns(o, A) && i[A] === void 0 && (i[A] = o[A]); for (const A of iK) i.verbatimModuleSyntax && Kve.has(A.name) || (i[A.name] = A.transpileOptionValue); i.suppressOutputPathCheck = !0, i.allowNonTsExtensions = !0; const s = z0(i), c = { getSourceFile: (A) => A === Wo(f) ? d : void 0, writeFile: (A, C) => { oc(A, ".map") ? (D.assertEqual(m, void 0, "Unexpected multiple source map outputs, file:", A), m = C) : (D.assertEqual(y, void 0, "Unexpected multiple outputs, file:", A), y = C); }, getDefaultLibFileName: () => "lib.d.ts", useCaseSensitiveFileNames: () => !1, getCanonicalFileName: (A) => A, getCurrentDirectory: () => "", getNewLine: () => s, fileExists: (A) => A === f, readFile: () => "", directoryExists: () => !0, getDirectories: () => [] }, f = t.fileName || (t.compilerOptions && t.compilerOptions.jsx ? "module.tsx" : "module.ts"), d = BO(f, e, { languageVersion: $o(i), impliedNodeFormat: z5(Hs(f, "", c.getCanonicalFileName), void 0, c, i), setExternalModuleIndicator: VN(i) }); t.moduleName && (d.moduleName = t.moduleName), t.renamedDependencies && (d.renamedDependencies = new Map(Object.entries(t.renamedDependencies))); let y, m; const b = q5([f], i, c); return t.reportDiagnostics && (yi(r, b.getSyntacticDiagnostics(d)), yi(r, b.getOptionsDiagnostics())), b.emit(void 0, void 0, void 0, void 0, t.transformers), y === void 0 ? D.fail("Output generation failed") : { outputText: y, diagnostics: r, sourceMapText: m }; } function gFe(e, t, r, i, o) { const s = Jve(e, { compilerOptions: t, fileName: r, reportDiagnostics: !!i, moduleName: o }); return yi(i, s.diagnostics), s.outputText; } function bQ(e, t) { EQ = EQ || yn(fg, (r) => typeof r.type == "object" && !Zd(r.type, (i) => typeof i != "number")), e = Aye(e); for (const r of EQ) { if (!Ns(e, r.name)) continue; const i = e[r.name]; Va(i) ? e[r.name] = W7(r, i, t) : Zd(r.type, (o) => o === i) || t.push(NJ(r)); } return e; } var Kve, EQ, yFe = L({ "src/services/transpile.ts"() { Kr(), Kve = /* @__PURE__ */ new Set([ "isolatedModules", "preserveValueImports", "importsNotUsedAsValues" ]); } }); function Xve(e, t, r, i, o, s) { const c = Cve(i); if (!c) return nt; const f = []; for (const d of e) r.throwIfCancellationRequested(), !(s && d.isDeclarationFile) && d.getNamedDeclarations().forEach((y, m) => { vFe(c, m, y, t, d.fileName, f); }); return f.sort(SFe), (o === void 0 ? f : f.slice(0, o)).map(xFe); } function vFe(e, t, r, i, o, s) { const c = e.getMatchForLastSegmentOfPattern(t); if (c) { for (const f of r) if (bFe(f, i)) if (e.patternContainsDots) { const d = e.getFullMatch(TFe(f), t); d && s.push({ name: t, fileName: o, matchKind: d.kind, isCaseSensitive: d.isCaseSensitive, declaration: f }); } else s.push({ name: t, fileName: o, matchKind: c.kind, isCaseSensitive: c.isCaseSensitive, declaration: f }); } } function bFe(e, t) { switch (e.kind) { case 270: case 273: case 268: const r = t.getSymbolAtLocation(e.name), i = t.getAliasedSymbol(r); return r.escapedName !== i.escapedName; default: return !0; } } function EFe(e, t) { const r = La(e); return !!r && (Yve(r, t) || r.kind === 164 && TQ(r.expression, t)); } function TQ(e, t) { return Yve(e, t) || Pr(e) && (t.push(e.name.text), !0) && TQ(e.expression, t); } function Yve(e, t) { return O_(e) && (t.push(P_(e)), !0); } function TFe(e) { const t = [], r = La(e); if (r && r.kind === 164 && !TQ(r.expression, t)) return nt; t.shift(); let i = GT(e); for (; i; ) { if (!EFe(i, t)) return nt; i = GT(i); } return t.reverse(); } function SFe(e, t) { return js(e.matchKind, t.matchKind) || rR(e.name, t.name); } function xFe(e) { const t = e.declaration, r = GT(t), i = r && La(r); return { name: e.name, kind: j1(t), kindModifiers: nw(t), matchKind: _9[e.matchKind], isCaseSensitive: e.isCaseSensitive, fileName: e.fileName, textSpan: $u(t), containerName: i ? i.text : "", containerKind: i ? j1(r) : "" }; } var AFe = L({ "src/services/navigateTo.ts"() { Kr(); } }), $ve = {}; fe($ve, { getNavigateToItems: () => Xve }); var Qve = L({ "src/services/_namespaces/ts.NavigateTo.ts"() { AFe(); } }); function Zve(e, t) { v9 = t, dw = e; try { return rn(wFe(r0e(e)), DFe); } finally { t0e(); } } function e0e(e, t) { v9 = t, dw = e; try { return f0e(r0e(e)); } finally { t0e(); } } function t0e() { dw = void 0, v9 = void 0, fw = [], mg = void 0, b9 = []; } function o6(e) { return HC(e.getText(dw)); } function h9(e) { return e.node.kind; } function n0e(e, t) { e.children ? e.children.push(t) : e.children = [t]; } function r0e(e) { D.assert(!fw.length); const t = { node: e, name: void 0, additionalNodes: void 0, parent: void 0, children: void 0, indent: 0 }; mg = t; for (const r of e.statements) WT(r); return Hv(), D.assert(!mg && !fw.length), t; } function tb(e, t) { n0e(mg, SQ(e, t)); } function SQ(e, t) { return { node: e, name: t || (_u(e) || yt(e) ? La(e) : void 0), additionalNodes: void 0, parent: mg, children: void 0, indent: mg.indent + 1 }; } function i0e(e) { jx || (jx = /* @__PURE__ */ new Map()), jx.set(e, !0); } function a0e(e) { for (let t = 0; t < e; t++) Hv(); } function o0e(e, t) { const r = []; for (; !O_(t); ) { const i = lN(t), o = og(t); t = t.expression, !(o === "prototype" || ki(i)) && r.push(i); } r.push(t); for (let i = r.length - 1; i > 0; i--) { const o = r[i]; nb(e, o); } return [r.length - 1, r[0]]; } function nb(e, t) { const r = SQ(e, t); n0e(mg, r), fw.push(mg), DQ.push(jx), jx = void 0, mg = r; } function Hv() { mg.children && (g9(mg.children, mg), CQ(mg.children)), mg = fw.pop(), jx = DQ.pop(); } function Wv(e, t, r) { nb(e, r), WT(t), Hv(); } function s0e(e) { e.initializer && NFe(e.initializer) ? (nb(e), Oa(e.initializer, WT), Hv()) : Wv(e, e.initializer); } function xQ(e) { return !Lv(e) || e.kind !== 223 && Pr(e.name.expression) && Ve(e.name.expression.expression) && Or(e.name.expression.expression) === "Symbol"; } function WT(e) { if (v9.throwIfCancellationRequested(), !(!e || US(e))) switch (e.kind) { case 173: const t = e; Wv(t, t.body); for (const c of t.parameters) Yd(c, t) && tb(c); break; case 171: case 174: case 175: case 170: xQ(e) && Wv(e, e.body); break; case 169: xQ(e) && s0e(e); break; case 168: xQ(e) && tb(e); break; case 270: const r = e; r.name && tb(r.name); const { namedBindings: i } = r; if (i) if (i.kind === 271) tb(i); else for (const c of i.elements) tb(c); break; case 300: Wv(e, e.name); break; case 301: const { expression: o } = e; Ve(o) ? tb(e, o) : tb(e); break; case 205: case 299: case 257: { const c = e; Ja(c.name) ? WT(c.name) : s0e(c); break; } case 259: const s = e.name; s && Ve(s) && i0e(s.text), Wv(e, e.body); break; case 216: case 215: Wv(e, e.body); break; case 263: nb(e); for (const c of e.members) RFe(c) || tb(c); Hv(); break; case 260: case 228: case 261: nb(e); for (const c of e.members) WT(c); Hv(); break; case 264: Wv(e, p0e(e).body); break; case 274: { const c = e.expression, f = As(c) || eo(c) ? c : zs(c) || Ms(c) ? c.body : void 0; f ? (nb(e), WT(f), Hv()) : tb(e); break; } case 278: case 268: case 178: case 176: case 177: case 262: tb(e); break; case 210: case 223: { const c = xl(e); switch (c) { case 1: case 2: Wv(e, e.right); return; case 6: case 3: { const f = e, d = f.left, y = c === 3 ? d.expression : d; let m = 0, b; Ve(y.expression) ? (i0e(y.expression.text), b = y.expression) : [m, b] = o0e(f, y.expression), c === 6 ? As(f.right) && f.right.properties.length > 0 && (nb(f, b), Oa(f.right, WT), Hv()) : Ms(f.right) || zs(f.right) ? Wv(e, f.right, b) : (nb(f, b), Wv(e, f.right, d.name), Hv()), a0e(m); return; } case 7: case 9: { const f = e, d = c === 7 ? f.arguments[0] : f.arguments[0].expression, y = f.arguments[1], [m, b] = o0e(e, d); nb(e, b), nb(e, mt(N.createIdentifier(y.text), y)), WT(e.arguments[2]), Hv(), Hv(), a0e(m); return; } case 5: { const f = e, d = f.left, y = d.expression; if (Ve(y) && og(d) !== "prototype" && jx && jx.has(y.text)) { Ms(f.right) || zs(f.right) ? Wv(e, f.right, y) : lT(d) && (nb(f, y), Wv(f.left, f.right, lN(d)), Hv()); return; } break; } case 4: case 0: case 8: break; default: D.assertNever(c); } } default: yf(e) && Ye(e.jsDoc, (c) => { Ye(c.tags, (f) => { c_(f) && tb(f); }); }), Oa(e, WT); } } function g9(e, t) { const r = /* @__PURE__ */ new Map(); ua(e, (i, o) => { const s = i.name || La(i.node), c = s && o6(s); if (!c) return !0; const f = r.get(c); if (!f) return r.set(c, i), !0; if (f instanceof Array) { for (const d of f) if (l0e(d, i, o, t)) return !1; return f.push(i), !0; } else { const d = f; return l0e(d, i, o, t) ? !1 : (r.set(c, [d, i]), !0); } }); } function CFe(e, t, r, i) { function o(f) { return Ms(f) || pc(f) || Wi(f); } const s = vr(t.node) || eo(t.node) ? xl(t.node) : 0, c = vr(e.node) || eo(e.node) ? xl(e.node) : 0; if (WC[s] && WC[c] || o(e.node) && WC[s] || o(t.node) && WC[c] || kc(e.node) && AQ(e.node) && WC[s] || kc(t.node) && WC[c] || kc(e.node) && AQ(e.node) && o(t.node) || kc(t.node) && o(e.node) && AQ(e.node)) { let f = e.additionalNodes && Zs(e.additionalNodes) || e.node; if (!kc(e.node) && !kc(t.node) || o(e.node) || o(t.node)) { const y = o(e.node) ? e.node : o(t.node) ? t.node : void 0; if (y !== void 0) { const m = mt(N.createConstructorDeclaration(void 0, [], void 0), y), b = SQ(m); b.indent = e.indent + 1, b.children = e.node === y ? e.children : t.children, e.children = e.node === y ? ha([b], t.children || [t]) : ha(e.children || [{ ...e }], [b]); } else (e.children || t.children) && (e.children = ha(e.children || [{ ...e }], t.children || [t]), e.children && (g9(e.children, e), CQ(e.children))); f = e.node = mt(N.createClassDeclaration(void 0, e.name || N.createIdentifier("__class__"), void 0, void 0, []), e.node); } else e.children = ha(e.children, t.children), e.children && g9(e.children, e); const d = t.node; return i.children[r - 1].node.end === f.end ? mt(f, { pos: f.pos, end: d.end }) : (e.additionalNodes || (e.additionalNodes = []), e.additionalNodes.push(mt(N.createClassDeclaration(void 0, e.name || N.createIdentifier("__class__"), void 0, void 0, []), t.node))), !0; } return s !== 0; } function l0e(e, t, r, i) { return CFe(e, t, r, i) ? !0 : LFe(e.node, t.node, i) ? (IFe(e, t), !0) : !1; } function LFe(e, t, r) { if (e.kind !== t.kind || e.parent !== t.parent && !(c0e(e, r) && c0e(t, r))) return !1; switch (e.kind) { case 169: case 171: case 174: case 175: return za(e) === za(t); case 264: return u0e(e, t) && kQ(e) === kQ(t); default: return !0; } } function AQ(e) { return !!(e.flags & 8); } function c0e(e, t) { const r = Yp(e.parent) ? e.parent.parent : e.parent; return r === t.node || Ii(t.additionalNodes, r); } function u0e(e, t) { return !e.body || !t.body ? e.body === t.body : e.body.kind === t.body.kind && (e.body.kind !== 264 || u0e(e.body, t.body)); } function IFe(e, t) { e.additionalNodes = e.additionalNodes || [], e.additionalNodes.push(t.node), t.additionalNodes && e.additionalNodes.push(...t.additionalNodes), e.children = ha(e.children, t.children), e.children && (g9(e.children, e), CQ(e.children)); } function CQ(e) { e.sort(kFe); } function kFe(e, t) { return rR(d0e(e.node), d0e(t.node)) || js(h9(e), h9(t)); } function d0e(e) { if (e.kind === 264) return _0e(e); const t = La(e); if (t && hl(t)) { const r = v1(t); return r && Zi(r); } switch (e.kind) { case 215: case 216: case 228: return h0e(e); default: return; } } function LQ(e, t) { if (e.kind === 264) return HC(_0e(e)); if (t) { const r = Ve(t) ? t.text : sl(t) ? `[${o6(t.argumentExpression)}]` : o6(t); if (r.length > 0) return HC(r); } switch (e.kind) { case 308: const r = e; return Yl(r) ? `"${ex(cu(Od(Wo(r.fileName))))}"` : ""; case 274: return Pl(e) && e.isExportEquals ? "export=" : "default"; case 216: case 259: case 215: case 260: case 228: return Iv(e) & 1024 ? "default" : h0e(e); case 173: return "constructor"; case 177: return "new()"; case 176: return "()"; case 178: return "[]"; default: return ""; } } function wFe(e) { const t = []; function r(o) { if (i(o) && (t.push(o), o.children)) for (const s of o.children) r(s); } return r(e), t; function i(o) { if (o.children) return !0; switch (h9(o)) { case 260: case 228: case 263: case 261: case 264: case 308: case 262: case 349: case 341: return !0; case 216: case 259: case 215: return s(o); default: return !1; } function s(c) { if (!c.node.body) return !1; switch (h9(c.parent)) { case 265: case 308: case 171: case 173: return !0; default: return !1; } } } } function f0e(e) { return { text: LQ(e.node, e.name), kind: j1(e.node), kindModifiers: m0e(e.node), spans: IQ(e), nameSpan: e.name && wQ(e.name), childItems: rn(e.children, f0e) }; } function DFe(e) { return { text: LQ(e.node, e.name), kind: j1(e.node), kindModifiers: m0e(e.node), spans: IQ(e), childItems: rn(e.children, t) || b9, indent: e.indent, bolded: !1, grayed: !1 }; function t(r) { return { text: LQ(r.node, r.name), kind: j1(r.node), kindModifiers: nw(r.node), spans: IQ(r), childItems: b9, indent: 0, bolded: !1, grayed: !1 }; } } function IQ(e) { const t = [wQ(e.node)]; if (e.additionalNodes) for (const r of e.additionalNodes) t.push(wQ(r)); return t; } function _0e(e) { return ku(e) ? bc(e.name) : kQ(e); } function kQ(e) { const t = [P_(e.name)]; for (; e.body && e.body.kind === 264; ) e = e.body, t.push(P_(e.name)); return t.join("."); } function p0e(e) { return e.body && Hl(e.body) ? p0e(e.body) : e; } function RFe(e) { return !e.name || e.name.kind === 164; } function wQ(e) { return e.kind === 308 ? Vv(e) : $u(e, dw); } function m0e(e) { return e.parent && e.parent.kind === 257 && (e = e.parent), nw(e); } function h0e(e) { const { parent: t } = e; if (e.name && zR(e.name) > 0) return HC(Is(e.name)); if (Wi(t)) return HC(Is(t.name)); if (vr(t) && t.operatorToken.kind === 63) return o6(t.left).replace(y0e, ""); if (Uc(t)) return o6(t.name); if (Iv(e) & 1024) return "default"; if (li(e)) return ""; if (eo(t)) { let r = g0e(t.expression); if (r !== void 0) { if (r = HC(r), r.length > y9) return `${r} callback`; const i = HC(_a(t.arguments, (o) => Ts(o) ? o.getText(dw) : void 0).join(", ")); return `${r}(${i}) callback`; } } return ""; } function g0e(e) { if (Ve(e)) return e.text; if (Pr(e)) { const t = g0e(e.expression), r = e.name.text; return t === void 0 ? r : `${t}.${r}`; } else return; } function NFe(e) { switch (e.kind) { case 216: case 215: case 228: return !0; default: return !1; } } function HC(e) { return e = e.length > y9 ? e.substring(0, y9) + "..." : e, e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g, ""); } var y0e, y9, v9, dw, fw, mg, DQ, jx, b9, WC, OFe = L({ "src/services/navigationBar.ts"() { Kr(), y0e = /\s+/g, y9 = 150, fw = [], DQ = [], b9 = [], WC = { [5]: !0, [3]: !0, [7]: !0, [9]: !0, [0]: !1, [1]: !1, [2]: !1, [8]: !1, [6]: !0, [4]: !1 }; } }), v0e = {}; fe(v0e, { getNavigationBarItems: () => Zve, getNavigationTree: () => e0e }); var b0e = L({ "src/services/_namespaces/ts.NavigationBar.ts"() { OFe(); } }); function E0e(e, t, r, i) { const o = PR(e) ? new A9(e, t, r) : e === 79 ? new L9(79, t, r) : e === 80 ? new I9(80, t, r) : new PQ(e, t, r); return o.parent = i, o.flags = i.flags & 50720768, o; } function PFe(e, t) { if (!PR(e.kind)) return nt; const r = []; if (_W(e)) return e.forEachChild((c) => { r.push(c); }), r; gu.setText((t || e.getSourceFile()).text); let i = e.pos; const o = (c) => { s6(r, i, c.pos, e), r.push(c), i = c.end; }, s = (c) => { s6(r, i, c.pos, e), r.push(MFe(c, e)), i = c.end; }; return Ye(e.jsDoc, o), i = e.pos, e.forEachChild(o, s), s6(r, i, e.end, e), gu.setText(void 0), r; } function s6(e, t, r, i) { for (gu.setTextPos(t); t < r; ) { const o = gu.scan(), s = gu.getTextPos(); if (s <= r) { if (o === 79) { if (Dde(i)) continue; D.fail(`Did not expect ${D.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`); } e.push(E0e(o, t, s, i)); } if (t = s, o === 1) break; } } function MFe(e, t) { const r = E0e(354, e.pos, e.end, t); r._children = []; let i = e.pos; for (const o of e) s6(r._children, i, o.pos, t), r._children.push(o), i = o.end; return s6(r._children, i, e.end, t), r; } function T0e(e) { return l1(e).some((t) => t.tagName.text === "inheritDoc" || t.tagName.text === "inheritdoc"); } function E9(e, t) { if (!e) return nt; let r = ib.getJsDocTagsFromDeclarations(e, t); if (t && (r.length === 0 || e.some(T0e))) { const i = /* @__PURE__ */ new Set(); for (const o of e) { const s = S0e(t, o, (c) => { var f; if (!i.has(c)) return i.add(c), o.kind === 174 || o.kind === 175 ? c.getContextualJsDocTags(o, t) : ((f = c.declarations) == null ? void 0 : f.length) === 1 ? c.getJsDocTags() : void 0; }); s && (r = [...s, ...r]); } } return r; } function l6(e, t) { if (!e) return nt; let r = ib.getJsDocCommentsFromDeclarations(e, t); if (t && (r.length === 0 || e.some(T0e))) { const i = /* @__PURE__ */ new Set(); for (const o of e) { const s = S0e(t, o, (c) => { if (!i.has(c)) return i.add(c), o.kind === 174 || o.kind === 175 ? c.getContextualDocumentationComment(o, t) : c.getDocumentationComment(t); }); s && (r = r.length === 0 ? s.slice() : s.concat(VC(), r)); } } return r; } function S0e(e, t, r) { var i; const o = ((i = t.parent) == null ? void 0 : i.kind) === 173 ? t.parent.parent : t.parent; if (!o) return; const s = _c(t); return En(NI(o), (c) => { const f = e.getTypeAtLocation(c), d = s && f.symbol ? e.getTypeOfSymbol(f.symbol) : f, y = e.getPropertyOfType(d, t.symbol.name); return y ? r(y) : void 0; }); } function FFe() { return { getNodeConstructor: () => A9, getTokenConstructor: () => PQ, getIdentifierConstructor: () => L9, getPrivateIdentifierConstructor: () => I9, getSourceFileConstructor: () => R0e, getSymbolConstructor: () => k0e, getTypeConstructor: () => w0e, getSignatureConstructor: () => D0e, getSourceMapSourceConstructor: () => N0e }; } function c6(e) { let t = !0; for (const i in e) if (Ns(e, i) && !x0e(i)) { t = !1; break; } if (t) return e; const r = {}; for (const i in e) if (Ns(e, i)) { const o = x0e(i) ? i : i.charAt(0).toLowerCase() + i.substr(1); r[o] = e[i]; } return r; } function x0e(e) { return !e.length || e.charAt(0) === e.charAt(0).toLowerCase(); } function A0e(e) { return e ? rn(e, (t) => t.text).join("") : ""; } function T9() { return { target: 1, jsx: 1 }; } function C0e() { return Fu.getSupportedErrorCodes(); } function L0e(e, t, r) { e.version = r, e.scriptSnapshot = t; } function S9(e, t, r, i, o, s) { const c = BO(e, RF(t), r, o, s); return L0e(c, t, i), c; } function RQ(e, t, r, i, o) { if (i && r !== e.version) { let c; const f = i.span.start !== 0 ? e.text.substr(0, i.span.start) : "", d = Qc(i.span) !== e.text.length ? e.text.substr(Qc(i.span)) : ""; if (i.newLength === 0) c = f && d ? f + d : f || d; else { const m = t.getText(i.span.start, i.span.start + i.newLength); c = f && d ? f + m + d : f ? f + m : m + d; } const y = kJ(e, c, i, o); return L0e(y, t, r), y.nameTable = void 0, e !== y && e.scriptSnapshot && (e.scriptSnapshot.dispose && e.scriptSnapshot.dispose(), e.scriptSnapshot = void 0), y; } const s = { languageVersion: e.languageVersion, impliedNodeFormat: e.impliedNodeFormat, setExternalModuleIndicator: e.setExternalModuleIndicator }; return S9(e.fileName, t, s, r, !0, e.scriptKind); } function I0e(e, t = oQ(e.useCaseSensitiveFileNames && e.useCaseSensitiveFileNames(), e.getCurrentDirectory()), r) { var i; let o; r === void 0 ? o = 0 : typeof r == "boolean" ? o = r ? 2 : 0 : o = r; const s = new O0e(e); let c, f, d = 0; const y = e.getCancellationToken ? new M0e(e.getCancellationToken()) : P0e, m = e.getCurrentDirectory(); ide((i = e.getLocalizedDiagnosticMessages) == null ? void 0 : i.bind(e)); function b(rt) { e.log && e.log(rt); } const A = RN(e), C = $c(A), I = Bve({ useCaseSensitiveFileNames: () => A, getCurrentDirectory: () => m, getProgram: B, fileExists: Fo(e, e.fileExists), readFile: Fo(e, e.readFile), getDocumentPositionMapper: Fo(e, e.getDocumentPositionMapper), getSourceFileLike: Fo(e, e.getSourceFileLike), log: b }); function O(rt) { const K = c.getSourceFile(rt); if (!K) { const Oe = new Error(`Could not find source file: '${rt}'.`); throw Oe.ProgramFiles = c.getSourceFiles().map((Z) => Z.fileName), Oe; } return K; } function k() { var rt, K, Oe; if (D.assert(o !== 2), e.getProjectVersion) { const ui = e.getProjectVersion(); if (ui) { if (f === ui && !((rt = e.hasChangedAutomaticTypeDirectiveNames) != null && rt.call(e))) return; f = ui; } } const Z = e.getTypeRootsVersion ? e.getTypeRootsVersion() : 0; d !== Z && (b("TypeRoots version has changed; provide new program"), c = void 0, d = Z); const we = e.getScriptFileNames().slice(), q = e.getCompilationSettings() || T9(), Rt = e.hasInvalidatedResolutions || Qb, ht = Fo(e, e.hasChangedAutomaticTypeDirectiveNames), dt = (K = e.getProjectReferences) == null ? void 0 : K.call(e); let dn, $n = { getSourceFile: qr, getSourceFileByPath: is, getCancellationToken: () => y, getCanonicalFileName: C, useCaseSensitiveFileNames: () => A, getNewLine: () => z0(q), getDefaultLibFileName: (ui) => e.getDefaultLibFileName(ui), writeFile: io, getCurrentDirectory: () => m, fileExists: (ui) => e.fileExists(ui), readFile: (ui) => e.readFile && e.readFile(ui), getSymlinkCache: Fo(e, e.getSymlinkCache), realpath: Fo(e, e.realpath), directoryExists: (ui) => zp(ui, e), getDirectories: (ui) => e.getDirectories ? e.getDirectories(ui) : [], readDirectory: (ui, la, wn, da, $l) => (D.checkDefined(e.readDirectory, "'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"), e.readDirectory(ui, la, wn, da, $l)), onReleaseOldSourceFile: Gi, onReleaseParsedCommandLine: sa, hasInvalidatedResolutions: Rt, hasChangedAutomaticTypeDirectiveNames: ht, trace: Fo(e, e.trace), resolveModuleNames: Fo(e, e.resolveModuleNames), getModuleResolutionCache: Fo(e, e.getModuleResolutionCache), createHash: Fo(e, e.createHash), resolveTypeReferenceDirectives: Fo(e, e.resolveTypeReferenceDirectives), resolveModuleNameLiterals: Fo(e, e.resolveModuleNameLiterals), resolveTypeReferenceDirectiveReferences: Fo(e, e.resolveTypeReferenceDirectiveReferences), useSourceOfProjectReferenceRedirect: Fo(e, e.useSourceOfProjectReferenceRedirect), getParsedCommandLine: vo }; const ii = $n.getSourceFile, { getSourceFileWithCache: Ti } = T8($n, (ui) => Hs(ui, m, C), (...ui) => ii.call($n, ...ui)); $n.getSourceFile = Ti, (Oe = e.setCompilerHost) == null || Oe.call(e, $n); const Si = { useCaseSensitiveFileNames: A, fileExists: (ui) => $n.fileExists(ui), readFile: (ui) => $n.readFile(ui), readDirectory: (...ui) => $n.readDirectory(...ui), trace: $n.trace, getCurrentDirectory: $n.getCurrentDirectory, onUnRecoverableConfigFileDiagnostic: io }, Bi = t.getKeyForCompilationSettings(q); if (IX(c, we, q, (ui, la) => e.getScriptVersion(la), (ui) => $n.fileExists(ui), Rt, ht, vo, dt)) return; c = q5({ rootNames: we, options: q, host: $n, oldProgram: c, projectReferences: dt }), $n = void 0, dn = void 0, I.clearCache(), c.getTypeChecker(); return; function vo(ui) { const la = Hs(ui, m, C), wn = dn == null ? void 0 : dn.get(la); if (wn !== void 0) return wn || void 0; const da = e.getParsedCommandLine ? e.getParsedCommandLine(ui) : no(ui); return (dn || (dn = /* @__PURE__ */ new Map())).set(la, da || !1), da; } function no(ui) { const la = qr(ui, 100); if (la) return la.path = Hs(ui, m, C), la.resolvedPath = la.path, la.originalFileName = la.fileName, WO(la, Si, Na(fi(ui), m), void 0, Na(ui, m)); } function sa(ui, la, wn) { var da; e.getParsedCommandLine ? (da = e.onReleaseParsedCommandLine) == null || da.call(e, ui, la, wn) : la && Gi(la.sourceFile, wn); } function Gi(ui, la) { const wn = t.getKeyForCompilationSettings(la); t.releaseDocumentWithKey(ui.resolvedPath, wn, ui.scriptKind, ui.impliedNodeFormat); } function qr(ui, la, wn, da) { return is(ui, Hs(ui, m, C), la, wn, da); } function is(ui, la, wn, da, $l) { D.assert($n, "getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host."); const tl = e.getScriptSnapshot(ui); if (!tl) return; const Ml = O$(ui, e), zl = e.getScriptVersion(ui); if (!$l) { const Fl = c && c.getSourceFileByPath(la); if (Fl) { if (Ml === Fl.scriptKind) return t.updateDocumentWithKey(ui, la, e, Bi, tl, zl, Ml, wn); t.releaseDocumentWithKey(Fl.resolvedPath, t.getKeyForCompilationSettings(c.getCompilerOptions()), Fl.scriptKind, Fl.impliedNodeFormat); } } return t.acquireDocumentWithKey(ui, la, e, Bi, tl, zl, Ml, wn); } } function B() { if (o === 2) { D.assert(c === void 0); return; } return k(), c; } function U() { var rt; return (rt = e.getPackageJsonAutoImportProvider) == null ? void 0 : rt.call(e); } function j(rt, K) { const Oe = c.getTypeChecker(), Z = we(); if (!Z) return !1; for (const Rt of rt) for (const ht of Rt.references) { const dt = q(ht); if (D.assertIsDefined(dt), K.has(ht) || ll.isDeclarationOfSymbol(dt, Z)) { K.add(ht), ht.isDefinition = !0; const dn = k$(ht, I, Fo(e, e.fileExists)); dn && K.add(dn); } else ht.isDefinition = !1; } return !0; function we() { for (const Rt of rt) for (const ht of Rt.references) { if (K.has(ht)) { const dn = q(ht); return D.assertIsDefined(dn), Oe.getSymbolAtLocation(dn); } const dt = k$(ht, I, Fo(e, e.fileExists)); if (dt && K.has(dt)) { const dn = q(dt); if (dn) return Oe.getSymbolAtLocation(dn); } } } function q(Rt) { const ht = c.getSourceFile(Rt.fileName); if (!ht) return; const dt = Af(ht, Rt.textSpan.start); return ll.Core.getAdjustedNode(dt, { use: ll.FindReferencesUse.References }); } } function te() { c = void 0; } function X() { if (c) { const rt = t.getKeyForCompilationSettings(c.getCompilerOptions()); Ye(c.getSourceFiles(), (K) => t.releaseDocumentWithKey(K.resolvedPath, rt, K.scriptKind, K.impliedNodeFormat)), c = void 0; } e = void 0; } function Y(rt) { return k(), c.getSyntacticDiagnostics(O(rt), y).slice(); } function P(rt) { k(); const K = O(rt), Oe = c.getSemanticDiagnostics(K, y); if (!G_(c.getCompilerOptions())) return Oe.slice(); const Z = c.getDeclarationDiagnostics(K, y); return [...Oe, ...Z]; } function ue(rt) { return k(), hQ(O(rt), c, y); } function ne() { return k(), [...c.getOptionsDiagnostics(y), ...c.getGlobalDiagnostics(y)]; } function ge(rt, K, Oe = em, Z) { const we = { ...Oe, includeCompletionsForModuleExports: Oe.includeCompletionsForModuleExports || Oe.includeExternalModuleExports, includeCompletionsWithInsertText: Oe.includeCompletionsWithInsertText || Oe.includeInsertTextCompletions }; return k(), Yx.getCompletionsAtPosition(e, c, b, O(rt), K, we, Oe.triggerCharacter, Oe.triggerKind, y, Z && Sc.getFormatContext(Z, e), Oe.includeSymbol); } function ie(rt, K, Oe, Z, we, q = em, Rt) { return k(), Yx.getCompletionEntryDetails(c, b, O(rt), K, { name: Oe, source: we, data: Rt }, e, Z && Sc.getFormatContext(Z, e), q, y); } function H(rt, K, Oe, Z, we = em) { return k(), Yx.getCompletionEntrySymbol(c, b, O(rt), K, { name: Oe, source: Z }, e, we); } function le(rt, K) { k(); const Oe = O(rt), Z = Af(Oe, K); if (Z === Oe) return; const we = c.getTypeChecker(), q = pe(Z), Rt = VFe(q, we); if (!Rt || we.isUnknownSymbol(Rt)) { const ii = ye(Oe, q, K) ? we.getTypeAtLocation(q) : void 0; return ii && { kind: "", kindModifiers: "", textSpan: $u(q, Oe), displayParts: we.runWithCancellationToken(y, (Ti) => Z8(Ti, ii, GT(q))), documentation: ii.symbol ? ii.symbol.getDocumentationComment(we) : void 0, tags: ii.symbol ? ii.symbol.getJsDocTags(we) : void 0 }; } const { symbolKind: ht, displayParts: dt, documentation: dn, tags: $n } = we.runWithCancellationToken(y, (ii) => ky.getSymbolDisplayPartsDocumentationAndSymbolKind(ii, Rt, Oe, GT(q), q)); return { kind: ht, kindModifiers: ky.getSymbolModifiers(we, Rt), textSpan: $u(q, Oe), displayParts: dt, documentation: dn, tags: $n }; } function pe(rt) { return I1(rt.parent) && rt.pos === rt.parent.pos ? rt.parent.expression : vk(rt.parent) && rt.pos === rt.parent.pos || IA(rt.parent) && rt.parent.name === rt ? rt.parent : rt; } function ye(rt, K, Oe) { switch (K.kind) { case 79: return !n$(K) && !r$(K) && !tg(K.parent); case 208: case 163: return !Ay(rt, Oe); case 108: case 194: case 106: case 199: return !0; case 233: return IA(K); default: return !1; } } function Te(rt, K, Oe, Z) { return k(), Sw.getDefinitionAtPosition(c, O(rt), K, Oe, Z); } function ee(rt, K) { return k(), Sw.getDefinitionAndBoundSpan(c, O(rt), K); } function $e(rt, K) { return k(), Sw.getTypeDefinitionAtPosition(c.getTypeChecker(), O(rt), K); } function Ge(rt, K) { return k(), ll.getImplementationsAtPosition(c, y, c.getSourceFiles(), O(rt), K); } function Fe(rt, K) { return Mo(We(rt, K, [rt]), (Oe) => Oe.highlightSpans.map((Z) => ({ fileName: Oe.fileName, textSpan: Z.textSpan, isWriteAccess: Z.kind === "writtenReference", ...Z.isInString && { isInString: !0 }, ...Z.contextSpan && { contextSpan: Z.contextSpan } }))); } function We(rt, K, Oe) { const Z = Wo(rt); D.assert(Oe.some((Rt) => Wo(Rt) === Z)), k(); const we = _a(Oe, (Rt) => c.getSourceFile(Rt)), q = O(rt); return c9.getDocumentHighlights(c, y, q, K, we); } function Re(rt, K, Oe, Z, we) { k(); const q = O(rt), Rt = xF(Af(q, K)); if (HG.nodeIsEligibleForRename(Rt)) if (Ve(Rt) && (xh(Rt.parent) || Ax(Rt.parent)) && FI(Rt.escapedText)) { const { openingElement: ht, closingElement: dt } = Rt.parent.parent; return [ht, dt].map((dn) => { const $n = $u(dn.tagName, q); return { fileName: q.fileName, textSpan: $n, ...ll.toContextSpan($n, q, dn.parent) }; }); } else return Ke(Rt, K, { findInStrings: Oe, findInComments: Z, providePrefixAndSuffixTextForRename: we, use: ll.FindReferencesUse.Rename }, (ht, dt, dn) => ll.toRenameLocation(ht, dt, dn, we || !1)); } function Pe(rt, K) { return k(), Ke(Af(O(rt), K), K, { use: ll.FindReferencesUse.References }, ll.toReferenceEntry); } function Ke(rt, K, Oe, Z) { k(); const we = Oe && Oe.use === ll.FindReferencesUse.Rename ? c.getSourceFiles().filter((q) => !c.isSourceFileDefaultLibrary(q)) : c.getSourceFiles(); return ll.findReferenceOrRenameEntries(c, y, we, rt, K, Oe, Z); } function He(rt, K) { return k(), ll.findReferencedSymbols(c, y, c.getSourceFiles(), O(rt), K); } function Me(rt) { return k(), ll.Core.getReferencesForFileName(rt, c, c.getSourceFiles()).map(ll.toReferenceEntry); } function ot(rt, K, Oe, Z = !1) { k(); const we = Oe ? [O(Oe)] : c.getSourceFiles(); return Xve(we, c.getTypeChecker(), y, rt, K, Z); } function At(rt, K, Oe) { k(); const Z = O(rt), we = e.getCustomTransformers && e.getCustomTransformers(); return Ghe(c, Z, !!K, y, we, Oe); } function bt(rt, K, { triggerReason: Oe } = em) { k(); const Z = O(rt); return J6.getSignatureHelpItems(c, Z, K, Oe, y); } function Vt(rt) { return s.getCurrentSourceFile(rt); } function et(rt, K, Oe) { const Z = s.getCurrentSourceFile(rt), we = Af(Z, K); if (we === Z) return; switch (we.kind) { case 208: case 163: case 10: case 95: case 110: case 104: case 106: case 108: case 194: case 79: break; default: return; } let q = we; for (; ; ) if (MC(q) || sye(q)) q = q.parent; else if (a$(q)) if (q.parent.parent.kind === 264 && q.parent.parent.body === q.parent) q = q.parent.parent.name; else break; else break; return fc(q.getStart(), we.getEnd()); } function it(rt, K) { const Oe = s.getCurrentSourceFile(rt); return HQ.spanInSourceFileAtLocation(Oe, K); } function nn(rt) { return Zve(s.getCurrentSourceFile(rt), y); } function Xt(rt) { return e0e(s.getCurrentSourceFile(rt), y); } function On(rt, K, Oe) { return k(), (Oe || "original") === "2020" ? N9.v2020.getSemanticClassifications(c, y, O(rt), K) : mve(c.getTypeChecker(), y, O(rt), c.getClassifiableNames(), K); } function Hn(rt, K, Oe) { return k(), (Oe || "original") === "original" ? iQ(c.getTypeChecker(), y, O(rt), c.getClassifiableNames(), K) : N9.v2020.getEncodedSemanticClassifications(c, y, O(rt), K); } function In(rt, K) { return vve(y, s.getCurrentSourceFile(rt), K); } function Yt(rt, K) { return aQ(y, s.getCurrentSourceFile(rt), K); } function fr(rt) { const K = s.getCurrentSourceFile(rt); return jte.collectElements(K, y); } const xi = new Map(Object.entries({ [18]: 19, [20]: 21, [22]: 23, [31]: 29 })); xi.forEach((rt, K) => xi.set(rt.toString(), Number(K))); function Ji(rt, K) { const Oe = s.getCurrentSourceFile(rt), Z = tw(Oe, K), we = Z.getStart(Oe) === K ? xi.get(Z.kind.toString()) : void 0, q = we && ys(Z.parent, we, Oe); return q ? [$u(Z, Oe), $u(q, Oe)].sort((Rt, ht) => Rt.start - ht.start) : nt; } function Ki(rt, K, Oe) { let Z = nl(); const we = c6(Oe), q = s.getCurrentSourceFile(rt); b("getIndentationAtPosition: getCurrentSourceFile: " + (nl() - Z)), Z = nl(); const Rt = Sc.SmartIndenter.getIndentation(K, q, we); return b("getIndentationAtPosition: computeIndentation : " + (nl() - Z)), Rt; } function Rr(rt, K, Oe, Z) { const we = s.getCurrentSourceFile(rt); return Sc.formatSelection(K, Oe, we, Sc.getFormatContext(c6(Z), e)); } function xt(rt, K) { return Sc.formatDocument(s.getCurrentSourceFile(rt), Sc.getFormatContext(c6(K), e)); } function gn(rt, K, Oe, Z) { const we = s.getCurrentSourceFile(rt), q = Sc.getFormatContext(c6(Z), e); if (!Ay(we, K)) switch (Oe) { case "{": return Sc.formatOnOpeningCurly(K, we, q); case "}": return Sc.formatOnClosingCurly(K, we, q); case ";": return Sc.formatOnSemicolon(K, we, q); case ` `: return Sc.formatOnEnter(K, we, q); } return []; } function Ht(rt, K, Oe, Z, we, q = em) { k(); const Rt = O(rt), ht = fc(K, Oe), dt = Sc.getFormatContext(we, e); return Mo(oA(Z, N0, js), (dn) => (y.throwIfCancellationRequested(), Fu.getFixes({ errorCode: dn, sourceFile: Rt, span: ht, program: c, host: e, cancellationToken: y, formatContext: dt, preferences: q }))); } function ln(rt, K, Oe, Z = em) { k(), D.assert(rt.type === "file"); const we = O(rt.fileName), q = Sc.getFormatContext(Oe, e); return Fu.getAllFixes({ fixId: K, sourceFile: we, program: c, host: e, cancellationToken: y, formatContext: q, preferences: Z }); } function rr(rt, K, Oe = em) { var Z; k(), D.assert(rt.type === "file"); const we = O(rt.fileName), q = Sc.getFormatContext(K, e), Rt = (Z = rt.mode) != null ? Z : rt.skipDestructiveCodeActions ? "SortAndCombine" : "All"; return q_.organizeImports(we, q, e, c, Oe, Rt); } function lr(rt, K, Oe, Z = em) { return Sve(B(), rt, K, e, Sc.getFormatContext(Oe, e), Z, I); } function Di(rt, K) { const Oe = typeof rt == "string" ? K : rt; return Ga(Oe) ? Promise.all(Oe.map((Z) => _i(Z))) : _i(Oe); } function _i(rt) { const K = (Oe) => Hs(Oe, m, C); return D.assertEqual(rt.type, "install package"), e.installPackage ? e.installPackage({ fileName: K(rt.file), packageName: rt.packageName }) : Promise.reject("Host does not implement `installPackage`"); } function Rn(rt, K, Oe, Z) { const we = Z ? Sc.getFormatContext(Z, e).options : void 0; return ib.getDocCommentTemplateAtPosition(eb(e, we), s.getCurrentSourceFile(rt), K, Oe); } function en(rt, K, Oe) { if (Oe === 60) return !1; const Z = s.getCurrentSourceFile(rt); if (VT(Z, K)) return !1; if (yye(Z, K)) return Oe === 123; if (_$(Z, K)) return !1; switch (Oe) { case 39: case 34: case 96: return !Ay(Z, K); } return !0; } function Pn(rt, K) { const Oe = s.getCurrentSourceFile(rt), Z = Tc(K, Oe); if (!Z) return; const we = Z.kind === 31 && xh(Z.parent) ? Z.parent.parent : _x(Z) && Ey(Z.parent) ? Z.parent : void 0; if (we && xe(we)) return { newText: `` }; const q = Z.kind === 31 && Lx(Z.parent) ? Z.parent.parent : _x(Z) && Cx(Z.parent) ? Z.parent : void 0; if (q && _t(q)) return { newText: "" }; } function xr(rt, K) { return { lineStarts: rt.getLineStarts(), firstLine: rt.getLineAndCharacterOfPosition(K.pos).line, lastLine: rt.getLineAndCharacterOfPosition(K.end).line }; } function Ur(rt, K, Oe) { const Z = s.getCurrentSourceFile(rt), we = [], { lineStarts: q, firstLine: Rt, lastLine: ht } = xr(Z, K); let dt = Oe || !1, dn = Number.MAX_VALUE; const $n = /* @__PURE__ */ new Map(), ii = new RegExp(/\S/), Ti = CF(Z, q[Rt]), Si = Ti ? "{/*" : "//"; for (let Bi = Rt; Bi <= ht; Bi++) { const fo = Z.text.substring(q[Bi], Z.getLineEndOfPosition(q[Bi])), vo = ii.exec(fo); vo && (dn = Math.min(dn, vo.index), $n.set(Bi.toString(), vo.index), fo.substr(vo.index, Si.length) !== Si && (dt = Oe === void 0 || Oe)); } for (let Bi = Rt; Bi <= ht; Bi++) { if (Rt !== ht && q[Bi] === K.end) continue; const fo = $n.get(Bi.toString()); fo !== void 0 && (Ti ? we.push.apply(we, Ie(rt, { pos: q[Bi] + dn, end: Z.getLineEndOfPosition(q[Bi]) }, dt, Ti)) : dt ? we.push({ newText: Si, span: { length: 0, start: q[Bi] + dn } }) : Z.text.substr(q[Bi] + fo, Si.length) === Si && we.push({ newText: "", span: { length: Si.length, start: q[Bi] + fo } })); } return we; } function Ie(rt, K, Oe, Z) { var we; const q = s.getCurrentSourceFile(rt), Rt = [], { text: ht } = q; let dt = !1, dn = Oe || !1; const $n = []; let { pos: ii } = K; const Ti = Z !== void 0 ? Z : CF(q, ii), Si = Ti ? "{/*" : "/*", Bi = Ti ? "*/}" : "*/", fo = Ti ? "\\{\\/\\*" : "\\/\\*", vo = Ti ? "\\*\\/\\}" : "\\*\\/"; for (; ii <= K.end; ) { const no = ht.substr(ii, Si.length) === Si ? Si.length : 0, sa = Ay(q, ii + no); if (sa) Ti && (sa.pos--, sa.end++), $n.push(sa.pos), sa.kind === 3 && $n.push(sa.end), dt = !0, ii = sa.end + 1; else { const Gi = ht.substring(ii, K.end).search(`(${fo})|(${vo})`); dn = Oe !== void 0 ? Oe : dn || !Nye(ht, ii, Gi === -1 ? K.end : ii + Gi), ii = Gi === -1 ? K.end + 1 : ii + Gi + Bi.length; } } if (dn || !dt) { ((we = Ay(q, K.pos)) == null ? void 0 : we.kind) !== 2 && fv($n, K.pos, js), fv($n, K.end, js); const no = $n[0]; ht.substr(no, Si.length) !== Si && Rt.push({ newText: Si, span: { length: 0, start: no } }); for (let sa = 1; sa < $n.length - 1; sa++) ht.substr($n[sa] - Bi.length, Bi.length) !== Bi && Rt.push({ newText: Bi, span: { length: 0, start: $n[sa] } }), ht.substr($n[sa], Si.length) !== Si && Rt.push({ newText: Si, span: { length: 0, start: $n[sa] } }); Rt.length % 2 !== 0 && Rt.push({ newText: Bi, span: { length: 0, start: $n[$n.length - 1] } }); } else for (const no of $n) { const sa = no - Bi.length > 0 ? no - Bi.length : 0, Gi = ht.substr(sa, Bi.length) === Bi ? Bi.length : 0; Rt.push({ newText: "", span: { length: Si.length, start: no - Gi } }); } return Rt; } function gt(rt, K) { const Oe = s.getCurrentSourceFile(rt), { firstLine: Z, lastLine: we } = xr(Oe, K); return Z === we && K.pos !== K.end ? Ie(rt, K, !0) : Ur(rt, K, !0); } function Nt(rt, K) { const Oe = s.getCurrentSourceFile(rt), Z = [], { pos: we } = K; let { end: q } = K; we === q && (q += CF(Oe, we) ? 2 : 1); for (let Rt = we; Rt <= q; Rt++) { const ht = Ay(Oe, Rt); if (ht) { switch (ht.kind) { case 2: Z.push.apply(Z, Ur(rt, { end: ht.end, pos: ht.pos + 1 }, !1)); break; case 3: Z.push.apply(Z, Ie(rt, { end: ht.end, pos: ht.pos + 1 }, !1)); } Rt = ht.end + 1; } } return Z; } function xe({ openingElement: rt, closingElement: K, parent: Oe }) { return !Q0(rt.tagName, K.tagName) || Ey(Oe) && Q0(rt.tagName, Oe.openingElement.tagName) && xe(Oe); } function _t({ closingFragment: rt, parent: K }) { return !!(rt.flags & 131072) || Cx(K) && _t(K); } function _e(rt, K, Oe) { const Z = s.getCurrentSourceFile(rt), we = Sc.getRangeOfEnclosingComment(Z, K); return we && (!Oe || we.kind === 3) ? Vv(we) : void 0; } function re(rt, K) { k(); const Oe = O(rt); y.throwIfCancellationRequested(); const Z = Oe.text, we = []; if (K.length > 0 && !dt(Oe.fileName)) { const dn = Rt(); let $n; for (; $n = dn.exec(Z); ) { y.throwIfCancellationRequested(); const ii = 3; D.assert($n.length === K.length + ii); const Ti = $n[1], Si = $n.index + Ti.length; if (!Ay(Oe, Si)) continue; let Bi; for (let vo = 0; vo < K.length; vo++) $n[vo + ii] && (Bi = K[vo]); if (Bi === void 0) return D.fail(); if (ht(Z.charCodeAt(Si + Bi.text.length))) continue; const fo = $n[2]; we.push({ descriptor: Bi, message: fo, position: Si }); } } return we; function q(dn) { return dn.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); } function Rt() { const dn = /(?:\/\/+\s*)/.source, $n = /(?:\/\*+\s*)/.source, Ti = "(" + /(?:^(?:\s|\*)*)/.source + "|" + dn + "|" + $n + ")", Si = "(?:" + rn(K, (sa) => "(" + q(sa.text) + ")").join("|") + ")", Bi = /(?:$|\*\/)/.source, fo = /(?:.*?)/.source, vo = "(" + Si + fo + ")", no = Ti + vo + Bi; return new RegExp(no, "gim"); } function ht(dn) { return dn >= 97 && dn <= 122 || dn >= 65 && dn <= 90 || dn >= 48 && dn <= 57; } function dt(dn) { return lu(dn, "/node_modules/"); } } function me(rt, K, Oe) { return k(), HG.getRenameInfo(c, O(rt), K, Oe || {}); } function V(rt, K, Oe, Z, we, q) { const [Rt, ht] = typeof K == "number" ? [K, void 0] : [K.pos, K.end]; return { file: rt, startPosition: Rt, endPosition: ht, program: B(), host: e, formatContext: Sc.getFormatContext(Z, e), cancellationToken: y, preferences: Oe, triggerReason: we, kind: q }; } function je(rt, K, Oe) { return { file: rt, program: B(), host: e, span: K, preferences: Oe, cancellationToken: y }; } function Qe(rt, K) { return vne.getSmartSelectionRange(K, s.getCurrentSourceFile(rt)); } function Je(rt, K, Oe = em, Z, we) { k(); const q = O(rt); return Rw.getApplicableRefactors(V(q, K, Oe, em, Z, we)); } function Ut(rt, K, Oe, Z, we, q = em) { k(); const Rt = O(rt); return Rw.getEditsForRefactor(V(Rt, Oe, q, K), Z, we); } function on(rt, K) { return K === 0 ? { line: 0, character: 0 } : I.toLineColumnOffset(rt, K); } function Sn(rt, K) { k(); const Oe = Wx.resolveCallHierarchyDeclaration(c, Af(O(rt), K)); return Oe && rve(Oe, (Z) => Wx.createCallHierarchyItem(c, Z)); } function br(rt, K) { k(); const Oe = O(rt), Z = J$(Wx.resolveCallHierarchyDeclaration(c, K === 0 ? Oe : Af(Oe, K))); return Z ? Wx.getIncomingCalls(c, Z, y) : []; } function ce(rt, K) { k(); const Oe = O(rt), Z = J$(Wx.resolveCallHierarchyDeclaration(c, K === 0 ? Oe : Af(Oe, K))); return Z ? Wx.getOutgoingCalls(c, Z) : []; } function pt(rt, K, Oe = em) { k(); const Z = O(rt); return Dte.provideInlayHints(je(Z, K, Oe)); } const Wt = { dispose: X, cleanupSemanticCache: te, getSyntacticDiagnostics: Y, getSemanticDiagnostics: P, getSuggestionDiagnostics: ue, getCompilerOptionsDiagnostics: ne, getSyntacticClassifications: In, getSemanticClassifications: On, getEncodedSyntacticClassifications: Yt, getEncodedSemanticClassifications: Hn, getCompletionsAtPosition: ge, getCompletionEntryDetails: ie, getCompletionEntrySymbol: H, getSignatureHelpItems: bt, getQuickInfoAtPosition: le, getDefinitionAtPosition: Te, getDefinitionAndBoundSpan: ee, getImplementationAtPosition: Ge, getTypeDefinitionAtPosition: $e, getReferencesAtPosition: Pe, findReferences: He, getFileReferences: Me, getOccurrencesAtPosition: Fe, getDocumentHighlights: We, getNameOrDottedNameSpan: et, getBreakpointStatementAtPosition: it, getNavigateToItems: ot, getRenameInfo: me, getSmartSelectionRange: Qe, findRenameLocations: Re, getNavigationBarItems: nn, getNavigationTree: Xt, getOutliningSpans: fr, getTodoComments: re, getBraceMatchingAtPosition: Ji, getIndentationAtPosition: Ki, getFormattingEditsForRange: Rr, getFormattingEditsForDocument: xt, getFormattingEditsAfterKeystroke: gn, getDocCommentTemplateAtPosition: Rn, isValidBraceCompletionAtPosition: en, getJsxClosingTagAtPosition: Pn, getSpanOfEnclosingComment: _e, getCodeFixesAtPosition: Ht, getCombinedCodeFix: ln, applyCodeActionCommand: Di, organizeImports: rr, getEditsForFileRename: lr, getEmitOutput: At, getNonBoundSourceFile: Vt, getProgram: B, getCurrentProgram: () => c, getAutoImportProvider: U, updateIsDefinitionOfReferencedSymbols: j, getApplicableRefactors: Je, getEditsForRefactor: Ut, toLineColumnOffset: on, getSourceMapper: () => I, clearSourceMapperCache: () => I.clearCache(), prepareCallHierarchy: Sn, provideCallHierarchyIncomingCalls: br, provideCallHierarchyOutgoingCalls: ce, toggleLineComment: Ur, toggleMultilineComment: Ie, commentSelection: gt, uncommentSelection: Nt, provideInlayHints: pt, getSupportedCodeFixes: C0e }; switch (o) { case 0: break; case 1: FQ.forEach((rt) => Wt[rt] = () => { throw new Error(`LanguageService Operation: ${rt} not allowed in LanguageServiceMode.PartialSemantic`); }); break; case 2: F0e.forEach((rt) => Wt[rt] = () => { throw new Error(`LanguageService Operation: ${rt} not allowed in LanguageServiceMode.Syntactic`); }); break; default: D.assertNever(o); } return Wt; } function NQ(e) { return e.nameTable || BFe(e), e.nameTable; } function BFe(e) { const t = e.nameTable = /* @__PURE__ */ new Map(); e.forEachChild(function r(i) { if (Ve(i) && !r$(i) && i.escapedText || Hf(i) && GFe(i)) { const o = PI(i); t.set(o, t.get(o) === void 0 ? i.pos : -1); } else if (ki(i)) { const o = i.escapedText; t.set(o, t.get(o) === void 0 ? i.pos : -1); } if (Oa(i, r), yf(i)) for (const o of i.jsDoc) Oa(o, r); }); } function GFe(e) { return sg(e) || e.parent.kind === 280 || jFe(e) || EN(e); } function u6(e) { const t = UFe(e); return t && (As(t.parent) || w1(t.parent)) ? t : void 0; } function UFe(e) { switch (e.kind) { case 10: case 14: case 8: if (e.parent.kind === 164) return pW(e.parent.parent) ? e.parent.parent : void 0; case 79: return pW(e.parent) && (e.parent.parent.kind === 207 || e.parent.parent.kind === 289) && e.parent.name === e ? e.parent : void 0; } } function VFe(e, t) { const r = u6(e); if (r) { const i = t.getContextualType(r.parent), o = i && x9(r, t, i, !1); if (o && o.length === 1) return ss(o); } return t.getSymbolAtLocation(e); } function x9(e, t, r, i) { const o = X8(e.name); if (!o) return nt; if (!r.isUnion()) { const c = r.getProperty(o); return c ? [c] : nt; } const s = _a(r.types, (c) => (As(e.parent) || w1(e.parent)) && t.isTypeInvalidDueToUnionDiscriminant(c, e.parent) ? void 0 : c.getProperty(o)); if (i && (s.length === 0 || s.length === r.types.length)) { const c = r.getProperty(o); if (c) return [c]; } return s.length === 0 ? _a(r.types, (c) => c.getProperty(o)) : s; } function jFe(e) { return e && e.parent && e.parent.kind === 209 && e.parent.argumentExpression === e; } function HFe(e) { if (zc) return Oi(fi(Wo(zc.getExecutingFilePath())), oM(e)); throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. "); } var OQ, A9, C9, k0e, PQ, L9, I9, w0e, D0e, R0e, N0e, O0e, P0e, M0e, MQ, FQ, F0e, WFe = L({ "src/services/services.ts"() { Kr(), Kr(), Qve(), b0e(), OQ = "0.8", A9 = class { constructor(e, t, r) { this.pos = t, this.end = r, this.flags = 0, this.modifierFlagsCache = 0, this.transformFlags = 0, this.parent = void 0, this.kind = e; } assertHasRealPosition(e) { D.assert(!Jp(this.pos) && !Jp(this.end), e || "Node must have a real position for this operation"); } getSourceFile() { return Zn(this); } getStart(e, t) { return this.assertHasRealPosition(), nT(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) { 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"), this._children || (this._children = PFe(this, e)); } getFirstToken(e) { this.assertHasRealPosition(); const t = this.getChildren(e); if (!t.length) return; const r = un(t, (i) => i.kind < 312 || i.kind > 353); return r.kind < 163 ? r : r.getFirstToken(e); } getLastToken(e) { this.assertHasRealPosition(); const t = this.getChildren(e), r = Zs(t); if (r) return r.kind < 163 ? r : r.getLastToken(e); } forEachChild(e, t) { return Oa(this, e, t); } }, C9 = class { constructor(e, t) { this.pos = e, this.end = t, this.flags = 0, this.modifierFlagsCache = 0, this.transformFlags = 0, this.parent = void 0; } getSourceFile() { return Zn(this); } getStart(e, t) { return nT(this, e, t); } getFullStart() { return this.pos; } getEnd() { return this.end; } getWidth(e) { return this.getEnd() - this.getStart(e); } getFullWidth() { return this.end - this.pos; } getLeadingTriviaWidth(e) { return this.getStart(e) - this.pos; } getFullText(e) { return (e || this.getSourceFile()).text.substring(this.pos, this.end); } getText(e) { return e || (e = this.getSourceFile()), e.text.substring(this.getStart(e), this.getEnd()); } getChildCount() { return this.getChildren().length; } getChildAt(e) { return this.getChildren()[e]; } getChildren() { return this.kind === 1 && this.jsDoc || nt; } getFirstToken() { } getLastToken() { } forEachChild() { } }, k0e = class { constructor(e, t) { this.id = 0, this.mergeId = 0, this.flags = e, this.escapedName = t; } getFlags() { return this.flags; } get name() { return Nl(this); } getEscapedName() { return this.escapedName; } getName() { return this.name; } getDeclarations() { return this.declarations; } getDocumentationComment(e) { if (!this.documentationComment) if (this.documentationComment = nt, !this.declarations && km(this) && this.links.target && km(this.links.target) && this.links.target.links.tupleLabelDeclaration) { const t = this.links.target.links.tupleLabelDeclaration; this.documentationComment = l6([t], e); } else this.documentationComment = l6(this.declarations, e); return this.documentationComment; } getContextualDocumentationComment(e, t) { if (e) { if (Sv(e) && (this.contextualGetAccessorDocumentationComment || (this.contextualGetAccessorDocumentationComment = l6(yn(this.declarations, Sv), t)), Ne(this.contextualGetAccessorDocumentationComment))) return this.contextualGetAccessorDocumentationComment; if (fy(e) && (this.contextualSetAccessorDocumentationComment || (this.contextualSetAccessorDocumentationComment = l6(yn(this.declarations, fy), t)), Ne(this.contextualSetAccessorDocumentationComment))) return this.contextualSetAccessorDocumentationComment; } return this.getDocumentationComment(t); } getJsDocTags(e) { return this.tags === void 0 && (this.tags = E9(this.declarations, e)), this.tags; } getContextualJsDocTags(e, t) { if (e) { if (Sv(e) && (this.contextualGetAccessorTags || (this.contextualGetAccessorTags = E9(yn(this.declarations, Sv), t)), Ne(this.contextualGetAccessorTags))) return this.contextualGetAccessorTags; if (fy(e) && (this.contextualSetAccessorTags || (this.contextualSetAccessorTags = E9(yn(this.declarations, fy), t)), Ne(this.contextualSetAccessorTags))) return this.contextualSetAccessorTags; } return this.getJsDocTags(t); } }, PQ = class extends C9 { constructor(e, t, r) { super(t, r), this.kind = e; } }, L9 = class extends C9 { constructor(e, t, r) { super(t, r), this.kind = 79; } get text() { return Or(this); } }, L9.prototype.kind = 79, I9 = class extends C9 { constructor(e, t, r) { super(t, r), this.kind = 80; } get text() { return Or(this); } }, I9.prototype.kind = 80, w0e = class { constructor(e, t) { this.checker = e, this.flags = t; } getFlags() { return this.flags; } getSymbol() { return this.symbol; } getProperties() { return this.checker.getPropertiesOfType(this); } getProperty(e) { return this.checker.getPropertyOfType(this, e); } getApparentProperties() { return this.checker.getAugmentedPropertiesOfType(this); } getCallSignatures() { return this.checker.getSignaturesOfType(this, 0); } getConstructSignatures() { return this.checker.getSignaturesOfType(this, 1); } getStringIndexType() { return this.checker.getIndexTypeOfType(this, 0); } getNumberIndexType() { return this.checker.getIndexTypeOfType(this, 1); } getBaseTypes() { return this.isClassOrInterface() ? this.checker.getBaseTypes(this) : void 0; } isNullableType() { return this.checker.isNullableType(this); } getNonNullableType() { return this.checker.getNonNullableType(this); } getNonOptionalType() { return this.checker.getNonOptionalType(this); } getConstraint() { return this.checker.getBaseConstraintOfType(this); } getDefault() { return this.checker.getDefaultFromTypeParameter(this); } isUnion() { return !!(this.flags & 1048576); } isIntersection() { return !!(this.flags & 2097152); } isUnionOrIntersection() { return !!(this.flags & 3145728); } isLiteral() { return !!(this.flags & 2432); } isStringLiteral() { return !!(this.flags & 128); } isNumberLiteral() { return !!(this.flags & 256); } isTypeParameter() { return !!(this.flags & 262144); } isClassOrInterface() { return !!(Qr(this) & 3); } isClass() { return !!(Qr(this) & 1); } isIndexType() { return !!(this.flags & 4194304); } get typeArguments() { if (Qr(this) & 4) return this.checker.getTypeArguments(this); } }, D0e = class { constructor(e, t) { this.checker = e, this.flags = t; } getDeclaration() { return this.declaration; } getTypeParameters() { return this.typeParameters; } getParameters() { return this.parameters; } getReturnType() { return this.checker.getReturnTypeOfSignature(this); } getTypeParameterAtPosition(e) { const t = this.checker.getParameterType(this, e); if (t.isIndexType() && lk(t.type)) { const r = t.type.getConstraint(); if (r) return this.checker.getIndexType(r); } return t; } getDocumentationComment() { return this.documentationComment || (this.documentationComment = l6(WE(this.declaration), this.checker)); } getJsDocTags() { return this.jsDocTags || (this.jsDocTags = E9(WE(this.declaration), this.checker)); } }, R0e = class extends A9 { constructor(e, t, r) { super(e, t, r), this.kind = 308; } update(e, t) { return kJ(this, e, t); } getLineAndCharacterOfPosition(e) { return il(this, e); } getLineStarts() { return Qh(this); } getPositionOfLineAndCharacter(e, t, r) { return OH(Qh(this), e, t, this.text, r); } getLineEndOfPosition(e) { const { line: t } = this.getLineAndCharacterOfPosition(e), r = this.getLineStarts(); let i; t + 1 >= r.length && (i = this.getEnd()), i || (i = r[t + 1] - 1); const o = this.getFullText(); return o[i] === ` ` && o[i - 1] === "\r" ? i - 1 : i; } getNamedDeclarations() { return this.namedDeclarations || (this.namedDeclarations = this.computeNamedDeclarations()), this.namedDeclarations; } computeNamedDeclarations() { const e = o_(); return this.forEachChild(o), e; function t(s) { const c = i(s); c && e.add(c, s); } function r(s) { let c = e.get(s); return c || e.set(s, c = []), c; } function i(s) { const c = jH(s); return c && (Ss(c) && Pr(c.expression) ? c.expression.name.text : hl(c) ? X8(c) : void 0); } function o(s) { switch (s.kind) { case 259: case 215: case 171: case 170: const c = s, f = i(c); if (f) { const m = r(f), b = Zs(m); b && c.parent === b.parent && c.symbol === b.symbol ? c.body && !b.body && (m[m.length - 1] = c) : m.push(c); } Oa(s, o); break; case 260: case 228: case 261: case 262: case 263: case 264: case 268: case 278: case 273: case 270: case 271: case 174: case 175: case 184: t(s), Oa(s, o); break; case 166: if (!Jr(s, 16476)) break; case 257: case 205: { const m = s; if (Ja(m.name)) { Oa(m.name, o); break; } m.initializer && o(m.initializer); } case 302: case 169: case 168: t(s); break; case 275: const d = s; d.exportClause && (j_(d.exportClause) ? Ye(d.exportClause.elements, o) : o(d.exportClause.name)); break; case 269: const y = s.importClause; y && (y.name && t(y.name), y.namedBindings && (y.namedBindings.kind === 271 ? t(y.namedBindings) : Ye(y.namedBindings.elements, o))); break; case 223: xl(s) !== 0 && t(s); default: Oa(s, o); } } } }, N0e = class { constructor(e, t, r) { this.fileName = e, this.text = t, this.skipTrivia = r; } getLineAndCharacterOfPosition(e) { return il(this, e); } }, O0e = class { constructor(e) { this.host = e; } getCurrentSourceFile(e) { var t, r, i, o, s, c, f, d; const y = this.host.getScriptSnapshot(e); if (!y) throw new Error("Could not find file: '" + e + "'."); const m = O$(e, this.host), b = this.host.getScriptVersion(e); let A; if (this.currentFileName !== e) { const C = { languageVersion: 99, impliedNodeFormat: z5(Hs(e, this.host.getCurrentDirectory(), ((i = (r = (t = this.host).getCompilerHost) == null ? void 0 : r.call(t)) == null ? void 0 : i.getCanonicalFileName) || H0(this.host)), (d = (f = (c = (s = (o = this.host).getCompilerHost) == null ? void 0 : s.call(o)) == null ? void 0 : c.getModuleResolutionCache) == null ? void 0 : f.call(c)) == null ? void 0 : d.getPackageJsonInfoCache(), this.host, this.host.getCompilationSettings()), setExternalModuleIndicator: VN(this.host.getCompilationSettings()) }; A = S9(e, y, C, b, !0, m); } else if (this.currentFileVersion !== b) { const C = y.getChangeRange(this.currentFileScriptSnapshot); A = RQ(this.currentSourceFile, y, b, C); } return A && (this.currentFileVersion = b, this.currentFileName = e, this.currentFileScriptSnapshot = y, this.currentSourceFile = A), this.currentSourceFile; } }, P0e = { isCancellationRequested: Qb, throwIfCancellationRequested: io }, M0e = class { constructor(e) { this.cancellationToken = e; } isCancellationRequested() { return this.cancellationToken.isCancellationRequested(); } throwIfCancellationRequested() { var e; if (this.isCancellationRequested()) throw (e = hi) == null || e.instant(hi.Phase.Session, "cancellationThrown", { kind: "CancellationTokenObject" }), new eI(); } }, MQ = class { constructor(e, t = 20) { this.hostCancellationToken = e, this.throttleWaitMilliseconds = t, this.lastCancellationCheckTime = 0; } isCancellationRequested() { const e = nl(); return Math.abs(e - this.lastCancellationCheckTime) >= this.throttleWaitMilliseconds ? (this.lastCancellationCheckTime = e, this.hostCancellationToken.isCancellationRequested()) : !1; } throwIfCancellationRequested() { var e; if (this.isCancellationRequested()) throw (e = hi) == null || e.instant(hi.Phase.Session, "cancellationThrown", { kind: "ThrottledCancellationToken" }), new eI(); } }, FQ = [ "getSemanticDiagnostics", "getSuggestionDiagnostics", "getCompilerOptionsDiagnostics", "getSemanticClassifications", "getEncodedSemanticClassifications", "getCodeFixesAtPosition", "getCombinedCodeFix", "applyCodeActionCommand", "organizeImports", "getEditsForFileRename", "getEmitOutput", "getApplicableRefactors", "getEditsForRefactor", "prepareCallHierarchy", "provideCallHierarchyIncomingCalls", "provideCallHierarchyOutgoingCalls", "provideInlayHints", "getSupportedCodeFixes" ], F0e = [ ...FQ, "getCompletionsAtPosition", "getCompletionEntryDetails", "getCompletionEntrySymbol", "getSignatureHelpItems", "getQuickInfoAtPosition", "getDefinitionAtPosition", "getDefinitionAndBoundSpan", "getImplementationAtPosition", "getTypeDefinitionAtPosition", "getReferencesAtPosition", "findReferences", "getOccurrencesAtPosition", "getDocumentHighlights", "getNavigateToItems", "getRenameInfo", "findRenameLocations", "getApplicableRefactors" ], nde(FFe()); } }); function zFe(e, t, r) { const i = []; r = bQ(r, i); const o = Ga(e) ? e : [e], s = g8(void 0, void 0, N, r, o, t, !0); return s.diagnostics = ha(s.diagnostics, i), s; } var qFe = L({ "src/services/transform.ts"() { Kr(); } }); function k9(e, t) { e && e.log("*INTERNAL ERROR* - Exception in typescript services: " + t.message); } function JFe(e, t, r, i) { let o; i && (e.log(t), o = nl()); const s = r(); if (i) { const c = nl(); if (e.log(`${t} completed in ${c - o} msec`), Va(s)) { let f = s; f.length > 128 && (f = f.substring(0, 128) + "..."), e.log(` result.length=${f.length}, result='${JSON.stringify(f)}'`); } } return s; } function BQ(e, t, r, i) { return B0e(e, t, !0, r, i); } function B0e(e, t, r, i, o) { try { const s = JFe(e, t, i, o); return r ? JSON.stringify({ result: s }) : s; } catch (s) { return s instanceof eI ? JSON.stringify({ canceled: !0 }) : (k9(e, s), s.description = t, JSON.stringify({ error: s })); } } function GQ(e, t) { return e.map((r) => KFe(r, t)); } function KFe(e, t) { return { message: Gv(e.messageText, t), start: e.start, length: e.length, category: FP(e), code: e.code, reportsUnnecessary: e.reportsUnnecessary, reportsDeprecated: e.reportsDeprecated }; } function UQ(e) { return { spans: e.spans.join(","), endOfLineState: e.endOfLineState }; } var w9, G0e, VQ, jQ, D9, U0e, V0e, j0e, H0e, XFe = L({ "src/services/shims.ts"() { Kr(), w9 = function() { return this; }(), G0e = class { constructor(e) { this.scriptSnapshotShim = e; } getText(e, t) { return this.scriptSnapshotShim.getText(e, t); } getLength() { return this.scriptSnapshotShim.getLength(); } getChangeRange(e) { const t = e, r = this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim); if (r === null) return null; const i = JSON.parse(r); return DR(Cc(i.span.start, i.span.length), i.newLength); } dispose() { "dispose" in this.scriptSnapshotShim && this.scriptSnapshotShim.dispose(); } }, VQ = class { constructor(e) { this.shimHost = e, this.loggingEnabled = !1, this.tracingEnabled = !1, "getModuleResolutionsForFile" in this.shimHost && (this.resolveModuleNames = (t, r) => { const i = JSON.parse(this.shimHost.getModuleResolutionsForFile(r)); return rn(t, (o) => { const s = ZD(i, o); return s ? { resolvedFileName: s, extension: YN(s), isExternalLibraryImport: !1 } : void 0; }); }), "directoryExists" in this.shimHost && (this.directoryExists = (t) => this.shimHost.directoryExists(t)), "getTypeReferenceDirectiveResolutionsForFile" in this.shimHost && (this.resolveTypeReferenceDirectives = (t, r) => { const i = JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(r)); return rn(t, (o) => ZD(i, Va(o) ? o : I_(o.fileName))); }); } log(e) { this.loggingEnabled && this.shimHost.log(e); } trace(e) { this.tracingEnabled && this.shimHost.trace(e); } error(e) { this.shimHost.error(e); } getProjectVersion() { if (this.shimHost.getProjectVersion) return this.shimHost.getProjectVersion(); } getTypeRootsVersion() { return this.shimHost.getTypeRootsVersion ? this.shimHost.getTypeRootsVersion() : 0; } useCaseSensitiveFileNames() { return this.shimHost.useCaseSensitiveFileNames ? this.shimHost.useCaseSensitiveFileNames() : !1; } getCompilationSettings() { const e = this.shimHost.getCompilationSettings(); if (e === null || e === "") throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings"); const t = JSON.parse(e); return t.allowNonTsExtensions = !0, t; } getScriptFileNames() { const e = this.shimHost.getScriptFileNames(); return JSON.parse(e); } getScriptSnapshot(e) { const t = this.shimHost.getScriptSnapshot(e); return t && new G0e(t); } getScriptKind(e) { return "getScriptKind" in this.shimHost ? this.shimHost.getScriptKind(e) : 0; } getScriptVersion(e) { return this.shimHost.getScriptVersion(e); } getLocalizedDiagnosticMessages() { const e = this.shimHost.getLocalizedDiagnosticMessages(); if (e === null || e === "") return null; try { return JSON.parse(e); } catch (t) { return this.log(t.description || "diagnosticMessages.generated.json has invalid JSON format"), null; } } getCancellationToken() { const e = this.shimHost.getCancellationToken(); return new MQ(e); } getCurrentDirectory() { return this.shimHost.getCurrentDirectory(); } getDirectories(e) { return JSON.parse(this.shimHost.getDirectories(e)); } getDefaultLibFileName(e) { return this.shimHost.getDefaultLibFileName(JSON.stringify(e)); } readDirectory(e, t, r, i, o) { const s = ek(e, r, i, this.shimHost.useCaseSensitiveFileNames(), this.shimHost.getCurrentDirectory()); return JSON.parse(this.shimHost.readDirectory(e, JSON.stringify(t), JSON.stringify(s.basePaths), s.excludePattern, s.includeFilePattern, s.includeDirectoryPattern, o)); } readFile(e, t) { return this.shimHost.readFile(e, t); } fileExists(e) { return this.shimHost.fileExists(e); } }, jQ = class { constructor(e) { this.shimHost = e, this.useCaseSensitiveFileNames = this.shimHost.useCaseSensitiveFileNames ? this.shimHost.useCaseSensitiveFileNames() : !1, "directoryExists" in this.shimHost ? this.directoryExists = (t) => this.shimHost.directoryExists(t) : this.directoryExists = void 0, "realpath" in this.shimHost ? this.realpath = (t) => this.shimHost.realpath(t) : this.realpath = void 0; } readDirectory(e, t, r, i, o) { const s = ek(e, r, i, this.shimHost.useCaseSensitiveFileNames(), this.shimHost.getCurrentDirectory()); return JSON.parse(this.shimHost.readDirectory(e, JSON.stringify(t), JSON.stringify(s.basePaths), s.excludePattern, s.includeFilePattern, s.includeDirectoryPattern, o)); } fileExists(e) { return this.shimHost.fileExists(e); } readFile(e) { return this.shimHost.readFile(e); } getDirectories(e) { return JSON.parse(this.shimHost.getDirectories(e)); } }, D9 = class { constructor(e) { this.factory = e, e.registerShim(this); } dispose(e) { this.factory.unregisterShim(this); } }, U0e = class extends D9 { constructor(e, t, r) { super(e), this.host = t, this.languageService = r, this.logPerformance = !1, this.logger = this.host; } forwardJSONCall(e, t) { return BQ(this.logger, e, t, this.logPerformance); } dispose(e) { this.logger.log("dispose()"), this.languageService.dispose(), this.languageService = null, w9 && w9.CollectGarbage && (w9.CollectGarbage(), this.logger.log("CollectGarbage()")), this.logger = null, super.dispose(e); } refresh(e) { this.forwardJSONCall(`refresh(${e})`, () => null); } cleanupSemanticCache() { this.forwardJSONCall("cleanupSemanticCache()", () => (this.languageService.cleanupSemanticCache(), null)); } realizeDiagnostics(e) { const t = eb(this.host, void 0); return GQ(e, t); } getSyntacticClassifications(e, t, r) { return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${t}, ${r})`, () => this.languageService.getSyntacticClassifications(e, Cc(t, r))); } getSemanticClassifications(e, t, r) { return this.forwardJSONCall(`getSemanticClassifications('${e}', ${t}, ${r})`, () => this.languageService.getSemanticClassifications(e, Cc(t, r))); } getEncodedSyntacticClassifications(e, t, r) { return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${t}, ${r})`, () => UQ(this.languageService.getEncodedSyntacticClassifications(e, Cc(t, r)))); } getEncodedSemanticClassifications(e, t, r) { return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${t}, ${r})`, () => UQ(this.languageService.getEncodedSemanticClassifications(e, Cc(t, r)))); } getSyntacticDiagnostics(e) { return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`, () => { const t = this.languageService.getSyntacticDiagnostics(e); return this.realizeDiagnostics(t); }); } getSemanticDiagnostics(e) { return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`, () => { const t = this.languageService.getSemanticDiagnostics(e); return this.realizeDiagnostics(t); }); } getSuggestionDiagnostics(e) { return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`, () => this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e))); } getCompilerOptionsDiagnostics() { return this.forwardJSONCall("getCompilerOptionsDiagnostics()", () => { const e = this.languageService.getCompilerOptionsDiagnostics(); return this.realizeDiagnostics(e); }); } getQuickInfoAtPosition(e, t) { return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${t})`, () => this.languageService.getQuickInfoAtPosition(e, t)); } getNameOrDottedNameSpan(e, t, r) { return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${t}, ${r})`, () => this.languageService.getNameOrDottedNameSpan(e, t, r)); } getBreakpointStatementAtPosition(e, t) { return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${t})`, () => this.languageService.getBreakpointStatementAtPosition(e, t)); } getSignatureHelpItems(e, t, r) { return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${t})`, () => this.languageService.getSignatureHelpItems(e, t, r)); } getDefinitionAtPosition(e, t) { return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${t})`, () => this.languageService.getDefinitionAtPosition(e, t)); } getDefinitionAndBoundSpan(e, t) { return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${t})`, () => this.languageService.getDefinitionAndBoundSpan(e, t)); } getTypeDefinitionAtPosition(e, t) { return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${t})`, () => this.languageService.getTypeDefinitionAtPosition(e, t)); } getImplementationAtPosition(e, t) { return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${t})`, () => this.languageService.getImplementationAtPosition(e, t)); } getRenameInfo(e, t, r) { return this.forwardJSONCall(`getRenameInfo('${e}', ${t})`, () => this.languageService.getRenameInfo(e, t, r)); } getSmartSelectionRange(e, t) { return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${t})`, () => this.languageService.getSmartSelectionRange(e, t)); } findRenameLocations(e, t, r, i, o) { return this.forwardJSONCall(`findRenameLocations('${e}', ${t}, ${r}, ${i}, ${o})`, () => this.languageService.findRenameLocations(e, t, r, i, o)); } getBraceMatchingAtPosition(e, t) { return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${t})`, () => this.languageService.getBraceMatchingAtPosition(e, t)); } isValidBraceCompletionAtPosition(e, t, r) { return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${t}, ${r})`, () => this.languageService.isValidBraceCompletionAtPosition(e, t, r)); } getSpanOfEnclosingComment(e, t, r) { return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${t})`, () => this.languageService.getSpanOfEnclosingComment(e, t, r)); } getIndentationAtPosition(e, t, r) { return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${t})`, () => { const i = JSON.parse(r); return this.languageService.getIndentationAtPosition(e, t, i); }); } getReferencesAtPosition(e, t) { return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${t})`, () => this.languageService.getReferencesAtPosition(e, t)); } findReferences(e, t) { return this.forwardJSONCall(`findReferences('${e}', ${t})`, () => this.languageService.findReferences(e, t)); } getFileReferences(e) { return this.forwardJSONCall(`getFileReferences('${e})`, () => this.languageService.getFileReferences(e)); } getOccurrencesAtPosition(e, t) { return this.forwardJSONCall(`getOccurrencesAtPosition('${e}', ${t})`, () => this.languageService.getOccurrencesAtPosition(e, t)); } getDocumentHighlights(e, t, r) { return this.forwardJSONCall(`getDocumentHighlights('${e}', ${t})`, () => { const i = this.languageService.getDocumentHighlights(e, t, JSON.parse(r)), o = I_(qc(e)); return yn(i, (s) => I_(qc(s.fileName)) === o); }); } getCompletionsAtPosition(e, t, r, i) { return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${t}, ${r}, ${i})`, () => this.languageService.getCompletionsAtPosition(e, t, r, i)); } getCompletionEntryDetails(e, t, r, i, o, s, c) { return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${t}, '${r}')`, () => { const f = i === void 0 ? void 0 : JSON.parse(i); return this.languageService.getCompletionEntryDetails(e, t, r, f, o, s, c); }); } getFormattingEditsForRange(e, t, r, i) { return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${t}, ${r})`, () => { const o = JSON.parse(i); return this.languageService.getFormattingEditsForRange(e, t, r, o); }); } getFormattingEditsForDocument(e, t) { return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`, () => { const r = JSON.parse(t); return this.languageService.getFormattingEditsForDocument(e, r); }); } getFormattingEditsAfterKeystroke(e, t, r, i) { return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${t}, '${r}')`, () => { const o = JSON.parse(i); return this.languageService.getFormattingEditsAfterKeystroke(e, t, r, o); }); } getDocCommentTemplateAtPosition(e, t, r, i) { return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${t})`, () => this.languageService.getDocCommentTemplateAtPosition(e, t, r, i)); } getNavigateToItems(e, t, r) { return this.forwardJSONCall(`getNavigateToItems('${e}', ${t}, ${r})`, () => this.languageService.getNavigateToItems(e, t, r)); } getNavigationBarItems(e) { return this.forwardJSONCall(`getNavigationBarItems('${e}')`, () => this.languageService.getNavigationBarItems(e)); } getNavigationTree(e) { return this.forwardJSONCall(`getNavigationTree('${e}')`, () => this.languageService.getNavigationTree(e)); } getOutliningSpans(e) { return this.forwardJSONCall(`getOutliningSpans('${e}')`, () => this.languageService.getOutliningSpans(e)); } getTodoComments(e, t) { return this.forwardJSONCall(`getTodoComments('${e}')`, () => this.languageService.getTodoComments(e, JSON.parse(t))); } prepareCallHierarchy(e, t) { return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${t})`, () => this.languageService.prepareCallHierarchy(e, t)); } provideCallHierarchyIncomingCalls(e, t) { return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${t})`, () => this.languageService.provideCallHierarchyIncomingCalls(e, t)); } provideCallHierarchyOutgoingCalls(e, t) { return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${t})`, () => this.languageService.provideCallHierarchyOutgoingCalls(e, t)); } provideInlayHints(e, t, r) { return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(t)}', ${JSON.stringify(r)})`, () => this.languageService.provideInlayHints(e, t, r)); } getEmitOutput(e) { return this.forwardJSONCall(`getEmitOutput('${e}')`, () => { const { diagnostics: t, ...r } = this.languageService.getEmitOutput(e); return { ...r, diagnostics: this.realizeDiagnostics(t) }; }); } getEmitOutputObject(e) { return B0e(this.logger, `getEmitOutput('${e}')`, !1, () => this.languageService.getEmitOutput(e), this.logPerformance); } toggleLineComment(e, t) { return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(t)}')`, () => this.languageService.toggleLineComment(e, t)); } toggleMultilineComment(e, t) { return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(t)}')`, () => this.languageService.toggleMultilineComment(e, t)); } commentSelection(e, t) { return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(t)}')`, () => this.languageService.commentSelection(e, t)); } uncommentSelection(e, t) { return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(t)}')`, () => this.languageService.uncommentSelection(e, t)); } }, V0e = class extends D9 { constructor(e, t) { super(e), this.logger = t, this.logPerformance = !1, this.classifier = pve(); } getEncodedLexicalClassifications(e, t, r = !1) { return BQ(this.logger, "getEncodedLexicalClassifications", () => UQ(this.classifier.getEncodedLexicalClassifications(e, t, r)), this.logPerformance); } getClassificationsForLine(e, t, r = !1) { const i = this.classifier.getClassificationsForLine(e, t, r); let o = ""; for (const s of i.entries) o += s.length + ` `, o += s.classification + ` `; return o += i.finalLexState, o; } }, j0e = class extends D9 { constructor(e, t, r) { super(e), this.logger = t, this.host = r, this.logPerformance = !1; } forwardJSONCall(e, t) { return BQ(this.logger, e, t, this.logPerformance); } resolveModuleName(e, t, r) { return this.forwardJSONCall(`resolveModuleName('${e}')`, () => { const i = JSON.parse(r), o = Mk(t, qc(e), i, this.host); let s = o.resolvedModule ? o.resolvedModule.resolvedFileName : void 0; return o.resolvedModule && o.resolvedModule.extension !== ".ts" && o.resolvedModule.extension !== ".tsx" && o.resolvedModule.extension !== ".d.ts" && (s = void 0), { resolvedFileName: s, failedLookupLocations: o.failedLookupLocations, affectingLocations: o.affectingLocations }; }); } resolveTypeReferenceDirective(e, t, r) { return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`, () => { const i = JSON.parse(r), o = lK(t, qc(e), i, this.host); return { resolvedFileName: o.resolvedTypeReferenceDirective ? o.resolvedTypeReferenceDirective.resolvedFileName : void 0, primary: o.resolvedTypeReferenceDirective ? o.resolvedTypeReferenceDirective.primary : !0, failedLookupLocations: o.failedLookupLocations }; }); } getPreProcessedFileInfo(e, t) { return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`, () => { const r = Fve(RF(t), !0, !0); return { referencedFiles: this.convertFileReferences(r.referencedFiles), importedFiles: this.convertFileReferences(r.importedFiles), ambientExternalModules: r.ambientExternalModules, isLibFile: r.isLibFile, typeReferenceDirectives: this.convertFileReferences(r.typeReferenceDirectives), libReferenceDirectives: this.convertFileReferences(r.libReferenceDirectives) }; }); } getAutomaticTypeDirectiveNames(e) { return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`, () => { const t = JSON.parse(e); return o5(t, this.host); }); } convertFileReferences(e) { if (!e) return; const t = []; for (const r of e) t.push({ path: qc(r.fileName), position: r.pos, length: r.end - r.pos }); return t; } getTSConfigFileInfo(e, t) { return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`, () => { const r = GO(e, RF(t)), i = qc(e), o = WO(r, this.host, fi(i), {}, i); return { options: o.options, typeAcquisition: o.typeAcquisition, files: o.fileNames, raw: o.raw, errors: GQ([...r.parseDiagnostics, ...o.errors], `\r `) }; }); } getDefaultCompilationSettings() { return this.forwardJSONCall("getDefaultCompilationSettings()", () => T9()); } discoverTypings(e) { const t = $c(!1); return this.forwardJSONCall("discoverTypings()", () => { const r = JSON.parse(e); return this.safeList === void 0 && (this.safeList = FT.loadSafeList(this.host, Hs(r.safeListPath, r.safeListPath, t))), FT.discoverTypings(this.host, (i) => this.logger.log(i), r.fileNames, Hs(r.projectRootPath, r.projectRootPath, t), this.safeList, r.packageNameToTypingLocation, r.typeAcquisition, r.unresolvedImports, r.typesRegistry, em); }); } }, H0e = class { constructor() { this._shims = []; } getServicesVersion() { return OQ; } createLanguageServiceShim(e) { try { this.documentRegistry === void 0 && (this.documentRegistry = oQ(e.useCaseSensitiveFileNames && e.useCaseSensitiveFileNames(), e.getCurrentDirectory())); const t = new VQ(e), r = I0e(t, this.documentRegistry, !1); return new U0e(this, e, r); } catch (t) { throw k9(e, t), t; } } createClassifierShim(e) { try { return new V0e(this, e); } catch (t) { throw k9(e, t), t; } } createCoreServicesShim(e) { try { const t = new jQ(e); return new j0e(this, e, t); } catch (t) { throw k9(e, t), t; } } close() { ms(this._shims), this.documentRegistry = void 0; } registerShim(e) { this._shims.push(e); } unregisterShim(e) { for (let t = 0; t < this._shims.length; t++) if (this._shims[t] === e) { delete this._shims[t]; return; } throw new Error("Invalid operation"); } }; } }); function YFe(e, t) { if (e.isDeclarationFile) return; let r = ra(e, t); const i = e.getLineAndCharacterOfPosition(t).line; if (e.getLineAndCharacterOfPosition(r.getStart(e)).line > i) { const b = Tc(r.pos, e); if (!b || e.getLineAndCharacterOfPosition(b.getEnd()).line !== i) return; r = b; } if (r.flags & 16777216) return; return m(r); function o(b, A) { const C = wx(b) ? Yi(b.modifiers, Du) : void 0, I = C ? zo(e.text, C.end) : b.getStart(e); return fc(I, (A || b).getEnd()); } function s(b, A) { return o(b, UT(A, A.parent, e)); } function c(b, A) { return b && i === e.getLineAndCharacterOfPosition(b.getStart(e)).line ? m(b) : m(A); } function f(b, A, C) { if (b) { const I = b.indexOf(A); if (I >= 0) { let O = I, k = I + 1; for (; O > 0 && C(b[O - 1]); ) O--; for (; k < b.length && C(b[k]); ) k++; return fc(zo(e.text, b[O].pos), b[k - 1].end); } } return o(A); } function d(b) { return m(Tc(b.pos, e)); } function y(b) { return m(UT(b, b.parent, e)); } function m(b) { if (b) { const { parent: ee } = b; switch (b.kind) { case 240: return C(b.declarationList.declarations[0]); case 257: case 169: case 168: return C(b); case 166: return O(b); case 259: case 171: case 170: case 174: case 175: case 173: case 215: case 216: return B(b); case 238: if (aT(b)) return U(b); case 265: return j(b); case 295: return j(b.block); case 241: return o(b.expression); case 250: return o(b.getChildAt(0), b.expression); case 244: return s(b, b.expression); case 243: return m(b.statement); case 256: return o(b.getChildAt(0)); case 242: return s(b, b.expression); case 253: return m(b.statement); case 249: case 248: return o(b.getChildAt(0), b.label); case 245: return X(b); case 246: return s(b, b.expression); case 247: return te(b); case 252: return s(b, b.expression); case 292: case 293: return m(b.statements[0]); case 255: return j(b.tryBlock); case 254: return o(b, b.expression); case 274: return o(b, b.expression); case 268: return o(b, b.moduleReference); case 269: return o(b, b.moduleSpecifier); case 275: return o(b, b.moduleSpecifier); case 264: if (_g(b) !== 1) return; case 260: case 263: case 302: case 205: return o(b); case 251: return m(b.statement); case 167: return f(ee.modifiers, b, Du); case 203: case 204: return Y(b); case 261: case 262: return; case 26: case 1: return c(Tc(b.pos, e)); case 27: return d(b); case 18: return ue(b); case 19: return ne(b); case 23: return ge(b); case 20: return ie(b); case 21: return H(b); case 58: return le(b); case 31: case 29: return pe(b); case 115: return ye(b); case 91: case 83: case 96: return y(b); case 162: return Te(b); default: if (Cy(b)) return P(b); if ((b.kind === 79 || b.kind === 227 || b.kind === 299 || b.kind === 300) && Cy(ee)) return o(b); if (b.kind === 223) { const { left: $e, operatorToken: Ge } = b; if (Cy($e)) return P($e); if (Ge.kind === 63 && Cy(b.parent)) return o(b); if (Ge.kind === 27) return m($e); } if (ag(b)) switch (ee.kind) { case 243: return d(b); case 167: return m(b.parent); case 245: case 247: return o(b); case 223: if (b.parent.operatorToken.kind === 27) return o(b); break; case 216: if (b.parent.body === b) return o(b); break; } switch (b.parent.kind) { case 299: if (b.parent.name === b && !Cy(b.parent.parent)) return m(b.parent.initializer); break; case 213: if (b.parent.type === b) return y(b.parent.type); break; case 257: case 166: { const { initializer: $e, type: Ge } = b.parent; if ($e === b || Ge === b || py(b.kind)) return d(b); break; } case 223: { const { left: $e } = b.parent; if (Cy($e) && b !== $e) return d(b); break; } default: if (qa(b.parent) && b.parent.type === b) return d(b); } return m(b.parent); } } function A(ee) { return Ou(ee.parent) && ee.parent.declarations[0] === ee ? o(Tc(ee.pos, e, ee.parent), ee) : o(ee); } function C(ee) { if (ee.parent.parent.kind === 246) return m(ee.parent.parent); const $e = ee.parent; if (Ja(ee.name)) return Y(ee.name); if (eT(ee) && ee.initializer || Jr(ee, 1) || $e.parent.kind === 247) return A(ee); if (Ou(ee.parent) && ee.parent.declarations[0] !== ee) return m(Tc(ee.pos, e, ee.parent)); } function I(ee) { return !!ee.initializer || ee.dotDotDotToken !== void 0 || Jr(ee, 12); } function O(ee) { if (Ja(ee.name)) return Y(ee.name); if (I(ee)) return o(ee); { const $e = ee.parent, Ge = $e.parameters.indexOf(ee); return D.assert(Ge !== -1), Ge !== 0 ? O($e.parameters[Ge - 1]) : m($e.body); } } function k(ee) { return Jr(ee, 1) || ee.parent.kind === 260 && ee.kind !== 173; } function B(ee) { if (ee.body) return k(ee) ? o(ee) : m(ee.body); } function U(ee) { const $e = ee.statements.length ? ee.statements[0] : ee.getLastToken(); return k(ee.parent) ? c(ee.parent, $e) : m($e); } function j(ee) { switch (ee.parent.kind) { case 264: if (_g(ee.parent) !== 1) return; case 244: case 242: case 246: return c(ee.parent, ee.statements[0]); case 245: case 247: return c(Tc(ee.pos, e, ee.parent), ee.statements[0]); } return m(ee.statements[0]); } function te(ee) { if (ee.initializer.kind === 258) { const $e = ee.initializer; if ($e.declarations.length > 0) return m($e.declarations[0]); } else return m(ee.initializer); } function X(ee) { if (ee.initializer) return te(ee); if (ee.condition) return o(ee.condition); if (ee.incrementor) return o(ee.incrementor); } function Y(ee) { const $e = Ye(ee.elements, (Ge) => Ge.kind !== 229 ? Ge : void 0); return $e ? m($e) : ee.parent.kind === 205 ? o(ee.parent) : A(ee.parent); } function P(ee) { D.assert(ee.kind !== 204 && ee.kind !== 203); const $e = ee.kind === 206 ? ee.elements : ee.properties, Ge = Ye($e, (Fe) => Fe.kind !== 229 ? Fe : void 0); return Ge ? m(Ge) : o(ee.parent.kind === 223 ? ee.parent : ee); } function ue(ee) { switch (ee.parent.kind) { case 263: const $e = ee.parent; return c(Tc(ee.pos, e, ee.parent), $e.members.length ? $e.members[0] : $e.getLastToken(e)); case 260: const Ge = ee.parent; return c(Tc(ee.pos, e, ee.parent), Ge.members.length ? Ge.members[0] : Ge.getLastToken(e)); case 266: return c(ee.parent.parent, ee.parent.clauses[0]); } return m(ee.parent); } function ne(ee) { switch (ee.parent.kind) { case 265: if (_g(ee.parent.parent) !== 1) return; case 263: case 260: return o(ee); case 238: if (aT(ee.parent)) return o(ee); case 295: return m(Zs(ee.parent.statements)); case 266: const $e = ee.parent, Ge = Zs($e.clauses); return Ge ? m(Zs(Ge.statements)) : void 0; case 203: const Fe = ee.parent; return m(Zs(Fe.elements) || Fe); default: if (Cy(ee.parent)) { const We = ee.parent; return o(Zs(We.properties) || We); } return m(ee.parent); } } function ge(ee) { switch (ee.parent.kind) { case 204: const $e = ee.parent; return o(Zs($e.elements) || $e); default: if (Cy(ee.parent)) { const Ge = ee.parent; return o(Zs(Ge.elements) || Ge); } return m(ee.parent); } } function ie(ee) { return ee.parent.kind === 243 || ee.parent.kind === 210 || ee.parent.kind === 211 ? d(ee) : ee.parent.kind === 214 ? y(ee) : m(ee.parent); } function H(ee) { switch (ee.parent.kind) { case 215: case 259: case 216: case 171: case 170: case 174: case 175: case 173: case 244: case 243: case 245: case 247: case 210: case 211: case 214: return d(ee); default: return m(ee.parent); } } function le(ee) { return qa(ee.parent) || ee.parent.kind === 299 || ee.parent.kind === 166 ? d(ee) : m(ee.parent); } function pe(ee) { return ee.parent.kind === 213 ? y(ee) : m(ee.parent); } function ye(ee) { return ee.parent.kind === 243 ? s(ee, ee.parent.expression) : m(ee.parent); } function Te(ee) { return ee.parent.kind === 247 ? y(ee) : m(ee.parent); } } } var $Fe = L({ "src/services/breakpoints.ts"() { Kr(); } }), HQ = {}; fe(HQ, { spanInSourceFileAtLocation: () => YFe }); var QFe = L({ "src/services/_namespaces/ts.BreakpointResolver.ts"() { $Fe(); } }); function ZFe(e) { return (Ms(e) || Nu(e)) && du(e); } function _w(e) { return (Ms(e) || zs(e) || Nu(e)) && Wi(e.parent) && e === e.parent.initializer && Ve(e.parent.name) && !!(up(e.parent) & 2); } function W0e(e) { return ji(e) || Hl(e) || pc(e) || Ms(e) || kc(e) || Nu(e) || Cl(e) || nc(e) || bh(e) || U_(e) || Kf(e); } function Hx(e) { return ji(e) || Hl(e) && Ve(e.name) || pc(e) || kc(e) || Cl(e) || nc(e) || bh(e) || U_(e) || Kf(e) || ZFe(e) || _w(e); } function z0e(e) { return ji(e) ? e : du(e) ? e.name : _w(e) ? e.parent.name : D.checkDefined(e.modifiers && un(e.modifiers, q0e)); } function q0e(e) { return e.kind === 88; } function J0e(e, t) { const r = z0e(t); return r && e.getSymbolAtLocation(r); } function e9e(e, t) { if (ji(t)) return { text: t.fileName, pos: 0, end: 0 }; if ((pc(t) || kc(t)) && !du(t)) { const o = t.modifiers && un(t.modifiers, q0e); if (o) return { text: "default", pos: o.getStart(), end: o.getEnd() }; } if (Cl(t)) { const o = t.getSourceFile(), s = zo(o.text, qp(t).pos), c = s + 6, f = e.getTypeChecker(), d = f.getSymbolAtLocation(t.parent); return { text: `${d ? `${f.symbolToString(d, t.parent)} ` : ""}static {}`, pos: s, end: c }; } const r = _w(t) ? t.parent.name : D.checkDefined(La(t), "Expected call hierarchy item to have a name"); let i = Ve(r) ? Or(r) : Hf(r) ? r.text : Ss(r) && Hf(r.expression) ? r.expression.text : void 0; if (i === void 0) { const o = e.getTypeChecker(), s = o.getSymbolAtLocation(r); s && (i = o.symbolToString(s, t)); } if (i === void 0) { const o = b8(); i = TI((s) => o.writeNode(4, t, t.getSourceFile(), s)); } return { text: i, pos: r.getStart(), end: r.getEnd() }; } function t9e(e) { var t, r; if (_w(e)) return Yp(e.parent.parent.parent.parent) && Ve(e.parent.parent.parent.parent.parent.name) ? e.parent.parent.parent.parent.parent.name.getText() : void 0; switch (e.kind) { case 174: case 175: case 171: return e.parent.kind === 207 ? (t = HH(e.parent)) == null ? void 0 : t.getText() : (r = La(e.parent)) == null ? void 0 : r.getText(); case 259: case 260: case 264: if (Yp(e.parent) && Ve(e.parent.parent.name)) return e.parent.parent.name.getText(); } } function K0e(e, t) { if (t.body) return t; if (jl(t)) return hh(t.parent); if (pc(t) || nc(t)) { const r = J0e(e, t); return r && r.valueDeclaration && Ys(r.valueDeclaration) && r.valueDeclaration.body ? r.valueDeclaration : void 0; } return t; } function X0e(e, t) { const r = J0e(e, t); let i; if (r && r.declarations) { const o = YD(r.declarations), s = rn(r.declarations, (d) => ({ file: d.getSourceFile().fileName, pos: d.pos })); o.sort((d, y) => Lu(s[d].file, s[y].file) || s[d].pos - s[y].pos); const c = rn(o, (d) => r.declarations[d]); let f; for (const d of c) Hx(d) && ((!f || f.parent !== d.parent || f.end !== d.pos) && (i = Fn(i, d)), f = d); } return i; } function R9(e, t) { var r, i, o; return Cl(t) ? t : Ys(t) ? (i = (r = K0e(e, t)) != null ? r : X0e(e, t)) != null ? i : t : (o = X0e(e, t)) != null ? o : t; } function Y0e(e, t) { const r = e.getTypeChecker(); let i = !1; for (; ; ) { if (Hx(t)) return R9(r, t); if (W0e(t)) { const o = nr(t, Hx); return o && R9(r, o); } if (sg(t)) { if (Hx(t.parent)) return R9(r, t.parent); if (W0e(t.parent)) { const o = nr(t.parent, Hx); return o && R9(r, o); } return Wi(t.parent) && t.parent.initializer && _w(t.parent.initializer) ? t.parent.initializer : void 0; } if (jl(t)) return Hx(t.parent) ? t.parent : void 0; if (t.kind === 124 && Cl(t.parent)) { t = t.parent; continue; } if (Wi(t) && t.initializer && _w(t.initializer)) return t.initializer; if (!i) { let o = r.getSymbolAtLocation(t); if (o && (o.flags & 2097152 && (o = r.getAliasedSymbol(o)), o.valueDeclaration)) { i = !0, t = o.valueDeclaration; continue; } } return; } } function WQ(e, t) { const r = t.getSourceFile(), i = e9e(e, t), o = t9e(t), s = j1(t), c = nw(t), f = fc(zo(r.text, t.getFullStart(), !1, !0), t.getEnd()), d = fc(i.pos, i.end); return { file: r.fileName, kind: s, kindModifiers: c, name: i.text, containerName: o, span: f, selectionSpan: d }; } function n9e(e) { return e !== void 0; } function r9e(e) { if (e.kind === ll.EntryKind.Node) { const { node: t } = e; if (e$(t, !0, !0) || rye(t, !0, !0) || iye(t, !0, !0) || aye(t, !0, !0) || MC(t) || i$(t)) { const r = t.getSourceFile(); return { declaration: nr(t, Hx) || r, range: E$(t, r) }; } } } function $0e(e) { return ds(e.declaration); } function i9e(e, t) { return { from: e, fromSpans: t }; } function a9e(e, t) { return i9e(WQ(e, t[0].declaration), rn(t, (r) => Vv(r.range))); } function o9e(e, t, r) { if (ji(t) || Hl(t) || Cl(t)) return []; const i = z0e(t), o = yn(ll.findReferenceOrRenameEntries(e, r, e.getSourceFiles(), i, 0, { use: ll.FindReferencesUse.References }, r9e), n9e); return o ? XL(o, $0e, (s) => a9e(e, s)) : []; } function s9e(e, t) { function r(o) { const s = bT(o) ? o.tag : qu(o) ? o.tagName : ol(o) || Cl(o) ? o : o.expression, c = Y0e(e, s); if (c) { const f = E$(s, o.getSourceFile()); if (Ga(c)) for (const d of c) t.push({ declaration: d, range: f }); else t.push({ declaration: c, range: f }); } } function i(o) { if (o && !(o.flags & 16777216)) { if (Hx(o)) { if (li(o)) for (const s of o.members) s.name && Ss(s.name) && i(s.name.expression); return; } switch (o.kind) { case 79: case 268: case 269: case 275: case 261: case 262: return; case 172: r(o); return; case 213: case 231: i(o.expression); return; case 257: case 166: i(o.name), i(o.initializer); return; case 210: r(o), i(o.expression), Ye(o.arguments, i); return; case 211: r(o), i(o.expression), Ye(o.arguments, i); return; case 212: r(o), i(o.tag), i(o.template); return; case 283: case 282: r(o), i(o.tagName), i(o.attributes); return; case 167: r(o), i(o.expression); return; case 208: case 209: r(o), Oa(o, i); break; case 235: i(o.expression); return; } _h(o) || Oa(o, i); } } return i; } function l9e(e, t) { Ye(e.statements, t); } function c9e(e, t) { !Jr(e, 2) && e.body && Yp(e.body) && Ye(e.body.statements, t); } function u9e(e, t, r) { const i = K0e(e, t); i && (Ye(i.parameters, r), r(i.body)); } function d9e(e, t) { t(e.body); } function f9e(e, t) { Ye(e.modifiers, t); const r = y1(e); r && t(r.expression); for (const i of e.members) H_(i) && Ye(i.modifiers, t), Za(i) ? t(i.initializer) : jl(i) && i.body ? (Ye(i.parameters, t), t(i.body)) : Cl(i) && t(i); } function _9e(e, t) { const r = [], i = s9e(e, r); switch (t.kind) { case 308: l9e(t, i); break; case 264: c9e(t, i); break; case 259: case 215: case 216: case 171: case 174: case 175: u9e(e.getTypeChecker(), t, i); break; case 260: case 228: f9e(t, i); break; case 172: d9e(t, i); break; default: D.assertNever(t); } return r; } function p9e(e, t) { return { to: e, fromSpans: t }; } function m9e(e, t) { return p9e(WQ(e, t[0].declaration), rn(t, (r) => Vv(r.range))); } function h9e(e, t) { return t.flags & 16777216 || bh(t) ? [] : XL(_9e(e, t), $0e, (r) => m9e(e, r)); } var g9e = L({ "src/services/callHierarchy.ts"() { Kr(); } }), Wx = {}; fe(Wx, { createCallHierarchyItem: () => WQ, getIncomingCalls: () => o9e, getOutgoingCalls: () => h9e, resolveCallHierarchyDeclaration: () => Y0e }); var y9e = L({ "src/services/_namespaces/ts.CallHierarchy.ts"() { g9e(); } }); function v9e(e, t, r, i) { const o = Q0e(e, t, r, i); D.assert(o.spans.length % 3 === 0); const s = o.spans, c = []; for (let f = 0; f < s.length; f += 3) c.push({ textSpan: Cc(s[f], s[f + 1]), classificationType: s[f + 2] }); return c; } function Q0e(e, t, r, i) { return { spans: b9e(e, r, i, t), endOfLineState: 0 }; } function b9e(e, t, r, i) { const o = []; return e && t && E9e(e, t, r, (c, f, d) => { o.push(c.getStart(t), c.getWidth(t), (f + 1 << 8) + d); }, i), o; } function E9e(e, t, r, i, o) { const s = e.getTypeChecker(); let c = !1; function f(d) { switch (d.kind) { case 264: case 260: case 261: case 259: case 228: case 215: case 216: o.throwIfCancellationRequested(); } if (!d || !lM(r, d.pos, d.getFullWidth()) || d.getFullWidth() === 0) return; const y = c; if ((Ey(d) || xx(d)) && (c = !0), xk(d) && (c = !1), Ve(d) && !c && !A9e(d) && !sk(d.escapedText)) { let m = s.getSymbolAtLocation(d); if (m) { m.flags & 2097152 && (m = s.getAliasedSymbol(m)); let b = T9e(m, BT(d)); if (b !== void 0) { let A = 0; d.parent && (us(d.parent) || KQ.get(d.parent.kind) === b) && d.parent.name === d && (A = 1 << 0), b === 6 && ebe(d) && (b = 9), b = S9e(s, d, b); const C = m.valueDeclaration; if (C) { const I = cy(C), O = up(C); I & 32 && (A |= 1 << 1), I & 512 && (A |= 1 << 2), b !== 0 && b !== 2 && (I & 64 || O & 2 || m.getFlags() & 8) && (A |= 1 << 3), (b === 7 || b === 10) && x9e(C, t) && (A |= 1 << 5), e.isSourceFileDefaultLibrary(C.getSourceFile()) && (A |= 1 << 4); } else m.declarations && m.declarations.some((I) => e.isSourceFileDefaultLibrary(I.getSourceFile())) && (A |= 1 << 4); i(d, b, A); } } } Oa(d, f), c = y; } f(t); } function T9e(e, t) { const r = e.getFlags(); if (r & 32) return 0; if (r & 384) return 1; if (r & 524288) return 5; if (r & 64) { if (t & 2) return 2; } else if (r & 262144) return 4; let i = e.valueDeclaration || e.declarations && e.declarations[0]; return i && us(i) && (i = Z0e(i)), i && KQ.get(i.kind); } function S9e(e, t, r) { if (r === 7 || r === 9 || r === 6) { const i = e.getTypeAtLocation(t); if (i) { const o = (s) => s(i) || i.isUnion() && i.types.some(s); if (r !== 6 && o((s) => s.getConstructSignatures().length > 0)) return 0; if (o((s) => s.getCallSignatures().length > 0) && !o((s) => s.getProperties().length > 0) || C9e(t)) return r === 9 ? 11 : 10; } } return r; } function x9e(e, t) { return us(e) && (e = Z0e(e)), Wi(e) ? (!ji(e.parent.parent.parent) || mC(e.parent)) && e.getSourceFile() === t : pc(e) ? !ji(e.parent) && e.getSourceFile() === t : !1; } function Z0e(e) { for (; ; ) if (us(e.parent.parent)) e = e.parent.parent; else return e.parent.parent; } function A9e(e) { const t = e.parent; return t && (Gm(t) || Td(t) || Ov(t)); } function C9e(e) { for (; ebe(e); ) e = e.parent; return eo(e.parent) && e.parent.expression === e; } function ebe(e) { return Ed(e.parent) && e.parent.right === e || Pr(e.parent) && e.parent.name === e; } var zQ, qQ, JQ, KQ, L9e = L({ "src/services/classifier2020.ts"() { Kr(), zQ = /* @__PURE__ */ ((e) => (e[e.typeOffset = 8] = "typeOffset", e[e.modifierMask = 255] = "modifierMask", e))(zQ || {}), qQ = /* @__PURE__ */ ((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))(qQ || {}), JQ = /* @__PURE__ */ ((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))(JQ || {}), KQ = /* @__PURE__ */ new Map([ [257, 7], [166, 6], [169, 9], [264, 3], [263, 1], [302, 8], [260, 0], [171, 11], [259, 10], [215, 10], [170, 11], [174, 9], [175, 9], [168, 9], [261, 2], [262, 5], [165, 4], [299, 9], [300, 9] ]); } }), tbe = {}; fe(tbe, { TokenEncodingConsts: () => zQ, TokenModifier: () => JQ, TokenType: () => qQ, getEncodedSemanticClassifications: () => Q0e, getSemanticClassifications: () => v9e }); var I9e = L({ "src/services/_namespaces/ts.classifier.v2020.ts"() { L9e(); } }), N9 = {}; fe(N9, { v2020: () => tbe }); var k9e = L({ "src/services/_namespaces/ts.classifier.ts"() { I9e(); } }); function vp(e, t, r) { return YQ(e, Ux(r), t, void 0, void 0); } function to(e, t, r, i, o, s) { return YQ(e, Ux(r), t, i, Ux(o), s); } function XQ(e, t, r, i, o, s) { return YQ(e, Ux(r), t, i, o && Ux(o), s); } function YQ(e, t, r, i, o, s) { return { fixName: e, description: t, changes: r, fixId: i, fixAllDescription: o, commands: s ? [s] : void 0 }; } function uo(e) { for (const t of e.errorCodes) O9.add(String(t), e); if (e.fixIds) for (const t of e.fixIds) D.assert(!P9.has(t)), P9.set(t, e); } function w9e() { return ko(O9.keys()); } function D9e(e, t) { const { errorCodes: r } = e; let i = 0; for (const s of t) if (Ii(r, s.code) && i++, i > 1) break; const o = i < 2; return ({ fixId: s, fixAllDescription: c, ...f }) => o ? f : { ...f, fixId: s, fixAllDescription: c }; } function R9e(e) { const t = rbe(e), r = O9.get(String(e.errorCode)); return Mo(r, (i) => rn(i.getCodeActions(e), D9e(i, t))); } function N9e(e) { return P9.get(ro(e.fixId, Va)).getAllCodeActions(e); } function zx(e, t) { return { changes: e, commands: t }; } function nbe(e, t) { return { fileName: e, textChanges: t }; } function xs(e, t, r) { const i = [], o = hr.ChangeTracker.with(e, (s) => qx(e, t, (c) => r(s, c, i))); return zx(o, i.length === 0 ? void 0 : i); } function qx(e, t, r) { for (const i of rbe(e)) Ii(t, i.code) && r(i); } function rbe({ program: e, sourceFile: t, cancellationToken: r }) { return [ ...e.getSemanticDiagnostics(t, r), ...e.getSyntacticDiagnostics(t, r), ...hQ(t, e, r) ]; } var O9, P9, O9e = L({ "src/services/codeFixProvider.ts"() { Kr(), O9 = o_(), P9 = /* @__PURE__ */ new Map(); } }); function ibe(e, t, r) { const i = bO(r) ? N.createAsExpression(r.expression, N.createKeywordTypeNode(157)) : N.createTypeAssertion(N.createKeywordTypeNode(157), r.expression); e.replaceNode(t, r.expression, i); } function abe(e, t) { if (!dr(e)) return nr(ra(e, t), (r) => bO(r) || Cfe(r)); } var M9, $Q, P9e = L({ "src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"() { Kr(), yo(), M9 = "addConvertToUnknownForNonOverlappingTypes", $Q = [_.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], uo({ errorCodes: $Q, getCodeActions: function(t) { const r = abe(t.sourceFile, t.span.start); if (r === void 0) return; const i = hr.ChangeTracker.with(t, (o) => ibe(o, t.sourceFile, r)); return [to(M9, i, _.Add_unknown_conversion_for_non_overlapping_types, M9, _.Add_unknown_to_all_conversions_of_non_overlapping_types)]; }, fixIds: [M9], getAllCodeActions: (e) => xs(e, $Q, (t, r) => { const i = abe(r.file, r.start); i && ibe(t, r.file, i); }) }); } }), M9e = L({ "src/services/codefixes/addEmptyExportDeclaration.ts"() { Kr(), yo(), uo({ errorCodes: [ _.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, _.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) { const { sourceFile: r } = t, i = hr.ChangeTracker.with(t, (o) => { const s = N.createExportDeclaration(void 0, !1, N.createNamedExports([]), void 0); o.insertNodeAtEndOfScope(r, r, s); }); return [vp("addEmptyExportDeclaration", i, _.Add_export_to_make_this_file_into_a_module)]; } }); } }); function obe(e, t, r, i) { const o = r((s) => F9e(s, e.sourceFile, t, i)); return to(F9, o, _.Add_async_modifier_to_containing_function, F9, _.Add_all_missing_async_modifiers); } function F9e(e, t, r, i) { if (i && i.has(ds(r))) return; i == null || i.add(ds(r)); const o = N.updateModifiers(Il(r, !0), N.createNodeArray(N.createModifiersFromModifierFlags(Iv(r) | 512))); e.replaceNode(t, r, o); } function sbe(e, t) { if (!t) return; const r = ra(e, t.start); return nr(r, (o) => o.getStart(e) < t.start || o.getEnd() > Qc(t) ? "quit" : (zs(o) || nc(o) || Ms(o) || pc(o)) && UC(t, $u(o, e))); } function B9e(e, t) { return ({ start: r, length: i, relatedInformation: o, code: s }) => iy(r) && iy(i) && UC({ start: r, length: i }, e) && s === t && !!o && kt(o, (c) => c.code === _.Did_you_mean_to_mark_this_function_as_async.code); } var F9, QQ, G9e = L({ "src/services/codefixes/addMissingAsync.ts"() { Kr(), yo(), F9 = "addMissingAsync", QQ = [ _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code, _.Type_0_is_not_assignable_to_type_1.code, _.Type_0_is_not_comparable_to_type_1.code ], uo({ fixIds: [F9], errorCodes: QQ, getCodeActions: function(t) { const { sourceFile: r, errorCode: i, cancellationToken: o, program: s, span: c } = t, f = un(s.getTypeChecker().getDiagnostics(r, o), B9e(c, i)), d = f && f.relatedInformation && un(f.relatedInformation, (b) => b.code === _.Did_you_mean_to_mark_this_function_as_async.code), y = sbe(r, d); return y ? [obe(t, y, (b) => hr.ChangeTracker.with(t, b))] : void 0; }, getAllCodeActions: (e) => { const { sourceFile: t } = e, r = /* @__PURE__ */ new Set(); return xs(e, QQ, (i, o) => { const s = o.relatedInformation && un(o.relatedInformation, (d) => d.code === _.Did_you_mean_to_mark_this_function_as_async.code), c = sbe(t, s); return c ? obe(e, c, (d) => (d(i), []), r) : void 0; }); } }); } }); function lbe(e, t, r, i, o) { const s = q$(e, r); return s && U9e(e, t, r, i, o) && dbe(s) ? s : void 0; } function cbe(e, t, r, i, o, s) { const { sourceFile: c, program: f, cancellationToken: d } = e, y = V9e(t, c, d, f, i); if (y) { const m = o((b) => { Ye(y.initializers, ({ expression: A }) => ZQ(b, r, c, i, A, s)), s && y.needsSecondPassForFixAll && ZQ(b, r, c, i, t, s); }); return vp("addMissingAwaitToInitializer", m, y.initializers.length === 1 ? [_.Add_await_to_initializer_for_0, y.initializers[0].declarationSymbol.name] : _.Add_await_to_initializers); } } function ube(e, t, r, i, o, s) { const c = o((f) => ZQ(f, r, e.sourceFile, i, t, s)); return to(B9, c, _.Add_await, B9, _.Fix_all_expressions_possibly_missing_await); } function U9e(e, t, r, i, o) { const c = o.getTypeChecker().getDiagnostics(e, i); return kt(c, ({ start: f, length: d, relatedInformation: y, code: m }) => iy(f) && iy(d) && UC({ start: f, length: d }, r) && m === t && !!y && kt(y, (b) => b.code === _.Did_you_forget_to_use_await.code)); } function V9e(e, t, r, i, o) { const s = j9e(e, o); if (!s) return; let c = s.isCompleteFix, f; for (const d of s.identifiers) { const y = o.getSymbolAtLocation(d); if (!y) continue; const m = ri(y.valueDeclaration, Wi), b = m && ri(m.name, Ve), A = j0(m, 240); if (!m || !A || m.type || !m.initializer || A.getSourceFile() !== t || Jr(A, 1) || !b || !dbe(m.initializer)) { c = !1; continue; } const C = i.getSemanticDiagnostics(t, r); if (ll.Core.eachSymbolReferenceInFile(b, o, t, (O) => d !== O && !H9e(O, C, t, o))) { c = !1; continue; } (f || (f = [])).push({ expression: m.initializer, declarationSymbol: y }); } return f && { initializers: f, needsSecondPassForFixAll: !c }; } function j9e(e, t) { if (Pr(e.parent) && Ve(e.parent.expression)) return { identifiers: [e.parent.expression], isCompleteFix: !0 }; if (Ve(e)) return { identifiers: [e], isCompleteFix: !0 }; if (vr(e)) { let r, i = !0; for (const o of [e.left, e.right]) { const s = t.getTypeAtLocation(o); if (t.getPromisedTypeOfPromise(s)) { if (!Ve(o)) { i = !1; continue; } (r || (r = [])).push(o); } } return r && { identifiers: r, isCompleteFix: i }; } } function H9e(e, t, r, i) { const o = Pr(e.parent) ? e.parent.name : vr(e.parent) ? e.parent : e, s = un(t, (c) => c.start === o.getStart(r) && c.start + c.length === o.getEnd()); return s && Ii(G9, s.code) || i.getTypeAtLocation(o).flags & 1; } function dbe(e) { return e.kind & 32768 || !!nr(e, (t) => t.parent && zs(t.parent) && t.parent.body === t || oo(t) && (t.parent.kind === 259 || t.parent.kind === 215 || t.parent.kind === 216 || t.parent.kind === 171)); } function ZQ(e, t, r, i, o, s) { if (EO(o.parent) && !o.parent.awaitModifier) { const c = i.getTypeAtLocation(o), f = i.getAsyncIterableType(); if (f && i.isTypeAssignableTo(c, f)) { const d = o.parent; e.replaceNode(r, d, N.updateForOfStatement(d, N.createToken(133), d.initializer, d.expression, d.statement)); return; } } if (vr(o)) for (const c of [o.left, o.right]) { if (s && Ve(c)) { const y = i.getSymbolAtLocation(c); if (y && s.has(go(y))) continue; } const f = i.getTypeAtLocation(c), d = i.getPromisedTypeOfPromise(f) ? N.createAwaitExpression(c) : c; e.replaceNode(r, c, d); } else if (t === eZ && Pr(o.parent)) { if (s && Ve(o.parent.expression)) { const c = i.getSymbolAtLocation(o.parent.expression); if (c && s.has(go(c))) return; } e.replaceNode(r, o.parent.expression, N.createParenthesizedExpression(N.createAwaitExpression(o.parent.expression))), fbe(e, o.parent.expression, r); } else if (Ii(tZ, t) && ng(o.parent)) { if (s && Ve(o)) { const c = i.getSymbolAtLocation(o); if (c && s.has(go(c))) return; } e.replaceNode(r, o, N.createParenthesizedExpression(N.createAwaitExpression(o))), fbe(e, o, r); } else { if (s && Wi(o.parent) && Ve(o.parent.name)) { const c = i.getSymbolAtLocation(o.parent.name); if (c && !Yb(s, go(c))) return; } e.replaceNode(r, o, N.createAwaitExpression(o)); } } function fbe(e, t, r) { const i = Tc(t.pos, r); i && zF(i.end, i.parent, r) && e.insertText(r, t.getStart(r), ";"); } var B9, eZ, tZ, G9, W9e = L({ "src/services/codefixes/addMissingAwait.ts"() { Kr(), yo(), B9 = "addMissingAwait", eZ = _.Property_0_does_not_exist_on_type_1.code, tZ = [ _.This_expression_is_not_callable.code, _.This_expression_is_not_constructable.code ], G9 = [ _.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code, _.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code, _.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code, _.Operator_0_cannot_be_applied_to_type_1.code, _.Operator_0_cannot_be_applied_to_types_1_and_2.code, _.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code, _.This_condition_will_always_return_true_since_this_0_is_always_defined.code, _.Type_0_is_not_an_array_type.code, _.Type_0_is_not_an_array_type_or_a_string_type.code, _.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code, _.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code, _.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code, _.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code, _.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code, _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code, eZ, ...tZ ], uo({ fixIds: [B9], errorCodes: G9, getCodeActions: function(t) { const { sourceFile: r, errorCode: i, span: o, cancellationToken: s, program: c } = t, f = lbe(r, i, o, s, c); if (!f) return; const d = t.program.getTypeChecker(), y = (m) => hr.ChangeTracker.with(t, m); return QD([ cbe(t, f, i, d, y), ube(t, f, i, d, y) ]); }, getAllCodeActions: (e) => { const { sourceFile: t, program: r, cancellationToken: i } = e, o = e.program.getTypeChecker(), s = /* @__PURE__ */ new Set(); return xs(e, G9, (c, f) => { const d = lbe(t, f.code, f, i, r); if (!d) return; const y = (m) => (m(c), []); return cbe(e, d, f.code, o, y, s) || ube(e, d, f.code, o, y, s); }); } }); } }); function _be(e, t, r, i, o) { const s = ra(t, r), c = nr(s, (y) => bA(y.parent) ? y.parent.initializer === y : z9e(y) ? !1 : "quit"); if (c) return U9(e, c, t, o); const f = s.parent; if (vr(f) && f.operatorToken.kind === 63 && eu(f.parent)) return U9(e, s, t, o); if (Ru(f)) { const y = i.getTypeChecker(); return Vn(f.elements, (m) => q9e(m, y)) ? U9(e, f, t, o) : void 0; } const d = nr(s, (y) => eu(y.parent) ? !0 : J9e(y) ? !1 : "quit"); if (d) { const y = i.getTypeChecker(); return pbe(d, y) ? U9(e, d, t, o) : void 0; } } function U9(e, t, r, i) { (!i || Yb(i, t)) && e.insertModifierBefore(r, 85, t); } function z9e(e) { switch (e.kind) { case 79: case 206: case 207: case 299: case 300: return !0; default: return !1; } } function q9e(e, t) { const r = Ve(e) ? e : Ku(e, !0) && Ve(e.left) ? e.left : void 0; return !!r && !t.getSymbolAtLocation(r); } function J9e(e) { switch (e.kind) { case 79: case 223: case 27: return !0; default: return !1; } } function pbe(e, t) { return vr(e) ? e.operatorToken.kind === 27 ? Vn([e.left, e.right], (r) => pbe(r, t)) : e.operatorToken.kind === 63 && Ve(e.left) && !t.getSymbolAtLocation(e.left) : !1; } var V9, nZ, K9e = L({ "src/services/codefixes/addMissingConst.ts"() { Kr(), yo(), V9 = "addMissingConst", nZ = [ _.Cannot_find_name_0.code, _.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code ], uo({ errorCodes: nZ, getCodeActions: function(t) { const r = hr.ChangeTracker.with(t, (i) => _be(i, t.sourceFile, t.span.start, t.program)); if (r.length > 0) return [to(V9, r, _.Add_const_to_unresolved_variable, V9, _.Add_const_to_all_unresolved_variables)]; }, fixIds: [V9], getAllCodeActions: (e) => { const t = /* @__PURE__ */ new Set(); return xs(e, nZ, (r, i) => _be(r, i.file, i.start, e.program, t)); } }); } }); function mbe(e, t, r, i) { const o = ra(t, r); if (!Ve(o)) return; const s = o.parent; s.kind === 169 && (!i || Yb(i, s)) && e.insertModifierBefore(t, 136, s); } var j9, rZ, X9e = L({ "src/services/codefixes/addMissingDeclareProperty.ts"() { Kr(), yo(), j9 = "addMissingDeclareProperty", rZ = [ _.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 ], uo({ errorCodes: rZ, getCodeActions: function(t) { const r = hr.ChangeTracker.with(t, (i) => mbe(i, t.sourceFile, t.span.start)); if (r.length > 0) return [to(j9, r, _.Prefix_with_declare, j9, _.Prefix_all_incorrect_property_declarations_with_declare)]; }, fixIds: [j9], getAllCodeActions: (e) => { const t = /* @__PURE__ */ new Set(); return xs(e, rZ, (r, i) => mbe(r, i.file, i.start, t)); } }); } }); function hbe(e, t, r) { const i = ra(t, r), o = nr(i, Du); D.assert(!!o, "Expected position to be owned by a decorator."); const s = N.createCallExpression(o.expression, void 0, void 0); e.replaceNode(t, o.expression, s); } var H9, iZ, Y9e = L({ "src/services/codefixes/addMissingInvocationForDecorator.ts"() { Kr(), yo(), H9 = "addMissingInvocationForDecorator", iZ = [_._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code], uo({ errorCodes: iZ, getCodeActions: function(t) { const r = hr.ChangeTracker.with(t, (i) => hbe(i, t.sourceFile, t.span.start)); return [to(H9, r, _.Call_decorator_expression, H9, _.Add_to_all_uncalled_decorators)]; }, fixIds: [H9], getAllCodeActions: (e) => xs(e, iZ, (t, r) => hbe(t, r.file, r.start)) }); } }); function gbe(e, t, r) { const i = ra(t, r), o = i.parent; if (!Ma(o)) return D.fail("Tried to add a parameter name to a non-parameter: " + D.formatSyntaxKind(i.kind)); const s = o.parent.parameters.indexOf(o); D.assert(!o.type, "Tried to add a parameter name to a parameter that already had one."), D.assert(s > -1, "Parameter not found in parent parameter list."); const c = N.createTypeReferenceNode(o.name, void 0), f = N.createParameterDeclaration(o.modifiers, o.dotDotDotToken, "arg" + s, o.questionToken, o.dotDotDotToken ? N.createArrayTypeNode(c) : c, o.initializer); e.replaceNode(t, o, f); } var W9, aZ, $9e = L({ "src/services/codefixes/addNameToNamelessParameter.ts"() { Kr(), yo(), W9 = "addNameToNamelessParameter", aZ = [_.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code], uo({ errorCodes: aZ, getCodeActions: function(t) { const r = hr.ChangeTracker.with(t, (i) => gbe(i, t.sourceFile, t.span.start)); return [to(W9, r, _.Add_parameter_name, W9, _.Add_names_to_all_parameters_without_names)]; }, fixIds: [W9], getAllCodeActions: (e) => xs(e, aZ, (t, r) => gbe(t, r.file, r.start)) }); } }); function Q9e(e, t, r) { var i, o; const s = ybe(q$(e, t), r); if (!s) return nt; const { source: c, target: f } = s, d = Z9e(c, f, r) ? r.getTypeAtLocation(f.expression) : r.getTypeAtLocation(f); return (o = (i = d.symbol) == null ? void 0 : i.declarations) != null && o.some((y) => Zn(y).fileName.match(/\.d\.ts$/)) ? nt : r.getExactOptionalProperties(d); } function Z9e(e, t, r) { return Pr(t) && !!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length && r.getTypeAtLocation(e) === r.getUndefinedType(); } function ybe(e, t) { var r; if (e) { if (vr(e.parent) && e.parent.operatorToken.kind === 63) return { source: e.parent.right, target: e.parent.left }; if (Wi(e.parent) && e.parent.initializer) return { source: e.parent.initializer, target: e.parent.name }; if (eo(e.parent)) { const i = t.getSymbolAtLocation(e.parent.expression); if (!(i != null && i.valueDeclaration) || !HS(i.valueDeclaration.kind) || !yt(e)) return; const o = e.parent.arguments.indexOf(e); if (o === -1) return; const s = i.valueDeclaration.parameters[o].name; if (Ve(s)) return { source: e, target: s }; } else if (Uc(e.parent) && Ve(e.parent.name) || Xf(e.parent)) { const i = ybe(e.parent.parent, t); if (!i) return; const o = t.getPropertyOfType(t.getTypeAtLocation(i.target), e.parent.name.text), s = (r = o == null ? void 0 : o.declarations) == null ? void 0 : r[0]; return s ? { source: Uc(e.parent) ? e.parent.initializer : e.parent.name, target: s } : void 0; } } else return; } function eBe(e, t) { for (const r of t) { const i = r.valueDeclaration; if (i && (Tf(i) || Za(i)) && i.type) { const o = N.createUnionTypeNode([ ...i.type.kind === 189 ? i.type.types : [i.type], N.createTypeReferenceNode("undefined") ]); e.replaceNode(i.getSourceFile(), i.type, o); } } } var oZ, vbe, tBe = L({ "src/services/codefixes/addOptionalPropertyUndefined.ts"() { Kr(), yo(), oZ = "addOptionalPropertyUndefined", vbe = [ _.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code, _.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code, _.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 ], uo({ errorCodes: vbe, getCodeActions(e) { const t = e.program.getTypeChecker(), r = Q9e(e.sourceFile, e.span, t); if (!r.length) return; const i = hr.ChangeTracker.with(e, (o) => eBe(o, r)); return [vp(oZ, i, _.Add_undefined_to_optional_property_type)]; }, fixIds: [oZ] }); } }); function bbe(e, t) { const r = ra(e, t); return ri(Ma(r.parent) ? r.parent.parent : r.parent, Ebe); } function Ebe(e) { return nBe(e) && Tbe(e); } function Tbe(e) { return Ys(e) ? e.parameters.some(Tbe) || !e.type && !!NR(e) : !e.type && !!vv(e); } function Sbe(e, t, r) { if (Ys(r) && (NR(r) || r.parameters.some((i) => !!vv(i)))) { if (!r.typeParameters) { const o = f3(r); o.length && e.insertTypeParameters(t, r, o); } const i = zs(r) && !ys(r, 20, t); i && e.insertNodeBefore(t, ss(r.parameters), N.createToken(20)); for (const o of r.parameters) if (!o.type) { const s = vv(o); s && e.tryInsertTypeAnnotation(t, o, st(s, rb, Pi)); } if (i && e.insertNodeAfter(t, Ho(r.parameters), N.createToken(21)), !r.type) { const o = NR(r); o && e.tryInsertTypeAnnotation(t, r, st(o, rb, Pi)); } } else { const i = D.checkDefined(vv(r), "A JSDocType for this declaration should exist"); D.assert(!r.type, "The JSDocType decl should have a type"), e.tryInsertTypeAnnotation(t, r, st(i, rb, Pi)); } } function nBe(e) { return Ys(e) || e.kind === 257 || e.kind === 168 || e.kind === 169; } function rb(e) { switch (e.kind) { case 315: case 316: return N.createTypeReferenceNode("any", nt); case 319: return iBe(e); case 318: return rb(e.type); case 317: return aBe(e); case 321: return oBe(e); case 320: return sBe(e); case 180: return cBe(e); case 325: return rBe(e); default: const t = Bn(e, rb, pg); return or(t, 1), t; } } function rBe(e) { const t = N.createTypeLiteralNode(rn(e.jsDocPropertyTags, (r) => N.createPropertySignature(void 0, Ve(r.name) ? r.name : r.name.right, ZN(r) ? N.createToken(57) : void 0, r.typeExpression && st(r.typeExpression.type, rb, Pi) || N.createKeywordTypeNode(131)))); return or(t, 1), t; } function iBe(e) { return N.createUnionTypeNode([st(e.type, rb, Pi), N.createTypeReferenceNode("undefined", nt)]); } function aBe(e) { return N.createUnionTypeNode([st(e.type, rb, Pi), N.createTypeReferenceNode("null", nt)]); } function oBe(e) { return N.createArrayTypeNode(st(e.type, rb, Pi)); } function sBe(e) { var t; return N.createFunctionTypeNode(nt, e.parameters.map(lBe), (t = e.type) != null ? t : N.createKeywordTypeNode(131)); } function lBe(e) { const t = e.parent.parameters.indexOf(e), r = e.type.kind === 321 && t === e.parent.parameters.length - 1, i = e.name || (r ? "rest" : "arg" + t), o = r ? N.createToken(25) : e.dotDotDotToken; return N.createParameterDeclaration(e.modifiers, o, i, e.questionToken, st(e.type, rb, Pi), e.initializer); } function cBe(e) { let t = e.typeName, r = e.typeArguments; if (Ve(e.typeName)) { if ($M(e)) return uBe(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 = N.createIdentifier(i), (i === "Array" || i === "Promise") && !e.typeArguments ? r = N.createNodeArray([N.createTypeReferenceNode("any", nt)]) : r = Kn(e.typeArguments, rb, Pi); } return N.createTypeReferenceNode(t, r); } function uBe(e) { const t = N.createParameterDeclaration(void 0, void 0, e.typeArguments[0].kind === 148 ? "n" : "s", void 0, N.createTypeReferenceNode(e.typeArguments[0].kind === 148 ? "number" : "string", []), void 0), r = N.createTypeLiteralNode([N.createIndexSignature(void 0, [t], e.typeArguments[1])]); return or(r, 1), r; } var z9, sZ, dBe = L({ "src/services/codefixes/annotateWithTypeFromJSDoc.ts"() { Kr(), yo(), z9 = "annotateWithTypeFromJSDoc", sZ = [_.JSDoc_types_may_be_moved_to_TypeScript_types.code], uo({ errorCodes: sZ, getCodeActions(e) { const t = bbe(e.sourceFile, e.span.start); if (!t) return; const r = hr.ChangeTracker.with(e, (i) => Sbe(i, e.sourceFile, t)); return [to(z9, r, _.Annotate_with_type_from_JSDoc, z9, _.Annotate_everything_with_types_from_JSDoc)]; }, fixIds: [z9], getAllCodeActions: (e) => xs(e, sZ, (t, r) => { const i = bbe(r.file, r.start); i && Sbe(t, r.file, i); }) }); } }); function xbe(e, t, r, i, o, s) { const c = i.getSymbolAtLocation(ra(t, r)); if (!c || !c.valueDeclaration || !(c.flags & 19)) return; const f = c.valueDeclaration; if (pc(f) || Ms(f)) e.replaceNode(t, f, m(f)); else if (Wi(f)) { const b = y(f); if (!b) return; const A = f.parent.parent; Ou(f.parent) && f.parent.declarations.length > 1 ? (e.delete(t, f), e.insertNodeAfter(t, A, b)) : e.replaceNode(t, A, b); } function d(b) { const A = []; return b.exports && b.exports.forEach((O) => { if (O.name === "prototype" && O.declarations) { const k = O.declarations[0]; if (O.declarations.length === 1 && Pr(k) && vr(k.parent) && k.parent.operatorToken.kind === 63 && As(k.parent.right)) { const B = k.parent.right; I(B.symbol, void 0, A); } } else I(O, [N.createToken(124)], A); }), b.members && b.members.forEach((O, k) => { var B, U, j, te; if (k === "constructor" && O.valueDeclaration) { const X = (te = (j = (U = (B = b.exports) == null ? void 0 : B.get("prototype")) == null ? void 0 : U.declarations) == null ? void 0 : j[0]) == null ? void 0 : te.parent; X && vr(X) && As(X.right) && kt(X.right.properties, J9) || e.delete(t, O.valueDeclaration.parent); return; } I(O, void 0, A); }), A; function C(O, k) { return ol(O) ? Pr(O) && J9(O) ? !0 : qa(k) : Vn(O.properties, (B) => !!(nc(B) || fM(B) || Uc(B) && Ms(B.initializer) && B.name || J9(B))); } function I(O, k, B) { if (!(O.flags & 8192) && !(O.flags & 4096)) return; const U = O.valueDeclaration, j = U.parent, te = j.right; if (!C(U, te) || kt(B, (ne) => { const ge = La(ne); return !!(ge && Ve(ge) && Or(ge) === Nl(O)); })) return; const X = j.parent && j.parent.kind === 241 ? j.parent : j; if (e.delete(t, X), !te) { B.push(N.createPropertyDeclaration(k, O.name, void 0, void 0, void 0)); return; } if (ol(U) && (Ms(te) || zs(te))) { const ne = yp(t, o), ge = fBe(U, s, ne); ge && Y(B, te, ge); return; } else if (As(te)) { Ye(te.properties, (ne) => { (nc(ne) || fM(ne)) && B.push(ne), Uc(ne) && Ms(ne.initializer) && Y(B, ne.initializer, ne.name), J9(ne); }); return; } else { if (Ju(t) || !Pr(U)) return; const ne = N.createPropertyDeclaration(k, U.name, void 0, void 0, te); jC(j.parent, ne, t), B.push(ne); return; } function Y(ne, ge, ie) { return Ms(ge) ? P(ne, ge, ie) : ue(ne, ge, ie); } function P(ne, ge, ie) { const H = ha(k, q9(ge, 132)), le = N.createMethodDeclaration(H, void 0, ie, void 0, void 0, ge.parameters, void 0, ge.body); jC(j, le, t), ne.push(le); } function ue(ne, ge, ie) { const H = ge.body; let le; H.kind === 238 ? le = H : le = N.createBlock([N.createReturnStatement(H)]); const pe = ha(k, q9(ge, 132)), ye = N.createMethodDeclaration(pe, void 0, ie, void 0, void 0, ge.parameters, void 0, le); jC(j, ye, t), ne.push(ye); } } } function y(b) { const A = b.initializer; if (!A || !Ms(A) || !Ve(b.name)) return; const C = d(b.symbol); A.body && C.unshift(N.createConstructorDeclaration(void 0, A.parameters, A.body)); const I = q9(b.parent.parent, 93); return N.createClassDeclaration(I, b.name, void 0, void 0, C); } function m(b) { const A = d(c); b.body && A.unshift(N.createConstructorDeclaration(void 0, b.parameters, b.body)); const C = q9(b, 93); return N.createClassDeclaration(C, b.name, void 0, void 0, A); } } function q9(e, t) { return H_(e) ? yn(e.modifiers, (r) => r.kind === t) : void 0; } function J9(e) { return e.name ? !!(Ve(e.name) && e.name.text === "constructor") : !1; } function fBe(e, t, r) { if (Pr(e)) return e.name; const i = e.argumentExpression; if (__(i)) return i; if (Ts(i)) return w_(i.text, $o(t)) ? N.createIdentifier(i.text) : px(i) ? N.createStringLiteral(i.text, r === 0) : i; } var K9, lZ, _Be = L({ "src/services/codefixes/convertFunctionToEs6Class.ts"() { Kr(), yo(), K9 = "convertFunctionToEs6Class", lZ = [_.This_constructor_function_may_be_converted_to_a_class_declaration.code], uo({ errorCodes: lZ, getCodeActions(e) { const t = hr.ChangeTracker.with(e, (r) => xbe(r, e.sourceFile, e.span.start, e.program.getTypeChecker(), e.preferences, e.program.getCompilerOptions())); return [to(K9, t, _.Convert_function_to_an_ES2015_class, K9, _.Convert_all_constructor_functions_to_classes)]; }, fixIds: [K9], getAllCodeActions: (e) => xs(e, lZ, (t, r) => xbe(t, r.file, r.start, e.program.getTypeChecker(), e.preferences, e.program.getCompilerOptions())) }); } }); function Abe(e, t, r, i) { const o = ra(t, r); let s; if (Ve(o) && Wi(o.parent) && o.parent.initializer && Ys(o.parent.initializer) ? s = o.parent.initializer : s = ri(bf(ra(t, r)), vQ), !s) return; const c = /* @__PURE__ */ new Map(), f = dr(s), d = mBe(s, i), y = hBe(s, i, c); if (!gQ(y, i)) return; const m = y.body && oo(y.body) ? pBe(y.body, i) : nt, b = { checker: i, synthNamesMap: c, setOfExpressionsToReturn: d, isInJSFile: f }; if (!m.length) return; const A = zo(t.text, qp(s).pos); e.insertModifierAt(t, A, 132, { suffix: " " }); for (const C of m) if (Oa(C, function I(O) { if (eo(O)) { const k = Jx(O, O, b, !1); if (zT()) return !0; e.replaceNodeWithNodes(t, C, k); } else if (!qa(O) && (Oa(O, I), zT())) return !0; }), zT()) return; } function pBe(e, t) { const r = []; return iT(e, (i) => { p9(i, t) && r.push(i); }), r; } function mBe(e, t) { if (!e.body) return /* @__PURE__ */ new Set(); const r = /* @__PURE__ */ new Set(); return Oa(e.body, function i(o) { pw(o, t, "then") ? (r.add(ds(o)), Ye(o.arguments, i)) : pw(o, t, "catch") || pw(o, t, "finally") ? (r.add(ds(o)), Oa(o, i)) : Lbe(o, t) ? r.add(ds(o)) : Oa(o, i); }), r; } function pw(e, t, r) { if (!eo(e)) return !1; const o = F8(e, r) && t.getTypeAtLocation(e); return !!(o && t.getPromisedTypeOfPromise(o)); } function Cbe(e, t) { return (Qr(e) & 4) !== 0 && e.target === t; } function X9(e, t, r) { if (e.expression.name.escapedText === "finally") return; const i = r.getTypeAtLocation(e.expression.expression); if (Cbe(i, r.getPromiseType()) || Cbe(i, r.getPromiseLikeType())) if (e.expression.name.escapedText === "then") { if (t === ay(e.arguments, 0)) return ay(e.typeArguments, 0); if (t === ay(e.arguments, 1)) return ay(e.typeArguments, 1); } else return ay(e.typeArguments, 0); } function Lbe(e, t) { return yt(e) ? !!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)) : !1; } function hBe(e, t, r) { const i = /* @__PURE__ */ new Map(), o = o_(); return Oa(e, function s(c) { if (!Ve(c)) { Oa(c, s); return; } const f = t.getSymbolAtLocation(c); if (f) { const d = t.getTypeAtLocation(c), y = Nbe(d, t), m = go(f).toString(); if (y && !Ma(c.parent) && !Ys(c.parent) && !r.has(m)) { const b = Wc(y.parameters), A = (b == null ? void 0 : b.valueDeclaration) && Ma(b.valueDeclaration) && ri(b.valueDeclaration.name, Ve) || N.createUniqueName("result", 16), C = Ibe(A, o); r.set(m, C), o.add(A.text, f); } else if (c.parent && (Ma(c.parent) || Wi(c.parent) || us(c.parent))) { const b = c.text, A = o.get(b); if (A && A.some((C) => C !== f)) { const C = Ibe(c, o); i.set(m, C.identifier), r.set(m, C), o.add(b, f); } else { const C = Il(c); r.set(m, zC(C)), o.add(b, f); } } } }), e6(e, !0, (s) => { if (us(s) && Ve(s.name) && Bm(s.parent)) { const c = t.getSymbolAtLocation(s.name), f = c && i.get(String(go(c))); if (f && f.text !== (s.name || s.propertyName).getText()) return N.createBindingElement(s.dotDotDotToken, s.propertyName || s.name, f, s.initializer); } else if (Ve(s)) { const c = t.getSymbolAtLocation(s), f = c && i.get(String(go(c))); if (f) return N.createIdentifier(f.text); } }); } function Ibe(e, t) { const r = (t.get(e.text) || nt).length, i = r === 0 ? e : N.createIdentifier(e.text + "_" + r); return zC(i); } function zT() { return !f6; } function zv() { return f6 = !1, nt; } function Jx(e, t, r, i, o) { if (pw(t, r.checker, "then")) return vBe(t, ay(t.arguments, 0), ay(t.arguments, 1), r, i, o); if (pw(t, r.checker, "catch")) return Dbe(t, ay(t.arguments, 0), r, i, o); if (pw(t, r.checker, "finally")) return yBe(t, ay(t.arguments, 0), r, i, o); if (Pr(t)) return Jx(e, t.expression, r, i, o); const s = r.checker.getTypeAtLocation(t); return s && r.checker.getPromisedTypeOfPromise(s) ? (D.assertNode(bl(t).parent, Pr), bBe(e, t, r, i, o)) : zv(); } function Y9({ checker: e }, t) { if (t.kind === 104) return !0; if (Ve(t) && !El(t) && Or(t) === "undefined") { const r = e.getSymbolAtLocation(t); return !r || e.isUndefinedSymbol(r); } return !1; } function gBe(e) { const t = N.createUniqueName(e.identifier.text, 16); return zC(t); } function kbe(e, t, r) { let i; return r && !hw(e, t) && (mw(r) ? (i = r, t.synthNamesMap.forEach((o, s) => { if (o.identifier.text === r.identifier.text) { const c = gBe(r); t.synthNamesMap.set(s, c); } })) : i = zC(N.createUniqueName("result", 16), r.types), fZ(i)), i; } function wbe(e, t, r, i, o) { const s = []; let c; if (i && !hw(e, t)) { c = Il(fZ(i)); const f = i.types, d = t.checker.getUnionType(f, 2), y = t.isInJSFile ? void 0 : t.checker.typeToTypeNode(d, void 0, void 0), m = [N.createVariableDeclaration(c, void 0, y)], b = N.createVariableStatement(void 0, N.createVariableDeclarationList(m, 1)); s.push(b); } return s.push(r), o && c && SBe(o) && s.push(N.createVariableStatement(void 0, N.createVariableDeclarationList([ N.createVariableDeclaration(Il(Fbe(o)), void 0, void 0, c) ], 2))), s; } function yBe(e, t, r, i, o) { if (!t || Y9(r, t)) return Jx(e, e.expression.expression, r, i, o); const s = kbe(e, r, o), c = Jx(e, e.expression.expression, r, !0, s); if (zT()) return zv(); const f = uZ(t, i, void 0, void 0, e, r); if (zT()) return zv(); const d = N.createBlock(c), y = N.createBlock(f), m = N.createTryStatement(d, void 0, y); return wbe(e, r, m, s, o); } function Dbe(e, t, r, i, o) { if (!t || Y9(r, t)) return Jx(e, e.expression.expression, r, i, o); const s = Pbe(t, r), c = kbe(e, r, o), f = Jx(e, e.expression.expression, r, !0, c); if (zT()) return zv(); const d = uZ(t, i, c, s, e, r); if (zT()) return zv(); const y = N.createBlock(f), m = N.createCatchClause(s && Il(d6(s)), N.createBlock(d)), b = N.createTryStatement(y, m, void 0); return wbe(e, r, b, c, o); } function vBe(e, t, r, i, o, s) { if (!t || Y9(i, t)) return Dbe(e, r, i, o, s); if (r && !Y9(i, r)) return zv(); const c = Pbe(t, i), f = Jx(e.expression.expression, e.expression.expression, i, !0, c); if (zT()) return zv(); const d = uZ(t, o, s, c, e, i); return zT() ? zv() : ha(f, d); } function bBe(e, t, r, i, o) { if (hw(e, r)) { let s = Il(t); return i && (s = N.createAwaitExpression(s)), [N.createReturnStatement(s)]; } return $9(o, N.createAwaitExpression(t), void 0); } function $9(e, t, r) { return !e || Mbe(e) ? [N.createExpressionStatement(t)] : mw(e) && e.hasBeenDeclared ? [N.createExpressionStatement(N.createAssignment(Il(dZ(e)), t))] : [ N.createVariableStatement(void 0, N.createVariableDeclarationList([ N.createVariableDeclaration(Il(d6(e)), void 0, r, t) ], 2)) ]; } function cZ(e, t) { if (t && e) { const r = N.createUniqueName("result", 16); return [ ...$9(zC(r), e, t), N.createReturnStatement(r) ]; } return [N.createReturnStatement(e)]; } function uZ(e, t, r, i, o, s) { var c; switch (e.kind) { case 104: break; case 208: case 79: if (!i) break; const f = N.createCallExpression(Il(e), void 0, mw(i) ? [dZ(i)] : []); if (hw(o, s)) return cZ(f, X9(o, e, s.checker)); const d = s.checker.getTypeAtLocation(e), y = s.checker.getSignaturesOfType(d, 0); if (!y.length) return zv(); const m = y[0].getReturnType(), b = $9(r, N.createAwaitExpression(f), X9(o, e, s.checker)); return r && r.types.push(s.checker.getAwaitedType(m) || m), b; case 215: case 216: { const A = e.body, C = (c = Nbe(s.checker.getTypeAtLocation(e), s.checker)) == null ? void 0 : c.getReturnType(); if (oo(A)) { let I = [], O = !1; for (const k of A.statements) if (pp(k)) if (O = !0, p9(k, s.checker)) I = I.concat(Obe(s, k, t, r)); else { const B = C && k.expression ? Rbe(s.checker, C, k.expression) : k.expression; I.push(...cZ(B, X9(o, e, s.checker))); } else { if (t && iT(k, Zb)) return zv(); I.push(k); } return hw(o, s) ? I.map((k) => Il(k)) : EBe(I, r, s, O); } else { const I = yQ(A, s.checker) ? Obe(s, N.createReturnStatement(A), t, r) : nt; if (I.length > 0) return I; if (C) { const O = Rbe(s.checker, C, A); if (hw(o, s)) return cZ(O, X9(o, e, s.checker)); { const k = $9(r, O, void 0); return r && r.types.push(s.checker.getAwaitedType(C) || C), k; } } else return zv(); } } default: return zv(); } return nt; } function Rbe(e, t, r) { const i = Il(r); return e.getPromisedTypeOfPromise(t) ? N.createAwaitExpression(i) : i; } function Nbe(e, t) { const r = t.getSignaturesOfType(e, 0); return Zs(r); } function EBe(e, t, r, i) { const o = []; for (const s of e) if (pp(s)) { if (s.expression) { const c = Lbe(s.expression, r.checker) ? N.createAwaitExpression(s.expression) : s.expression; t === void 0 ? o.push(N.createExpressionStatement(c)) : mw(t) && t.hasBeenDeclared ? o.push(N.createExpressionStatement(N.createAssignment(dZ(t), c))) : o.push(N.createVariableStatement(void 0, N.createVariableDeclarationList([N.createVariableDeclaration(d6(t), void 0, void 0, c)], 2))); } } else o.push(Il(s)); return !i && t !== void 0 && o.push(N.createVariableStatement(void 0, N.createVariableDeclarationList([N.createVariableDeclaration(d6(t), void 0, void 0, N.createIdentifier("undefined"))], 2))), o; } function Obe(e, t, r, i) { let o = []; return Oa(t, function s(c) { if (eo(c)) { const f = Jx(c, c, e, r, i); if (o = o.concat(f), o.length > 0) return; } else qa(c) || Oa(c, s); }), o; } function Pbe(e, t) { const r = []; let i; if (Ys(e)) { if (e.parameters.length > 0) { const d = e.parameters[0].name; i = o(d); } } else Ve(e) ? i = s(e) : Pr(e) && Ve(e.name) && (i = s(e.name)); if (!i || "identifier" in i && i.identifier.text === "undefined") return; return i; function o(d) { if (Ve(d)) return s(d); const y = Mo(d.elements, (m) => Ic(m) ? [] : [o(m.name)]); return TBe(d, y); } function s(d) { const y = f(d), m = c(y); return m && t.synthNamesMap.get(go(m).toString()) || zC(d, r); } function c(d) { var y, m; return (m = (y = ri(d, Lm)) == null ? void 0 : y.symbol) != null ? m : t.checker.getSymbolAtLocation(d); } function f(d) { return d.original ? d.original : d; } } function Mbe(e) { return e ? mw(e) ? !e.identifier.text : Vn(e.elements, Mbe) : !0; } function zC(e, t = []) { return { kind: 0, identifier: e, types: t, hasBeenDeclared: !1, hasBeenReferenced: !1 }; } function TBe(e, t = nt, r = []) { return { kind: 1, bindingPattern: e, elements: t, types: r }; } function dZ(e) { return e.hasBeenReferenced = !0, e.identifier; } function d6(e) { return mw(e) ? fZ(e) : Fbe(e); } function Fbe(e) { for (const t of e.elements) d6(t); return e.bindingPattern; } function fZ(e) { return e.hasBeenDeclared = !0, e.identifier; } function mw(e) { return e.kind === 0; } function SBe(e) { return e.kind === 1; } function hw(e, t) { return !!e.original && t.setOfExpressionsToReturn.has(ds(e.original)); } var Q9, _Z, f6, xBe = L({ "src/services/codefixes/convertToAsyncFunction.ts"() { Kr(), yo(), Q9 = "convertToAsyncFunction", _Z = [_.This_may_be_converted_to_an_async_function.code], f6 = !0, uo({ errorCodes: _Z, getCodeActions(e) { f6 = !0; const t = hr.ChangeTracker.with(e, (r) => Abe(r, e.sourceFile, e.span.start, e.program.getTypeChecker())); return f6 ? [to(Q9, t, _.Convert_to_async_function, Q9, _.Convert_all_to_async_functions)] : []; }, fixIds: [Q9], getAllCodeActions: (e) => xs(e, _Z, (t, r) => Abe(t, r.file, r.start, e.program.getTypeChecker())) }); } }); function ABe(e, t, r, i) { for (const o of e.imports) { const s = SA(e, o.text, hp(e, o)); if (!s || s.resolvedFileName !== t.fileName) continue; const c = _N(o); switch (c.kind) { case 268: r.replaceNode(e, c, Ly(c.name, void 0, o, i)); break; case 210: vd(c, !1) && r.replaceNode(e, c, N.createPropertyAccessExpression(Il(c), "default")); break; } } } function CBe(e, t, r, i, o) { const s = { original: GBe(e), additional: /* @__PURE__ */ new Set() }, c = LBe(e, t, s); IBe(e, c, r); let f = !1, d; for (const y of yn(e.statements, sc)) { const m = Gbe(e, y, r, t, s, i, o); m && WR(m, d ?? (d = /* @__PURE__ */ new Map())); } for (const y of yn(e.statements, (m) => !sc(m))) { const m = kBe(e, y, t, r, s, i, c, d, o); f = f || m; } return d == null || d.forEach((y, m) => { r.replaceNode(e, m, y); }), f; } function LBe(e, t, r) { const i = /* @__PURE__ */ new Map(); return Bbe(e, (o) => { const { text: s } = o.name; !i.has(s) && (a3(o.name) || t.resolveName(s, o, 111551, !0)) && i.set(s, Z9(`_${s}`, r)); }), i; } function IBe(e, t, r) { Bbe(e, (i, o) => { if (o) return; const { text: s } = i.name; r.replaceNode(e, i, N.createIdentifier(t.get(s) || s)); }); } function Bbe(e, t) { e.forEachChild(function r(i) { if (Pr(i) && O1(e, i.expression) && Ve(i.name)) { const { parent: o } = i; t(i, vr(o) && o.left === i && o.operatorToken.kind === 63); } i.forEachChild(r); }); } function kBe(e, t, r, i, o, s, c, f, d) { switch (t.kind) { case 240: return Gbe(e, t, i, r, o, s, d), !1; case 241: { const { expression: y } = t; switch (y.kind) { case 210: return vd(y, !0) && i.replaceNode(e, t, Ly(void 0, void 0, y.arguments[0], d)), !1; case 223: { const { operatorToken: m } = y; return m.kind === 63 && DBe(e, r, y, i, c, f); } } } default: return !1; } } function Gbe(e, t, r, i, o, s, c) { const { declarationList: f } = t; let d = !1; const y = rn(f.declarations, (m) => { const { name: b, initializer: A } = m; if (A) { if (O1(e, A)) return d = !0, qC([]); if (vd(A, !0)) return d = !0, FBe(b, A.arguments[0], i, o, s, c); if (Pr(A) && vd(A.expression, !0)) return d = !0, wBe(b, A.name.text, A.expression.arguments[0], o, c); } return qC([N.createVariableStatement(void 0, N.createVariableDeclarationList([m], f.flags))]); }); if (d) { r.replaceNodeWithNodes(e, t, Mo(y, (b) => b.newImports)); let m; return Ye(y, (b) => { b.useSitesToUnqualify && WR(b.useSitesToUnqualify, m ?? (m = /* @__PURE__ */ new Map())); }), m; } } function wBe(e, t, r, i, o) { switch (e.kind) { case 203: case 204: { const s = Z9(t, i); return qC([ Hbe(s, t, r, o), eB(void 0, e, N.createIdentifier(s)) ]); } case 79: return qC([Hbe(e.text, t, r, o)]); default: return D.assertNever(e, `Convert to ES module got invalid syntax form ${e.kind}`); } } function DBe(e, t, r, i, o, s) { const { left: c, right: f } = r; if (!Pr(c)) return !1; if (O1(e, c)) if (O1(e, f)) i.delete(e, r.parent); else { const d = As(f) ? RBe(f, s) : vd(f, !0) ? OBe(f.arguments[0], t) : void 0; return d ? (i.replaceNodeWithNodes(e, r.parent, d[0]), d[1]) : (i.replaceRangeWithText(e, u_(c.getStart(e), f.pos), "export default"), !0); } else O1(e, c.expression) && NBe(e, r, i, o); return !1; } function RBe(e, t) { const r = JD(e.properties, (i) => { switch (i.kind) { case 174: case 175: case 300: case 301: return; case 299: return Ve(i.name) ? MBe(i.name.text, i.initializer, t) : void 0; case 171: return Ve(i.name) ? jbe(i.name.text, [N.createToken(93)], i, t) : void 0; default: D.assertNever(i, `Convert to ES6 got invalid prop kind ${i.kind}`); } }); return r && [r, !1]; } function NBe(e, t, r, i) { const { text: o } = t.left.name, s = i.get(o); if (s !== void 0) { const c = [ eB(void 0, s, t.right), hZ([N.createExportSpecifier(!1, s, o)]) ]; r.replaceNodeWithNodes(e, t.parent, c); } else PBe(t, e, r); } function OBe(e, t) { const r = e.text, i = t.getSymbolAtLocation(e), o = i ? i.exports : DP; return o.has("export=") ? [[pZ(r)], !0] : o.has("default") ? o.size > 1 ? [[Ube(r), pZ(r)], !0] : [[pZ(r)], !0] : [[Ube(r)], !1]; } function Ube(e) { return hZ(void 0, e); } function pZ(e) { return hZ([N.createExportSpecifier(!1, void 0, "default")], e); } function PBe({ left: e, right: t, parent: r }, i, o) { const s = e.name.text; if ((Ms(t) || zs(t) || Nu(t)) && (!t.name || t.name.text === s)) { o.replaceRange(i, { pos: e.getStart(i), end: t.getStart(i) }, N.createToken(93), { suffix: " " }), t.name || o.insertName(i, t, s); const c = ys(r, 26, i); c && o.delete(i, c); } else o.replaceNodeRangeWithNodes(i, e.expression, ys(e, 24, i), [N.createToken(93), N.createToken(85)], { joiner: " ", suffix: " " }); } function MBe(e, t, r) { const i = [N.createToken(93)]; switch (t.kind) { case 215: { const { name: s } = t; if (s && s.text !== e) return o(); } case 216: return jbe(e, i, t, r); case 228: return VBe(e, i, t, r); default: return o(); } function o() { return eB(i, N.createIdentifier(e), mZ(t, r)); } } function mZ(e, t) { if (!t || !kt(ko(t.keys()), (i) => af(e, i))) return e; return Ga(e) ? M$(e, !0, r) : e6(e, !0, r); function r(i) { if (i.kind === 208) { const o = t.get(i); return t.delete(i), o; } } } function FBe(e, t, r, i, o, s) { switch (e.kind) { case 203: { const c = JD(e.elements, (f) => f.dotDotDotToken || f.initializer || f.propertyName && !Ve(f.propertyName) || !Ve(f.name) ? void 0 : Wbe(f.propertyName && f.propertyName.text, f.name.text)); if (c) return qC([Ly(void 0, c, t, s)]); } case 204: { const c = Z9(LZ(t.text, o), i); return qC([ Ly(N.createIdentifier(c), void 0, t, s), eB(void 0, Il(e), N.createIdentifier(c)) ]); } case 79: return BBe(e, t, r, i, s); default: return D.assertNever(e, `Convert to ES module got invalid name kind ${e.kind}`); } } function BBe(e, t, r, i, o) { const s = r.getSymbolAtLocation(e), c = /* @__PURE__ */ new Map(); let f = !1, d; for (const m of i.original.get(e.text)) { if (r.getSymbolAtLocation(m) !== s || m === e) continue; const { parent: b } = m; if (Pr(b)) { const { name: { text: A } } = b; if (A === "default") { f = !0; const C = m.getText(); (d ?? (d = /* @__PURE__ */ new Map())).set(b, N.createIdentifier(C)); } else { D.assert(b.expression === m, "Didn't expect expression === use"); let C = c.get(A); C === void 0 && (C = Z9(A, i), c.set(A, C)), (d ?? (d = /* @__PURE__ */ new Map())).set(b, N.createIdentifier(C)); } } else f = !0; } const y = c.size === 0 ? void 0 : ko(Fp(c.entries(), ([m, b]) => N.createImportSpecifier(!1, m === b ? void 0 : N.createIdentifier(m), N.createIdentifier(b)))); return y || (f = !0), qC([Ly(f ? Il(e) : void 0, y, t, o)], d); } function Z9(e, t) { for (; t.original.has(e) || t.additional.has(e); ) e = `_${e}`; return t.additional.add(e), e; } function GBe(e) { const t = o_(); return Vbe(e, (r) => t.add(r.text, r)), t; } function Vbe(e, t) { Ve(e) && UBe(e) && t(e), e.forEachChild((r) => Vbe(r, t)); } function UBe(e) { const { parent: t } = e; switch (t.kind) { case 208: return t.name !== e; case 205: return t.propertyName !== e; case 273: return t.propertyName !== e; default: return !0; } } function jbe(e, t, r, i) { return N.createFunctionDeclaration(ha(t, H1(r.modifiers)), Il(r.asteriskToken), e, H1(r.typeParameters), H1(r.parameters), Il(r.type), N.converters.convertToFunctionBlock(mZ(r.body, i))); } function VBe(e, t, r, i) { return N.createClassDeclaration(ha(t, H1(r.modifiers)), e, H1(r.typeParameters), H1(r.heritageClauses), mZ(r.members, i)); } function Hbe(e, t, r, i) { return t === "default" ? Ly(N.createIdentifier(e), void 0, r, i) : Ly(void 0, [Wbe(t, e)], r, i); } function Wbe(e, t) { return N.createImportSpecifier(!1, e !== void 0 && e !== t ? N.createIdentifier(e) : void 0, N.createIdentifier(t)); } function eB(e, t, r) { return N.createVariableStatement(e, N.createVariableDeclarationList([N.createVariableDeclaration(t, void 0, void 0, r)], 2)); } function hZ(e, t) { return N.createExportDeclaration(void 0, !1, e && N.createNamedExports(e), t === void 0 ? void 0 : N.createStringLiteral(t)); } function qC(e, t) { return { newImports: e, useSitesToUnqualify: t }; } var jBe = L({ "src/services/codefixes/convertToEsModule.ts"() { Kr(), yo(), uo({ errorCodes: [_.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code], getCodeActions(e) { const { sourceFile: t, program: r, preferences: i } = e, o = hr.ChangeTracker.with(e, (s) => { if (CBe(t, r.getTypeChecker(), s, $o(r.getCompilerOptions()), yp(t, i))) for (const f of r.getSourceFiles()) ABe(f, t, s, yp(f, i)); }); return [vp("convertToEsModule", o, _.Convert_to_ES_module)]; } }); } }); function zbe(e, t) { const r = nr(ra(e, t), Ed); return D.assert(!!r, "Expected position to be owned by a qualified name."), Ve(r.left) ? r : void 0; } function qbe(e, t, r) { const i = r.right.text, o = N.createIndexedAccessTypeNode(N.createTypeReferenceNode(r.left, void 0), N.createLiteralTypeNode(N.createStringLiteral(i))); e.replaceNode(t, r, o); } var tB, gZ, HBe = L({ "src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"() { Kr(), yo(), tB = "correctQualifiedNameToIndexedAccessType", gZ = [_.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], uo({ errorCodes: gZ, getCodeActions(e) { const t = zbe(e.sourceFile, e.span.start); if (!t) return; const r = hr.ChangeTracker.with(e, (o) => qbe(o, e.sourceFile, t)), i = `${t.left.text}["${t.right.text}"]`; return [to(tB, r, [_.Rewrite_as_the_indexed_access_type_0, i], tB, _.Rewrite_all_as_indexed_access_types)]; }, fixIds: [tB], getAllCodeActions: (e) => xs(e, gZ, (t, r) => { const i = zbe(r.file, r.start); i && qbe(t, r.file, i); }) }); } }); function Jbe(e, t) { return ri(ra(t, e.start).parent, od); } function Kbe(e, t, r) { if (!t) return; const i = t.parent, o = i.parent, s = WBe(t, r); if (s.length === i.elements.length) e.insertModifierBefore(r.sourceFile, 154, i); else { const c = N.updateExportDeclaration(o, o.modifiers, !1, N.updateNamedExports(i, yn(i.elements, (d) => !Ii(s, d))), o.moduleSpecifier, void 0), f = N.createExportDeclaration(void 0, !0, N.createNamedExports(s), o.moduleSpecifier, void 0); e.replaceNode(r.sourceFile, o, c, { leadingTriviaOption: hr.LeadingTriviaOption.IncludeAll, trailingTriviaOption: hr.TrailingTriviaOption.Exclude }), e.insertNodeAfter(r.sourceFile, o, f); } } function WBe(e, t) { const r = e.parent; if (r.elements.length === 1) return r.elements; const i = nve($u(r), t.program.getSemanticDiagnostics(t.sourceFile, t.cancellationToken)); return yn(r.elements, (o) => { var s; return o === e || ((s = tve(o, i)) == null ? void 0 : s.code) === nB[0]; }); } var nB, rB, zBe = L({ "src/services/codefixes/convertToTypeOnlyExport.ts"() { Kr(), yo(), nB = [_.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code], rB = "convertToTypeOnlyExport", uo({ errorCodes: nB, getCodeActions: function(t) { const r = hr.ChangeTracker.with(t, (i) => Kbe(i, Jbe(t.span, t.sourceFile), t)); if (r.length) return [to(rB, r, _.Convert_to_type_only_export, rB, _.Convert_all_re_exported_types_to_type_only_exports)]; }, fixIds: [rB], getAllCodeActions: function(t) { const r = /* @__PURE__ */ new Map(); return xs(t, nB, (i, o) => { const s = Jbe(o, t.sourceFile); s && _p(r, ds(s.parent.parent)) && Kbe(i, s, t); }); } }); } }); function Xbe(e, t) { const { parent: r } = ra(e, t); return Td(r) || Gc(r) && r.importClause ? r : void 0; } function Ybe(e, t, r) { if (Td(r)) e.replaceNode(t, r, N.updateImportSpecifier(r, !0, r.propertyName, r.name)); else { const i = r.importClause; if (i.name && i.namedBindings) e.replaceNodeWithNodes(t, r, [ N.createImportDeclaration(H1(r.modifiers, !0), N.createImportClause(!0, Il(i.name, !0), void 0), Il(r.moduleSpecifier, !0), Il(r.assertClause, !0)), N.createImportDeclaration(H1(r.modifiers, !0), N.createImportClause(!0, void 0, Il(i.namedBindings, !0)), Il(r.moduleSpecifier, !0), Il(r.assertClause, !0)) ]); else { const o = N.updateImportDeclaration(r, r.modifiers, N.updateImportClause(i, !0, i.name, i.namedBindings), r.moduleSpecifier, r.assertClause); e.replaceNode(t, r, o); } } } var yZ, iB, qBe = L({ "src/services/codefixes/convertToTypeOnlyImport.ts"() { Kr(), yo(), yZ = [ _.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code, _._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code ], iB = "convertToTypeOnlyImport", uo({ errorCodes: yZ, getCodeActions: function(t) { const r = Xbe(t.sourceFile, t.span.start); if (r) { const i = hr.ChangeTracker.with(t, (o) => Ybe(o, t.sourceFile, r)); return [to(iB, i, _.Convert_to_type_only_import, iB, _.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]; } }, fixIds: [iB], getAllCodeActions: function(t) { return xs(t, yZ, (r, i) => { const o = Xbe(i.file, i.start); o && Ybe(r, i.file, o); }); } }); } }); function $be(e, t) { const r = ra(e, t); if (Ve(r)) { const i = ro(r.parent.parent, Tf), o = r.getText(e); return { container: ro(i.parent, rf), typeNode: i.type, constraint: o, name: o === "K" ? "P" : "K" }; } } function Qbe(e, t, { container: r, typeNode: i, constraint: o, name: s }) { e.replaceNode(t, r, N.createMappedTypeNode(void 0, N.createTypeParameterDeclaration(void 0, s, N.createTypeReferenceNode(o)), void 0, void 0, i, void 0)); } var aB, vZ, JBe = L({ "src/services/codefixes/convertLiteralTypeToMappedType.ts"() { Kr(), yo(), aB = "convertLiteralTypeToMappedType", vZ = [_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code], uo({ errorCodes: vZ, getCodeActions: function(t) { const { sourceFile: r, span: i } = t, o = $be(r, i.start); if (!o) return; const { name: s, constraint: c } = o, f = hr.ChangeTracker.with(t, (d) => Qbe(d, r, o)); return [to(aB, f, [_.Convert_0_to_1_in_0, c, s], aB, _.Convert_all_type_literals_to_mapped_type)]; }, fixIds: [aB], getAllCodeActions: (e) => xs(e, vZ, (t, r) => { const i = $be(r.file, r.start); i && Qbe(t, r.file, i); }) }); } }); function Zbe(e, t) { return D.checkDefined(Ec(ra(e, t)), "There should be a containing class"); } function e1e(e) { return !e.valueDeclaration || !(wu(e.valueDeclaration) & 8); } function t1e(e, t, r, i, o, s) { const c = e.program.getTypeChecker(), f = KBe(i, c), d = c.getTypeAtLocation(t), m = c.getPropertiesOfType(d).filter(IP(e1e, (k) => !f.has(k.escapedName))), b = c.getTypeAtLocation(i), A = un(i.members, (k) => jl(k)); b.getNumberIndexType() || I(d, 1), b.getStringIndexType() || I(d, 0); const C = qT(r, e.program, s, e.host); Aee(i, m, r, e, s, C, (k) => O(r, i, k)), C.writeFixes(o); function I(k, B) { const U = c.getIndexInfoOfType(k, B); U && O(r, i, c.indexInfoToIndexSignatureDeclaration(U, i, void 0, Kx(e))); } function O(k, B, U) { A ? o.insertNodeAfter(k, A, U) : o.insertMemberAtStart(k, B, U); } } function KBe(e, t) { const r = Wp(e); if (!r) return ao(); const i = t.getTypeAtLocation(r), o = t.getPropertiesOfType(i); return ao(o.filter(e1e)); } var bZ, oB, XBe = L({ "src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"() { Kr(), yo(), bZ = [ _.Class_0_incorrectly_implements_interface_1.code, _.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code ], oB = "fixClassIncorrectlyImplementsInterface", uo({ errorCodes: bZ, getCodeActions(e) { const { sourceFile: t, span: r } = e, i = Zbe(t, r.start); return _a(UA(i), (o) => { const s = hr.ChangeTracker.with(e, (c) => t1e(e, o, t, i, c, e.preferences)); return s.length === 0 ? void 0 : to(oB, s, [_.Implement_interface_0, o.getText(t)], oB, _.Implement_all_unimplemented_interfaces); }); }, fixIds: [oB], getAllCodeActions(e) { const t = /* @__PURE__ */ new Map(); return xs(e, bZ, (r, i) => { const o = Zbe(i.file, i.start); if (_p(t, ds(o))) for (const s of UA(o)) t1e(e, s, i.file, o, r, e.preferences); }); } }); } }); function qT(e, t, r, i, o) { return n1e(e, t, !1, r, i, o); } function n1e(e, t, r, i, o, s) { const c = t.getCompilerOptions(), f = [], d = [], y = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(); return { addImportFromDiagnostic: b, addImportFromExportedSymbol: A, writeFixes: I, hasFixes: O }; function b(k, B) { const U = l1e(B, k.code, k.start, r); !U || !U.length || C(ss(U)); } function A(k, B) { const U = D.checkDefined(k.parent), j = ZF(k, $o(c)), te = t.getTypeChecker(), X = te.getMergedSymbol(nf(k, te)), Y = a1e(e, X, j, U, !1, t, o, i, s), P = lB(e, t), ue = r1e(e, D.checkDefined(Y), t, void 0, !!B, P, o, i); ue && C({ fix: ue, symbolName: j, errorIdentifierText: void 0 }); } function C(k) { var B, U; const { fix: j, symbolName: te } = k; switch (j.kind) { case 0: f.push(j); break; case 1: d.push(j); break; case 2: { const { importClauseOrBindingPattern: ue, importKind: ne, addAsTypeOnly: ge } = j, ie = String(ds(ue)); let H = y.get(ie); if (H || y.set(ie, H = { importClauseOrBindingPattern: ue, defaultImport: void 0, namedImports: /* @__PURE__ */ new Map() }), ne === 0) { const le = H == null ? void 0 : H.namedImports.get(te); H.namedImports.set(te, X(le, ge)); } else D.assert(H.defaultImport === void 0 || H.defaultImport.name === te, "(Add to Existing) Default import should be missing or match symbolName"), H.defaultImport = { name: te, addAsTypeOnly: X((B = H.defaultImport) == null ? void 0 : B.addAsTypeOnly, ge) }; break; } case 3: { const { moduleSpecifier: ue, importKind: ne, useRequire: ge, addAsTypeOnly: ie } = j, H = Y(ue, ne, ge, ie); switch (D.assert(H.useRequire === ge, "(Add new) Tried to add an `import` and a `require` for the same module"), ne) { case 1: D.assert(H.defaultImport === void 0 || H.defaultImport.name === te, "(Add new) Default import should be missing or match symbolName"), H.defaultImport = { name: te, addAsTypeOnly: X((U = H.defaultImport) == null ? void 0 : U.addAsTypeOnly, ie) }; break; case 0: const le = (H.namedImports || (H.namedImports = /* @__PURE__ */ new Map())).get(te); H.namedImports.set(te, X(le, ie)); break; case 3: case 2: D.assert(H.namespaceLikeImport === void 0 || H.namespaceLikeImport.name === te, "Namespacelike import shoudl be missing or match symbolName"), H.namespaceLikeImport = { importKind: ne, name: te, addAsTypeOnly: ie }; break; } break; } case 4: break; default: D.assertNever(j, `fix wasn't never - got kind ${j.kind}`); } function X(ue, ne) { return Math.max(ue ?? 0, ne); } function Y(ue, ne, ge, ie) { const H = P(ue, !0), le = P(ue, !1), pe = m.get(H), ye = m.get(le), Te = { defaultImport: void 0, namedImports: void 0, namespaceLikeImport: void 0, useRequire: ge }; return ne === 1 && ie === 2 ? pe || (m.set(H, Te), Te) : ie === 1 && (pe || ye) ? pe || ye : ye || (m.set(le, Te), Te); } function P(ue, ne) { return `${ne ? 1 : 0}|${ue}`; } } function I(k) { const B = yp(e, i); for (const j of f) AZ(k, e, j); for (const j of d) m1e(k, e, j, B); y.forEach(({ importClauseOrBindingPattern: j, defaultImport: te, namedImports: X }) => { p1e(k, e, j, te, ko(X.entries(), ([Y, P]) => ({ addAsTypeOnly: P, name: Y })), c, i); }); let U; m.forEach(({ useRequire: j, defaultImport: te, namedImports: X, namespaceLikeImport: Y }, P) => { const ue = P.slice(2), ge = (j ? y1e : g1e)(ue, B, te, X && ko(X.entries(), ([ie, H]) => ({ addAsTypeOnly: H, name: ie })), Y, c); U = sA(U, ge); }), U && GF(k, e, U, !0, i); } function O() { return f.length > 0 || d.length > 0 || y.size > 0 || m.size > 0; } } function YBe(e, t, r, i) { const o = cw(e, i, r), s = o1e(t.getTypeChecker(), e, t.getCompilerOptions()); return { getModuleSpecifierForBestExportInfo: c }; function c(f, d, y, m) { const { fixes: b, computedWithoutCacheCount: A } = sB(f, d, y, !1, t, e, r, i, s, m), C = c1e(b, e, t, o, r); return C && { ...C, computedWithoutCacheCount: A }; } } function $Be(e, t, r, i, o, s, c, f, d, y, m, b) { const A = f.getCompilerOptions(); let C; r ? (C = i6(i, c, f, m, b).get(i.path, r), D.assertIsDefined(C, "Some exportInfo should match the specified exportMapKey")) : (C = LH(M_(t.name)) ? [ZBe(e, o, t, f, c)] : a1e(i, e, o, t, s, f, c, m, b), D.assertIsDefined(C, "Some exportInfo should match the specified symbol / moduleSymbol")); const I = lB(i, f), O = cx(ra(i, y)), k = D.checkDefined(r1e(i, C, f, y, O, I, c, m)); return { moduleSpecifier: k.moduleSpecifier, codeAction: i1e(xZ({ host: c, formatContext: d, preferences: m }, i, o, k, !1, A, m)) }; } function QBe(e, t, r, i, o, s) { const c = r.getCompilerOptions(), f = ij(SZ(e, r.getTypeChecker(), t, c)), d = f1e(e, t, f, r), y = f !== t.text; return d && i1e(xZ({ host: i, formatContext: o, preferences: s }, e, f, d, y, c, s)); } function r1e(e, t, r, i, o, s, c, f) { const d = cw(e, f, c); return c1e(sB(t, i, o, s, r, e, c, f).fixes, e, r, d, c); } function i1e({ description: e, changes: t, commands: r }) { return { description: e, changes: t, commands: r }; } function a1e(e, t, r, i, o, s, c, f, d) { const y = s1e(s, c); return i6(e, c, s, f, d).search(e.path, o, (m) => m === r, (m) => { if (nf(m[0].symbol, y(m[0].isFromPackageJson)) === t && m.some((b) => b.moduleSymbol === i || b.symbol.parent === i)) return m; }); } function ZBe(e, t, r, i, o) { var s, c; const f = i.getCompilerOptions(), d = m(i.getTypeChecker(), !1); if (d) return d; const y = (c = (s = o.getPackageJsonAutoImportProvider) == null ? void 0 : s.call(o)) == null ? void 0 : c.getTypeChecker(); return D.checkDefined(y && m(y, !0), "Could not find symbol in specified module for code actions"); function m(b, A) { const C = s9(r, b, f); if (C && nf(C.symbol, b) === e) return { symbol: C.symbol, moduleSymbol: r, moduleFileName: void 0, exportKind: C.exportKind, targetFlags: nf(e, b).flags, isFromPackageJson: A }; const I = b.tryGetMemberInModuleExportsAndProperties(t, r); if (I && nf(I, b) === e) return { symbol: I, moduleSymbol: r, moduleFileName: void 0, exportKind: 0, targetFlags: nf(e, b).flags, isFromPackageJson: A }; } } function sB(e, t, r, i, o, s, c, f, d = o1e(o.getTypeChecker(), s, o.getCompilerOptions()), y) { const m = o.getTypeChecker(), b = Mo(e, d.getImportsForExportInfo), A = t !== void 0 && eGe(b, t), C = nGe(b, r, m, o.getCompilerOptions()); if (C) return { computedWithoutCacheCount: 0, fixes: [...A ? [A] : nt, C] }; const { fixes: I, computedWithoutCacheCount: O = 0 } = iGe(e, b, o, s, t, r, i, c, f, y); return { computedWithoutCacheCount: O, fixes: [...A ? [A] : nt, ...I] }; } function eGe(e, t) { return En(e, ({ declaration: r, importKind: i }) => { var o; if (i !== 0) return; const s = tGe(r), c = s && ((o = fN(r)) == null ? void 0 : o.text); if (c) return { kind: 0, namespacePrefix: s, usagePosition: t, moduleSpecifier: c }; }); } function tGe(e) { var t, r, i; switch (e.kind) { case 257: return (t = ri(e.name, Ve)) == null ? void 0 : t.text; case 268: return e.name.text; case 269: return (i = ri((r = e.importClause) == null ? void 0 : r.namedBindings, Ov)) == null ? void 0 : i.name.text; default: return D.assertNever(e); } } function EZ(e, t, r, i, o, s) { return e ? t && s.importsNotUsedAsValues === 2 || E3(s) && (!(i & 111551) || o.getTypeOnlyAliasDeclaration(r)) ? 2 : 1 : 4; } function nGe(e, t, r, i) { return En(e, ({ declaration: o, importKind: s, symbol: c, targetFlags: f }) => { if (s === 3 || s === 2 || o.kind === 268) return; if (o.kind === 257) return (s === 0 || s === 1) && o.name.kind === 203 ? { kind: 2, importClauseOrBindingPattern: o.name, importKind: s, moduleSpecifier: o.initializer.arguments[0].text, addAsTypeOnly: 4 } : void 0; const { importClause: d } = o; if (!d || !Ts(o.moduleSpecifier)) return; const { name: y, namedBindings: m } = d; if (d.isTypeOnly && !(s === 0 && m)) return; const b = EZ(t, !1, c, f, r, i); if (!(s === 1 && (y || b === 2 && m)) && !(s === 0 && (m == null ? void 0 : m.kind) === 271)) return { kind: 2, importClauseOrBindingPattern: d, importKind: s, moduleSpecifier: o.moduleSpecifier.text, addAsTypeOnly: b }; }); } function o1e(e, t, r) { let i; for (const o of t.imports) { const s = _N(o); if (KW(s.parent)) { const c = e.resolveExternalModuleName(o); c && (i || (i = o_())).add(go(c), s.parent); } else if (s.kind === 269 || s.kind === 268) { const c = e.getSymbolAtLocation(o); c && (i || (i = o_())).add(go(c), s); } } return { getImportsForExportInfo: ({ moduleSymbol: o, exportKind: s, targetFlags: c, symbol: f }) => { if (!(c & 111551) && Ju(t)) return nt; const d = i == null ? void 0 : i.get(go(o)); if (!d) return nt; const y = TZ(t, s, r); return d.map((m) => ({ declaration: m, importKind: y, symbol: f, targetFlags: c })); } }; } function lB(e, t) { if (!Ju(e)) return !1; if (e.commonJsModuleIndicator && !e.externalModuleIndicator) return !0; if (e.externalModuleIndicator && !e.commonJsModuleIndicator) return !1; const r = t.getCompilerOptions(); if (r.configFile) return Zc(r) < 5; for (const i of t.getSourceFiles()) if (!(i === e || !Ju(i) || t.isSourceFileFromExternalLibrary(i))) { if (i.commonJsModuleIndicator && !i.externalModuleIndicator) return !0; if (i.externalModuleIndicator && !i.commonJsModuleIndicator) return !1; } return !0; } function s1e(e, t) { return Tm((r) => r ? t.getPackageJsonAutoImportProvider().getTypeChecker() : e.getTypeChecker()); } function rGe(e, t, r, i, o, s, c, f, d) { const y = Ju(t), m = e.getCompilerOptions(), b = Bx(e, c), A = s1e(e, c), C = gl(m), I = NF(C), O = d ? (U) => ({ moduleSpecifiers: P1.tryGetModuleSpecifiersFromCache(U, t, b, f), computedWithoutCache: !1 }) : (U, j) => P1.getModuleSpecifiersWithCacheInfo(U, j, m, t, b, f); let k = 0; const B = Mo(s, (U, j) => { const te = A(U.isFromPackageJson), { computedWithoutCache: X, moduleSpecifiers: Y } = O(U.moduleSymbol, te), P = !!(U.targetFlags & 111551), ue = EZ(i, !0, U.symbol, U.targetFlags, te, m); return k += X ? 1 : 0, _a(Y, (ne) => { var ge; if (I && Nx(ne)) return; if (!P && y && r !== void 0) return { kind: 1, moduleSpecifier: ne, usagePosition: r, exportInfo: U, isReExport: j > 0 }; const ie = TZ(t, U.exportKind, m); let H; if (r !== void 0 && ie === 3 && U.exportKind === 0) { const le = te.resolveExternalModuleSymbol(U.moduleSymbol); let pe; le !== U.moduleSymbol && (pe = (ge = l9(le, te, m)) == null ? void 0 : ge.name), pe || (pe = CZ(U.moduleSymbol, $o(m), !1)), H = { namespacePrefix: pe, usagePosition: r }; } return { kind: 3, moduleSpecifier: ne, importKind: ie, useRequire: o, addAsTypeOnly: ue, exportInfo: U, isReExport: j > 0, qualification: H }; }); }); return { computedWithoutCacheCount: k, fixes: B }; } function iGe(e, t, r, i, o, s, c, f, d, y) { const m = En(t, (b) => aGe(b, s, c, r.getTypeChecker(), r.getCompilerOptions())); return m ? { fixes: [m] } : rGe(r, i, o, s, c, e, f, d, y); } function aGe({ declaration: e, importKind: t, symbol: r, targetFlags: i }, o, s, c, f) { var d; const y = (d = fN(e)) == null ? void 0 : d.text; if (y) { const m = s ? 4 : EZ(o, !0, r, i, c, f); return { kind: 3, moduleSpecifier: y, importKind: t, addAsTypeOnly: m, useRequire: s }; } } function l1e(e, t, r, i) { const o = ra(e.sourceFile, r); let s; if (t === _._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code) s = cGe(e, o); else if (Ve(o)) if (t === _._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code) { const f = ij(SZ(e.sourceFile, e.program.getTypeChecker(), o, e.program.getCompilerOptions())), d = f1e(e.sourceFile, o, f, e.program); return d && [{ fix: d, symbolName: f, errorIdentifierText: o.text }]; } else s = fGe(e, o, i); else return; const c = cw(e.sourceFile, e.preferences, e.host); return s && oGe(s, e.sourceFile, e.program, c, e.host); } function oGe(e, t, r, i, o) { const s = (c) => Hs(c, o.getCurrentDirectory(), H0(o)); return KL(e, (c, f) => e1(!!c.isJsxNamespaceFix, !!f.isJsxNamespaceFix) || js(c.fix.kind, f.fix.kind) || u1e(c.fix, f.fix, t, r, i.allowsImportingSpecifier, s)); } function c1e(e, t, r, i, o) { if (kt(e)) return e[0].kind === 0 || e[0].kind === 2 ? e[0] : e.reduce((s, c) => u1e(c, s, t, r, i.allowsImportingSpecifier, (f) => Hs(f, o.getCurrentDirectory(), H0(o))) === -1 ? c : s); } function u1e(e, t, r, i, o, s) { return e.kind !== 0 && t.kind !== 0 ? e1(o(t.moduleSpecifier), o(e.moduleSpecifier)) || lGe(e.moduleSpecifier, t.moduleSpecifier, r, i) || e1(d1e(e, r, i.getCompilerOptions(), s), d1e(t, r, i.getCompilerOptions(), s)) || JN(e.moduleSpecifier, t.moduleSpecifier) : 0; } function d1e(e, t, r, i) { var o; if (e.isReExport && ((o = e.exportInfo) != null && o.moduleFileName) && gl(r) === 2 && sGe(e.exportInfo.moduleFileName)) { const s = i(fi(e.exportInfo.moduleFileName)); return Ea(t.path, s); } return !1; } function sGe(e) { return cu(e, [".js", ".jsx", ".d.ts", ".ts", ".tsx"], !0) === "index"; } function lGe(e, t, r, i) { return Ea(e, "node:") && !Ea(t, "node:") ? t9(r, i) ? -1 : 1 : Ea(t, "node:") && !Ea(e, "node:") ? t9(r, i) ? 1 : -1 : 0; } function cGe({ sourceFile: e, program: t, host: r, preferences: i }, o) { const s = t.getTypeChecker(), c = uGe(o, s); if (!c) return; const f = s.getAliasedSymbol(c), d = c.name, y = [{ symbol: c, moduleSymbol: f, moduleFileName: void 0, exportKind: 3, targetFlags: f.flags, isFromPackageJson: !1 }], m = lB(e, t); return sB(y, void 0, !1, m, t, e, r, i).fixes.map((A) => { var C; return { fix: A, symbolName: d, errorIdentifierText: (C = ri(o, Ve)) == null ? void 0 : C.text }; }); } function uGe(e, t) { const r = Ve(e) ? t.getSymbolAtLocation(e) : void 0; if (g3(r)) return r; const { parent: i } = e; if (qu(i) && i.tagName === e || Lx(i)) { const o = t.resolveName(t.getJsxNamespace(i), qu(i) ? e : i, 111551, !1); if (g3(o)) return o; } } function TZ(e, t, r, i) { if (r.verbatimModuleSyntax && (Zc(r) === 1 || e.impliedNodeFormat === 1)) return 3; switch (t) { case 0: return 0; case 1: return 1; case 2: return mGe(e, r, !!i); case 3: return dGe(e, r, !!i); default: return D.assertNever(t); } } function dGe(e, t, r) { if (hT(t)) return 1; const i = Zc(t); switch (i) { case 2: case 1: case 3: return dr(e) && (Yl(e) || r) ? 2 : 3; case 4: case 5: case 6: case 7: case 99: case 0: return 2; case 100: case 199: return e.impliedNodeFormat === 99 ? 2 : 3; default: return D.assertNever(i, `Unexpected moduleKind ${i}`); } } function fGe({ sourceFile: e, program: t, cancellationToken: r, host: i, preferences: o }, s, c) { const f = t.getTypeChecker(), d = t.getCompilerOptions(); return Mo(SZ(e, f, s, d), (y) => { if (y === "default") return; const m = cx(s), b = lB(e, t), A = pGe(y, kI(s), BT(s), r, e, t, c, i, o); return ko(qD(A.values(), (C) => sB(C, s.getStart(e), m, b, t, e, i, o).fixes), (C) => ({ fix: C, symbolName: y, errorIdentifierText: s.text, isJsxNamespaceFix: y !== s.text })); }); } function f1e(e, t, r, i) { const o = i.getTypeChecker(), s = o.resolveName(r, t, 111551, !0); if (!s) return; const c = o.getTypeOnlyAliasDeclaration(s); if (!(!c || Zn(c) !== e)) return { kind: 4, typeOnlyAliasDeclaration: c }; } function SZ(e, t, r, i) { const o = r.parent; if ((qu(o) || Ax(o)) && o.tagName === r && Y$(i.jsx)) { const s = t.getJsxNamespace(e); if (_Ge(s, r, t)) return !FI(r.text) && !t.resolveName(r.text, r, 111551, !1) ? [r.text, s] : [s]; } return [r.text]; } function _Ge(e, t, r) { if (FI(t.text)) return !0; const i = r.resolveName(e, t, 111551, !0); return !i || kt(i.declarations, u1) && !(i.flags & 111551); } function pGe(e, t, r, i, o, s, c, f, d) { var y; const m = o_(), b = cw(o, d, f), A = (y = f.getModuleSpecifierCache) == null ? void 0 : y.call(f), C = Tm((O) => Bx(O ? f.getPackageJsonAutoImportProvider() : s, f)); function I(O, k, B, U, j, te) { const X = C(te); if (k && eQ(j, o, k, d, b, X, A) || !k && b.allowsImportingAmbientModule(O, X)) { const Y = j.getTypeChecker(); m.add(Wye(B, Y).toString(), { symbol: B, moduleSymbol: O, moduleFileName: k == null ? void 0 : k.fileName, exportKind: U, targetFlags: nf(B, Y).flags, isFromPackageJson: te }); } } return tQ(s, f, d, c, (O, k, B, U) => { const j = B.getTypeChecker(); i.throwIfCancellationRequested(); const te = B.getCompilerOptions(), X = s9(O, j, te); X && (X.name === e || CZ(O, $o(te), t) === e) && b1e(X.resolvedSymbol, r) && I(O, k, X.symbol, X.exportKind, B, U); const Y = j.tryGetMemberInModuleExportsAndProperties(e, O); Y && b1e(Y, r) && I(O, k, Y, 0, B, U); }), m; } function mGe(e, t, r) { const i = hT(t), o = dr(e); if (!o && Zc(t) >= 5) return i ? 1 : 2; if (o) return Yl(e) || r ? i ? 1 : 2 : 3; for (const s of e.statements) if (tu(s) && !Sl(s.moduleReference)) return 3; return i ? 1 : 3; } function xZ(e, t, r, i, o, s, c) { let f; const d = hr.ChangeTracker.with(e, (y) => { f = hGe(y, t, r, i, o, s, c); }); return to(IZ, d, f, kZ, _.Add_all_missing_imports); } function hGe(e, t, r, i, o, s, c) { const f = yp(t, c); switch (i.kind) { case 0: return AZ(e, t, i), [_.Change_0_to_1, r, `${i.namespacePrefix}.${r}`]; case 1: return m1e(e, t, i, f), [_.Change_0_to_1, r, h1e(i.moduleSpecifier, f) + r]; case 2: { const { importClauseOrBindingPattern: d, importKind: y, addAsTypeOnly: m, moduleSpecifier: b } = i; p1e(e, t, d, y === 1 ? { name: r, addAsTypeOnly: m } : void 0, y === 0 ? [{ name: r, addAsTypeOnly: m }] : nt, s, c); const A = M_(b); return o ? [_.Import_0_from_1, r, A] : [_.Update_import_from_0, A]; } case 3: { const { importKind: d, moduleSpecifier: y, addAsTypeOnly: m, useRequire: b, qualification: A } = i, C = b ? y1e : g1e, I = d === 1 ? { name: r, addAsTypeOnly: m } : void 0, O = d === 0 ? [{ name: r, addAsTypeOnly: m }] : void 0, k = d === 2 || d === 3 ? { importKind: d, name: (A == null ? void 0 : A.namespacePrefix) || r, addAsTypeOnly: m } : void 0; return GF(e, t, C(y, f, I, O, k, s), !0, c), A && AZ(e, t, A), o ? [_.Import_0_from_1, r, y] : [_.Add_import_from_0, y]; } case 4: { const { typeOnlyAliasDeclaration: d } = i, y = gGe(e, d, s, t, c); return y.kind === 273 ? [_.Remove_type_from_import_of_0_from_1, r, _1e(y.parent.parent)] : [_.Remove_type_from_import_declaration_from_0, _1e(y)]; } default: return D.assertNever(i, `Unexpected fix kind ${i.kind}`); } } function _1e(e) { var t, r; return e.kind === 268 ? ((r = ri((t = ri(e.moduleReference, Um)) == null ? void 0 : t.expression, Ts)) == null ? void 0 : r.text) || e.moduleReference.getText() : ro(e.parent.moduleSpecifier, Go).text; } function gGe(e, t, r, i, o) { const s = E3(r); switch (t.kind) { case 273: if (t.isTypeOnly) { const f = q_.detectImportSpecifierSorting(t.parent.elements, o); if (t.parent.elements.length > 1 && f) { e.delete(i, t); const d = N.updateImportSpecifier(t, !1, t.propertyName, t.name), y = q_.getOrganizeImportsComparer(o, f === 2), m = q_.getImportSpecifierInsertionIndex(t.parent.elements, d, y); e.insertImportSpecifierAtIndex(i, d, t.parent, m); } else e.deleteRange(i, t.getFirstToken()); return t; } else return D.assert(t.parent.parent.isTypeOnly), c(t.parent.parent), t.parent.parent; case 270: return c(t), t; case 271: return c(t.parent), t.parent; case 268: return e.deleteRange(i, t.getChildAt(1)), t; default: D.failBadSyntaxKind(t); } function c(f) { if (e.delete(i, L$(f, i)), s) { const d = ri(f.namedBindings, by); if (d && d.elements.length > 1) { q_.detectImportSpecifierSorting(d.elements, o) && t.kind === 273 && d.elements.indexOf(t) !== 0 && (e.delete(i, t), e.insertImportSpecifierAtIndex(i, t, d, 0)); for (const y of d.elements) y !== t && !y.isTypeOnly && e.insertModifierBefore(i, 154, y); } } } } function p1e(e, t, r, i, o, s, c) { var f; if (r.kind === 203) { i && b(r, i.name, "default"); for (const A of o) b(r, A.name, void 0); return; } const d = r.isTypeOnly && kt([i, ...o], (A) => (A == null ? void 0 : A.addAsTypeOnly) === 4), y = r.namedBindings && ((f = ri(r.namedBindings, by)) == null ? void 0 : f.elements), m = d && E3(s); if (i && (D.assert(!r.name, "Cannot add a default import to an import clause that already has one"), e.insertNodeAt(t, r.getStart(t), N.createIdentifier(i.name), { suffix: ", " })), o.length) { let A; if (typeof c.organizeImportsIgnoreCase == "boolean") A = c.organizeImportsIgnoreCase; else if (y) { const k = q_.detectImportSpecifierSorting(y, c); k !== 3 && (A = k === 2); } A === void 0 && (A = q_.detectSorting(t, c) === 2); const C = q_.getOrganizeImportsComparer(c, A), I = ry(o.map((k) => N.createImportSpecifier((!r.isTypeOnly || d) && _6(k), void 0, N.createIdentifier(k.name))), (k, B) => q_.compareImportOrExportSpecifiers(k, B, C)), O = (y == null ? void 0 : y.length) && q_.detectImportSpecifierSorting(y, c); if (O && !(A && O === 1)) for (const k of I) { const B = m && !k.isTypeOnly ? 0 : q_.getImportSpecifierInsertionIndex(y, k, C); e.insertImportSpecifierAtIndex(t, k, r.namedBindings, B); } else if (y != null && y.length) for (const k of I) e.insertNodeInListAfter(t, Ho(y), k, y); else if (I.length) { const k = N.createNamedImports(I); r.namedBindings ? e.replaceNode(t, r.namedBindings, k) : e.insertNodeAfter(t, D.checkDefined(r.name, "Import clause must have either named imports or a default import"), k); } } if (d && (e.delete(t, L$(r, t)), m && y)) for (const A of y) e.insertModifierBefore(t, 154, A); function b(A, C, I) { const O = N.createBindingElement(void 0, I, C); A.elements.length ? e.insertNodeInListAfter(t, Ho(A.elements), O) : e.replaceNode(t, A, N.createObjectBindingPattern([O])); } } function AZ(e, t, { namespacePrefix: r, usagePosition: i }) { e.insertText(t, i, r + "."); } function m1e(e, t, { moduleSpecifier: r, usagePosition: i }, o) { e.insertText(t, i, h1e(r, o)); } function h1e(e, t) { const r = Rye(t); return `import(${r}${e}${r}).`; } function _6({ addAsTypeOnly: e }) { return e === 2; } function g1e(e, t, r, i, o, s) { const c = OF(e, t); let f; if (r !== void 0 || i != null && i.length) { const d = (!r || _6(r)) && Vn(i, _6) || s.verbatimModuleSyntax && (r == null ? void 0 : r.addAsTypeOnly) !== 4 && !kt(i, (y) => y.addAsTypeOnly === 4); f = sA(f, Ly(r && N.createIdentifier(r.name), i == null ? void 0 : i.map(({ addAsTypeOnly: y, name: m }) => N.createImportSpecifier(!d && y === 2, void 0, N.createIdentifier(m))), e, t, d)); } if (o) { const d = o.importKind === 3 ? N.createImportEqualsDeclaration(void 0, _6(o), N.createIdentifier(o.name), N.createExternalModuleReference(c)) : N.createImportDeclaration(void 0, N.createImportClause(_6(o), void 0, N.createNamespaceImport(N.createIdentifier(o.name))), c, void 0); f = sA(f, d); } return D.checkDefined(f); } function y1e(e, t, r, i, o) { const s = OF(e, t); let c; if (r || i != null && i.length) { const f = (i == null ? void 0 : i.map(({ name: y }) => N.createBindingElement(void 0, void 0, y))) || []; r && f.unshift(N.createBindingElement(void 0, "default", r.name)); const d = v1e(N.createObjectBindingPattern(f), s); c = sA(c, d); } if (o) { const f = v1e(o.name, s); c = sA(c, f); } return D.checkDefined(c); } function v1e(e, t) { return N.createVariableStatement(void 0, N.createVariableDeclarationList([ N.createVariableDeclaration(typeof e == "string" ? N.createIdentifier(e) : e, void 0, void 0, N.createCallExpression(N.createIdentifier("require"), void 0, [t])) ], 2)); } function b1e({ declarations: e }, t) { return kt(e, (r) => !!(M8(r) & t)); } function CZ(e, t, r) { return LZ(Od(M_(e.name)), t, r); } function LZ(e, t, r) { const i = cu(lA(e, "/index")); let o = "", s = !0; const c = i.charCodeAt(0); uh(c, t) ? (o += String.fromCharCode(c), r && (o = o.toUpperCase())) : s = !1; for (let f = 1; f < i.length; f++) { const d = i.charCodeAt(f), y = P0(d, t); if (y) { let m = String.fromCharCode(d); s || (m = m.toUpperCase()), o += m; } s = y; } return ZS(o) ? `_${o}` : o || "_"; } var IZ, kZ, wZ, yGe = L({ "src/services/codefixes/importFixes.ts"() { Kr(), yo(), IZ = "import", kZ = "fixMissingImport", wZ = [ _.Cannot_find_name_0.code, _.Cannot_find_name_0_Did_you_mean_1.code, _.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code, _.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code, _.Cannot_find_namespace_0.code, _._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code, _._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code, _.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code, _._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code ], uo({ errorCodes: wZ, getCodeActions(e) { const { errorCode: t, preferences: r, sourceFile: i, span: o, program: s } = e, c = l1e(e, t, o.start, !0); if (c) return c.map(({ fix: f, symbolName: d, errorIdentifierText: y }) => xZ(e, i, d, f, d !== y, s.getCompilerOptions(), r)); }, fixIds: [kZ], getAllCodeActions: (e) => { const { sourceFile: t, program: r, preferences: i, host: o, cancellationToken: s } = e, c = n1e(t, r, !0, i, o, s); return qx(e, wZ, (f) => c.addImportFromDiagnostic(f, e)), zx(hr.ChangeTracker.with(e, c.writeFixes)); } }); } }); function E1e(e, t, r) { const i = un(e.getSemanticDiagnostics(t), (c) => c.start === r.start && c.length === r.length); if (i === void 0 || i.relatedInformation === void 0) return; const o = un(i.relatedInformation, (c) => c.code === _.This_type_parameter_might_need_an_extends_0_constraint.code); if (o === void 0 || o.file === void 0 || o.start === void 0 || o.length === void 0) return; let s = Ree(o.file, Cc(o.start, o.length)); if (s !== void 0 && (Ve(s) && Ol(s.parent) && (s = s.parent), Ol(s))) { if (bk(s.parent)) return; const c = ra(t, r.start), f = e.getTypeChecker(); return { constraint: bGe(f, c) || vGe(o.messageText), declaration: s, token: c }; } } function T1e(e, t, r, i, o, s) { const { declaration: c, constraint: f } = s, d = t.getTypeChecker(); if (Va(f)) e.insertText(o, c.name.end, ` extends ${f}`); else { const y = $o(t.getCompilerOptions()), m = Kx({ program: t, host: i }), b = qT(o, t, r, i), A = zB(d, b, f, void 0, y, void 0, m); A && (e.replaceNode(o, c, N.updateTypeParameterDeclaration(c, void 0, c.name, A, c.default)), b.writeFixes(e)); } } function vGe(e) { const [t, r] = Gv(e, ` `, 0).match(/`extends (.*)`/) || []; return r; } function bGe(e, t) { return Pi(t.parent) ? e.getTypeArgumentConstraint(t.parent) : (yt(t) ? e.getContextualType(t) : void 0) || e.getTypeAtLocation(t); } var cB, DZ, EGe = L({ "src/services/codefixes/fixAddMissingConstraint.ts"() { Kr(), yo(), cB = "addMissingConstraint", DZ = [ _.Type_0_is_not_comparable_to_type_1.code, _.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code, _.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code, _.Type_0_is_not_assignable_to_type_1.code, _.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, _.Property_0_is_incompatible_with_index_signature.code, _.Property_0_in_type_1_is_not_assignable_to_type_2.code, _.Type_0_does_not_satisfy_the_constraint_1.code ], uo({ errorCodes: DZ, getCodeActions(e) { const { sourceFile: t, span: r, program: i, preferences: o, host: s } = e, c = E1e(i, t, r); if (c === void 0) return; const f = hr.ChangeTracker.with(e, (d) => T1e(d, i, o, s, t, c)); return [to(cB, f, _.Add_extends_constraint, cB, _.Add_extends_constraint_to_all_type_parameters)]; }, fixIds: [cB], getAllCodeActions: (e) => { const { program: t, preferences: r, host: i } = e, o = /* @__PURE__ */ new Map(); return zx(hr.ChangeTracker.with(e, (s) => { qx(e, DZ, (c) => { const f = E1e(t, c.file, Cc(c.start, c.length)); if (f && _p(o, ds(f.declaration))) return T1e(s, t, r, i, c.file, f); }); })); } }); } }); function S1e(e, t, r, i) { switch (r) { case _.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code: case _.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code: case _.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code: case _.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code: case _.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code: return TGe(e, t.sourceFile, i); case _.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code: case _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code: case _.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code: case _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code: return SGe(e, t.sourceFile, i); default: D.fail("Unexpected error code: " + r); } } function TGe(e, t, r) { const i = A1e(t, r); if (Ju(t)) { e.addJSDocTags(t, i, [N.createJSDocOverrideTag(N.createIdentifier("override"))]); return; } const o = i.modifiers || nt, s = un(o, mx), c = un(o, Efe), f = un(o, (b) => y$(b.kind)), d = Yi(o, Du), y = c ? c.end : s ? s.end : f ? f.end : d ? zo(t.text, d.end) : i.getStart(t), m = f || s || c ? { prefix: " " } : { suffix: " " }; e.insertModifierAt(t, y, 161, m); } function SGe(e, t, r) { const i = A1e(t, r); if (Ju(t)) { e.filterJSDocTags(t, i, kP(I7)); return; } const o = un(i.modifiers, Tfe); D.assertIsDefined(o), e.deleteModifier(t, o); } function x1e(e) { switch (e.kind) { case 173: case 169: case 171: case 174: case 175: return !0; case 166: return Yd(e, e.parent); default: return !1; } } function A1e(e, t) { const r = ra(e, t), i = nr(r, (o) => li(o) ? "quit" : x1e(o)); return D.assert(i && x1e(i)), i; } var RZ, JC, gw, NZ, OZ, xGe = L({ "src/services/codefixes/fixOverrideModifier.ts"() { Kr(), yo(), RZ = "fixOverrideModifier", JC = "fixAddOverrideModifier", gw = "fixRemoveOverrideModifier", NZ = [ _.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code, _.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code, _.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code, _.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code, _.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code, _.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code, _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code, _.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code, _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code ], OZ = { [_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]: { descriptions: _.Add_override_modifier, fixId: JC, fixAllDescriptions: _.Add_all_missing_override_modifiers }, [_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]: { descriptions: _.Add_override_modifier, fixId: JC, fixAllDescriptions: _.Add_all_missing_override_modifiers }, [_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]: { descriptions: _.Remove_override_modifier, fixId: gw, fixAllDescriptions: _.Remove_all_unnecessary_override_modifiers }, [_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]: { descriptions: _.Remove_override_modifier, fixId: gw, fixAllDescriptions: _.Remove_override_modifier }, [_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]: { descriptions: _.Add_override_modifier, fixId: JC, fixAllDescriptions: _.Add_all_missing_override_modifiers }, [_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]: { descriptions: _.Add_override_modifier, fixId: JC, fixAllDescriptions: _.Add_all_missing_override_modifiers }, [_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]: { descriptions: _.Add_override_modifier, fixId: JC, fixAllDescriptions: _.Remove_all_unnecessary_override_modifiers }, [_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]: { descriptions: _.Remove_override_modifier, fixId: gw, fixAllDescriptions: _.Remove_all_unnecessary_override_modifiers }, [_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]: { descriptions: _.Remove_override_modifier, fixId: gw, fixAllDescriptions: _.Remove_all_unnecessary_override_modifiers } }, uo({ errorCodes: NZ, getCodeActions: function(t) { const { errorCode: r, span: i } = t, o = OZ[r]; if (!o) return nt; const { descriptions: s, fixId: c, fixAllDescriptions: f } = o, d = hr.ChangeTracker.with(t, (y) => S1e(y, t, r, i.start)); return [ XQ(RZ, d, s, c, f) ]; }, fixIds: [RZ, JC, gw], getAllCodeActions: (e) => xs(e, NZ, (t, r) => { const { code: i, start: o } = r, s = OZ[i]; !s || s.fixId !== e.fixId || S1e(t, e, i, o); }) }); } }); function C1e(e, t, r, i) { const o = yp(t, i), s = N.createStringLiteral(r.name.text, o === 0); e.replaceNode(t, r, _M(r) ? N.createElementAccessChain(r.expression, r.questionDotToken, s) : N.createElementAccessExpression(r.expression, s)); } function L1e(e, t) { return ro(ra(e, t).parent, Pr); } var uB, PZ, AGe = L({ "src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"() { Kr(), yo(), uB = "fixNoPropertyAccessFromIndexSignature", PZ = [ _.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code ], uo({ errorCodes: PZ, fixIds: [uB], getCodeActions(e) { const { sourceFile: t, span: r, preferences: i } = e, o = L1e(t, r.start), s = hr.ChangeTracker.with(e, (c) => C1e(c, e.sourceFile, o, i)); return [to(uB, s, [_.Use_element_access_for_0, o.name.text], uB, _.Use_element_access_for_all_undeclared_properties)]; }, getAllCodeActions: (e) => xs(e, PZ, (t, r) => C1e(t, r.file, L1e(r.file, r.start), e.preferences)) }); } }); function I1e(e, t, r, i) { const o = ra(t, r); if (!FC(o)) return; const s = yd(o, !1, !1); if (!(!pc(s) && !Ms(s)) && !ji(yd(s, !1, !1))) { const c = D.checkDefined(ys(s, 98, t)), { name: f } = s, d = D.checkDefined(s.body); return Ms(s) ? f && ll.Core.isSymbolReferencedInFile(f, i, t, d) ? void 0 : (e.delete(t, c), f && e.delete(t, f), e.insertText(t, d.pos, " =>"), [_.Convert_function_expression_0_to_arrow_function, f ? f.text : o9]) : (e.replaceNode(t, c, N.createToken(85)), e.insertText(t, f.end, " = "), e.insertText(t, d.pos, " =>"), [_.Convert_function_declaration_0_to_arrow_function, f.text]); } } var dB, MZ, CGe = L({ "src/services/codefixes/fixImplicitThis.ts"() { Kr(), yo(), dB = "fixImplicitThis", MZ = [_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code], uo({ errorCodes: MZ, getCodeActions: function(t) { const { sourceFile: r, program: i, span: o } = t; let s; const c = hr.ChangeTracker.with(t, (f) => { s = I1e(f, r, o.start, i.getTypeChecker()); }); return s ? [to(dB, c, s, dB, _.Fix_all_implicit_this_errors)] : nt; }, fixIds: [dB], getAllCodeActions: (e) => xs(e, MZ, (t, r) => { I1e(t, r.file, r.start, e.program.getTypeChecker()); }) }); } }); function k1e(e, t, r) { var i; const o = ra(e, t); if (Ve(o)) { const s = nr(o, Gc); if (s === void 0) return; const c = Go(s.moduleSpecifier) ? s.moduleSpecifier.text : void 0; if (c === void 0) return; const f = SA(e, c, void 0); if (f === void 0) return; const d = r.getSourceFile(f.resolvedFileName); if (d === void 0 || uw(r, d)) return; const y = d.symbol, m = (i = ri(y.valueDeclaration, Im)) == null ? void 0 : i.locals; if (m === void 0) return; const b = m.get(o.escapedText); if (b === void 0) return; const A = IGe(b); return A === void 0 ? void 0 : { exportName: { node: o, isTypeOnly: eC(A) }, node: A, moduleSourceFile: d, moduleSpecifier: c }; } } function LGe(e, t, { exportName: r, node: i, moduleSourceFile: o }) { const s = fB(o, r.isTypeOnly); s ? w1e(e, t, o, s, [r]) : QN(i) ? e.insertExportModifier(o, i) : D1e(e, t, o, [r]); } function FZ(e, t, r, i, o) { Ne(i) && (o ? w1e(e, t, r, o, i) : D1e(e, t, r, i)); } function fB(e, t) { const r = (i) => Kc(i) && (t && i.isTypeOnly || !i.isTypeOnly); return Yi(e.statements, r); } function w1e(e, t, r, i, o) { const s = i.exportClause && j_(i.exportClause) ? i.exportClause.elements : N.createNodeArray([]), c = !i.isTypeOnly && !!(F_(t.getCompilerOptions()) || un(s, (f) => f.isTypeOnly)); e.replaceNode(r, i, N.updateExportDeclaration(i, i.modifiers, i.isTypeOnly, N.createNamedExports(N.createNodeArray([...s, ...R1e(o, c)], s.hasTrailingComma)), i.moduleSpecifier, i.assertClause)); } function D1e(e, t, r, i) { e.insertNodeAtEndOfScope(r, r, N.createExportDeclaration(void 0, !1, N.createNamedExports(R1e(i, F_(t.getCompilerOptions()))), void 0, void 0)); } function R1e(e, t) { return N.createNodeArray(rn(e, (r) => N.createExportSpecifier(t && r.isTypeOnly, void 0, r.node))); } function IGe(e) { if (e.valueDeclaration === void 0) return Wc(e.declarations); const t = e.valueDeclaration, r = Wi(t) ? ri(t.parent.parent, sc) : void 0; return r && Ne(r.declarationList.declarations) === 1 ? r : t; } var _B, BZ, kGe = L({ "src/services/codefixes/fixImportNonExportedMember.ts"() { Kr(), yo(), _B = "fixImportNonExportedMember", BZ = [ _.Module_0_declares_1_locally_but_it_is_not_exported.code ], uo({ errorCodes: BZ, fixIds: [_B], getCodeActions(e) { const { sourceFile: t, span: r, program: i } = e, o = k1e(t, r.start, i); if (o === void 0) return; const s = hr.ChangeTracker.with(e, (c) => LGe(c, i, o)); return [to(_B, s, [_.Export_0_from_module_1, o.exportName.node.text, o.moduleSpecifier], _B, _.Export_all_referenced_locals)]; }, getAllCodeActions(e) { const { program: t } = e; return zx(hr.ChangeTracker.with(e, (r) => { const i = /* @__PURE__ */ new Map(); qx(e, BZ, (o) => { const s = k1e(o.file, o.start, t); if (s === void 0) return; const { exportName: c, node: f, moduleSourceFile: d } = s; if (fB(d, c.isTypeOnly) === void 0 && QN(f)) r.insertExportModifier(d, f); else { const y = i.get(d) || { typeOnlyExports: [], exports: [] }; c.isTypeOnly ? y.typeOnlyExports.push(c) : y.exports.push(c), i.set(d, y); } }), i.forEach((o, s) => { const c = fB(s, !0); c && c.isTypeOnly ? (FZ(r, t, s, o.typeOnlyExports, c), FZ(r, t, s, o.exports, fB(s, !1))) : FZ(r, t, s, [...o.exports, ...o.typeOnlyExports], c); }); })); } }); } }); function wGe(e, t) { const r = ra(e, t); return nr(r, (i) => i.kind === 199); } function DGe(e, t, r) { if (!r) return; let i = r.type, o = !1, s = !1; for (; i.kind === 187 || i.kind === 188 || i.kind === 193; ) i.kind === 187 ? o = !0 : i.kind === 188 && (s = !0), i = i.type; const c = N.updateNamedTupleMember(r, r.dotDotDotToken || (s ? N.createToken(25) : void 0), r.name, r.questionToken || (o ? N.createToken(57) : void 0), i); c !== r && e.replaceNode(t, r, c); } var pB, N1e, RGe = L({ "src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"() { Kr(), yo(), pB = "fixIncorrectNamedTupleSyntax", N1e = [ _.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, _.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code ], uo({ errorCodes: N1e, getCodeActions: function(t) { const { sourceFile: r, span: i } = t, o = wGe(r, i.start), s = hr.ChangeTracker.with(t, (c) => DGe(c, r, o)); return [to(pB, s, _.Move_labeled_tuple_element_modifiers_to_labels, pB, _.Move_labeled_tuple_element_modifiers_to_labels)]; }, fixIds: [pB] }); } }); function O1e(e, t, r, i) { const o = ra(e, t), s = o.parent; if ((i === _.No_overload_matches_this_call.code || i === _.Type_0_is_not_assignable_to_type_1.code) && !$p(s)) return; const c = r.program.getTypeChecker(); let f; if (Pr(s) && s.name === o) { D.assert(eg(o), "Expected an identifier for spelling (property access)"); let d = c.getTypeAtLocation(s.expression); s.flags & 32 && (d = c.getNonNullableType(d)), f = c.getSuggestedSymbolForNonexistentProperty(o, d); } else if (vr(s) && s.operatorToken.kind === 101 && s.left === o && ki(o)) { const d = c.getTypeAtLocation(s.right); f = c.getSuggestedSymbolForNonexistentProperty(o, d); } else if (Ed(s) && s.right === o) { const d = c.getSymbolAtLocation(s.left); d && d.flags & 1536 && (f = c.getSuggestedSymbolForNonexistentModule(s.right, d)); } else if (Td(s) && s.name === o) { D.assertNode(o, Ve, "Expected an identifier for spelling (import)"); const d = nr(o, Gc), y = OGe(e, r, d); y && y.symbol && (f = c.getSuggestedSymbolForNonexistentModule(o, y.symbol)); } else if ($p(s) && s.name === o) { D.assertNode(o, Ve, "Expected an identifier for JSX attribute"); const d = nr(o, qu), y = c.getContextualTypeForArgumentAtIndex(d, 0); f = c.getSuggestedSymbolForNonexistentJSXAttribute(o, y); } else if (Jr(s, 16384) && Pc(s) && s.name === o) { const d = nr(o, li), y = d ? Wp(d) : void 0, m = y ? c.getTypeAtLocation(y) : void 0; m && (f = c.getSuggestedSymbolForNonexistentClassMember(bc(o), m)); } else { const d = BT(o), y = bc(o); D.assert(y !== void 0, "name should be defined"), f = c.getSuggestedSymbolForNonexistentSymbol(o, y, NGe(d)); } return f === void 0 ? void 0 : { node: o, suggestedSymbol: f }; } function P1e(e, t, r, i, o) { const s = Nl(i); if (!w_(s, o) && Pr(r.parent)) { const c = i.valueDeclaration; c && du(c) && ki(c.name) ? e.replaceNode(t, r, N.createIdentifier(s)) : e.replaceNode(t, r.parent, N.createElementAccessExpression(r.parent.expression, N.createStringLiteral(s))); } else e.replaceNode(t, r, N.createIdentifier(s)); } function NGe(e) { let t = 0; return e & 4 && (t |= 1920), e & 2 && (t |= 788968), e & 1 && (t |= 111551), t; } function OGe(e, t, r) { if (!r || !Ts(r.moduleSpecifier)) return; const i = SA(e, r.moduleSpecifier.text, hp(e, r.moduleSpecifier)); if (i) return t.program.getSourceFile(i.resolvedFileName); } var GZ, UZ, PGe = L({ "src/services/codefixes/fixSpelling.ts"() { Kr(), yo(), GZ = "fixSpelling", UZ = [ _.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code, _.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code, _.Cannot_find_name_0_Did_you_mean_1.code, _.Could_not_find_name_0_Did_you_mean_1.code, _.Cannot_find_namespace_0_Did_you_mean_1.code, _.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code, _.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code, _._0_has_no_exported_member_named_1_Did_you_mean_2.code, _.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code, _.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, _.No_overload_matches_this_call.code, _.Type_0_is_not_assignable_to_type_1.code ], uo({ errorCodes: UZ, getCodeActions(e) { const { sourceFile: t, errorCode: r } = e, i = O1e(t, e.span.start, e, r); if (!i) return; const { node: o, suggestedSymbol: s } = i, c = $o(e.host.getCompilationSettings()), f = hr.ChangeTracker.with(e, (d) => P1e(d, t, o, s, c)); return [to("spelling", f, [_.Change_spelling_to_0, Nl(s)], GZ, _.Fix_all_detected_spelling_errors)]; }, fixIds: [GZ], getAllCodeActions: (e) => xs(e, UZ, (t, r) => { const i = O1e(r.file, r.start, e, r.code), o = $o(e.host.getCompilationSettings()); i && P1e(t, e.sourceFile, i.node, i.suggestedSymbol, o); }) }); } }); function M1e(e, t, r) { const i = e.createSymbol(4, t.escapedText); i.links.type = e.getTypeAtLocation(r); const o = ao([i]); return e.createAnonymousType(void 0, o, [], [], []); } function VZ(e, t, r, i) { if (!t.body || !oo(t.body) || Ne(t.body.statements) !== 1) return; const o = ss(t.body.statements); if (eu(o) && jZ(e, t, e.getTypeAtLocation(o.expression), r, i)) return { declaration: t, kind: 0, expression: o.expression, statement: o, commentSource: o.expression }; if (k1(o) && eu(o.statement)) { const s = N.createObjectLiteralExpression([N.createPropertyAssignment(o.label, o.statement.expression)]), c = M1e(e, o.label, o.statement.expression); if (jZ(e, t, c, r, i)) return zs(t) ? { declaration: t, kind: 1, expression: s, statement: o, commentSource: o.statement.expression } : { declaration: t, kind: 0, expression: s, statement: o, commentSource: o.statement.expression }; } else if (oo(o) && Ne(o.statements) === 1) { const s = ss(o.statements); if (k1(s) && eu(s.statement)) { const c = N.createObjectLiteralExpression([N.createPropertyAssignment(s.label, s.statement.expression)]), f = M1e(e, s.label, s.statement.expression); if (jZ(e, t, f, r, i)) return { declaration: t, kind: 0, expression: c, statement: o, commentSource: s }; } } } function jZ(e, t, r, i, o) { if (o) { const s = e.getSignatureFromDeclaration(t); if (s) { Jr(t, 512) && (r = e.createPromiseType(r)); const c = e.createSignature(t, s.typeParameters, s.thisParameter, s.parameters, r, void 0, s.minArgumentCount, s.flags); r = e.createAnonymousType(void 0, ao(), [c], [], []); } else r = e.getAnyType(); } return e.isTypeAssignableTo(r, i); } function F1e(e, t, r, i) { const o = ra(t, r); if (!o.parent) return; const s = nr(o.parent, Ys); switch (i) { case _.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code: return !s || !s.body || !s.type || !af(s.type, o) ? void 0 : VZ(e, s, e.getTypeFromTypeNode(s.type), !1); case _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code: if (!s || !eo(s.parent) || !s.body) return; const c = s.parent.arguments.indexOf(s), f = e.getContextualTypeForArgumentAtIndex(s.parent, c); return f ? VZ(e, s, f, !0) : void 0; case _.Type_0_is_not_assignable_to_type_1.code: if (!sg(o) || !kA(o.parent) && !$p(o.parent)) return; const d = MGe(o.parent); return !d || !Ys(d) || !d.body ? void 0 : VZ(e, d, e.getTypeAtLocation(o.parent), !0); } } function MGe(e) { switch (e.kind) { case 257: case 166: case 205: case 169: case 299: return e.initializer; case 288: return e.initializer && (xk(e.initializer) ? e.initializer.expression : void 0); case 300: case 168: case 302: case 351: case 344: return; } } function B1e(e, t, r, i) { Gd(r); const o = qF(t); e.replaceNode(t, i, N.createReturnStatement(r), { leadingTriviaOption: hr.LeadingTriviaOption.Exclude, trailingTriviaOption: hr.TrailingTriviaOption.Exclude, suffix: o ? ";" : void 0 }); } function G1e(e, t, r, i, o, s) { const c = s || G$(i) ? N.createParenthesizedExpression(i) : i; Gd(o), jT(o, c), e.replaceNode(t, r.body, c); } function U1e(e, t, r, i) { e.replaceNode(t, r.body, N.createParenthesizedExpression(i)); } function FGe(e, t, r) { const i = hr.ChangeTracker.with(e, (o) => B1e(o, e.sourceFile, t, r)); return to(mB, i, _.Add_a_return_statement, hB, _.Add_all_missing_return_statement); } function BGe(e, t, r, i) { const o = hr.ChangeTracker.with(e, (s) => G1e(s, e.sourceFile, t, r, i, !1)); return to(mB, o, _.Remove_braces_from_arrow_function_body, gB, _.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues); } function GGe(e, t, r) { const i = hr.ChangeTracker.with(e, (o) => U1e(o, e.sourceFile, t, r)); return to(mB, i, _.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal, yB, _.Wrap_all_object_literal_with_parentheses); } var mB, hB, gB, yB, HZ, UGe = L({ "src/services/codefixes/returnValueCorrect.ts"() { Kr(), yo(), mB = "returnValueCorrect", hB = "fixAddReturnStatement", gB = "fixRemoveBracesFromArrowFunctionBody", yB = "fixWrapTheBlockWithParen", HZ = [ _.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code, _.Type_0_is_not_assignable_to_type_1.code, _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code ], uo({ errorCodes: HZ, fixIds: [hB, gB, yB], getCodeActions: function(t) { const { program: r, sourceFile: i, span: { start: o }, errorCode: s } = t, c = F1e(r.getTypeChecker(), i, o, s); if (c) return c.kind === 0 ? Fn([FGe(t, c.expression, c.statement)], zs(c.declaration) ? BGe(t, c.declaration, c.expression, c.commentSource) : void 0) : [GGe(t, c.declaration, c.expression)]; }, getAllCodeActions: (e) => xs(e, HZ, (t, r) => { const i = F1e(e.program.getTypeChecker(), r.file, r.start, r.code); if (i) switch (e.fixId) { case hB: B1e(t, r.file, i.expression, i.statement); break; case gB: if (!zs(i.declaration)) return; G1e(t, r.file, i.declaration, i.expression, i.commentSource, !1); break; case yB: if (!zs(i.declaration)) return; U1e(t, r.file, i.declaration, i.expression); break; default: D.fail(JSON.stringify(e.fixId)); } }) }); } }); function V1e(e, t, r, i, o) { var s; const c = ra(e, t), f = c.parent; if (r === _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code) { if (!(c.kind === 18 && As(f) && eo(f.parent))) return; const C = $i(f.parent.arguments, (B) => B === f); if (C < 0) return; const I = i.getResolvedSignature(f.parent); if (!(I && I.declaration && I.parameters[C])) return; const O = I.parameters[C].valueDeclaration; if (!(O && Ma(O) && Ve(O.name))) return; const k = ko(i.getUnmatchedProperties(i.getTypeAtLocation(f), i.getParameterType(I, C), !1, !1)); return Ne(k) ? { kind: 3, token: O.name, properties: k, parentDeclaration: f } : void 0; } if (!eg(c)) return; if (Ve(c) && xv(f) && f.initializer && As(f.initializer)) { const C = ko(i.getUnmatchedProperties(i.getTypeAtLocation(f.initializer), i.getTypeAtLocation(c), !1, !1)); return Ne(C) ? { kind: 3, token: c, properties: C, parentDeclaration: f.initializer } : void 0; } if (Ve(c) && qu(c.parent)) { const C = $o(o.getCompilerOptions()), I = JGe(i, C, c.parent); return Ne(I) ? { kind: 4, token: c, attributes: I, parentDeclaration: c.parent } : void 0; } if (Ve(c)) { const C = (s = i.getContextualType(c)) == null ? void 0 : s.getNonNullableType(); if (C && Qr(C) & 16) { const I = Wc(i.getSignaturesOfType(C, 0)); return I === void 0 ? void 0 : { kind: 5, token: c, signature: I, sourceFile: e, parentDeclaration: Q1e(c) }; } if (eo(f) && f.expression === c) return { kind: 2, token: c, call: f, sourceFile: e, modifierFlags: 0, parentDeclaration: Q1e(c) }; } if (!Pr(f)) return; const d = S$(i.getTypeAtLocation(f.expression)), y = d.symbol; if (!y || !y.declarations) return; if (Ve(c) && eo(f.parent)) { const C = un(y.declarations, Hl), I = C == null ? void 0 : C.getSourceFile(); if (C && I && !uw(o, I)) return { kind: 2, token: c, call: f.parent, sourceFile: e, modifierFlags: 1, parentDeclaration: C }; const O = un(y.declarations, ji); if (e.commonJsModuleIndicator) return; if (O && !uw(o, O)) return { kind: 2, token: c, call: f.parent, sourceFile: O, modifierFlags: 1, parentDeclaration: O }; } const m = un(y.declarations, li); if (!m && ki(c)) return; const b = m || un(y.declarations, (C) => Yu(C) || rf(C)); if (b && !uw(o, b.getSourceFile())) { const C = !rf(b) && (d.target || d) !== i.getDeclaredTypeOfSymbol(y); if (C && (ki(c) || Yu(b))) return; const I = b.getSourceFile(), O = rf(b) ? 0 : (C ? 32 : 0) | (X$(c.text) ? 8 : 0), k = Ju(I), B = ri(f.parent, eo); return { kind: 0, token: c, call: B, modifierFlags: O, parentDeclaration: b, declSourceFile: I, isJSFile: k }; } const A = un(y.declarations, Y0); if (A && !(d.flags & 1056) && !ki(c) && !uw(o, A.getSourceFile())) return { kind: 1, token: c, parentDeclaration: A }; } function VGe(e, t) { return t.isJSFile ? WE(jGe(e, t)) : HGe(e, t); } function jGe(e, { parentDeclaration: t, declSourceFile: r, modifierFlags: i, token: o }) { if (Yu(t) || rf(t)) return; const s = hr.ChangeTracker.with(e, (f) => j1e(f, r, t, o, !!(i & 32))); if (s.length === 0) return; const c = i & 32 ? _.Initialize_static_property_0 : ki(o) ? _.Declare_a_private_field_named_0 : _.Initialize_property_0_in_the_constructor; return to(Iy, s, [c, o.text], Iy, _.Add_all_missing_members); } function j1e(e, t, r, i, o) { const s = i.text; if (o) { if (r.kind === 228) return; const c = r.name.getText(), f = H1e(N.createIdentifier(c), s); e.insertNodeAfter(t, r, f); } else if (ki(i)) { const c = N.createPropertyDeclaration(void 0, s, void 0, void 0, void 0), f = q1e(r); f ? e.insertNodeAfter(t, f, c) : e.insertMemberAtStart(t, r, c); } else { const c = hh(r); if (!c) return; const f = H1e(N.createThis(), s); e.insertNodeAtConstructorEnd(t, c, f); } } function H1e(e, t) { return N.createExpressionStatement(N.createAssignment(N.createPropertyAccessExpression(e, t), JT())); } function HGe(e, { parentDeclaration: t, declSourceFile: r, modifierFlags: i, token: o }) { const s = o.text, c = i & 32, f = W1e(e.program.getTypeChecker(), t, o), d = (m) => hr.ChangeTracker.with(e, (b) => z1e(b, r, t, s, f, m)), y = [to(Iy, d(i & 32), [c ? _.Declare_static_property_0 : _.Declare_property_0, s], Iy, _.Add_all_missing_members)]; return c || ki(o) || (i & 8 && y.unshift(vp(Iy, d(8), [_.Declare_private_property_0, s])), y.push(WGe(e, r, t, o.text, f))), y; } function W1e(e, t, r) { let i; if (r.parent.parent.kind === 223) { const o = r.parent.parent, s = r.parent === o.left ? o.right : o.left, c = e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s))); i = e.typeToTypeNode(c, t, 1); } else { const o = e.getContextualType(r.parent); i = o ? e.typeToTypeNode(o, void 0, 1) : void 0; } return i || N.createKeywordTypeNode(131); } function z1e(e, t, r, i, o, s) { const c = s ? N.createNodeArray(N.createModifiersFromModifierFlags(s)) : void 0, f = li(r) ? N.createPropertyDeclaration(c, i, void 0, o, void 0) : N.createPropertySignature(void 0, i, void 0, o), d = q1e(r); d ? e.insertNodeAfter(t, d, f) : e.insertMemberAtStart(t, r, f); } function q1e(e) { let t; for (const r of e.members) { if (!Za(r)) break; t = r; } return t; } function WGe(e, t, r, i, o) { const s = N.createKeywordTypeNode(152), c = N.createParameterDeclaration(void 0, void 0, "x", void 0, s, void 0), f = N.createIndexSignature(void 0, [c], o), d = hr.ChangeTracker.with(e, (y) => y.insertMemberAtStart(t, r, f)); return vp(Iy, d, [_.Add_index_signature_for_property_0, i]); } function zGe(e, t) { const { parentDeclaration: r, declSourceFile: i, modifierFlags: o, token: s, call: c } = t; if (c === void 0 || ki(s)) return; const f = s.text, d = (m) => hr.ChangeTracker.with(e, (b) => J1e(e, b, c, s, m, r, i)), y = [to(Iy, d(o & 32), [o & 32 ? _.Declare_static_method_0 : _.Declare_method_0, f], Iy, _.Add_all_missing_members)]; return o & 8 && y.unshift(vp(Iy, d(8), [_.Declare_private_method_0, f])), y; } function J1e(e, t, r, i, o, s, c) { const f = qT(c, e.program, e.preferences, e.host), d = li(s) ? 171 : 170, y = Cee(d, e, f, r, i, o, s), m = KGe(s, r); m ? t.insertNodeAfter(c, m, y) : t.insertMemberAtStart(c, s, y), f.writeFixes(t); } function K1e(e, t, { token: r, parentDeclaration: i }) { const o = kt(i.members, (c) => { const f = t.getTypeAtLocation(c); return !!(f && f.flags & 402653316); }), s = N.createEnumMember(r, o ? N.createStringLiteral(r.text) : void 0); e.replaceNode(i.getSourceFile(), i, N.updateEnumDeclaration(i, i.modifiers, i.name, ha(i.members, WE(s))), { leadingTriviaOption: hr.LeadingTriviaOption.IncludeAll, trailingTriviaOption: hr.TrailingTriviaOption.Exclude }); } function X1e(e, t, r) { const i = yp(t.sourceFile, t.preferences), o = qT(t.sourceFile, t.program, t.preferences, t.host), s = r.kind === 2 ? Cee(259, t, o, r.call, Or(r.token), r.modifierFlags, r.parentDeclaration) : WB(259, t, i, r.signature, b6(_.Function_not_implemented.message, i), r.token, void 0, void 0, void 0, o); s === void 0 && D.fail("fixMissingFunctionDeclaration codefix got unexpected error."), pp(r.parentDeclaration) ? e.insertNodeBefore(r.sourceFile, r.parentDeclaration, s, !0) : e.insertNodeAtEndOfScope(r.sourceFile, r.parentDeclaration, s), o.writeFixes(e); } function Y1e(e, t, r) { const i = qT(t.sourceFile, t.program, t.preferences, t.host), o = yp(t.sourceFile, t.preferences), s = t.program.getTypeChecker(), c = r.parentDeclaration.attributes, f = kt(c.properties, ST), d = rn(r.attributes, (b) => { const A = vB(t, s, i, o, s.getTypeOfSymbol(b), r.parentDeclaration), C = N.createIdentifier(b.name), I = N.createJsxAttribute(C, N.createJsxExpression(void 0, A)); return Bo(C, I), I; }), y = N.createJsxAttributes(f ? [...d, ...c.properties] : [...c.properties, ...d]), m = { prefix: c.pos === c.end ? " " : void 0 }; e.replaceNode(t.sourceFile, c, y, m), i.writeFixes(e); } function $1e(e, t, r) { const i = qT(t.sourceFile, t.program, t.preferences, t.host), o = yp(t.sourceFile, t.preferences), s = $o(t.program.getCompilerOptions()), c = t.program.getTypeChecker(), f = rn(r.properties, (y) => { const m = vB(t, c, i, o, c.getTypeOfSymbol(y), r.parentDeclaration); return N.createPropertyAssignment(XGe(y, s, o, c), m); }), d = { leadingTriviaOption: hr.LeadingTriviaOption.Exclude, trailingTriviaOption: hr.TrailingTriviaOption.Exclude, indentation: r.indentation }; e.replaceNode(t.sourceFile, r.parentDeclaration, N.createObjectLiteralExpression([...r.parentDeclaration.properties, ...f], !0), d), i.writeFixes(e); } function vB(e, t, r, i, o, s) { if (o.flags & 3) return JT(); if (o.flags & 134217732) return N.createStringLiteral("", i === 0); if (o.flags & 8) return N.createNumericLiteral(0); if (o.flags & 64) return N.createBigIntLiteral("0n"); if (o.flags & 16) return N.createFalse(); if (o.flags & 1056) { const c = o.symbol.exports ? EP(o.symbol.exports.values()) : o.symbol, f = t.symbolToExpression(o.symbol.parent ? o.symbol.parent : o.symbol, 111551, void 0, void 0); return c === void 0 || f === void 0 ? N.createNumericLiteral(0) : N.createPropertyAccessExpression(f, t.symbolToString(c)); } if (o.flags & 256) return N.createNumericLiteral(o.value); if (o.flags & 2048) return N.createBigIntLiteral(o.value); if (o.flags & 128) return N.createStringLiteral(o.value, i === 0); if (o.flags & 512) return o === t.getFalseType() || o === t.getFalseType(!0) ? N.createFalse() : N.createTrue(); if (o.flags & 65536) return N.createNull(); if (o.flags & 1048576) { const c = En(o.types, (f) => vB(e, t, r, i, f, s)); return c ?? JT(); } if (t.isArrayLikeType(o)) return N.createArrayLiteralExpression(); if (qGe(o)) { const c = rn(t.getPropertiesOfType(o), (f) => { const d = vB(e, t, r, i, t.getTypeOfSymbol(f), s); return N.createPropertyAssignment(f.name, d); }); return N.createObjectLiteralExpression(c, !0); } if (Qr(o) & 16) { if (un(o.symbol.declarations || nt, Sm(Eh, bh, nc)) === void 0) return JT(); const f = t.getSignaturesOfType(o, 0); if (f === void 0) return JT(); const d = WB(215, e, i, f[0], b6(_.Function_not_implemented.message, i), void 0, void 0, void 0, s, r); return d ?? JT(); } if (Qr(o) & 1) { const c = cg(o.symbol); if (c === void 0 || T1(c)) return JT(); const f = hh(c); return f && Ne(f.parameters) ? JT() : N.createNewExpression(N.createIdentifier(o.symbol.name), void 0, void 0); } return JT(); } function JT() { return N.createIdentifier("undefined"); } function qGe(e) { return e.flags & 524288 && (Qr(e) & 128 || e.symbol && ri(bm(e.symbol.declarations), rf)); } function JGe(e, t, r) { const i = e.getContextualType(r.attributes); if (i === void 0) return nt; const o = i.getProperties(); if (!Ne(o)) return nt; const s = /* @__PURE__ */ new Set(); for (const c of r.attributes.properties) if ($p(c) && s.add(c.name.escapedText), ST(c)) { const f = e.getTypeAtLocation(c.expression); for (const d of f.getProperties()) s.add(d.escapedName); } return yn(o, (c) => w_(c.name, t, 1) && !(c.flags & 16777216 || Al(c) & 48 || s.has(c.escapedName))); } function KGe(e, t) { if (rf(e)) return; const r = nr(t, (i) => nc(i) || jl(i)); return r && r.parent === e ? r : void 0; } function XGe(e, t, r, i) { if (km(e)) { const o = i.symbolToNode(e, 111551, void 0, 1073741824); if (o && Ss(o)) return o; } return R3(e.name, t, r === 0); } function Q1e(e) { if (nr(e, xk)) { const t = nr(e.parent, pp); if (t) return t; } return Zn(e); } var Iy, p6, m6, h6, WZ, YGe = L({ "src/services/codefixes/fixAddMissingMember.ts"() { Kr(), yo(), Iy = "fixMissingMember", p6 = "fixMissingProperties", m6 = "fixMissingAttributes", h6 = "fixMissingFunctionDeclaration", WZ = [ _.Property_0_does_not_exist_on_type_1.code, _.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code, _.Property_0_is_missing_in_type_1_but_required_in_type_2.code, _.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code, _.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code, _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code, _.Cannot_find_name_0.code ], uo({ errorCodes: WZ, getCodeActions(e) { const t = e.program.getTypeChecker(), r = V1e(e.sourceFile, e.span.start, e.errorCode, t, e.program); if (r) { if (r.kind === 3) { const i = hr.ChangeTracker.with(e, (o) => $1e(o, e, r)); return [to(p6, i, _.Add_missing_properties, p6, _.Add_all_missing_properties)]; } if (r.kind === 4) { const i = hr.ChangeTracker.with(e, (o) => Y1e(o, e, r)); return [to(m6, i, _.Add_missing_attributes, m6, _.Add_all_missing_attributes)]; } if (r.kind === 2 || r.kind === 5) { const i = hr.ChangeTracker.with(e, (o) => X1e(o, e, r)); return [to(h6, i, [_.Add_missing_function_declaration_0, r.token.text], h6, _.Add_all_missing_function_declarations)]; } if (r.kind === 1) { const i = hr.ChangeTracker.with(e, (o) => K1e(o, e.program.getTypeChecker(), r)); return [to(Iy, i, [_.Add_missing_enum_member_0, r.token.text], Iy, _.Add_all_missing_members)]; } return ha(zGe(e, r), VGe(e, r)); } }, fixIds: [Iy, h6, p6, m6], getAllCodeActions: (e) => { const { program: t, fixId: r } = e, i = t.getTypeChecker(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); return zx(hr.ChangeTracker.with(e, (c) => { qx(e, WZ, (f) => { const d = V1e(f.file, f.start, f.code, i, e.program); if (!(!d || !_p(o, ds(d.parentDeclaration) + "#" + d.token.text))) { if (r === h6 && (d.kind === 2 || d.kind === 5)) X1e(c, e, d); else if (r === p6 && d.kind === 3) $1e(c, e, d); else if (r === m6 && d.kind === 4) Y1e(c, e, d); else if (d.kind === 1 && K1e(c, i, d), d.kind === 0) { const { parentDeclaration: y, token: m } = d, b = XD(s, y, () => []); b.some((A) => A.token.text === m.text) || b.push(d); } } }), s.forEach((f, d) => { const y = rf(d) ? void 0 : Oee(d, i); for (const m of f) { if (y != null && y.some((B) => { const U = s.get(B); return !!U && U.some(({ token: j }) => j.text === m.token.text); })) continue; const { parentDeclaration: b, declSourceFile: A, modifierFlags: C, token: I, call: O, isJSFile: k } = m; if (O && !ki(I)) J1e(e, c, O, I, C & 32, b, A); else if (k && !Yu(b) && !rf(b)) j1e(c, A, b, I, !!(C & 32)); else { const B = W1e(i, b, I); z1e(c, A, b, I.text, B, C & 32); } } }); })); } }); } }); function Z1e(e, t, r) { const i = ro($Ge(t, r), eo), o = N.createNewExpression(i.expression, i.typeArguments, i.arguments); e.replaceNode(t, i, o); } function $Ge(e, t) { let r = ra(e, t.start); const i = Qc(t); for (; r.end < i; ) r = r.parent; return r; } var bB, zZ, QGe = L({ "src/services/codefixes/fixAddMissingNewOperator.ts"() { Kr(), yo(), bB = "addMissingNewOperator", zZ = [_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code], uo({ errorCodes: zZ, getCodeActions(e) { const { sourceFile: t, span: r } = e, i = hr.ChangeTracker.with(e, (o) => Z1e(o, t, r)); return [to(bB, i, _.Add_missing_new_operator_to_call, bB, _.Add_missing_new_operator_to_all_calls)]; }, fixIds: [bB], getAllCodeActions: (e) => xs(e, zZ, (t, r) => Z1e(t, e.sourceFile, r)) }); } }); function eEe(e, t) { return { type: "install package", file: e, packageName: t }; } function tEe(e, t) { const r = ri(ra(e, t), Go); if (!r) return; const i = r.text, { packageName: o } = yK(i); return Oc(o) ? void 0 : o; } function nEe(e, t, r) { var i; return r === qZ ? FT.nodeCoreModules.has(e) ? "@types/node" : void 0 : (i = t.isKnownTypesPackageName) != null && i.call(t, e) ? p5(e) : void 0; } var rEe, EB, qZ, JZ, ZGe = L({ "src/services/codefixes/fixCannotFindModule.ts"() { Kr(), yo(), rEe = "fixCannotFindModule", EB = "installTypesPackage", qZ = _.Cannot_find_module_0_or_its_corresponding_type_declarations.code, JZ = [ qZ, _.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code ], uo({ errorCodes: JZ, getCodeActions: function(t) { const { host: r, sourceFile: i, span: { start: o } } = t, s = tEe(i, o); if (s === void 0) return; const c = nEe(s, r, t.errorCode); return c === void 0 ? [] : [to(rEe, [], [_.Install_0, c], EB, _.Install_all_missing_types_packages, eEe(i.fileName, c))]; }, fixIds: [EB], getAllCodeActions: (e) => xs(e, JZ, (t, r, i) => { const o = tEe(r.file, r.start); if (o !== void 0) switch (e.fixId) { case EB: { const s = nEe(o, e.host, r.code); s && i.push(eEe(r.file.fileName, s)); break; } default: D.fail(`Bad fixId: ${e.fixId}`); } }) }); } }); function iEe(e, t) { const r = ra(e, t); return ro(r.parent, li); } function aEe(e, t, r, i, o) { const s = Wp(e), c = r.program.getTypeChecker(), f = c.getTypeAtLocation(s), d = c.getPropertiesOfType(f).filter(eUe), y = qT(t, r.program, o, r.host); Aee(e, d, t, r, o, y, (m) => i.insertMemberAtStart(t, e, m)), y.writeFixes(i); } function eUe(e) { const t = Iv(ss(e.getDeclarations())); return !(t & 8) && !!(t & 256); } var KZ, TB, tUe = L({ "src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"() { Kr(), yo(), KZ = [ _.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code, _.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code ], TB = "fixClassDoesntImplementInheritedAbstractMember", uo({ errorCodes: KZ, getCodeActions: function(t) { const { sourceFile: r, span: i } = t, o = hr.ChangeTracker.with(t, (s) => aEe(iEe(r, i.start), r, t, s, t.preferences)); return o.length === 0 ? void 0 : [to(TB, o, _.Implement_inherited_abstract_class, TB, _.Implement_all_inherited_abstract_classes)]; }, fixIds: [TB], getAllCodeActions: function(t) { const r = /* @__PURE__ */ new Map(); return xs(t, KZ, (i, o) => { const s = iEe(o.file, o.start); _p(r, ds(s)) && aEe(s, t.sourceFile, t, i, t.preferences); }); } }); } }); function oEe(e, t, r, i) { e.insertNodeAtConstructorStart(t, r, i), e.delete(t, i); } function sEe(e, t) { const r = ra(e, t); if (r.kind !== 108) return; const i = bf(r), o = lEe(i.body); return o && !o.expression.arguments.some((s) => Pr(s) && s.expression === r) ? { constructor: i, superCall: o } : void 0; } function lEe(e) { return eu(e) && LA(e.expression) ? e : qa(e) ? void 0 : Oa(e, lEe); } var SB, XZ, nUe = L({ "src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"() { Kr(), yo(), SB = "classSuperMustPrecedeThisAccess", XZ = [_.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code], uo({ errorCodes: XZ, getCodeActions(e) { const { sourceFile: t, span: r } = e, i = sEe(t, r.start); if (!i) return; const { constructor: o, superCall: s } = i, c = hr.ChangeTracker.with(e, (f) => oEe(f, t, o, s)); return [to(SB, c, _.Make_super_call_the_first_statement_in_the_constructor, SB, _.Make_all_super_calls_the_first_statement_in_their_constructor)]; }, fixIds: [SB], getAllCodeActions(e) { const { sourceFile: t } = e, r = /* @__PURE__ */ new Map(); return xs(e, XZ, (i, o) => { const s = sEe(o.file, o.start); if (!s) return; const { constructor: c, superCall: f } = s; _p(r, ds(c.parent)) && oEe(i, t, c, f); }); } }); } }); function cEe(e, t) { const r = ra(e, t); return D.assert(jl(r.parent), "token should be at the constructor declaration"), r.parent; } function uEe(e, t, r) { const i = N.createExpressionStatement(N.createCallExpression(N.createSuper(), void 0, nt)); e.insertNodeAtConstructorStart(t, r, i); } var xB, YZ, rUe = L({ "src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"() { Kr(), yo(), xB = "constructorForDerivedNeedSuperCall", YZ = [_.Constructors_for_derived_classes_must_contain_a_super_call.code], uo({ errorCodes: YZ, getCodeActions(e) { const { sourceFile: t, span: r } = e, i = cEe(t, r.start), o = hr.ChangeTracker.with(e, (s) => uEe(s, t, i)); return [to(xB, o, _.Add_missing_super_call, xB, _.Add_all_missing_super_calls)]; }, fixIds: [xB], getAllCodeActions: (e) => xs(e, YZ, (t, r) => uEe(t, e.sourceFile, cEe(r.file, r.start))) }); } }); function dEe(e, t) { wee(e, t, "jsx", N.createStringLiteral("react")); } var $Z, QZ, iUe = L({ "src/services/codefixes/fixEnableJsxFlag.ts"() { Kr(), yo(), $Z = "fixEnableJsxFlag", QZ = [_.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code], uo({ errorCodes: QZ, getCodeActions: function(t) { const { configFile: r } = t.program.getCompilerOptions(); if (r === void 0) return; const i = hr.ChangeTracker.with(t, (o) => dEe(o, r)); return [ vp($Z, i, _.Enable_the_jsx_flag_in_your_configuration_file) ]; }, fixIds: [$Z], getAllCodeActions: (e) => xs(e, QZ, (t) => { const { configFile: r } = e.program.getCompilerOptions(); r !== void 0 && dEe(t, r); }) }); } }); function fEe(e, t, r) { const i = un(e.getSemanticDiagnostics(t), (c) => c.start === r.start && c.length === r.length); if (i === void 0 || i.relatedInformation === void 0) return; const o = un(i.relatedInformation, (c) => c.code === _.Did_you_mean_0.code); if (o === void 0 || o.file === void 0 || o.start === void 0 || o.length === void 0) return; const s = Ree(o.file, Cc(o.start, o.length)); if (s !== void 0 && yt(s) && vr(s.parent)) return { suggestion: aUe(o.messageText), expression: s.parent, arg: s }; } function _Ee(e, t, r, i) { const o = N.createCallExpression(N.createPropertyAccessExpression(N.createIdentifier("Number"), N.createIdentifier("isNaN")), void 0, [r]), s = i.operatorToken.kind; e.replaceNode(t, i, s === 37 || s === 35 ? N.createPrefixUnaryExpression(53, o) : o); } function aUe(e) { const [t, r] = Gv(e, ` `, 0).match(/\'(.*)\'/) || []; return r; } var AB, ZZ, oUe = L({ "src/services/codefixes/fixNaNEquality.ts"() { Kr(), yo(), AB = "fixNaNEquality", ZZ = [ _.This_condition_will_always_return_0.code ], uo({ errorCodes: ZZ, getCodeActions(e) { const { sourceFile: t, span: r, program: i } = e, o = fEe(i, t, r); if (o === void 0) return; const { suggestion: s, expression: c, arg: f } = o, d = hr.ChangeTracker.with(e, (y) => _Ee(y, t, f, c)); return [to(AB, d, [_.Use_0, s], AB, _.Use_Number_isNaN_in_all_conditions)]; }, fixIds: [AB], getAllCodeActions: (e) => xs(e, ZZ, (t, r) => { const i = fEe(e.program, r.file, Cc(r.start, r.length)); i && _Ee(t, r.file, i.arg, i.expression); }) }); } }), sUe = L({ "src/services/codefixes/fixModuleAndTargetOptions.ts"() { Kr(), yo(), uo({ errorCodes: [ _.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code, _.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code ], getCodeActions: function(t) { const r = t.program.getCompilerOptions(), { configFile: i } = r; if (i === void 0) return; const o = [], s = Zc(r); if (s >= 5 && s < 99) { const y = hr.ChangeTracker.with(t, (m) => { wee(m, i, "module", N.createStringLiteral("esnext")); }); o.push(vp("fixModuleOption", y, [_.Set_the_module_option_in_your_configuration_file_to_0, "esnext"])); } const f = $o(r); if (f < 4 || f > 99) { const y = hr.ChangeTracker.with(t, (m) => { if (!LI(i)) return; const A = [["target", N.createStringLiteral("es2017")]]; s === 1 && A.push(["module", N.createStringLiteral("commonjs")]), kee(m, i, A); }); o.push(vp("fixTargetOption", y, [_.Set_the_target_option_in_your_configuration_file_to_0, "es2017"])); } return o.length ? o : void 0; } }); } }); function pEe(e, t, r) { e.replaceNode(t, r, N.createPropertyAssignment(r.name, r.objectAssignmentInitializer)); } function mEe(e, t) { return ro(ra(e, t).parent, Xf); } var CB, eee, lUe = L({ "src/services/codefixes/fixPropertyAssignment.ts"() { Kr(), yo(), CB = "fixPropertyAssignment", eee = [ _.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 ], uo({ errorCodes: eee, fixIds: [CB], getCodeActions(e) { const { sourceFile: t, span: r } = e, i = mEe(t, r.start), o = hr.ChangeTracker.with(e, (s) => pEe(s, e.sourceFile, i)); return [to(CB, o, [_.Change_0_to_1, "=", ":"], CB, [_.Switch_each_misused_0_to_1, "=", ":"])]; }, getAllCodeActions: (e) => xs(e, eee, (t, r) => pEe(t, r.file, mEe(r.file, r.start))) }); } }); function hEe(e, t) { const r = ra(e, t), i = Ec(r).heritageClauses, o = i[0].getFirstToken(); return o.kind === 94 ? { extendsToken: o, heritageClauses: i } : void 0; } function gEe(e, t, r, i) { if (e.replaceNode(t, r, N.createToken(117)), i.length === 2 && i[0].token === 94 && i[1].token === 117) { const o = i[1].getFirstToken(), s = o.getFullStart(); e.replaceRange(t, { pos: s, end: s }, N.createToken(27)); const c = t.text; let f = o.end; for (; f < c.length && Cm(c.charCodeAt(f)); ) f++; e.deleteRange(t, { pos: o.getStart(), end: f }); } } var LB, tee, cUe = L({ "src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"() { Kr(), yo(), LB = "extendsInterfaceBecomesImplements", tee = [_.Cannot_extend_an_interface_0_Did_you_mean_implements.code], uo({ errorCodes: tee, getCodeActions(e) { const { sourceFile: t } = e, r = hEe(t, e.span.start); if (!r) return; const { extendsToken: i, heritageClauses: o } = r, s = hr.ChangeTracker.with(e, (c) => gEe(c, t, i, o)); return [to(LB, s, _.Change_extends_to_implements, LB, _.Change_all_extended_interfaces_to_implements)]; }, fixIds: [LB], getAllCodeActions: (e) => xs(e, tee, (t, r) => { const i = hEe(r.file, r.start); i && gEe(t, r.file, i.extendsToken, i.heritageClauses); }) }); } }); function yEe(e, t, r) { const i = ra(e, t); if (Ve(i) || ki(i)) return { node: i, className: r === nee ? Ec(i).name.text : void 0 }; } function vEe(e, t, { node: r, className: i }) { Gd(r), e.replaceNode(t, r, N.createPropertyAccessExpression(i ? N.createIdentifier(i) : N.createThis(), r)); } var IB, nee, ree, uUe = L({ "src/services/codefixes/fixForgottenThisPropertyAccess.ts"() { Kr(), yo(), IB = "forgottenThisPropertyAccess", nee = _.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code, ree = [ _.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code, _.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, nee ], uo({ errorCodes: ree, getCodeActions(e) { const { sourceFile: t } = e, r = yEe(t, e.span.start, e.errorCode); if (!r) return; const i = hr.ChangeTracker.with(e, (o) => vEe(o, t, r)); return [to(IB, i, [_.Add_0_to_unresolved_variable, r.className || "this"], IB, _.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]; }, fixIds: [IB], getAllCodeActions: (e) => xs(e, ree, (t, r) => { const i = yEe(r.file, r.start, r.code); i && vEe(t, e.sourceFile, i); }) }); } }); function dUe(e) { return Ns(oee, e); } function iee(e, t, r, i, o) { const s = r.getText()[i]; if (!dUe(s)) return; const c = o ? oee[s] : `{${sw(r, t, s)}}`; e.replaceRangeWithText(r, { pos: i, end: i + 1 }, c); } var kB, g6, aee, oee, fUe = L({ "src/services/codefixes/fixInvalidJsxCharacters.ts"() { Kr(), yo(), kB = "fixInvalidJsxCharacters_expression", g6 = "fixInvalidJsxCharacters_htmlEntity", aee = [ _.Unexpected_token_Did_you_mean_or_gt.code, _.Unexpected_token_Did_you_mean_or_rbrace.code ], uo({ errorCodes: aee, fixIds: [kB, g6], getCodeActions(e) { const { sourceFile: t, preferences: r, span: i } = e, o = hr.ChangeTracker.with(e, (c) => iee(c, r, t, i.start, !1)), s = hr.ChangeTracker.with(e, (c) => iee(c, r, t, i.start, !0)); return [ to(kB, o, _.Wrap_invalid_character_in_an_expression_container, kB, _.Wrap_all_invalid_characters_in_an_expression_container), to(g6, s, _.Convert_invalid_character_to_its_html_entity_code, g6, _.Convert_all_invalid_characters_to_HTML_entity_code) ]; }, getAllCodeActions(e) { return xs(e, aee, (t, r) => iee(t, e.preferences, r.file, r.start, e.fixId === g6)); } }), oee = { ">": ">", "}": "}" }; } }); function _Ue(e, { name: t, jsDocHost: r, jsDocParameterTag: i }) { const o = hr.ChangeTracker.with(e, (s) => s.filterJSDocTags(e.sourceFile, r, (c) => c !== i)); return to(y6, o, [_.Delete_unused_param_tag_0, t.getText(e.sourceFile)], y6, _.Delete_all_unused_param_tags); } function pUe(e, { name: t, jsDocHost: r, signature: i, jsDocParameterTag: o }) { if (!Ne(i.parameters)) return; const s = e.sourceFile, c = l1(i), f = /* @__PURE__ */ new Set(); for (const b of c) Qp(b) && Ve(b.name) && f.add(b.name.escapedText); const d = En(i.parameters, (b) => Ve(b.name) && !f.has(b.name.escapedText) ? b.name.getText(s) : void 0); if (d === void 0) return; const y = N.updateJSDocParameterTag(o, o.tagName, N.createIdentifier(d), o.isBracketed, o.typeExpression, o.isNameFirst, o.comment), m = hr.ChangeTracker.with(e, (b) => b.replaceJSDocComment(s, r, rn(c, (A) => A === o ? y : A))); return vp(see, m, [_.Rename_param_tag_name_0_to_1, t.getText(s), d]); } function bEe(e, t) { const r = ra(e, t); if (r.parent && Qp(r.parent) && Ve(r.parent.name)) { const i = r.parent, o = QS(i), s = V0(i); if (o && s) return { jsDocHost: o, signature: s, name: r.parent.name, jsDocParameterTag: i }; } } var y6, see, lee, mUe = L({ "src/services/codefixes/fixUnmatchedParameter.ts"() { Kr(), yo(), y6 = "deleteUnmatchedParameter", see = "renameUnmatchedParameter", lee = [ _.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code ], uo({ fixIds: [y6, see], errorCodes: lee, getCodeActions: function(t) { const { sourceFile: r, span: i } = t, o = [], s = bEe(r, i.start); if (s) return Fn(o, _Ue(t, s)), Fn(o, pUe(t, s)), o; }, getAllCodeActions: function(t) { const r = /* @__PURE__ */ new Map(); return zx(hr.ChangeTracker.with(t, (i) => { qx(t, lee, ({ file: o, start: s }) => { const c = bEe(o, s); c && r.set(c.signature, Fn(r.get(c.signature), c.jsDocParameterTag)); }), r.forEach((o, s) => { if (t.fixId === y6) { const c = new Set(o); i.filterJSDocTags(s.getSourceFile(), s, (f) => !c.has(f)); } }); })); } }); } }); function hUe(e, t, r) { const i = ri(ra(e, r), Ve); if (!i || i.parent.kind !== 180) return; const s = t.getTypeChecker().getSymbolAtLocation(i); return un((s == null ? void 0 : s.declarations) || nt, Sm(Gm, Td, tu)); } function gUe(e, t, r, i) { if (r.kind === 268) { e.insertModifierBefore(t, 154, r.name); return; } const o = r.kind === 270 ? r : r.parent.parent; if (o.name && o.namedBindings) return; const s = i.getTypeChecker(); n3(o, (f) => { if (nf(f.symbol, s).flags & 111551) return !0; }) || e.insertModifierBefore(t, 154, o); } function yUe(e, t, r, i) { Rw.doChangeNamedToNamespaceOrDefault(t, i, e, r.parent); } var wB, EEe, vUe = L({ "src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"() { Kr(), yo(), wB = "fixUnreferenceableDecoratorMetadata", EEe = [_.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code], uo({ errorCodes: EEe, getCodeActions: (e) => { const t = hUe(e.sourceFile, e.program, e.span.start); if (!t) return; const r = hr.ChangeTracker.with(e, (s) => t.kind === 273 && yUe(s, e.sourceFile, t, e.program)), i = hr.ChangeTracker.with(e, (s) => gUe(s, e.sourceFile, t, e.program)); let o; return r.length && (o = Fn(o, vp(wB, r, _.Convert_named_imports_to_namespace_import))), i.length && (o = Fn(o, vp(wB, i, _.Convert_to_type_only_import))), o; }, fixIds: [wB] }); } }); function TEe(e, t, r) { e.replaceNode(t, r.parent, N.createKeywordTypeNode(157)); } function yw(e, t) { return to(vw, e, t, NB, _.Delete_all_unused_declarations); } function SEe(e, t, r) { e.delete(t, D.checkDefined(ro(r.parent, PW).typeParameters, "The type parameter to delete should exist")); } function cee(e) { return e.kind === 100 || e.kind === 79 && (e.parent.kind === 273 || e.parent.kind === 270); } function xEe(e) { return e.kind === 100 ? ri(e.parent, Gc) : void 0; } function AEe(e, t) { return Ou(t.parent) && ss(t.parent.getChildren(e)) === t; } function CEe(e, t, r) { e.delete(t, r.parent.kind === 240 ? r.parent : r); } function bUe(e, t, r) { Ye(r.elements, (i) => e.delete(t, i)); } function LEe(e, t, r, i) { t !== _.Property_0_is_declared_but_its_value_is_never_read.code && (i.kind === 138 && (i = ro(i.parent, uC).typeParameter.name), Ve(i) && EUe(i) && (e.replaceNode(r, i, N.createIdentifier(`_${i.text}`)), Ma(i.parent) && dI(i.parent).forEach((o) => { Ve(o.name) && e.replaceNode(r, o.name, N.createIdentifier(`_${o.name.text}`)); }))); } function EUe(e) { switch (e.parent.kind) { case 166: case 165: return !0; case 257: switch (e.parent.parent.parent.kind) { case 247: case 246: return !0; } } return !1; } function DB(e, t, r, i, o, s, c, f) { TUe(t, r, e, i, o, s, c, f), Ve(t) && ll.Core.eachSymbolReferenceInFile(t, i, e, (d) => { Pr(d.parent) && d.parent.name === d && (d = d.parent), !f && CUe(d) && r.delete(e, d.parent.parent); }); } function TUe(e, t, r, i, o, s, c, f) { const { parent: d } = e; if (Ma(d)) SUe(t, r, d, i, o, s, c, f); else if (!(f && Ve(e) && ll.Core.isSymbolReferencedInFile(e, i, r))) { const y = Gm(d) ? e : Ss(d) ? d.parent : d; D.assert(y !== r, "should not delete whole source file"), t.delete(r, y); } } function SUe(e, t, r, i, o, s, c, f = !1) { if (xUe(i, t, r, o, s, c, f)) if (r.modifiers && r.modifiers.length > 0 && (!Ve(r.name) || ll.Core.isSymbolReferencedInFile(r.name, i, t))) for (const d of r.modifiers) lo(d) && e.deleteModifier(t, d); else !r.initializer && IEe(r, i, o) && e.delete(t, r); } function IEe(e, t, r) { const i = e.parent.parameters.indexOf(e); return !ll.Core.someSignatureUsage(e.parent, r, t, (o, s) => !s || s.arguments.length > i); } function xUe(e, t, r, i, o, s, c) { const { parent: f } = r; switch (f.kind) { case 171: case 173: const d = f.parameters.indexOf(r), y = nc(f) ? f.name : f, m = ll.Core.getReferencedSymbolsForNode(f.pos, y, o, i, s); if (m) { for (const b of m) for (const A of b.references) if (A.kind === ll.EntryKind.Node) { const C = mk(A.node) && eo(A.node.parent) && A.node.parent.arguments.length > d, I = Pr(A.node.parent) && mk(A.node.parent.expression) && eo(A.node.parent.parent) && A.node.parent.parent.arguments.length > d, O = (nc(A.node.parent) || bh(A.node.parent)) && A.node.parent !== r.parent && A.node.parent.parameters.length > d; if (C || I || O) return !1; } } return !0; case 259: return f.name && AUe(e, t, f.name) ? kEe(f, r, c) : !0; case 215: case 216: return kEe(f, r, c); case 175: return !1; case 174: return !0; default: return D.failBadSyntaxKind(f); } } function AUe(e, t, r) { return !!ll.Core.eachSymbolReferenceInFile(r, e, t, (i) => Ve(i) && eo(i.parent) && i.parent.arguments.indexOf(i) >= 0); } function kEe(e, t, r) { const i = e.parameters, o = i.indexOf(t); return D.assert(o !== -1, "The parameter should already be in the list"), r ? i.slice(o + 1).every((s) => Ve(s.name) && !s.symbol.isReferenced) : o === i.length - 1; } function CUe(e) { return (vr(e.parent) && e.parent.left === e || (Zq(e.parent) || Nv(e.parent)) && e.parent.operand === e) && eu(e.parent.parent); } var vw, RB, NB, v6, OB, uee, LUe = L({ "src/services/codefixes/fixUnusedIdentifier.ts"() { Kr(), yo(), vw = "unusedIdentifier", RB = "unusedIdentifier_prefix", NB = "unusedIdentifier_delete", v6 = "unusedIdentifier_deleteImports", OB = "unusedIdentifier_infer", uee = [ _._0_is_declared_but_its_value_is_never_read.code, _._0_is_declared_but_never_used.code, _.Property_0_is_declared_but_its_value_is_never_read.code, _.All_imports_in_import_declaration_are_unused.code, _.All_destructured_elements_are_unused.code, _.All_variables_are_unused.code, _.All_type_parameters_are_unused.code ], uo({ errorCodes: uee, getCodeActions(e) { const { errorCode: t, sourceFile: r, program: i, cancellationToken: o } = e, s = i.getTypeChecker(), c = i.getSourceFiles(), f = ra(r, e.span.start); if (mp(f)) return [yw(hr.ChangeTracker.with(e, (b) => b.delete(r, f)), _.Remove_template_tag)]; if (f.kind === 29) { const b = hr.ChangeTracker.with(e, (A) => SEe(A, r, f)); return [yw(b, _.Remove_type_parameters)]; } const d = xEe(f); if (d) { const b = hr.ChangeTracker.with(e, (A) => A.delete(r, d)); return [to(vw, b, [_.Remove_import_from_0, Que(d)], v6, _.Delete_all_unused_imports)]; } else if (cee(f)) { const b = hr.ChangeTracker.with(e, (A) => DB(r, f, A, s, c, i, o, !1)); if (b.length) return [to(vw, b, [_.Remove_unused_declaration_for_Colon_0, f.getText(r)], v6, _.Delete_all_unused_imports)]; } if (Bm(f.parent) || dC(f.parent)) { if (Ma(f.parent.parent)) { const b = f.parent.elements, A = [ b.length > 1 ? _.Remove_unused_declarations_for_Colon_0 : _.Remove_unused_declaration_for_Colon_0, rn(b, (C) => C.getText(r)).join(", ") ]; return [ yw(hr.ChangeTracker.with(e, (C) => bUe(C, r, f.parent)), A) ]; } return [ yw(hr.ChangeTracker.with(e, (b) => b.delete(r, f.parent.parent)), _.Remove_unused_destructuring_declaration) ]; } if (AEe(r, f)) return [ yw(hr.ChangeTracker.with(e, (b) => CEe(b, r, f.parent)), _.Remove_variable_statement) ]; const y = []; if (f.kind === 138) { const b = hr.ChangeTracker.with(e, (C) => TEe(C, r, f)), A = ro(f.parent, uC).typeParameter.name.text; y.push(to(vw, b, [_.Replace_infer_0_with_unknown, A], OB, _.Replace_all_unused_infer_with_unknown)); } else { const b = hr.ChangeTracker.with(e, (A) => DB(r, f, A, s, c, i, o, !1)); if (b.length) { const A = Ss(f.parent) ? f.parent : f; y.push(yw(b, [_.Remove_unused_declaration_for_Colon_0, A.getText(r)])); } } const m = hr.ChangeTracker.with(e, (b) => LEe(b, t, r, f)); return m.length && y.push(to(vw, m, [_.Prefix_0_with_an_underscore, f.getText(r)], RB, _.Prefix_all_unused_declarations_with_where_possible)), y; }, fixIds: [RB, NB, v6, OB], getAllCodeActions: (e) => { const { sourceFile: t, program: r, cancellationToken: i } = e, o = r.getTypeChecker(), s = r.getSourceFiles(); return xs(e, uee, (c, f) => { const d = ra(t, f.start); switch (e.fixId) { case RB: LEe(c, f.code, t, d); break; case v6: { const y = xEe(d); y ? c.delete(t, y) : cee(d) && DB(t, d, c, o, s, r, i, !0); break; } case NB: { if (d.kind === 138 || cee(d)) break; if (mp(d)) c.delete(t, d); else if (d.kind === 29) SEe(c, t, d); else if (Bm(d.parent)) { if (d.parent.parent.initializer) break; (!Ma(d.parent.parent) || IEe(d.parent.parent, o, s)) && c.delete(t, d.parent.parent); } else { if (dC(d.parent.parent) && d.parent.parent.parent.initializer) break; AEe(t, d) ? CEe(c, t, d.parent) : DB(t, d, c, o, s, r, i, !0); } break; } case OB: d.kind === 138 && TEe(c, t, d); break; default: D.fail(JSON.stringify(e.fixId)); } }); } }); } }); function wEe(e, t, r, i, o) { const s = ra(t, r), c = nr(s, Ia); if (c.getStart(t) !== s.getStart(t)) { const d = JSON.stringify({ statementKind: D.formatSyntaxKind(c.kind), tokenKind: D.formatSyntaxKind(s.kind), errorCode: o, start: r, length: i }); D.fail("Token and statement should start at the same point. " + d); } const f = (oo(c.parent) ? c.parent : c).parent; if (!oo(c.parent) || c === ss(c.parent.statements)) switch (f.kind) { case 242: if (f.elseStatement) { if (oo(c.parent)) break; e.replaceNode(t, c, N.createBlock(nt)); return; } case 244: case 245: e.delete(t, f); return; } if (oo(c.parent)) { const d = r + i, y = D.checkDefined(IUe(eq(c.parent.statements, c), (m) => m.pos < d), "Some statement should be last"); e.deleteNodeRange(t, c, y); } else e.delete(t, c); } function IUe(e, t) { let r; for (const i of e) { if (!t(i)) break; r = i; } return r; } var PB, dee, kUe = L({ "src/services/codefixes/fixUnreachableCode.ts"() { Kr(), yo(), PB = "fixUnreachableCode", dee = [_.Unreachable_code_detected.code], uo({ errorCodes: dee, getCodeActions(e) { if (e.program.getSyntacticDiagnostics(e.sourceFile, e.cancellationToken).length) return; const r = hr.ChangeTracker.with(e, (i) => wEe(i, e.sourceFile, e.span.start, e.span.length, e.errorCode)); return [to(PB, r, _.Remove_unreachable_code, PB, _.Remove_all_unreachable_code)]; }, fixIds: [PB], getAllCodeActions: (e) => xs(e, dee, (t, r) => wEe(t, r.file, r.start, r.length, r.code)) }); } }); function DEe(e, t, r) { const i = ra(t, r), o = ro(i.parent, k1), s = i.getStart(t), c = o.statement.getStart(t), f = d_(s, c, t) ? c : zo(t.text, ys(o, 58, t).end, !0); e.deleteRange(t, { pos: s, end: f }); } var MB, fee, wUe = L({ "src/services/codefixes/fixUnusedLabel.ts"() { Kr(), yo(), MB = "fixUnusedLabel", fee = [_.Unused_label.code], uo({ errorCodes: fee, getCodeActions(e) { const t = hr.ChangeTracker.with(e, (r) => DEe(r, e.sourceFile, e.span.start)); return [to(MB, t, _.Remove_unused_label, MB, _.Remove_all_unused_labels)]; }, fixIds: [MB], getAllCodeActions: (e) => xs(e, fee, (t, r) => DEe(t, r.file, r.start)) }); } }); function REe(e, t, r, i, o) { e.replaceNode(t, r, o.typeToTypeNode(i, r, void 0)); } function NEe(e, t, r) { const i = nr(ra(e, t), DUe), o = i && i.type; return o && { typeNode: o, type: RUe(r, o) }; } function DUe(e) { switch (e.kind) { case 231: case 176: case 177: case 259: case 174: case 178: case 197: case 171: case 170: case 166: case 169: case 168: case 175: case 262: case 213: case 257: return !0; default: return !1; } } function RUe(e, t) { if (hC(t)) { const r = e.getTypeFromTypeNode(t.type); return r === e.getNeverType() || r === e.getVoidType() ? r : e.getUnionType(Fn([r, e.getUndefinedType()], t.postfix ? void 0 : e.getNullType())); } return e.getTypeFromTypeNode(t); } var _ee, FB, pee, NUe = L({ "src/services/codefixes/fixJSDocTypes.ts"() { Kr(), yo(), _ee = "fixJSDocTypes_plain", FB = "fixJSDocTypes_nullable", pee = [ _.JSDoc_types_can_only_be_used_inside_documentation_comments.code, _._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code, _._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code ], uo({ errorCodes: pee, getCodeActions(e) { const { sourceFile: t } = e, r = e.program.getTypeChecker(), i = NEe(t, e.span.start, r); if (!i) return; const { typeNode: o, type: s } = i, c = o.getText(t), f = [d(s, _ee, _.Change_all_jsdoc_style_types_to_TypeScript)]; return o.kind === 317 && f.push(d(s, FB, _.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)), f; function d(y, m, b) { const A = hr.ChangeTracker.with(e, (C) => REe(C, t, o, y, r)); return to("jdocTypes", A, [_.Change_0_to_1, c, r.typeToString(y)], m, b); } }, fixIds: [_ee, FB], getAllCodeActions(e) { const { fixId: t, program: r, sourceFile: i } = e, o = r.getTypeChecker(); return xs(e, pee, (s, c) => { const f = NEe(c.file, c.start, o); if (!f) return; const { typeNode: d, type: y } = f, m = d.kind === 317 && t === FB ? o.getNullableType(y, 32768) : y; REe(s, i, d, m, o); }); } }); } }); function OEe(e, t, r) { e.replaceNodeWithText(t, r, `${r.text}()`); } function PEe(e, t) { const r = ra(e, t); if (Pr(r.parent)) { let i = r.parent; for (; Pr(i.parent); ) i = i.parent; return i.name; } if (Ve(r)) return r; } var BB, mee, OUe = L({ "src/services/codefixes/fixMissingCallParentheses.ts"() { Kr(), yo(), BB = "fixMissingCallParentheses", mee = [ _.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code ], uo({ errorCodes: mee, fixIds: [BB], getCodeActions(e) { const { sourceFile: t, span: r } = e, i = PEe(t, r.start); if (!i) return; const o = hr.ChangeTracker.with(e, (s) => OEe(s, e.sourceFile, i)); return [to(BB, o, _.Add_missing_call_parentheses, BB, _.Add_all_missing_call_parentheses)]; }, getAllCodeActions: (e) => xs(e, mee, (t, r) => { const i = PEe(r.file, r.start); i && OEe(t, r.file, i); }) }); } }); function PUe(e) { if (e.type) return e.type; if (Wi(e.parent) && e.parent.type && Eh(e.parent.type)) return e.parent.type.type; } function MEe(e, t) { const r = ra(e, t), i = bf(r); if (!i) return; let o; switch (i.kind) { case 171: o = i.name; break; case 259: case 215: o = ys(i, 98, e); break; case 216: const s = i.typeParameters ? 29 : 20; o = ys(i, s, e) || ss(i.parameters); break; default: return; } return o && { insertBefore: o, returnType: PUe(i) }; } function FEe(e, t, { insertBefore: r, returnType: i }) { if (i) { const o = eN(i); (!o || o.kind !== 79 || o.text !== "Promise") && e.replaceNode(t, i, N.createTypeReferenceNode("Promise", N.createNodeArray([i]))); } e.insertModifierBefore(t, 132, r); } var GB, hee, MUe = L({ "src/services/codefixes/fixAwaitInSyncFunction.ts"() { Kr(), yo(), GB = "fixAwaitInSyncFunction", hee = [ _.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, _.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, _.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code ], uo({ errorCodes: hee, getCodeActions(e) { const { sourceFile: t, span: r } = e, i = MEe(t, r.start); if (!i) return; const o = hr.ChangeTracker.with(e, (s) => FEe(s, t, i)); return [to(GB, o, _.Add_async_modifier_to_containing_function, GB, _.Add_all_missing_async_modifiers)]; }, fixIds: [GB], getAllCodeActions: function(t) { const r = /* @__PURE__ */ new Map(); return xs(t, hee, (i, o) => { const s = MEe(o.file, o.start); !s || !_p(r, ds(s.insertBefore)) || FEe(i, t.sourceFile, s); }); } }); } }); function BEe(e, t, r, i, o) { let s, c; if (i === _._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code) s = t, c = t + r; else if (i === _._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code) { const f = o.program.getTypeChecker(), d = ra(e, t).parent; D.assert(F0(d), "error span of fixPropertyOverrideAccessor should only be on an accessor"); const y = d.parent; D.assert(li(y), "erroneous accessors should only be inside classes"); const m = bm(Oee(y, f)); if (!m) return []; const b = Zi(AA(d.name)), A = f.getPropertyOfType(f.getTypeAtLocation(m), b); if (!A || !A.valueDeclaration) return []; s = A.valueDeclaration.pos, c = A.valueDeclaration.end, e = Zn(A.valueDeclaration); } else D.fail("fixPropertyOverrideAccessor codefix got unexpected error code " + i); return ZEe(e, o.program, s, c, o, _.Generate_get_and_set_accessors.message); } var gee, UB, FUe = L({ "src/services/codefixes/fixPropertyOverrideAccessor.ts"() { Kr(), yo(), gee = [ _._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code, _._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code ], UB = "fixPropertyOverrideAccessor", uo({ errorCodes: gee, getCodeActions(e) { const t = BEe(e.sourceFile, e.span.start, e.span.length, e.errorCode, e); if (t) return [to(UB, t, _.Generate_get_and_set_accessors, UB, _.Generate_get_and_set_accessors_for_all_overriding_properties)]; }, fixIds: [UB], getAllCodeActions: (e) => xs(e, gee, (t, r) => { const i = BEe(r.file, r.start, r.length, r.code, e); if (i) for (const o of i) t.pushRaw(e.sourceFile, o); }) }); } }); function BUe(e, t) { switch (e) { case _.Parameter_0_implicitly_has_an_1_type.code: case _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code: return Kf(bf(t)) ? _.Infer_type_of_0_from_usage : _.Infer_parameter_types_from_usage; case _.Rest_parameter_0_implicitly_has_an_any_type.code: case _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code: return _.Infer_parameter_types_from_usage; case _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code: return _.Infer_this_type_of_0_from_usage; default: return _.Infer_type_of_0_from_usage; } } function GUe(e) { switch (e) { case _.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code: return _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code; case _.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code: return _.Variable_0_implicitly_has_an_1_type.code; case _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code: return _.Parameter_0_implicitly_has_an_1_type.code; case _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code: return _.Rest_parameter_0_implicitly_has_an_any_type.code; case _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code: return _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code; case _._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code: return _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code; case _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code: return _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code; case _.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code: return _.Member_0_implicitly_has_an_1_type.code; } return e; } function GEe(e, t, r, i, o, s, c, f, d) { if (!gI(r.kind) && r.kind !== 79 && r.kind !== 25 && r.kind !== 108) return; const { parent: y } = r, m = qT(t, o, d, f); switch (i = GUe(i), i) { case _.Member_0_implicitly_has_an_1_type.code: case _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code: if (Wi(y) && c(y) || Za(y) || Tf(y)) return UEe(e, m, t, y, o, f, s), m.writeFixes(e), y; if (Pr(y)) { const C = bw(y.name, o, s), I = lw(C, y, o, f); if (I) { const O = N.createJSDocTypeTag(void 0, N.createJSDocTypeExpression(I), void 0); e.addJSDocTags(t, ro(y.parent.parent, eu), [O]); } return m.writeFixes(e), y; } return; case _.Variable_0_implicitly_has_an_1_type.code: { const C = o.getTypeChecker().getSymbolAtLocation(r); return C && C.valueDeclaration && Wi(C.valueDeclaration) && c(C.valueDeclaration) ? (UEe(e, m, Zn(C.valueDeclaration), C.valueDeclaration, o, f, s), m.writeFixes(e), C.valueDeclaration) : void 0; } } const b = bf(r); if (b === void 0) return; let A; switch (i) { case _.Parameter_0_implicitly_has_an_1_type.code: if (Kf(b)) { VEe(e, m, t, b, o, f, s), A = b; break; } case _.Rest_parameter_0_implicitly_has_an_any_type.code: if (c(b)) { const C = ro(y, Ma); UUe(e, m, t, C, b, o, f, s), A = C; } break; case _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code: case _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code: U_(b) && Ve(b.name) && (VB(e, m, t, b, bw(b.name, o, s), o, f), A = b); break; case _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code: Kf(b) && (VEe(e, m, t, b, o, f, s), A = b); break; case _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code: hr.isThisTypeAnnotatable(b) && c(b) && (VUe(e, t, b, o, f, s), A = b); break; default: return D.fail(String(i)); } return m.writeFixes(e), A; } function UEe(e, t, r, i, o, s, c) { Ve(i.name) && VB(e, t, r, i, bw(i.name, o, c), o, s); } function UUe(e, t, r, i, o, s, c, f) { if (!Ve(i.name)) return; const d = WUe(o, r, s, f); if (D.assert(o.parameters.length === d.length, "Parameter count and inference count should match"), dr(o)) jEe(e, r, d, s, c); else { const y = zs(o) && !ys(o, 20, r); y && e.insertNodeBefore(r, ss(o.parameters), N.createToken(20)); for (const { declaration: m, type: b } of d) m && !m.type && !m.initializer && VB(e, t, r, m, b, s, c); y && e.insertNodeAfter(r, Ho(o.parameters), N.createToken(21)); } } function VUe(e, t, r, i, o, s) { const c = HEe(r, t, i, s); if (!c || !c.length) return; const f = vee(i, c, s).thisParameter(), d = lw(f, r, i, o); d && (dr(r) ? jUe(e, t, r, d) : e.tryInsertThisTypeAnnotation(t, r, d)); } function jUe(e, t, r, i) { e.addJSDocTags(t, r, [ N.createJSDocThisTag(void 0, N.createJSDocTypeExpression(i)) ]); } function VEe(e, t, r, i, o, s, c) { const f = Wc(i.parameters); if (f && Ve(i.name) && Ve(f.name)) { let d = bw(i.name, o, c); d === o.getTypeChecker().getAnyType() && (d = bw(f.name, o, c)), dr(i) ? jEe(e, r, [{ declaration: f, type: d }], o, s) : VB(e, t, r, f, d, o, s); } } function VB(e, t, r, i, o, s, c) { const f = lw(o, i, s, c); if (f) if (dr(r) && i.kind !== 168) { const d = Wi(i) ? ri(i.parent.parent, sc) : i; if (!d) return; const y = N.createJSDocTypeExpression(f), m = U_(i) ? N.createJSDocReturnTag(void 0, y, void 0) : N.createJSDocTypeTag(void 0, y, void 0); e.addJSDocTags(r, d, [m]); } else HUe(f, i, r, e, t, $o(s.getCompilerOptions())) || e.tryInsertTypeAnnotation(r, i, f); } function HUe(e, t, r, i, o, s) { const c = KT(e, s); return c && i.tryInsertTypeAnnotation(r, t, c.typeNode) ? (Ye(c.symbols, (f) => o.addImportFromExportedSymbol(f, !0)), !0) : !1; } function jEe(e, t, r, i, o) { const s = r.length && r[0].declaration.parent; if (!s) return; const c = _a(r, (f) => { const d = f.declaration; if (d.initializer || vv(d) || !Ve(d.name)) return; const y = f.type && lw(f.type, d, i, o); if (y) { const m = N.cloneNode(d.name); return or(m, 7168), { name: N.cloneNode(d.name), param: d, isOptional: !!f.isOptional, typeNode: y }; } }); if (c.length) if (zs(s) || Ms(s)) { const f = zs(s) && !ys(s, 20, t); f && e.insertNodeBefore(t, ss(s.parameters), N.createToken(20)), Ye(c, ({ typeNode: d, param: y }) => { const m = N.createJSDocTypeTag(void 0, N.createJSDocTypeExpression(d)), b = N.createJSDocComment(void 0, [m]); e.insertNodeAt(t, y.getStart(t), b, { suffix: " " }); }), f && e.insertNodeAfter(t, Ho(s.parameters), N.createToken(21)); } else { const f = rn(c, ({ name: d, typeNode: y, isOptional: m }) => N.createJSDocParameterTag(void 0, d, !!m, N.createJSDocTypeExpression(y), !1, void 0)); e.addJSDocTags(t, s, f); } } function yee(e, t, r) { return _a(ll.getReferenceEntriesForNode(-1, e, t, t.getSourceFiles(), r), (i) => i.kind !== ll.EntryKind.Span ? ri(i.node, Ve) : void 0); } function bw(e, t, r) { const i = yee(e, t, r); return vee(t, i, r).single(); } function WUe(e, t, r, i) { const o = HEe(e, t, r, i); return o && vee(r, o, i).parameters(e) || e.parameters.map((s) => ({ declaration: s, type: Ve(s.name) ? bw(s.name, r, i) : r.getTypeChecker().getAnyType() })); } function HEe(e, t, r, i) { let o; switch (e.kind) { case 173: o = ys(e, 135, t); break; case 216: case 215: const s = e.parent; o = (Wi(s) || Za(s)) && Ve(s.name) ? s.name : e.name; break; case 259: case 171: case 170: o = e.name; break; } if (o) return yee(o, r, i); } function vee(e, t, r) { const i = e.getTypeChecker(), o = { string: () => i.getStringType(), number: () => i.getNumberType(), Array: (Re) => i.createArrayType(Re), Promise: (Re) => i.createPromiseType(Re) }, s = [ i.getStringType(), i.getNumberType(), i.createArrayType(i.getAnyType()), i.createPromiseType(i.getAnyType()) ]; return { single: d, parameters: y, thisParameter: m }; function c() { 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 f(Re) { const Pe = /* @__PURE__ */ new Map(); for (const He of Re) He.properties && He.properties.forEach((Me, ot) => { Pe.has(ot) || Pe.set(ot, []), Pe.get(ot).push(Me); }); const Ke = /* @__PURE__ */ new Map(); return Pe.forEach((He, Me) => { Ke.set(Me, f(He)); }), { isNumber: Re.some((He) => He.isNumber), isString: Re.some((He) => He.isString), isNumberOrString: Re.some((He) => He.isNumberOrString), candidateTypes: Mo(Re, (He) => He.candidateTypes), properties: Ke, calls: Mo(Re, (He) => He.calls), constructs: Mo(Re, (He) => He.constructs), numberIndex: Ye(Re, (He) => He.numberIndex), stringIndex: Ye(Re, (He) => He.stringIndex), candidateThisTypes: Mo(Re, (He) => He.candidateThisTypes), inferredTypes: void 0 }; } function d() { return ne(b(t)); } function y(Re) { if (t.length === 0 || !Re.parameters) return; const Pe = c(); for (const He of t) r.throwIfCancellationRequested(), A(He, Pe); const Ke = [...Pe.constructs || [], ...Pe.calls || []]; return Re.parameters.map((He, Me) => { const ot = [], At = fh(He); let bt = !1; for (const et of Ke) if (et.argumentTypes.length <= Me) bt = dr(Re), ot.push(i.getUndefinedType()); else if (At) for (let it = Me; it < et.argumentTypes.length; it++) ot.push(i.getBaseTypeOfLiteralType(et.argumentTypes[it])); else ot.push(i.getBaseTypeOfLiteralType(et.argumentTypes[Me])); if (Ve(He.name)) { const et = b(yee(He.name, e, r)); ot.push(...At ? _a(et, i.getElementTypeOfArrayType) : et); } const Vt = ne(ot); return { type: At ? i.createArrayType(Vt) : Vt, isOptional: bt && !At, declaration: He }; }); } function m() { const Re = c(); for (const Pe of t) r.throwIfCancellationRequested(), A(Pe, Re); return ne(Re.candidateThisTypes || nt); } function b(Re) { const Pe = c(); for (const Ke of Re) r.throwIfCancellationRequested(), A(Ke, Pe); return ie(Pe); } function A(Re, Pe) { for (; WI(Re); ) Re = Re.parent; switch (Re.parent.kind) { case 241: I(Re, Pe); break; case 222: Pe.isNumber = !0; break; case 221: O(Re.parent, Pe); break; case 223: k(Re, Re.parent, Pe); break; case 292: case 293: B(Re.parent, Pe); break; case 210: case 211: Re.parent.expression === Re ? U(Re.parent, Pe) : C(Re, Pe); break; case 208: j(Re.parent, Pe); break; case 209: te(Re.parent, Re, Pe); break; case 299: case 300: X(Re.parent, Pe); break; case 169: Y(Re.parent, Pe); break; case 257: { const { name: Ke, initializer: He } = Re.parent; if (Re === Ke) { He && Fe(Pe, i.getTypeAtLocation(He)); break; } } default: return C(Re, Pe); } } function C(Re, Pe) { ag(Re) && Fe(Pe, i.getContextualType(Re)); } function I(Re, Pe) { Fe(Pe, eo(Re) ? i.getVoidType() : i.getAnyType()); } function O(Re, Pe) { switch (Re.operator) { case 45: case 46: case 40: case 54: Pe.isNumber = !0; break; case 39: Pe.isNumberOrString = !0; break; } } function k(Re, Pe, Ke) { switch (Pe.operatorToken.kind) { case 42: case 41: case 43: case 44: case 47: case 48: case 49: case 50: case 51: case 52: case 65: case 67: case 66: case 68: case 69: case 73: case 74: case 78: case 70: case 72: case 71: case 40: case 29: case 32: case 31: case 33: const He = i.getTypeAtLocation(Pe.left === Re ? Pe.right : Pe.left); He.flags & 1056 ? Fe(Ke, He) : Ke.isNumber = !0; break; case 64: case 39: const Me = i.getTypeAtLocation(Pe.left === Re ? Pe.right : Pe.left); Me.flags & 1056 ? Fe(Ke, Me) : Me.flags & 296 ? Ke.isNumber = !0 : Me.flags & 402653316 ? Ke.isString = !0 : Me.flags & 1 || (Ke.isNumberOrString = !0); break; case 63: case 34: case 36: case 37: case 35: Fe(Ke, i.getTypeAtLocation(Pe.left === Re ? Pe.right : Pe.left)); break; case 101: Re === Pe.left && (Ke.isString = !0); break; case 56: case 60: Re === Pe.left && (Re.parent.parent.kind === 257 || Ku(Re.parent.parent, !0)) && Fe(Ke, i.getTypeAtLocation(Pe.right)); break; } } function B(Re, Pe) { Fe(Pe, i.getTypeAtLocation(Re.parent.parent.expression)); } function U(Re, Pe) { const Ke = { argumentTypes: [], return_: c() }; if (Re.arguments) for (const He of Re.arguments) Ke.argumentTypes.push(i.getTypeAtLocation(He)); A(Re, Ke.return_), Re.kind === 210 ? (Pe.calls || (Pe.calls = [])).push(Ke) : (Pe.constructs || (Pe.constructs = [])).push(Ke); } function j(Re, Pe) { const Ke = al(Re.name.text); Pe.properties || (Pe.properties = /* @__PURE__ */ new Map()); const He = Pe.properties.get(Ke) || c(); A(Re, He), Pe.properties.set(Ke, He); } function te(Re, Pe, Ke) { if (Pe === Re.argumentExpression) { Ke.isNumberOrString = !0; return; } else { const He = i.getTypeAtLocation(Re.argumentExpression), Me = c(); A(Re, Me), He.flags & 296 ? Ke.numberIndex = Me : Ke.stringIndex = Me; } } function X(Re, Pe) { const Ke = Wi(Re.parent.parent) ? Re.parent.parent : Re.parent; We(Pe, i.getTypeAtLocation(Ke)); } function Y(Re, Pe) { We(Pe, i.getTypeAtLocation(Re.parent)); } function P(Re, Pe) { const Ke = []; for (const He of Re) for (const { high: Me, low: ot } of Pe) Me(He) && (D.assert(!ot(He), "Priority can't have both low and high"), Ke.push(ot)); return Re.filter((He) => Ke.every((Me) => !Me(He))); } function ue(Re) { return ne(ie(Re)); } function ne(Re) { if (!Re.length) return i.getAnyType(); const Pe = i.getUnionType([i.getStringType(), i.getNumberType()]); let He = P(Re, [ { high: (ot) => ot === i.getStringType() || ot === i.getNumberType(), low: (ot) => ot === Pe }, { high: (ot) => !(ot.flags & 16385), low: (ot) => !!(ot.flags & 16385) }, { high: (ot) => !(ot.flags & 114689) && !(Qr(ot) & 16), low: (ot) => !!(Qr(ot) & 16) } ]); const Me = He.filter((ot) => Qr(ot) & 16); return Me.length && (He = He.filter((ot) => !(Qr(ot) & 16)), He.push(ge(Me))), i.getWidenedType(i.getUnionType(He.map(i.getBaseTypeOfLiteralType), 2)); } function ge(Re) { if (Re.length === 1) return Re[0]; const Pe = [], Ke = [], He = [], Me = []; let ot = !1, At = !1; const bt = o_(); for (const it of Re) { for (const On of i.getPropertiesOfType(it)) bt.add(On.name, On.valueDeclaration ? i.getTypeOfSymbolAtLocation(On, On.valueDeclaration) : i.getAnyType()); Pe.push(...i.getSignaturesOfType(it, 0)), Ke.push(...i.getSignaturesOfType(it, 1)); const nn = i.getIndexInfoOfType(it, 0); nn && (He.push(nn.type), ot = ot || nn.isReadonly); const Xt = i.getIndexInfoOfType(it, 1); Xt && (Me.push(Xt.type), At = At || Xt.isReadonly); } const Vt = Zoe(bt, (it, nn) => { const Xt = nn.length < Re.length ? 16777216 : 0, On = i.createSymbol(4 | Xt, it); return On.links.type = i.getUnionType(nn), [it, On]; }), et = []; return He.length && et.push(i.createIndexInfo(i.getStringType(), i.getUnionType(He), ot)), Me.length && et.push(i.createIndexInfo(i.getNumberType(), i.getUnionType(Me), At)), i.createAnonymousType(Re[0].symbol, Vt, Pe, Ke, et); } function ie(Re) { var Pe, Ke, He; const Me = []; Re.isNumber && Me.push(i.getNumberType()), Re.isString && Me.push(i.getStringType()), Re.isNumberOrString && Me.push(i.getUnionType([i.getStringType(), i.getNumberType()])), Re.numberIndex && Me.push(i.createArrayType(ue(Re.numberIndex))), ((Pe = Re.properties) != null && Pe.size || (Ke = Re.constructs) != null && Ke.length || Re.stringIndex) && Me.push(H(Re)); const ot = (Re.candidateTypes || []).map((bt) => i.getBaseTypeOfLiteralType(bt)), At = (He = Re.calls) != null && He.length ? H(Re) : void 0; return At && ot ? Me.push(i.getUnionType([At, ...ot], 2)) : (At && Me.push(At), Ne(ot) && Me.push(...ot)), Me.push(...le(Re)), Me; } function H(Re) { const Pe = /* @__PURE__ */ new Map(); Re.properties && Re.properties.forEach((ot, At) => { const bt = i.createSymbol(4, At); bt.links.type = ue(ot), Pe.set(At, bt); }); const Ke = Re.calls ? [Ge(Re.calls)] : [], He = Re.constructs ? [Ge(Re.constructs)] : [], Me = Re.stringIndex ? [i.createIndexInfo(i.getStringType(), ue(Re.stringIndex), !1)] : []; return i.createAnonymousType(void 0, Pe, Ke, He, Me); } function le(Re) { if (!Re.properties || !Re.properties.size) return []; const Pe = s.filter((Ke) => pe(Ke, Re)); return 0 < Pe.length && Pe.length < 3 ? Pe.map((Ke) => ye(Ke, Re)) : []; } function pe(Re, Pe) { return Pe.properties ? !Zd(Pe.properties, (Ke, He) => { const Me = i.getTypeOfPropertyOfType(Re, He); return Me ? Ke.calls ? !i.getSignaturesOfType(Me, 0).length || !i.isTypeAssignableTo(Me, $e(Ke.calls)) : !i.isTypeAssignableTo(Me, ue(Ke)) : !0; }) : !1; } function ye(Re, Pe) { if (!(Qr(Re) & 4) || !Pe.properties) return Re; const Ke = Re.target, He = bm(Ke.typeParameters); if (!He) return Re; const Me = []; return Pe.properties.forEach((ot, At) => { const bt = i.getTypeOfPropertyOfType(Ke, At); D.assert(!!bt, "generic should have all the properties of its reference."), Me.push(...Te(bt, ue(ot), He)); }), o[Re.symbol.escapedName](ne(Me)); } function Te(Re, Pe, Ke) { if (Re === Ke) return [Pe]; if (Re.flags & 3145728) return Mo(Re.types, (ot) => Te(ot, Pe, Ke)); if (Qr(Re) & 4 && Qr(Pe) & 4) { const ot = i.getTypeArguments(Re), At = i.getTypeArguments(Pe), bt = []; if (ot && At) for (let Vt = 0; Vt < ot.length; Vt++) At[Vt] && bt.push(...Te(ot[Vt], At[Vt], Ke)); return bt; } const He = i.getSignaturesOfType(Re, 0), Me = i.getSignaturesOfType(Pe, 0); return He.length === 1 && Me.length === 1 ? ee(He[0], Me[0], Ke) : []; } function ee(Re, Pe, Ke) { var He; const Me = []; for (let bt = 0; bt < Re.parameters.length; bt++) { const Vt = Re.parameters[bt], et = Pe.parameters[bt], it = Re.declaration && fh(Re.declaration.parameters[bt]); if (!et) break; let nn = Vt.valueDeclaration ? i.getTypeOfSymbolAtLocation(Vt, Vt.valueDeclaration) : i.getAnyType(); const Xt = it && i.getElementTypeOfArrayType(nn); Xt && (nn = Xt); const On = ((He = ri(et, km)) == null ? void 0 : He.links.type) || (et.valueDeclaration ? i.getTypeOfSymbolAtLocation(et, et.valueDeclaration) : i.getAnyType()); Me.push(...Te(nn, On, Ke)); } const ot = i.getReturnTypeOfSignature(Re), At = i.getReturnTypeOfSignature(Pe); return Me.push(...Te(ot, At, Ke)), Me; } function $e(Re) { return i.createAnonymousType(void 0, ao(), [Ge(Re)], nt, nt); } function Ge(Re) { const Pe = [], Ke = Math.max(...Re.map((Me) => Me.argumentTypes.length)); for (let Me = 0; Me < Ke; Me++) { const ot = i.createSymbol(1, al(`arg${Me}`)); ot.links.type = ne(Re.map((At) => At.argumentTypes[Me] || i.getUndefinedType())), Re.some((At) => At.argumentTypes[Me] === void 0) && (ot.flags |= 16777216), Pe.push(ot); } const He = ue(f(Re.map((Me) => Me.return_))); return i.createSignature(void 0, void 0, void 0, Pe, He, void 0, Ke, 0); } function Fe(Re, Pe) { Pe && !(Pe.flags & 1) && !(Pe.flags & 131072) && (Re.candidateTypes || (Re.candidateTypes = [])).push(Pe); } function We(Re, Pe) { Pe && !(Pe.flags & 1) && !(Pe.flags & 131072) && (Re.candidateThisTypes || (Re.candidateThisTypes = [])).push(Pe); } } var jB, bee, zUe = L({ "src/services/codefixes/inferFromUsage.ts"() { Kr(), yo(), jB = "inferFromUsage", bee = [ _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code, _.Variable_0_implicitly_has_an_1_type.code, _.Parameter_0_implicitly_has_an_1_type.code, _.Rest_parameter_0_implicitly_has_an_any_type.code, _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code, _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code, _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code, _.Member_0_implicitly_has_an_1_type.code, _.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code, _.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code, _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code, _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code, _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code, _._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code, _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code, _.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code, _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code ], uo({ errorCodes: bee, getCodeActions(e) { const { sourceFile: t, program: r, span: { start: i }, errorCode: o, cancellationToken: s, host: c, preferences: f } = e, d = ra(t, i); let y; const m = hr.ChangeTracker.with(e, (A) => { y = GEe(A, t, d, o, r, s, Zb, c, f); }), b = y && La(y); return !b || m.length === 0 ? void 0 : [to(jB, m, [BUe(o, d), bc(b)], jB, _.Infer_all_types_from_usage)]; }, fixIds: [jB], getAllCodeActions(e) { const { sourceFile: t, program: r, cancellationToken: i, host: o, preferences: s } = e, c = BC(); return xs(e, bee, (f, d) => { GEe(f, t, ra(d.file, d.start), d.code, r, i, c, o, s); }); } }); } }); function WEe(e, t, r) { if (dr(e)) return; const i = ra(e, r), o = nr(i, Ys), s = o == null ? void 0 : o.type; if (!s) return; const c = t.getTypeFromTypeNode(s), f = t.getAwaitedType(c) || t.getVoidType(), d = t.typeToTypeNode(f, s, void 0); if (d) return { returnTypeNode: s, returnType: c, promisedTypeNode: d, promisedType: f }; } function zEe(e, t, r, i) { e.replaceNode(t, r, N.createTypeReferenceNode("Promise", [i])); } var HB, Eee, qUe = L({ "src/services/codefixes/fixReturnTypeInAsyncFunction.ts"() { Kr(), yo(), HB = "fixReturnTypeInAsyncFunction", Eee = [ _.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code ], uo({ errorCodes: Eee, fixIds: [HB], getCodeActions: function(t) { const { sourceFile: r, program: i, span: o } = t, s = i.getTypeChecker(), c = WEe(r, i.getTypeChecker(), o.start); if (!c) return; const { returnTypeNode: f, returnType: d, promisedTypeNode: y, promisedType: m } = c, b = hr.ChangeTracker.with(t, (A) => zEe(A, r, f, y)); return [to(HB, b, [ _.Replace_0_with_Promise_1, s.typeToString(d), s.typeToString(m) ], HB, _.Fix_all_incorrect_return_type_of_an_async_functions)]; }, getAllCodeActions: (e) => xs(e, Eee, (t, r) => { const i = WEe(r.file, e.program.getTypeChecker(), r.start); i && zEe(t, r.file, i.returnTypeNode, i.promisedTypeNode); }) }); } }); function qEe(e, t, r, i) { const { line: o } = il(t, r); (!i || Yb(i, o)) && e.insertCommentBeforeLine(t, o, r, " @ts-ignore"); } var Tee, See, xee, JUe = L({ "src/services/codefixes/disableJsDiagnostics.ts"() { Kr(), yo(), Tee = "disableJsDiagnostics", See = "disableJsDiagnostics", xee = _a(Object.keys(_), (e) => { const t = _[e]; return t.category === 1 ? t.code : void 0; }), uo({ errorCodes: xee, getCodeActions: function(t) { const { sourceFile: r, program: i, span: o, host: s, formatContext: c } = t; if (!dr(r) || !$N(r, i.getCompilerOptions())) return; const f = r.checkJsDirective ? "" : eb(s, c.options), d = [ vp(Tee, [nbe(r.fileName, [ q8(r.checkJsDirective ? fc(r.checkJsDirective.pos, r.checkJsDirective.end) : Cc(0, 0), `// @ts-nocheck${f}`) ])], _.Disable_checking_for_this_file) ]; return hr.isValidLocationToAddComment(r, o.start) && d.unshift(to(Tee, hr.ChangeTracker.with(t, (y) => qEe(y, r, o.start)), _.Ignore_this_error_message, See, _.Add_ts_ignore_to_all_error_messages)), d; }, fixIds: [See], getAllCodeActions: (e) => { const t = /* @__PURE__ */ new Set(); return xs(e, xee, (r, i) => { hr.isValidLocationToAddComment(i.file, i.start) && qEe(r, i.file, i.start, t); }); } }); } }); function Aee(e, t, r, i, o, s, c) { const f = e.symbol.members; for (const d of t) f.has(d.escapedName) || JEe(d, e, r, i, o, s, c, void 0); } function Kx(e) { return { trackSymbol: () => !1, moduleResolverHost: A$(e.program, e.host) }; } function JEe(e, t, r, i, o, s, c, f, d = 3, y = !1) { var m; const b = e.getDeclarations(), A = b == null ? void 0 : b[0], C = i.program.getTypeChecker(), I = $o(i.program.getCompilerOptions()), O = (m = A == null ? void 0 : A.kind) != null ? m : 168, k = Il(La(A), !1), B = A ? wu(A) : 0; let U = B & 4 ? 4 : B & 16 ? 16 : 0; A && Qd(A) && (U |= 128); const j = ne(), te = C.getWidenedType(C.getTypeOfSymbolAtLocation(e, t)), X = !!(e.flags & 16777216), Y = !!(t.flags & 16777216) || y, P = yp(r, o); switch (O) { case 168: case 169: const pe = P === 0 ? 268435456 : void 0; let ye = C.typeToTypeNode(te, t, pe, Kx(i)); if (s) { const ee = KT(ye, I); ee && (ye = ee.typeNode, Xx(s, ee.symbols)); } c(N.createPropertyDeclaration(j, A ? ie(k) : e.getName(), X && d & 2 ? N.createToken(57) : void 0, ye, void 0)); break; case 174: case 175: { D.assertIsDefined(b); let ee = C.typeToTypeNode(te, t, void 0, Kx(i)); const $e = pT(b, A), Ge = $e.secondAccessor ? [$e.firstAccessor, $e.secondAccessor] : [$e.firstAccessor]; if (s) { const Fe = KT(ee, I); Fe && (ee = Fe.typeNode, Xx(s, Fe.symbols)); } for (const Fe of Ge) if (U_(Fe)) c(N.createGetAccessorDeclaration(j, ie(k), nt, le(ee), H(f, P, Y))); else { D.assertNode(Fe, Kf, "The counterpart to a getter should be a setter"); const We = UI(Fe), Re = We && Ve(We.name) ? Or(We.name) : void 0; c(N.createSetAccessorDeclaration(j, ie(k), Lee(1, [Re], [le(ee)], 1, !1), H(f, P, Y))); } break; } case 170: case 171: D.assertIsDefined(b); const Te = te.isUnion() ? Mo(te.types, (ee) => ee.getCallSignatures()) : te.getCallSignatures(); if (!kt(Te)) break; if (b.length === 1) { D.assert(Te.length === 1, "One declaration implies one signature"); const ee = Te[0]; ue(P, ee, j, ie(k), H(f, P, Y)); break; } for (const ee of Te) ue(P, ee, j, ie(k)); if (!Y) if (b.length > Te.length) { const ee = C.getSignatureFromDeclaration(b[b.length - 1]); ue(P, ee, j, ie(k), H(f, P)); } else D.assert(b.length === Te.length, "Declarations and signatures should match count"), c(YUe(C, i, t, Te, ie(k), X && !!(d & 1), j, P, f)); break; } function ue(pe, ye, Te, ee, $e) { const Ge = WB(171, i, pe, ye, $e, ee, Te, X && !!(d & 1), t, s); Ge && c(Ge); } function ne() { let pe; return U && (pe = sA(pe, N.createModifiersFromModifierFlags(U))), ge() && (pe = Fn(pe, N.createToken(161))), pe && N.createNodeArray(pe); } function ge() { return !!(i.program.getCompilerOptions().noImplicitOverride && A && T1(A)); } function ie(pe) { return Ve(pe) && pe.escapedText === "constructor" ? N.createComputedPropertyName(N.createStringLiteral(Or(pe), P === 0)) : Il(pe, !1); } function H(pe, ye, Te) { return Te ? void 0 : Il(pe, !1) || Iee(ye); } function le(pe) { return Il(pe, !1); } } function WB(e, t, r, i, o, s, c, f, d, y) { const m = t.program, b = m.getTypeChecker(), A = $o(m.getCompilerOptions()), C = dr(d), I = 524545 | (r === 0 ? 268435456 : 0), O = b.signatureToSignatureDeclaration(i, e, d, I, Kx(t)); if (!O) return; let k = C ? void 0 : O.typeParameters, B = O.parameters, U = C ? void 0 : O.type; if (y) { if (k) { const Y = Xl(k, (P) => { let ue = P.constraint, ne = P.default; if (ue) { const ge = KT(ue, A); ge && (ue = ge.typeNode, Xx(y, ge.symbols)); } if (ne) { const ge = KT(ne, A); ge && (ne = ge.typeNode, Xx(y, ge.symbols)); } return N.updateTypeParameterDeclaration(P, P.modifiers, P.name, ue, ne); }); k !== Y && (k = mt(N.createNodeArray(Y, k.hasTrailingComma), k)); } const X = Xl(B, (Y) => { let P = C ? void 0 : Y.type; if (P) { const ue = KT(P, A); ue && (P = ue.typeNode, Xx(y, ue.symbols)); } return N.updateParameterDeclaration(Y, Y.modifiers, Y.dotDotDotToken, Y.name, C ? void 0 : Y.questionToken, P, Y.initializer); }); if (B !== X && (B = mt(N.createNodeArray(X, B.hasTrailingComma), B)), U) { const Y = KT(U, A); Y && (U = Y.typeNode, Xx(y, Y.symbols)); } } const j = f ? N.createToken(57) : void 0, te = O.asteriskToken; if (Ms(O)) return N.updateFunctionExpression(O, c, O.asteriskToken, ri(s, Ve), k, B, U, o ?? O.body); if (zs(O)) return N.updateArrowFunction(O, c, k, B, U, O.equalsGreaterThanToken, o ?? O.body); if (nc(O)) return N.updateMethodDeclaration(O, c, te, s ?? N.createIdentifier(""), j, k, B, U, o); if (pc(O)) return N.updateFunctionDeclaration(O, c, O.asteriskToken, ri(s, Ve), k, B, U, o ?? O.body); } function Cee(e, t, r, i, o, s, c) { const f = yp(t.sourceFile, t.preferences), d = $o(t.program.getCompilerOptions()), y = Kx(t), m = t.program.getTypeChecker(), b = dr(c), { typeArguments: A, arguments: C, parent: I } = i, O = b ? void 0 : m.getContextualType(i), k = rn(C, (ne) => Ve(ne) ? ne.text : Pr(ne) && Ve(ne.name) ? ne.name.text : void 0), B = b ? [] : rn(C, (ne) => m.getTypeAtLocation(ne)), { argumentTypeNodes: U, argumentTypeParameters: j } = YEe(m, r, B, c, d, void 0, y), te = s ? N.createNodeArray(N.createModifiersFromModifierFlags(s)) : void 0, X = S7(I) ? N.createToken(41) : void 0, Y = b ? void 0 : KUe(m, j, A), P = Lee(C.length, k, U, void 0, b), ue = b || O === void 0 ? void 0 : m.typeToTypeNode(O, c, void 0, y); switch (e) { case 171: return N.createMethodDeclaration(te, X, o, void 0, Y, P, ue, Iee(f)); case 170: return N.createMethodSignature(te, o, void 0, Y, P, ue === void 0 ? N.createKeywordTypeNode(157) : ue); case 259: return N.createFunctionDeclaration(te, X, o, Y, P, ue, b6(_.Function_not_implemented.message, f)); default: D.fail("Unexpected kind"); } } function KUe(e, t, r) { const i = new Set(t.map((s) => s[0])), o = new Map(t); if (r) { const s = r.filter((f) => !t.some((d) => { var y; return e.getTypeAtLocation(f) === ((y = d[1]) == null ? void 0 : y.argumentType); })), c = i.size + s.length; for (let f = 0; i.size < c; f += 1) i.add(KEe(f)); } return ko(i.values(), (s) => { var c; return N.createTypeParameterDeclaration(void 0, s, (c = o.get(s)) == null ? void 0 : c.constraint); }); } function KEe(e) { return 84 + e <= 90 ? String.fromCharCode(84 + e) : `T${e}`; } function zB(e, t, r, i, o, s, c) { let f = e.typeToTypeNode(r, i, s, c); if (f && dg(f)) { const d = KT(f, o); d && (Xx(t, d.symbols), f = d.typeNode); } return Il(f); } function XEe(e) { return e.isUnionOrIntersection() ? e.types.some(XEe) : e.flags & 262144; } function YEe(e, t, r, i, o, s, c) { const f = [], d = /* @__PURE__ */ new Map(); for (let y = 0; y < r.length; y += 1) { const m = r[y]; if (m.isUnionOrIntersection() && m.types.some(XEe)) { const O = KEe(y); f.push(N.createTypeReferenceNode(O)), d.set(O, void 0); continue; } const b = e.getBaseTypeOfLiteralType(m), A = zB(e, t, b, i, o, s, c); if (!A) continue; f.push(A); const C = $Ee(m), I = m.isTypeParameter() && m.constraint && !XUe(m.constraint) ? zB(e, t, m.constraint, i, o, s, c) : void 0; C && d.set(C, { argumentType: m, constraint: I }); } return { argumentTypeNodes: f, argumentTypeParameters: ko(d.entries()) }; } function XUe(e) { return e.flags & 524288 && e.objectFlags === 16; } function $Ee(e) { var t; if (e.flags & 3145728) for (const r of e.types) { const i = $Ee(r); if (i) return i; } return e.flags & 262144 ? (t = e.getSymbol()) == null ? void 0 : t.getName() : void 0; } function Lee(e, t, r, i, o) { const s = [], c = /* @__PURE__ */ new Map(); for (let f = 0; f < e; f++) { const d = (t == null ? void 0 : t[f]) || `arg${f}`, y = c.get(d); c.set(d, (y || 0) + 1); const m = N.createParameterDeclaration(void 0, void 0, d + (y || ""), i !== void 0 && f >= i ? N.createToken(57) : void 0, o ? void 0 : (r == null ? void 0 : r[f]) || N.createKeywordTypeNode(157), void 0); s.push(m); } return s; } function YUe(e, t, r, i, o, s, c, f, d) { let y = i[0], m = i[0].minArgumentCount, b = !1; for (const O of i) m = Math.min(O.minArgumentCount, m), mu(O) && (b = !0), O.parameters.length >= y.parameters.length && (!mu(O) || mu(y)) && (y = O); const A = y.parameters.length - (mu(y) ? 1 : 0), C = y.parameters.map((O) => O.name), I = Lee(A, C, void 0, m, !1); if (b) { const O = N.createParameterDeclaration(void 0, N.createToken(25), C[A] || "rest", A >= m ? N.createToken(57) : void 0, N.createArrayTypeNode(N.createKeywordTypeNode(157)), void 0); I.push(O); } return QUe(c, o, s, void 0, I, $Ue(i, e, t, r), f, d); } function $Ue(e, t, r, i) { if (Ne(e)) { const o = t.getUnionType(rn(e, t.getReturnTypeOfSignature)); return t.typeToTypeNode(o, i, 1, Kx(r)); } } function QUe(e, t, r, i, o, s, c, f) { return N.createMethodDeclaration(e, void 0, t, r ? N.createToken(57) : void 0, i, o, s, f || Iee(c)); } function Iee(e) { return b6(_.Method_not_implemented.message, e); } function b6(e, t) { return N.createBlock([N.createThrowStatement(N.createNewExpression(N.createIdentifier("Error"), void 0, [N.createStringLiteral(e, t === 0)]))], !0); } function kee(e, t, r) { const i = LI(t); if (!i) return; const o = Dee(i, "compilerOptions"); if (o === void 0) { e.insertNodeAtObjectStart(t, i, qB("compilerOptions", N.createObjectLiteralExpression(r.map(([c, f]) => qB(c, f)), !0))); return; } const s = o.initializer; if (As(s)) for (const [c, f] of r) { const d = Dee(s, c); d === void 0 ? e.insertNodeAtObjectStart(t, s, qB(c, f)) : e.replaceNode(t, d.initializer, f); } } function wee(e, t, r, i) { kee(e, t, [[r, i]]); } function qB(e, t) { return N.createPropertyAssignment(N.createStringLiteral(e), t); } function Dee(e, t) { return un(e.properties, (r) => Uc(r) && !!r.name && Go(r.name) && r.name.text === t); } function KT(e, t) { let r; const i = st(e, o, Pi); if (r && i) return { typeNode: i, symbols: r }; function o(s) { if (B0(s) && s.qualifier) { const c = Ef(s.qualifier), f = ZF(c.symbol, t), d = f !== c.text ? QEe(s.qualifier, N.createIdentifier(f)) : s.qualifier; r = Fn(r, c.symbol); const y = Kn(s.typeArguments, o, Pi); return N.createTypeReferenceNode(d, y); } return Bn(s, o, pg); } } function QEe(e, t) { return e.kind === 79 ? t : N.createQualifiedName(QEe(e.left, t), e.right); } function Xx(e, t) { t.forEach((r) => e.addImportFromExportedSymbol(r, !0)); } function Ree(e, t) { const r = Qc(t); let i = ra(e, t.start); for (; i.end < r; ) i = i.parent; return i; } var Nee, ZUe = L({ "src/services/codefixes/helpers.ts"() { Kr(), Nee = /* @__PURE__ */ ((e) => (e[e.Method = 1] = "Method", e[e.Property = 2] = "Property", e[e.All = 3] = "All", e))(Nee || {}); } }); function ZEe(e, t, r, i, o, s) { const c = nTe(e, t, r, i); if (!c || Rw.isRefactorErrorInfo(c)) return; const f = hr.ChangeTracker.fromContext(o), { isStatic: d, isReadonly: y, fieldName: m, accessorName: b, originalName: A, type: C, container: I, declaration: O } = c; Gd(m), Gd(b), Gd(O), Gd(I); let k, B; if (li(I)) { const j = wu(O); if (Ju(e)) { const te = N.createModifiersFromModifierFlags(j); k = te, B = te; } else k = N.createModifiersFromModifierFlags(nVe(j)), B = N.createModifiersFromModifierFlags(rVe(j)); wx(O) && (B = ha(yv(O), B)); } lVe(f, e, O, C, m, B); const U = iVe(m, b, C, k, d, I); if (Gd(U), rTe(f, e, U, O, I), y) { const j = hh(I); j && cVe(f, e, j, m.text, A); } else { const j = aVe(m, b, C, k, d, I); Gd(j), rTe(f, e, j, O, I); } return f.getChanges(); } function eVe(e) { return Ve(e) || Go(e); } function tVe(e) { return Yd(e, e.parent) || Za(e) || Uc(e); } function eTe(e, t) { return Ve(t) ? N.createIdentifier(e) : N.createStringLiteral(e); } function tTe(e, t, r) { const i = t ? r.name : N.createThis(); return Ve(e) ? N.createPropertyAccessExpression(i, e) : N.createElementAccessExpression(i, N.createStringLiteralFromNode(e)); } function nVe(e) { return e &= -65, e &= -9, e & 16 || (e |= 4), e; } function rVe(e) { return e &= -5, e &= -17, e |= 8, e; } function nTe(e, t, r, i, o = !0) { const s = ra(e, r), c = r === i && o, f = nr(s.parent, tVe), d = 124; if (!f || !(l$(f.name, e, r, i) || c)) return { error: Do(_.Could_not_find_property_for_which_to_generate_accessor) }; if (!eVe(f.name)) return { error: Do(_.Name_is_not_valid) }; if ((wu(f) & 126975 | d) !== d) return { error: Do(_.Can_only_convert_property_with_modifier) }; const y = f.name.text, m = X$(y), b = eTe(m ? y : HT(`_${y}`, e), f.name), A = eTe(m ? HT(y.substring(1), e) : y, f.name); return { isStatic: _c(f), isReadonly: VI(f), type: uVe(f, t), container: f.kind === 166 ? f.parent.parent : f.parent, originalName: f.name.text, declaration: f, fieldName: b, accessorName: A, renameAccessor: m }; } function iVe(e, t, r, i, o, s) { return N.createGetAccessorDeclaration(i, t, [], r, N.createBlock([ N.createReturnStatement(tTe(e, o, s)) ], !0)); } function aVe(e, t, r, i, o, s) { return N.createSetAccessorDeclaration(i, t, [N.createParameterDeclaration(void 0, void 0, N.createIdentifier("value"), void 0, r)], N.createBlock([ N.createExpressionStatement(N.createAssignment(tTe(e, o, s), N.createIdentifier("value"))) ], !0)); } function oVe(e, t, r, i, o, s) { const c = N.updatePropertyDeclaration(r, s, o, r.questionToken || r.exclamationToken, i, r.initializer); e.replaceNode(t, r, c); } function sVe(e, t, r, i) { let o = N.updatePropertyAssignment(r, i, r.initializer); (o.modifiers || o.questionToken || o.exclamationToken) && (o === r && (o = N.cloneNode(o)), o.modifiers = void 0, o.questionToken = void 0, o.exclamationToken = void 0), e.replacePropertyAssignment(t, r, o); } function lVe(e, t, r, i, o, s) { Za(r) ? oVe(e, t, r, i, o, s) : Uc(r) ? sVe(e, t, r, o) : e.replaceNode(t, r, N.updateParameterDeclaration(r, s, r.dotDotDotToken, ro(o, Ve), r.questionToken, r.type, r.initializer)); } function rTe(e, t, r, i, o) { Yd(i, i.parent) ? e.insertMemberAtStart(t, o, r) : Uc(i) ? e.insertNodeAfterComma(t, i, r) : e.insertNodeAfter(t, i, r); } function cVe(e, t, r, i, o) { r.body && r.body.forEachChild(function s(c) { sl(c) && c.expression.kind === 108 && Go(c.argumentExpression) && c.argumentExpression.text === o && XI(c) && e.replaceNode(t, c.argumentExpression, N.createStringLiteral(i)), Pr(c) && c.expression.kind === 108 && c.name.text === o && XI(c) && e.replaceNode(t, c.name, N.createIdentifier(i)), !qa(c) && !li(c) && c.forEachChild(s); }); } function uVe(e, t) { const r = Aue(e); if (Za(e) && r && e.questionToken) { const i = t.getTypeChecker(), o = i.getTypeFromTypeNode(r); if (!i.isTypeAssignableTo(i.getUndefinedType(), o)) { const s = gx(r) ? r.types : [r]; return N.createUnionTypeNode([...s, N.createKeywordTypeNode(155)]); } } return r; } function Oee(e, t) { const r = []; for (; e; ) { const i = y1(e), o = i && t.getSymbolAtLocation(i.expression); if (!o) break; const s = o.flags & 2097152 ? t.getAliasedSymbol(o) : o, c = s.declarations && un(s.declarations, li); if (!c) break; r.push(c), e = c; } return r; } var dVe = L({ "src/services/codefixes/generateAccessors.ts"() { Kr(); } }); function fVe(e, t) { const r = Zn(t), i = PA(t), o = e.program.getCompilerOptions(), s = []; return s.push(iTe(e, r, t, Ly(i.name, void 0, t.moduleSpecifier, yp(r, e.preferences)))), Zc(o) === 1 && s.push(iTe(e, r, t, N.createImportEqualsDeclaration(void 0, !1, i.name, N.createExternalModuleReference(t.moduleSpecifier)))), s; } function iTe(e, t, r, i) { const o = hr.ChangeTracker.with(e, (s) => s.replaceNode(t, r, i)); return vp(Pee, o, [_.Replace_import_with_0, o[0].textChanges[0].newText]); } function _Ve(e) { const t = e.sourceFile, r = _.This_expression_is_not_callable.code === e.errorCode ? 210 : 211, i = nr(ra(t, e.span.start), (s) => s.kind === r); if (!i) return []; const o = i.expression; return aTe(e, o); } function pVe(e) { const t = e.sourceFile, r = nr(ra(t, e.span.start), (i) => i.getStart() === e.span.start && i.getEnd() === e.span.start + e.span.length); return r ? aTe(e, r) : []; } function aTe(e, t) { const r = e.program.getTypeChecker().getTypeAtLocation(t); if (!(r.symbol && km(r.symbol) && r.symbol.links.originatingImport)) return []; const i = [], o = r.symbol.links.originatingImport; if (tf(o) || yi(i, fVe(e, o)), yt(t) && !(du(t.parent) && t.parent.name === t)) { const s = e.sourceFile, c = hr.ChangeTracker.with(e, (f) => f.replaceNode(s, t, N.createPropertyAccessExpression(t, "default"), {})); i.push(vp(Pee, c, _.Use_synthetic_default_member)); } return i; } var Pee, mVe = L({ "src/services/codefixes/fixInvalidImportSyntax.ts"() { Kr(), yo(), Pee = "invalidImportSyntax", uo({ errorCodes: [ _.This_expression_is_not_callable.code, _.This_expression_is_not_constructable.code ], getCodeActions: _Ve }), uo({ errorCodes: [ _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code, _.Type_0_does_not_satisfy_the_constraint_1.code, _.Type_0_is_not_assignable_to_type_1.code, _.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code, _.Type_predicate_0_is_not_assignable_to_1.code, _.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code, _._0_index_type_1_is_not_assignable_to_2_index_type_3.code, _.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code, _.Property_0_in_type_1_is_not_assignable_to_type_2.code, _.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code, _.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code ], getCodeActions: pVe }); } }); function oTe(e, t) { const r = ra(e, t); if (Ve(r) && Za(r.parent)) { const i = Jc(r.parent); if (i) return { type: i, prop: r.parent, isJs: dr(r.parent) }; } } function hVe(e, t) { if (t.isJs) return; const r = hr.ChangeTracker.with(e, (i) => sTe(i, e.sourceFile, t.prop)); return to(JB, r, [_.Add_definite_assignment_assertion_to_property_0, t.prop.getText()], KB, _.Add_definite_assignment_assertions_to_all_uninitialized_properties); } function sTe(e, t, r) { Gd(r); const i = N.updatePropertyDeclaration(r, r.modifiers, r.name, N.createToken(53), r.type, r.initializer); e.replaceNode(t, r, i); } function gVe(e, t) { const r = hr.ChangeTracker.with(e, (i) => lTe(i, e.sourceFile, t)); return to(JB, r, [_.Add_undefined_type_to_property_0, t.prop.name.getText()], XB, _.Add_undefined_type_to_all_uninitialized_properties); } function lTe(e, t, r) { const i = N.createKeywordTypeNode(155), o = gx(r.type) ? r.type.types.concat(i) : [r.type, i], s = N.createUnionTypeNode(o); r.isJs ? e.addJSDocTags(t, r.prop, [N.createJSDocTypeTag(void 0, N.createJSDocTypeExpression(s))]) : e.replaceNode(t, r.type, s); } function yVe(e, t) { if (t.isJs) return; const r = e.program.getTypeChecker(), i = uTe(r, t.prop); if (!i) return; const o = hr.ChangeTracker.with(e, (s) => cTe(s, e.sourceFile, t.prop, i)); return to(JB, o, [_.Add_initializer_to_property_0, t.prop.name.getText()], YB, _.Add_initializers_to_all_uninitialized_properties); } function cTe(e, t, r, i) { Gd(r); const o = N.updatePropertyDeclaration(r, r.modifiers, r.name, r.questionToken, r.type, i); e.replaceNode(t, r, o); } function uTe(e, t) { return dTe(e, e.getTypeFromTypeNode(t.type)); } function dTe(e, t) { if (t.flags & 512) return t === e.getFalseType() || t === e.getFalseType(!0) ? N.createFalse() : N.createTrue(); if (t.isStringLiteral()) return N.createStringLiteral(t.value); if (t.isNumberLiteral()) return N.createNumericLiteral(t.value); if (t.flags & 2048) return N.createBigIntLiteral(t.value); if (t.isUnion()) return En(t.types, (r) => dTe(e, r)); if (t.isClass()) { const r = cg(t.symbol); if (!r || Jr(r, 256)) return; const i = hh(r); return i && i.parameters.length ? void 0 : N.createNewExpression(N.createIdentifier(t.symbol.name), void 0, void 0); } else if (e.isArrayLikeType(t)) return N.createArrayLiteralExpression(); } var JB, KB, XB, YB, Mee, vVe = L({ "src/services/codefixes/fixStrictClassInitialization.ts"() { Kr(), yo(), JB = "strictClassInitialization", KB = "addMissingPropertyDefiniteAssignmentAssertions", XB = "addMissingPropertyUndefinedType", YB = "addMissingPropertyInitializer", Mee = [_.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code], uo({ errorCodes: Mee, getCodeActions: function(t) { const r = oTe(t.sourceFile, t.span.start); if (!r) return; const i = []; return Fn(i, gVe(t, r)), Fn(i, hVe(t, r)), Fn(i, yVe(t, r)), i; }, fixIds: [KB, XB, YB], getAllCodeActions: (e) => xs(e, Mee, (t, r) => { const i = oTe(r.file, r.start); if (i) switch (e.fixId) { case KB: sTe(t, r.file, i.prop); break; case XB: lTe(t, r.file, i); break; case YB: const o = e.program.getTypeChecker(), s = uTe(o, i.prop); if (!s) return; cTe(t, r.file, i.prop, s); break; default: D.fail(JSON.stringify(e.fixId)); } }) }); } }); function fTe(e, t, r) { const { allowSyntheticDefaults: i, defaultImportName: o, namedImports: s, statement: c, required: f } = r; e.replaceNode(t, c, o && !i ? N.createImportEqualsDeclaration(void 0, !1, o, N.createExternalModuleReference(f)) : N.createImportDeclaration(void 0, N.createImportClause(!1, o, s), f, void 0)); } function _Te(e, t, r) { const { parent: i } = ra(e, r); if (!vd(i, !0)) throw D.failBadSyntaxKind(i); const o = ro(i.parent, Wi), s = ri(o.name, Ve), c = Bm(o.name) ? bVe(o.name) : void 0; if (s || c) return { allowSyntheticDefaults: hT(t.getCompilerOptions()), defaultImportName: s, namedImports: c, statement: ro(o.parent.parent, sc), required: ss(i.arguments) }; } function bVe(e) { const t = []; for (const r of e.elements) { if (!Ve(r.name) || r.initializer) return; t.push(N.createImportSpecifier(!1, ri(r.propertyName, Ve), r.name)); } if (t.length) return N.createNamedImports(t); } var $B, Fee, EVe = L({ "src/services/codefixes/requireInTs.ts"() { Kr(), yo(), $B = "requireInTs", Fee = [_.require_call_may_be_converted_to_an_import.code], uo({ errorCodes: Fee, getCodeActions(e) { const t = _Te(e.sourceFile, e.program, e.span.start); if (!t) return; const r = hr.ChangeTracker.with(e, (i) => fTe(i, e.sourceFile, t)); return [to($B, r, _.Convert_require_to_import, $B, _.Convert_all_require_to_import)]; }, fixIds: [$B], getAllCodeActions: (e) => xs(e, Fee, (t, r) => { const i = _Te(r.file, e.program, r.start); i && fTe(t, e.sourceFile, i); }) }); } }); function pTe(e, t) { const r = ra(e, t); if (!Ve(r)) return; const { parent: i } = r; if (tu(i) && Um(i.moduleReference)) return { importNode: i, name: r, moduleSpecifier: i.moduleReference.expression }; if (Ov(i)) { const o = i.parent.parent; return { importNode: o, name: r, moduleSpecifier: o.moduleSpecifier }; } } function mTe(e, t, r, i) { e.replaceNode(t, r.importNode, Ly(r.name, void 0, r.moduleSpecifier, yp(t, i))); } var QB, Bee, TVe = L({ "src/services/codefixes/useDefaultImport.ts"() { Kr(), yo(), QB = "useDefaultImport", Bee = [_.Import_may_be_converted_to_a_default_import.code], uo({ errorCodes: Bee, getCodeActions(e) { const { sourceFile: t, span: { start: r } } = e, i = pTe(t, r); if (!i) return; const o = hr.ChangeTracker.with(e, (s) => mTe(s, t, i, e.preferences)); return [to(QB, o, _.Convert_to_default_import, QB, _.Convert_all_to_default_imports)]; }, fixIds: [QB], getAllCodeActions: (e) => xs(e, Bee, (t, r) => { const i = pTe(r.file, r.start); i && mTe(t, r.file, i, e.preferences); }) }); } }); function hTe(e, t, r) { const i = ri(ra(t, r.start), __); if (!i) return; const o = i.getText(t) + "n"; e.replaceNode(t, i, N.createBigIntLiteral(o)); } var ZB, Gee, SVe = L({ "src/services/codefixes/useBigintLiteral.ts"() { Kr(), yo(), ZB = "useBigintLiteral", Gee = [ _.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code ], uo({ errorCodes: Gee, getCodeActions: function(t) { const r = hr.ChangeTracker.with(t, (i) => hTe(i, t.sourceFile, t.span)); if (r.length > 0) return [to(ZB, r, _.Convert_to_a_bigint_numeric_literal, ZB, _.Convert_all_to_bigint_numeric_literals)]; }, fixIds: [ZB], getAllCodeActions: (e) => xs(e, Gee, (t, r) => hTe(t, r.file, r)) }); } }); function gTe(e, t) { const r = ra(e, t); return D.assert(r.kind === 100, "This token should be an ImportKeyword"), D.assert(r.parent.kind === 202, "Token parent should be an ImportType"), r.parent; } function yTe(e, t, r) { const i = N.updateImportTypeNode(r, r.argument, r.assertions, r.qualifier, r.typeArguments, !0); e.replaceNode(t, r, i); } var vTe, eG, Uee, xVe = L({ "src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"() { Kr(), yo(), vTe = "fixAddModuleReferTypeMissingTypeof", eG = vTe, Uee = [_.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code], uo({ errorCodes: Uee, getCodeActions: function(t) { const { sourceFile: r, span: i } = t, o = gTe(r, i.start), s = hr.ChangeTracker.with(t, (c) => yTe(c, r, o)); return [to(eG, s, _.Add_missing_typeof, eG, _.Add_missing_typeof)]; }, fixIds: [eG], getAllCodeActions: (e) => xs(e, Uee, (t, r) => yTe(t, e.sourceFile, gTe(r.file, r.start))) }); } }); function bTe(e, t) { let o = ra(e, t).parent.parent; if (!(!vr(o) && (o = o.parent, !vr(o))) && Sl(o.operatorToken)) return o; } function ETe(e, t, r) { const i = AVe(r); i && e.replaceNode(t, r, N.createJsxFragment(N.createJsxOpeningFragment(), i, N.createJsxJsxClosingFragment())); } function AVe(e) { const t = []; let r = e; for (; ; ) if (vr(r) && Sl(r.operatorToken) && r.operatorToken.kind === 27) { if (t.push(r.left), HR(r.right)) return t.push(r.right), t; if (vr(r.right)) { r = r.right; continue; } else return; } else return; } var tG, Vee, CVe = L({ "src/services/codefixes/wrapJsxInFragment.ts"() { Kr(), yo(), tG = "wrapJsxInFragment", Vee = [_.JSX_expressions_must_have_one_parent_element.code], uo({ errorCodes: Vee, getCodeActions: function(t) { const { sourceFile: r, span: i } = t, o = bTe(r, i.start); if (!o) return; const s = hr.ChangeTracker.with(t, (c) => ETe(c, r, o)); return [to(tG, s, _.Wrap_in_JSX_fragment, tG, _.Wrap_all_unparented_JSX_in_JSX_fragment)]; }, fixIds: [tG], getAllCodeActions: (e) => xs(e, Vee, (t, r) => { const i = bTe(e.sourceFile, r.start); i && ETe(t, e.sourceFile, i); }) }); } }); function TTe(e, t) { const r = ra(e, t), i = ri(r.parent.parent, hx); if (!i) return; const o = Yu(i.parent) ? i.parent : ri(i.parent.parent, Xp); if (o) return { indexSignature: i, container: o }; } function LVe(e, t) { return N.createTypeAliasDeclaration(e.modifiers, e.name, e.typeParameters, t); } function STe(e, t, { indexSignature: r, container: i }) { const s = (Yu(i) ? i.members : i.type.members).filter((m) => !hx(m)), c = ss(r.parameters), f = N.createTypeParameterDeclaration(void 0, ro(c.name, Ve), c.type), d = N.createMappedTypeNode(VI(r) ? N.createModifier(146) : void 0, f, void 0, r.questionToken, r.type, void 0), y = N.createIntersectionTypeNode([ ...NI(i), d, ...s.length ? [N.createTypeLiteralNode(s)] : nt ]); e.replaceNode(t, i, LVe(i, y)); } var nG, jee, IVe = L({ "src/services/codefixes/convertToMappedObjectType.ts"() { Kr(), yo(), nG = "fixConvertToMappedObjectType", jee = [_.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code], uo({ errorCodes: jee, getCodeActions: function(t) { const { sourceFile: r, span: i } = t, o = TTe(r, i.start); if (!o) return; const s = hr.ChangeTracker.with(t, (f) => STe(f, r, o)), c = Or(o.container.name); return [to(nG, s, [_.Convert_0_to_mapped_object_type, c], nG, [_.Convert_0_to_mapped_object_type, c])]; }, fixIds: [nG], getAllCodeActions: (e) => xs(e, jee, (t, r) => { const i = TTe(r.file, r.start); i && STe(t, r.file, i); }) }); } }), Hee, xTe, kVe = L({ "src/services/codefixes/removeAccidentalCallParentheses.ts"() { Kr(), yo(), Hee = "removeAccidentalCallParentheses", xTe = [ _.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code ], uo({ errorCodes: xTe, getCodeActions(e) { const t = nr(ra(e.sourceFile, e.span.start), eo); if (!t) return; const r = hr.ChangeTracker.with(e, (i) => { i.deleteRange(e.sourceFile, { pos: t.expression.end, end: t.end }); }); return [vp(Hee, r, _.Remove_parentheses)]; }, fixIds: [Hee] }); } }); function ATe(e, t, r) { const i = ri(ra(t, r.start), (f) => f.kind === 133), o = i && ri(i.parent, _C); if (!o) return; let s = o; if (Pd(o.parent)) { const f = $I(o.expression, !1); if (Ve(f)) { const d = Tc(o.parent.pos, t); d && d.kind !== 103 && (s = o.parent); } } e.replaceNode(t, s, o.expression); } var rG, Wee, wVe = L({ "src/services/codefixes/removeUnnecessaryAwait.ts"() { Kr(), yo(), rG = "removeUnnecessaryAwait", Wee = [ _.await_has_no_effect_on_the_type_of_this_expression.code ], uo({ errorCodes: Wee, getCodeActions: function(t) { const r = hr.ChangeTracker.with(t, (i) => ATe(i, t.sourceFile, t.span)); if (r.length > 0) return [to(rG, r, _.Remove_unnecessary_await, rG, _.Remove_all_unnecessary_uses_of_await)]; }, fixIds: [rG], getAllCodeActions: (e) => xs(e, Wee, (t, r) => ATe(t, r.file, r)) }); } }); function CTe(e, t) { return nr(ra(e, t.start), Gc); } function LTe(e, t, r) { if (!t) return; const i = D.checkDefined(t.importClause); e.replaceNode(r.sourceFile, t, N.updateImportDeclaration(t, t.modifiers, N.updateImportClause(i, i.isTypeOnly, i.name, void 0), t.moduleSpecifier, t.assertClause)), e.insertNodeAfter(r.sourceFile, t, N.createImportDeclaration(void 0, N.updateImportClause(i, i.isTypeOnly, void 0, i.namedBindings), t.moduleSpecifier, t.assertClause)); } var zee, iG, DVe = L({ "src/services/codefixes/splitTypeOnlyImport.ts"() { Kr(), yo(), zee = [_.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code], iG = "splitTypeOnlyImport", uo({ errorCodes: zee, fixIds: [iG], getCodeActions: function(t) { const r = hr.ChangeTracker.with(t, (i) => LTe(i, CTe(t.sourceFile, t.span), t)); if (r.length) return [to(iG, r, _.Split_into_two_separate_import_declarations, iG, _.Split_all_invalid_type_only_imports)]; }, getAllCodeActions: (e) => xs(e, zee, (t, r) => { LTe(t, CTe(e.sourceFile, r), e); }) }); } }); function ITe(e, t, r) { var i; const s = r.getTypeChecker().getSymbolAtLocation(ra(e, t)); if (s === void 0) return; const c = ri((i = s == null ? void 0 : s.valueDeclaration) == null ? void 0 : i.parent, Ou); if (c === void 0) return; const f = ys(c, 85, e); if (f !== void 0) return { symbol: s, token: f }; } function kTe(e, t, r) { e.replaceNode(t, r, N.createToken(119)); } var aG, qee, RVe = L({ "src/services/codefixes/convertConstToLet.ts"() { Kr(), yo(), aG = "fixConvertConstToLet", qee = [_.Cannot_assign_to_0_because_it_is_a_constant.code], uo({ errorCodes: qee, getCodeActions: function(t) { const { sourceFile: r, span: i, program: o } = t, s = ITe(r, i.start, o); if (s === void 0) return; const c = hr.ChangeTracker.with(t, (f) => kTe(f, r, s.token)); return [XQ(aG, c, _.Convert_const_to_let, aG, _.Convert_all_const_to_let)]; }, getAllCodeActions: (e) => { const { program: t } = e, r = /* @__PURE__ */ new Map(); return zx(hr.ChangeTracker.with(e, (i) => { qx(e, qee, (o) => { const s = ITe(o.file, o.start, t); if (s && _p(r, go(s.symbol))) return kTe(i, o.file, s.token); }); })); }, fixIds: [aG] }); } }); function wTe(e, t, r) { const i = ra(e, t); return i.kind === 26 && i.parent && (As(i.parent) || Ru(i.parent)) ? { node: i } : void 0; } function DTe(e, t, { node: r }) { const i = N.createToken(27); e.replaceNode(t, r, i); } var oG, RTe, Jee, NVe = L({ "src/services/codefixes/fixExpectedComma.ts"() { Kr(), yo(), oG = "fixExpectedComma", RTe = _._0_expected.code, Jee = [RTe], uo({ errorCodes: Jee, getCodeActions(e) { const { sourceFile: t } = e, r = wTe(t, e.span.start, e.errorCode); if (!r) return; const i = hr.ChangeTracker.with(e, (o) => DTe(o, t, r)); return [to(oG, i, [_.Change_0_to_1, ";", ","], oG, [_.Change_0_to_1, ";", ","])]; }, fixIds: [oG], getAllCodeActions: (e) => xs(e, Jee, (t, r) => { const i = wTe(r.file, r.start, r.code); i && DTe(t, e.sourceFile, i); }) }); } }); function NTe(e, t, r, i, o) { const s = ra(t, r.start); if (!Ve(s) || !eo(s.parent) || s.parent.expression !== s || s.parent.arguments.length !== 0) return; const c = i.getTypeChecker(), f = c.getSymbolAtLocation(s), d = f == null ? void 0 : f.valueDeclaration; if (!d || !Ma(d) || !I1(d.parent.parent) || o != null && o.has(d)) return; o == null || o.add(d); const y = OVe(d.parent.parent); if (kt(y)) { const m = y[0], b = !gx(m) && !yx(m) && yx(N.createUnionTypeNode([m, N.createKeywordTypeNode(114)]).types[0]); b && e.insertText(t, m.pos, "("), e.insertText(t, m.end, b ? ") | void" : " | void"); } else { const m = c.getResolvedSignature(s.parent), b = m == null ? void 0 : m.parameters[0], A = b && c.getTypeOfSymbolAtLocation(b, d.parent.parent); dr(d) ? (!A || A.flags & 3) && (e.insertText(t, d.parent.parent.end, ")"), e.insertText(t, zo(t.text, d.parent.parent.pos), "/** @type {Promise} */(")) : (!A || A.flags & 2) && e.insertText(t, d.parent.parent.expression.end, ""); } } function OVe(e) { var t; if (dr(e)) { if (Pd(e.parent)) { const r = (t = s1(e.parent)) == null ? void 0 : t.typeExpression.type; if (r && V_(r) && Ve(r.typeName) && Or(r.typeName) === "Promise") return r.typeArguments; } } else return e.typeArguments; } var OTe, Kee, Xee, PVe = L({ "src/services/codefixes/fixAddVoidToPromise.ts"() { Kr(), yo(), OTe = "addVoidToPromise", Kee = "addVoidToPromise", Xee = [ _.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code, _.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code ], uo({ errorCodes: Xee, fixIds: [Kee], getCodeActions(e) { const t = hr.ChangeTracker.with(e, (r) => NTe(r, e.sourceFile, e.span, e.program)); if (t.length > 0) return [to(OTe, t, _.Add_void_to_Promise_resolved_without_a_value, Kee, _.Add_void_to_all_Promises_resolved_without_a_value)]; }, getAllCodeActions(e) { return xs(e, Xee, (t, r) => NTe(t, r.file, r, e.program, /* @__PURE__ */ new Set())); } }); } }), Fu = {}; fe(Fu, { PreserveOptionalFlags: () => Nee, addNewNodeForMemberSymbol: () => JEe, codeFixAll: () => xs, createCodeFixAction: () => to, createCodeFixActionMaybeFixAll: () => XQ, createCodeFixActionWithoutFixAll: () => vp, createCombinedCodeActions: () => zx, createFileTextChanges: () => nbe, createImportAdder: () => qT, createImportSpecifierResolver: () => YBe, createJsonPropertyAssignment: () => qB, createMissingMemberNodes: () => Aee, createSignatureDeclarationFromCallExpression: () => Cee, createSignatureDeclarationFromSignature: () => WB, createStubbedBody: () => b6, eachDiagnostic: () => qx, findAncestorMatchingSpan: () => Ree, findJsonProperty: () => Dee, generateAccessorFromProperty: () => ZEe, getAccessorConvertiblePropertyAtPosition: () => nTe, getAllFixes: () => N9e, getAllSupers: () => Oee, getArgumentTypesAndTypeParameters: () => YEe, getFixes: () => R9e, getImportCompletionAction: () => $Be, getImportKind: () => TZ, getNoopSymbolTrackerWithResolver: () => Kx, getPromoteTypeOnlyCompletionAction: () => QBe, getSupportedErrorCodes: () => w9e, importFixName: () => IZ, importSymbols: () => Xx, moduleSpecifierToValidIdentifier: () => LZ, moduleSymbolToValidIdentifier: () => CZ, parameterShouldGetTypeFromJSDoc: () => Ebe, registerCodeFix: () => uo, setJsonCompilerOptionValue: () => wee, setJsonCompilerOptionValues: () => kee, tryGetAutoImportableReferenceFromTypeNode: () => KT, typeToAutoImportableTypeNode: () => zB }); var yo = L({ "src/services/_namespaces/ts.codefix.ts"() { O9e(), P9e(), M9e(), G9e(), W9e(), K9e(), X9e(), Y9e(), $9e(), tBe(), dBe(), _Be(), xBe(), jBe(), HBe(), zBe(), qBe(), JBe(), XBe(), yGe(), EGe(), xGe(), AGe(), CGe(), kGe(), RGe(), PGe(), UGe(), YGe(), QGe(), ZGe(), tUe(), nUe(), rUe(), iUe(), oUe(), sUe(), lUe(), cUe(), uUe(), fUe(), mUe(), vUe(), LUe(), kUe(), wUe(), NUe(), OUe(), MUe(), FUe(), zUe(), qUe(), JUe(), ZUe(), dVe(), mVe(), vVe(), EVe(), TVe(), SVe(), xVe(), CVe(), IVe(), kVe(), wVe(), DVe(), RVe(), NVe(), PVe(); } }); function MVe(e) { return !!(e.kind & 1); } function FVe(e) { return !!(e.kind & 2); } function E6(e) { return !!(e && e.kind & 4); } function KC(e) { return !!(e && e.kind === 32); } function BVe(e) { return E6(e) || KC(e) || Yee(e); } function GVe(e) { return (E6(e) || KC(e)) && !!e.isFromPackageJson; } function UVe(e) { return !!(e.kind & 8); } function VVe(e) { return !!(e.kind & 16); } function PTe(e) { return !!(e && e.kind & 64); } function MTe(e) { return !!(e && e.kind & 128); } function jVe(e) { return !!(e && e.kind & 256); } function Yee(e) { return !!(e && e.kind & 512); } function FTe(e, t, r, i, o, s, c, f, d) { var y, m, b; const A = nl(), C = c || sx(gl(i.getCompilerOptions())); let I = !1, O = 0, k = 0, B = 0, U = 0; const j = d({ tryResolve: X, skippedAny: () => I, resolvedAny: () => k > 0, resolvedBeyondLimit: () => k > mG }), te = U ? ` (${(B / U * 100).toFixed(1)}% hit rate)` : ""; return (y = t.log) == null || y.call(t, `${e}: resolved ${k} module specifiers, plus ${O} ambient and ${B} from cache${te}`), (m = t.log) == null || m.call(t, `${e}: response is ${I ? "incomplete" : "complete"}`), (b = t.log) == null || b.call(t, `${e}: ${nl() - A}`), j; function X(Y, P) { if (P) { const ie = r.getModuleSpecifierForBestExportInfo(Y, o, f); return ie && O++, ie || "failed"; } const ue = C || s.allowIncompleteCompletions && k < mG, ne = !ue && s.allowIncompleteCompletions && U < ste, ge = ue || ne ? r.getModuleSpecifierForBestExportInfo(Y, o, f, ne) : void 0; return (!ue && !ne || ne && !ge) && (I = !0), k += (ge == null ? void 0 : ge.computedWithoutCacheCount) || 0, B += Y.length - ((ge == null ? void 0 : ge.computedWithoutCacheCount) || 0), ne && U++, ge || (C ? "failed" : "skipped"); } } function HVe(e, t, r, i, o, s, c, f, d, y, m = !1) { var b; const { previousToken: A } = cG(o, i); if (c && !VT(i, o, A) && !Sje(i, c, A, o)) return; if (c === " ") return s.includeCompletionsForImportStatements && s.includeCompletionsWithInsertText ? { isGlobalCompletion: !0, isMemberCompletion: !1, isNewIdentifierLocation: !0, isIncomplete: !0, entries: [] } : void 0; const C = t.getCompilerOptions(), I = s.allowIncompleteCompletions ? (b = e.getIncompleteCompletionsCache) == null ? void 0 : b.call(e) : void 0; if (I && f === 3 && A && Ve(A)) { const B = WVe(I, i, A, t, e, s, d, o); if (B) return B; } else I == null || I.clear(); const O = hG.getStringLiteralCompletions(i, o, A, C, e, t, r, s, m); if (O) return O; if (A && mI(A.parent) && (A.kind === 81 || A.kind === 86 || A.kind === 79)) return lje(A.parent); const k = JTe(t, r, i, C, o, s, void 0, e, y, d); if (k) switch (k.kind) { case 0: const B = KVe(i, e, t, C, r, k, s, y, o, m); return B != null && B.isIncomplete && (I == null || I.set(B)), B; case 1: return $ee(ib.getJSDocTagNameCompletions()); case 2: return $ee(ib.getJSDocTagCompletions()); case 3: return $ee(ib.getJSDocParameterNameCompletions(k.tag)); case 4: return qVe(k.keywordCompletions, k.isNewIdentifierLocation); default: return D.assertNever(k); } } function T6(e, t) { var r, i; let o = rR(e.sortText, t.sortText); return o === 0 && (o = rR(e.name, t.name)), o === 0 && ((r = e.data) != null && r.moduleSpecifier) && ((i = t.data) != null && i.moduleSpecifier) && (o = JN(e.data.moduleSpecifier, t.data.moduleSpecifier)), o === 0 ? -1 : o; } function BTe(e) { return !!(e != null && e.moduleSpecifier); } function WVe(e, t, r, i, o, s, c, f) { const d = e.get(); if (!d) return; const y = Af(t, f), m = r.text.toLowerCase(), b = i6(t, o, i, s, c), A = FTe("continuePreviousIncompleteResponse", o, Fu.createImportSpecifierResolver(t, i, o, s), i, r.getStart(), s, !1, cx(r), (C) => { const I = _a(d.entries, (O) => { var k; if (!O.hasAction || !O.source || !O.data || BTe(O.data)) return O; if (!oSe(O.name, m)) return; const { origin: B } = D.checkDefined(KTe(O.name, O.data, i, o)), U = b.get(t.path, O.data.exportMapKey), j = U && C.tryResolve(U, !Oc(M_(B.moduleSymbol.name))); if (j === "skipped") return O; if (!j || j === "failed") { (k = o.log) == null || k.call(o, `Unexpected failure resolving auto import for '${O.name}' from '${O.source}'`); return; } const te = { ...B, kind: 32, moduleSpecifier: j.moduleSpecifier }; return O.data = WTe(te), O.source = ete(te), O.sourceDisplay = [Cf(te.moduleSpecifier)], O; }); return C.skippedAny() || (d.isIncomplete = void 0), I; }); return d.entries = A, d.flags = (d.flags || 0) | 4, d.optionalReplacementSpan = UTe(y), d; } function $ee(e) { return { isGlobalCompletion: !1, isMemberCompletion: !1, isNewIdentifierLocation: !1, entries: e }; } function zVe(e) { return { name: mo(e), kind: "keyword", kindModifiers: "", sortText: nu.GlobalsOrKeywords }; } function qVe(e, t) { return { isGlobalCompletion: !1, isMemberCompletion: !1, isNewIdentifierLocation: t, entries: e.slice() }; } function GTe(e, t, r) { return { kind: 4, keywordCompletions: XTe(e, t), isNewIdentifierLocation: r }; } function JVe(e) { switch (e) { case 154: return 8; default: D.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters"); } } function UTe(e) { return (e == null ? void 0 : e.kind) === 79 ? $u(e) : void 0; } function KVe(e, t, r, i, o, s, c, f, d, y) { const { symbols: m, contextToken: b, completionKind: A, isInSnippetScope: C, isNewIdentifierLocation: I, location: O, propertyAccessToConvert: k, keywordFilters: B, symbolToOriginInfoMap: U, recommendedCompletion: j, isJsxInitializer: te, isTypeOnlyLocation: X, isJsxIdentifierExpected: Y, isRightOfOpenTag: P, isRightOfDotOrQuestionDot: ue, importStatementCompletion: ne, insideJsDocTagTypeExpression: ge, symbolToSortTextMap: ie, hasUnresolvedAutoImports: H } = s; let le = s.literals; const pe = r.getTypeChecker(); if (UN(e.scriptKind) === 1) { const Fe = YVe(O, e); if (Fe) return Fe; } const ye = nr(b, Ak); if (ye && (xfe(b) || uT(b, ye.expression))) { const Fe = r9(pe, ye.parent.clauses); le = le.filter((We) => !Fe.hasValue(We)), m.forEach((We, Re) => { if (We.valueDeclaration && D1(We.valueDeclaration)) { const Pe = pe.getConstantValue(We.valueDeclaration); Pe !== void 0 && Fe.hasValue(Pe) && (U[Re] = { kind: 256 }); } }); } const Te = tj(), ee = VTe(e, i); if (ee && !I && (!m || m.length === 0) && B === 0) return; const $e = tte(m, Te, void 0, b, O, d, e, t, r, $o(i), o, A, c, i, f, X, k, Y, te, ne, j, U, ie, Y, P, y); if (B !== 0) for (const Fe of XTe(B, !ge && Ju(e))) (X && rw(KE(Fe.name)) || !$e.has(Fe.name)) && ($e.add(Fe.name), fv(Te, Fe, T6, !0)); for (const Fe of yje(b, d)) $e.has(Fe.name) || ($e.add(Fe.name), fv(Te, Fe, T6, !0)); for (const Fe of le) { const We = QVe(e, c, Fe); $e.add(We.name), fv(Te, We, T6, !0); } ee || $Ve(e, O.pos, $e, $o(i), Te); let Ge; if (c.includeCompletionsWithInsertText && b && !P && !ue && (Ge = nr(b, xO))) { const Fe = jTe(Ge, e, c, i, t, r, f); Fe && Te.push(Fe.entry); } return { flags: s.flags, isGlobalCompletion: C, isIncomplete: c.allowIncompleteCompletions && H ? !0 : void 0, isMemberCompletion: XVe(A), isNewIdentifierLocation: I, optionalReplacementSpan: UTe(O), entries: Te }; } function VTe(e, t) { return !Ju(e) || !!$N(e, t); } function jTe(e, t, r, i, o, s, c) { const f = e.clauses, d = s.getTypeChecker(), y = d.getTypeAtLocation(e.parent.expression); if (y && y.isUnion() && Vn(y.types, (m) => m.isLiteral())) { const m = r9(d, f), b = $o(i), A = yp(t, r), C = Fu.createImportAdder(t, s, r, o), I = []; for (const X of y.types) if (X.flags & 1024) { D.assert(X.symbol, "An enum member type should have a symbol"), D.assert(X.symbol.parent, "An enum member type should have a parent symbol (the enum symbol)"); const Y = X.symbol.valueDeclaration && d.getConstantValue(X.symbol.valueDeclaration); if (Y !== void 0) { if (m.hasValue(Y)) continue; m.addValue(Y); } const P = Fu.typeToAutoImportableTypeNode(d, C, X, e, b); if (!P) return; const ue = sG(P, b, A); if (!ue) return; I.push(ue); } else if (!m.hasValue(X.value)) switch (typeof X.value) { case "object": I.push(X.value.negative ? N.createPrefixUnaryExpression(40, N.createBigIntLiteral({ negative: !1, base10Value: X.value.base10Value })) : N.createBigIntLiteral(X.value)); break; case "number": I.push(X.value < 0 ? N.createPrefixUnaryExpression(40, N.createNumericLiteral(-X.value)) : N.createNumericLiteral(X.value)); break; case "string": I.push(N.createStringLiteral(X.value, A === 0)); break; } if (I.length === 0) return; const O = rn(I, (X) => N.createCaseClause(X, [])), k = eb(o, c == null ? void 0 : c.options), B = Zee({ removeComments: !0, module: i.module, target: i.target, newLine: r6(k) }), U = c ? (X) => B.printAndFormatNode(4, X, t, c) : (X) => B.printNode(4, X, t), j = rn(O, (X, Y) => r.includeCompletionsWithSnippetText ? `${U(X)}$${Y + 1}` : `${U(X)}`).join(k); return { entry: { name: `${B.printNode(4, O[0], t)} ...`, kind: "", sortText: nu.GlobalsOrKeywords, insertText: j, hasAction: C.hasFixes() || void 0, source: "SwitchCases/", isSnippet: r.includeCompletionsWithSnippetText ? !0 : void 0 }, importAdder: C }; } } function sG(e, t, r) { switch (e.kind) { case 180: const i = e.typeName; return lG(i, t, r); case 196: const o = sG(e.objectType, t, r), s = sG(e.indexType, t, r); return o && s && N.createElementAccessExpression(o, s); case 198: const c = e.literal; switch (c.kind) { case 10: return N.createStringLiteral(c.text, r === 0); case 8: return N.createNumericLiteral(c.text, c.numericLiteralFlags); } return; case 193: const f = sG(e.type, t, r); return f && (Ve(f) ? f : N.createParenthesizedExpression(f)); case 183: return lG(e.exprName, t, r); case 202: D.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'."); } } function lG(e, t, r) { if (Ve(e)) return e; const i = Zi(e.right.escapedText); return lq(i, t) ? N.createPropertyAccessExpression(lG(e.left, t, r), i) : N.createElementAccessExpression(lG(e.left, t, r), N.createStringLiteral(i, r === 0)); } function XVe(e) { switch (e) { case 0: case 3: case 2: return !0; default: return !1; } } function YVe(e, t) { const r = nr(e, (i) => { switch (i.kind) { case 284: return !0; case 43: case 31: case 79: case 208: return !1; default: return "quit"; } }); if (r) { const i = !!ys(r, 31, t), c = r.parent.openingElement.tagName.getText(t) + (i ? "" : ">"), f = $u(r.tagName), d = { name: c, kind: "class", kindModifiers: void 0, sortText: nu.LocationPriority }; return { isGlobalCompletion: !1, isMemberCompletion: !0, isNewIdentifierLocation: !1, optionalReplacementSpan: f, entries: [d] }; } } function $Ve(e, t, r, i, o) { NQ(e).forEach((s, c) => { if (s === t) return; const f = Zi(c); !r.has(f) && w_(f, i) && (r.add(f), fv(o, { name: f, kind: "warning", kindModifiers: "", sortText: nu.JavascriptIdentifiers, isFromUncheckedFile: !0 }, T6)); }); } function Qee(e, t, r) { return typeof r == "object" ? A1(r) + "n" : Va(r) ? sw(e, t, r) : JSON.stringify(r); } function QVe(e, t, r) { return { name: Qee(e, t, r), kind: "string", kindModifiers: "", sortText: nu.LocationPriority }; } function ZVe(e, t, r, i, o, s, c, f, d, y, m, b, A, C, I, O, k, B, U, j, te, X, Y, P) { let ue, ne = v$(r), ge, ie, H = ete(b), le, pe, ye; const Te = d.getTypeChecker(), ee = b && VVe(b), $e = b && FVe(b) || m; if (b && MVe(b)) ue = m ? `this${ee ? "?." : ""}[${zTe(c, U, y)}]` : `this${ee ? "?." : "."}${y}`; else if (($e || ee) && C) { ue = $e ? m ? `[${zTe(c, U, y)}]` : `[${y}]` : y, (ee || C.questionDotToken) && (ue = `?.${ue}`); const Ge = ys(C, 24, c) || ys(C, 28, c); if (!Ge) return; const Fe = Ea(y, C.name.text) ? C.name.end : Ge.end; ne = fc(Ge.getStart(c), Fe); } if (I && (ue === void 0 && (ue = y), ue = `{${ue}}`, typeof I != "boolean" && (ne = $u(I, c))), b && UVe(b) && C) { ue === void 0 && (ue = y); const Ge = Tc(C.pos, c); let Fe = ""; Ge && zF(Ge.end, Ge.parent, c) && (Fe = ";"), Fe += `(await ${C.expression.getText()})`, ue = m ? `${Fe}${ue}` : `${Fe}${ee ? "?." : "."}${ue}`; const Re = ri(C.parent, _C) ? C.parent : C.expression; ne = fc(Re.getStart(c), C.end); } if (KC(b) && (le = [Cf(b.moduleSpecifier)], O && ({ insertText: ue, replacementSpan: ne } = oje(y, O, b, k, c, B, U), ie = U.includeCompletionsWithSnippetText ? !0 : void 0)), (b == null ? void 0 : b.kind) === 64 && (pe = !0), U.includeCompletionsWithClassMemberSnippets && U.includeCompletionsWithInsertText && j === 3 && eje(e, o, c)) { let Ge; ({ insertText: ue, isSnippet: ie, importAdder: Ge, replacementSpan: ne } = HTe(f, d, B, U, y, e, o, s, i, te)), t = nu.ClassMemberSnippets, Ge != null && Ge.hasFixes() && (pe = !0, H = "ClassMemberSnippet/"); } if (b && MTe(b) && ({ insertText: ue, isSnippet: ie, labelDetails: ye } = b, U.useLabelDetailsInCompletionEntries || (y = y + ye.detail, ye = void 0), H = "ObjectLiteralMethodSnippet/", t = nu.SortBelow(t)), X && !Y && U.includeCompletionsWithSnippetText && U.jsxAttributeCompletionStyle && U.jsxAttributeCompletionStyle !== "none" && !($p(o.parent) && o.parent.initializer)) { let Ge = U.jsxAttributeCompletionStyle === "braces"; const Fe = Te.getTypeOfSymbolAtLocation(e, o); U.jsxAttributeCompletionStyle === "auto" && !(Fe.flags & 528) && !(Fe.flags & 1048576 && un(Fe.types, (We) => !!(We.flags & 528))) && (Fe.flags & 402653316 || Fe.flags & 1048576 && Vn(Fe.types, (We) => !!(We.flags & 402686084 || Sye(We))) ? (ue = `${yT(y)}=${sw(c, U, "$1")}`, ie = !0) : Ge = !0), Ge && (ue = `${yT(y)}={$1}`, ie = !0); } if (!(ue !== void 0 && !U.includeCompletionsWithInsertText)) return (E6(b) || KC(b)) && (ge = WTe(b), pe = !O), { name: y, kind: ky.getSymbolKind(Te, e, o), kindModifiers: ky.getSymbolModifiers(Te, e), sortText: t, source: H, hasAction: pe ? !0 : void 0, isRecommended: sje(e, A, Te) || void 0, insertText: ue, replacementSpan: ne, sourceDisplay: le, labelDetails: ye, isSnippet: ie, isPackageJsonImport: GVe(b) || void 0, isImportStatementCompletion: !!O || void 0, data: ge, ...P ? { symbol: e } : void 0 }; } function eje(e, t, r) { if (dr(t)) return !1; const i = 106500; return !!(e.flags & i) && (li(t) || t.parent && t.parent.parent && Pc(t.parent) && t === t.parent.name && t.parent.getLastToken(r) === t.parent.name && li(t.parent.parent) || t.parent && vC(t) && li(t.parent)); } function HTe(e, t, r, i, o, s, c, f, d, y) { const m = nr(c, li); if (!m) return { insertText: o }; let b, A, C = o; const I = t.getTypeChecker(), O = c.getSourceFile(), k = Zee({ removeComments: !0, module: r.module, target: r.target, omitTrailingSemicolon: !1, newLine: r6(eb(e, y == null ? void 0 : y.options)) }), B = Fu.createImportAdder(O, t, i, e); let U; if (i.includeCompletionsWithSnippetText) { b = !0; const ue = N.createEmptyStatement(); U = N.createBlock([ue], !0), Uq(ue, { kind: 0, order: 0 }); } else U = N.createBlock([], !0); let j = 0; const { modifiers: te, span: X } = tje(d, O, f), Y = !!(te & 256), P = []; return Fu.addNewNodeForMemberSymbol(s, m, O, { program: t, host: e }, i, B, (ue) => { let ne = 0; Y && (ne |= 256), Pc(ue) && I.getMemberOverrideModifierStatus(m, ue, s) === 1 && (ne |= 16384), P.length || (j = ue.modifierFlagsCache | ne | te), ue = N.updateModifiers(ue, j), P.push(ue); }, U, Fu.PreserveOptionalFlags.Property, Y), P.length && (A = X, y ? C = k.printAndFormatSnippetList(131073, N.createNodeArray(P), O, y) : C = k.printSnippetList(131073, N.createNodeArray(P), O)), { insertText: C, isSnippet: b, importAdder: B, replacementSpan: A }; } function tje(e, t, r) { if (!e || il(t, r).line > il(t, e.getEnd()).line) return { modifiers: 0 }; let i = 0, o, s; return (s = nje(e)) && (i |= ix(s), o = $u(e)), Za(e.parent) && (i |= Om(e.parent.modifiers) & 126975, o = $u(e.parent)), { modifiers: i, span: o }; } function nje(e) { if (lo(e)) return e.kind; if (Ve(e)) { const t = M0(e); if (t && uy(t)) return t; } } function rje(e, t, r, i, o, s, c, f) { const d = c.includeCompletionsWithSnippetText || void 0; let y = t; const m = r.getSourceFile(), b = ije(e, r, m, i, o, c); if (!b) return; const A = Zee({ removeComments: !0, module: s.module, target: s.target, omitTrailingSemicolon: !1, newLine: r6(eb(o, f == null ? void 0 : f.options)) }); f ? y = A.printAndFormatSnippetList(80, N.createNodeArray([b], !0), m, f) : y = A.printSnippetList(80, N.createNodeArray([b], !0), m); const C = G1({ removeComments: !0, module: s.module, target: s.target, omitTrailingSemicolon: !0 }), I = N.createMethodSignature(void 0, "", b.questionToken, b.typeParameters, b.parameters, b.type), O = { detail: C.printNode(4, I, m) }; return { isSnippet: d, insertText: y, labelDetails: O }; } function ije(e, t, r, i, o, s) { const c = e.getDeclarations(); if (!(c && c.length)) return; const f = i.getTypeChecker(), d = c[0], y = Il(La(d), !1), m = f.getWidenedType(f.getTypeOfSymbolAtLocation(e, t)), A = 33554432 | (yp(r, s) === 0 ? 268435456 : 0); switch (d.kind) { case 168: case 169: case 170: case 171: { let C = m.flags & 1048576 && m.types.length < 10 ? f.getUnionType(m.types, 2) : m; if (C.flags & 1048576) { const U = yn(C.types, (j) => f.getSignaturesOfType(j, 0).length > 0); if (U.length === 1) C = U[0]; else return; } if (f.getSignaturesOfType(C, 0).length !== 1) return; const O = f.typeToTypeNode(C, t, A, Fu.getNoopSymbolTrackerWithResolver({ program: i, host: o })); if (!O || !Eh(O)) return; let k; if (s.includeCompletionsWithSnippetText) { const U = N.createEmptyStatement(); k = N.createBlock([U], !0), Uq(U, { kind: 0, order: 0 }); } else k = N.createBlock([], !0); const B = O.parameters.map((U) => N.createParameterDeclaration(void 0, U.dotDotDotToken, U.name, void 0, void 0, U.initializer)); return N.createMethodDeclaration(void 0, void 0, y, void 0, void 0, B, void 0, k); } default: return; } } function Zee(e) { let t; const r = hr.createWriter(z0(e)), i = G1(e, r), o = { ...r, write: (A) => s(A, () => r.write(A)), nonEscapingWrite: r.write, writeLiteral: (A) => s(A, () => r.writeLiteral(A)), writeStringLiteral: (A) => s(A, () => r.writeStringLiteral(A)), writeSymbol: (A, C) => s(A, () => r.writeSymbol(A, C)), writeParameter: (A) => s(A, () => r.writeParameter(A)), writeComment: (A) => s(A, () => r.writeComment(A)), writeProperty: (A) => s(A, () => r.writeProperty(A)) }; return { printSnippetList: c, printAndFormatSnippetList: d, printNode: y, printAndFormatNode: b }; function s(A, C) { const I = yT(A); if (I !== A) { const O = r.getTextPos(); C(); const k = r.getTextPos(); t = Fn(t || (t = []), { newText: I, span: { start: O, length: k - O } }); } else C(); } function c(A, C, I) { const O = f(A, C, I); return t ? hr.applyChanges(O, t) : O; } function f(A, C, I) { return t = void 0, o.clear(), i.writeList(A, C, I, o), o.getText(); } function d(A, C, I, O) { const k = { text: f(A, C, I), getLineAndCharacterOfPosition(te) { return il(this, te); } }, B = n9(O, I), U = Mo(C, (te) => { const X = hr.assignPositionsToNode(te); return Sc.formatNodeGivenIndentation(X, k, I.languageVariant, 0, 0, { ...O, options: B }); }), j = t ? ry(ha(U, t), (te, X) => SP(te.span, X.span)) : U; return hr.applyChanges(k.text, j); } function y(A, C, I) { const O = m(A, C, I); return t ? hr.applyChanges(O, t) : O; } function m(A, C, I) { return t = void 0, o.clear(), i.writeNode(A, C, I, o), o.getText(); } function b(A, C, I, O) { const k = { text: m(A, C, I), getLineAndCharacterOfPosition(X) { return il(this, X); } }, B = n9(O, I), U = hr.assignPositionsToNode(C), j = Sc.formatNodeGivenIndentation(U, k, I.languageVariant, 0, 0, { ...O, options: B }), te = t ? ry(ha(j, t), (X, Y) => SP(X.span, Y.span)) : j; return hr.applyChanges(k.text, te); } } function WTe(e) { const t = e.fileName ? void 0 : M_(e.moduleSymbol.name), r = e.isFromPackageJson ? !0 : void 0; return KC(e) ? { exportName: e.exportName, exportMapKey: e.exportMapKey, moduleSpecifier: e.moduleSpecifier, ambientModuleName: t, fileName: e.fileName, isPackageJsonImport: r } : { exportName: e.exportName, exportMapKey: e.exportMapKey, fileName: e.fileName, ambientModuleName: e.fileName ? void 0 : M_(e.moduleSymbol.name), isPackageJsonImport: e.isFromPackageJson ? !0 : void 0 }; } function aje(e, t, r) { const i = e.exportName === "default", o = !!e.isPackageJsonImport; return BTe(e) ? { kind: 32, exportName: e.exportName, exportMapKey: e.exportMapKey, moduleSpecifier: e.moduleSpecifier, symbolName: t, fileName: e.fileName, moduleSymbol: r, isDefaultExport: i, isFromPackageJson: o } : { kind: 4, exportName: e.exportName, exportMapKey: e.exportMapKey, symbolName: t, fileName: e.fileName, moduleSymbol: r, isDefaultExport: i, isFromPackageJson: o }; } function oje(e, t, r, i, o, s, c) { const f = t.replacementSpan, d = sw(o, c, yT(r.moduleSpecifier)), y = r.isDefaultExport ? 1 : r.exportName === "export=" ? 2 : 0, m = c.includeCompletionsWithSnippetText ? "$1" : "", b = Fu.getImportKind(o, y, s, !0), A = t.couldBeTypeOnlyImportSpecifier, C = t.isTopLevelTypeOnly ? ` ${mo(154)} ` : " ", I = A ? `${mo(154)} ` : "", O = i ? ";" : ""; switch (b) { case 3: return { replacementSpan: f, insertText: `import${C}${yT(e)}${m} = require(${d})${O}` }; case 1: return { replacementSpan: f, insertText: `import${C}${yT(e)}${m} from ${d}${O}` }; case 2: return { replacementSpan: f, insertText: `import${C}* as ${yT(e)} from ${d}${O}` }; case 0: return { replacementSpan: f, insertText: `import${C}{ ${I}${yT(e)}${m} } from ${d}${O}` }; } } function zTe(e, t, r) { return /^\d+$/.test(r) ? r : sw(e, t, r); } function sje(e, t, r) { return e === t || !!(e.flags & 1048576) && r.getExportSymbolOfSymbol(e) === t; } function ete(e) { if (E6(e)) return M_(e.moduleSymbol.name); if (KC(e)) return e.moduleSpecifier; if ((e == null ? void 0 : e.kind) === 1) return "ThisProperty/"; if ((e == null ? void 0 : e.kind) === 64) return "TypeOnlyAlias/"; } function tte(e, t, r, i, o, s, c, f, d, y, m, b, A, C, I, O, k, B, U, j, te, X, Y, P, ue, ne = !1) { var ge; const ie = nl(), H = Ije(o), le = qF(c), pe = d.getTypeChecker(), ye = /* @__PURE__ */ new Map(); for (let ee = 0; ee < e.length; ee++) { const $e = e[ee], Ge = X == null ? void 0 : X[ee], Fe = uG($e, y, Ge, b, !!B); if (!Fe || ye.get(Fe.name) && (!Ge || !MTe(Ge)) || b === 1 && Y && !Te($e, Y)) continue; const { name: We, needsConvertPropertyAccess: Re } = Fe, Pe = (ge = Y == null ? void 0 : Y[go($e)]) != null ? ge : nu.LocationPriority, Ke = wje($e, pe) ? nu.Deprecated(Pe) : Pe, He = ZVe($e, Ke, r, i, o, s, c, f, d, We, Re, Ge, te, k, U, j, le, C, A, b, I, P, ue, ne); if (!He) continue; const Me = (!Ge || PTe(Ge)) && !($e.parent === void 0 && !kt($e.declarations, (ot) => ot.getSourceFile() === o.getSourceFile())); ye.set(We, Me), fv(t, He, T6, !0); } return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: " + (nl() - ie)), { has: (ee) => ye.has(ee), add: (ee) => ye.set(ee, !0) }; function Te(ee, $e) { let Ge = ee.flags; if (!ji(o)) { if (Pl(o.parent)) return !0; if (H && ee.valueDeclaration === H) return !1; const Fe = nf(ee, pe); if (c.externalModuleIndicator && !C.allowUmdGlobalAccess && $e[go(ee)] === nu.GlobalsOrKeywords && ($e[go(Fe)] === nu.AutoImportSuggestions || $e[go(Fe)] === nu.LocationPriority)) return !1; if (Ge |= KI(Fe), mF(o)) return !!(Ge & 1920); if (O) return ote(ee, pe); } return !!(Ge & 111551); } } function lje(e) { const t = cje(e); if (t.length) return { isGlobalCompletion: !1, isMemberCompletion: !1, isNewIdentifierLocation: !1, entries: t }; } function cje(e) { const t = [], r = /* @__PURE__ */ new Map(); let i = e; for (; i && !qa(i); ) { if (k1(i)) { const o = i.label.text; r.has(o) || (r.set(o, !0), t.push({ name: o, kindModifiers: "", kind: "label", sortText: nu.LocationPriority })); } i = i.parent; } return t; } function qTe(e, t, r, i, o, s, c) { if (o.source === "SwitchCases/") return { type: "cases" }; if (o.data) { const j = KTe(o.name, o.data, e, s); if (j) { const { contextToken: te, previousToken: X } = cG(i, r); return { type: "symbol", symbol: j.symbol, location: Af(r, i), previousToken: X, contextToken: te, isJsxInitializer: !1, isTypeOnlyLocation: !1, origin: j.origin }; } } const f = e.getCompilerOptions(), d = JTe(e, t, r, f, i, { includeCompletionsForModuleExports: !0, includeCompletionsWithInsertText: !0 }, o, s, void 0); if (!d) return { type: "none" }; if (d.kind !== 0) return { type: "request", request: d }; const { symbols: y, literals: m, location: b, completionKind: A, symbolToOriginInfoMap: C, contextToken: I, previousToken: O, isJsxInitializer: k, isTypeOnlyLocation: B } = d, U = un(m, (j) => Qee(r, c, j) === o.name); return U !== void 0 ? { type: "literal", literal: U } : En(y, (j, te) => { const X = C[te], Y = uG(j, $o(f), X, A, d.isJsxIdentifierExpected); return Y && Y.name === o.name && (o.source === "ClassMemberSnippet/" && j.flags & 106500 || o.source === "ObjectLiteralMethodSnippet/" && j.flags & 8196 || ete(X) === o.source) ? { type: "symbol", symbol: j, location: b, origin: X, contextToken: I, previousToken: O, isJsxInitializer: k, isTypeOnlyLocation: B } : void 0; }) || { type: "none" }; } function uje(e, t, r, i, o, s, c, f, d) { const y = e.getTypeChecker(), m = e.getCompilerOptions(), { name: b, source: A, data: C } = o, { previousToken: I, contextToken: O } = cG(i, r); if (VT(r, i, I)) return hG.getStringLiteralCompletionDetails(b, r, i, I, y, m, s, d, f); const k = qTe(e, t, r, i, o, s, f); switch (k.type) { case "request": { const { request: B } = k; switch (B.kind) { case 1: return ib.getJSDocTagNameCompletionDetails(b); case 2: return ib.getJSDocTagCompletionDetails(b); case 3: return ib.getJSDocParameterNameCompletionDetails(b); case 4: return kt(B.keywordCompletions, (U) => U.name === b) ? nte(b, "keyword", 5) : void 0; default: return D.assertNever(B); } } case "symbol": { const { symbol: B, location: U, contextToken: j, origin: te, previousToken: X } = k, { codeActions: Y, sourceDisplay: P } = dje(b, U, j, te, B, e, s, m, r, i, X, c, f, C, A, d), ue = Yee(te) ? te.symbolName : B.name; return rte(B, ue, y, r, U, d, Y, P); } case "literal": { const { literal: B } = k; return nte(Qee(r, f, B), "string", typeof B == "string" ? 8 : 7); } case "cases": { const { entry: B, importAdder: U } = jTe(O.parent, r, f, e.getCompilerOptions(), s, e, void 0); if (U.hasFixes()) { const j = hr.ChangeTracker.with({ host: s, formatContext: c, preferences: f }, U.writeFixes); return { name: B.name, kind: "", kindModifiers: "", displayParts: [], sourceDisplay: void 0, codeActions: [{ changes: j, description: Ux([_.Includes_imports_of_types_referenced_by_0, b]) }] }; } return { name: B.name, kind: "", kindModifiers: "", displayParts: [], sourceDisplay: void 0 }; } case "none": return dte().some((B) => B.name === b) ? nte(b, "keyword", 5) : void 0; default: D.assertNever(k); } } function nte(e, t, r) { return S6(e, "", t, [Sd(e, r)]); } function rte(e, t, r, i, o, s, c, f) { const { displayParts: d, documentation: y, symbolKind: m, tags: b } = r.runWithCancellationToken(s, (A) => ky.getSymbolDisplayPartsDocumentationAndSymbolKind(A, e, i, o, o, 7)); return S6(t, ky.getSymbolModifiers(r, e), m, d, y, b, c, f); } function S6(e, t, r, i, o, s, c, f) { return { name: e, kindModifiers: t, kind: r, displayParts: i, documentation: o, tags: s, codeActions: c, source: f, sourceDisplay: f }; } function dje(e, t, r, i, o, s, c, f, d, y, m, b, A, C, I, O) { if (C != null && C.moduleSpecifier && m && nSe(r || m).replacementSpan) return { codeActions: void 0, sourceDisplay: [Cf(C.moduleSpecifier)] }; if (I === "ClassMemberSnippet/") { const { importAdder: Y } = HTe(c, s, f, A, e, o, t, y, r, b); if (Y) return { sourceDisplay: void 0, codeActions: [{ changes: hr.ChangeTracker.with({ host: c, formatContext: b, preferences: A }, Y.writeFixes), description: Ux([_.Includes_imports_of_types_referenced_by_0, e]) }] }; } if (PTe(i)) { const Y = Fu.getPromoteTypeOnlyCompletionAction(d, i.declaration.name, s, c, b, A); return D.assertIsDefined(Y, "Expected to have a code action for promoting type-only alias"), { codeActions: [Y], sourceDisplay: void 0 }; } if (!i || !(E6(i) || KC(i))) return { codeActions: void 0, sourceDisplay: void 0 }; const k = i.isFromPackageJson ? c.getPackageJsonAutoImportProvider().getTypeChecker() : s.getTypeChecker(), { moduleSymbol: B } = i, U = k.getMergedSymbol(nf(o.exportSymbol || o, k)), j = (r == null ? void 0 : r.kind) === 29 && qu(r.parent), { moduleSpecifier: te, codeAction: X } = Fu.getImportCompletionAction(U, B, C == null ? void 0 : C.exportMapKey, d, e, j, c, s, b, m && Ve(m) ? m.getStart(d) : y, A, O); return D.assert(!(C != null && C.moduleSpecifier) || te === C.moduleSpecifier), { sourceDisplay: [Cf(te)], codeActions: [X] }; } function fje(e, t, r, i, o, s, c) { const f = qTe(e, t, r, i, o, s, c); return f.type === "symbol" ? f.symbol : void 0; } function _je(e, t, r) { return En(t && (t.isUnion() ? t.types : [t]), (i) => { const o = i && i.symbol; return o && o.flags & 424 && !$ue(o) ? ite(o, e, r) : void 0; }); } function pje(e, t, r, i) { const { parent: o } = e; switch (e.kind) { case 79: return jF(e, i); case 63: switch (o.kind) { case 257: return i.getContextualType(o.initializer); case 223: return i.getTypeAtLocation(o.left); case 288: return i.getContextualTypeForJsxAttribute(o); default: return; } case 103: return i.getContextualType(o); case 82: const s = ri(o, Ak); return s ? V$(s, i) : void 0; case 18: return xk(o) && !Ey(o.parent) && !Cx(o.parent) ? i.getContextualTypeForJsxAttribute(o.parent) : void 0; default: const c = J6.getArgumentInfoForCompletions(e, t, r); return c ? i.getContextualTypeForArgumentAtIndex(c.invocation, c.argumentIndex + (e.kind === 27 ? 1 : 0)) : HF(e.kind) && vr(o) && HF(o.operatorToken.kind) ? i.getTypeAtLocation(o.left) : i.getContextualType(e); } } function ite(e, t, r) { const i = r.getAccessibleSymbolChain(e, t, 67108863, !1); return i ? ss(i) : e.parent && (mje(e.parent) ? e : ite(e.parent, t, r)); } function mje(e) { var t; return !!((t = e.declarations) != null && t.some((r) => r.kind === 308)); } function JTe(e, t, r, i, o, s, c, f, d, y) { const m = e.getTypeChecker(), b = VTe(r, i); let A = nl(), C = ra(r, o); t("getCompletionData: Get current token: " + (nl() - A)), A = nl(); const I = Ay(r, o, C); t("getCompletionData: Is inside comment: " + (nl() - A)); let O = !1, k = !1; if (I) { if (Eye(r, o)) { if (r.text.charCodeAt(o - 1) === 64) return { kind: 1 }; { const we = h_(o, r); if (!/[^\*|\s(/)]/.test(r.text.substring(we, o))) return { kind: 2 }; } } const Z = vje(C, o); if (Z) { if (Z.tagName.pos <= o && o <= Z.tagName.end) return { kind: 1 }; const we = nn(Z); if (we && (C = ra(r, o), (!C || !sg(C) && (C.parent.kind !== 351 || C.parent.name !== C)) && (O = Oe(we))), !O && Qp(Z) && (Sl(Z.name) || Z.name.pos <= o && o <= Z.name.end)) return { kind: 3, tag: Z }; } if (!O) { t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment."); return; } } A = nl(); const B = !O && Ju(r), U = cG(o, r), j = U.previousToken; let te = U.contextToken; t("getCompletionData: Get previous token: " + (nl() - A)); let X = C, Y, P = !1, ue = !1, ne = !1, ge = !1, ie = !1, H = !1, le, pe = Af(r, o), ye = 0, Te = !1, ee = 0; if (te) { const Z = nSe(te); if (Z.keywordCompletion) { if (Z.isKeywordOnlyCompletion) return { kind: 4, keywordCompletions: [zVe(Z.keywordCompletion)], isNewIdentifierLocation: Z.isNewIdentifierLocation }; ye = JVe(Z.keywordCompletion); } if (Z.replacementSpan && s.includeCompletionsForImportStatements && s.includeCompletionsWithInsertText && (ee |= 2, le = Z, Te = Z.isNewIdentifierLocation), !Z.replacementSpan && en(te)) return t("Returning an empty list because completion was requested in an invalid position."), ye ? GTe(ye, B, xr()) : void 0; let we = te.parent; if (te.kind === 24 || te.kind === 28) switch (P = te.kind === 24, ue = te.kind === 28, we.kind) { case 208: Y = we, X = Y.expression; const q = YI(Y); if (Sl(q) || (eo(X) || qa(X)) && X.end === te.pos && X.getChildCount(r) && Ho(X.getChildren(r)).kind !== 21) return; break; case 163: X = we.left; break; case 264: X = we.name; break; case 202: X = we; break; case 233: X = we.getFirstToken(r), D.assert(X.kind === 100 || X.kind === 103); break; default: return; } else if (!le) { if (we && we.kind === 208 && (te = we, we = we.parent), C.parent === pe) switch (C.kind) { case 31: (C.parent.kind === 281 || C.parent.kind === 283) && (pe = C); break; case 43: C.parent.kind === 282 && (pe = C); break; } switch (we.kind) { case 284: te.kind === 43 && (ge = !0, pe = te); break; case 223: if (!tSe(we)) break; case 282: case 281: case 283: H = !0, te.kind === 29 && (ne = !0, pe = te); break; case 291: case 290: (j.kind === 19 || j.kind === 79 && j.parent.kind === 288) && (H = !0); break; case 288: if (we.initializer === j && j.end < o) { H = !0; break; } switch (j.kind) { case 63: ie = !0; break; case 79: H = !0, we !== j.parent && !we.initializer && ys(we, 63, r) && (ie = j); } break; } } } const $e = nl(); let Ge = 5, Fe = !1, We = !1, Re = [], Pe; const Ke = [], He = [], Me = /* @__PURE__ */ new Map(), ot = gn(), At = Tm((Z) => Bx(Z ? f.getPackageJsonAutoImportProvider() : e, f)); if (P || ue) Xt(); else if (ne) Re = m.getJsxIntrinsicTagNamesAt(pe), D.assertEachIsDefined(Re, "getJsxIntrinsicTagNames() should all be defined"), Yt(), Ge = 1, ye = 0; else if (ge) { const Z = te.parent.parent.openingElement.tagName, we = m.getSymbolAtLocation(Z); we && (Re = [we]), Ge = 1, ye = 0; } else if (!Yt()) return ye ? GTe(ye, B, Te) : void 0; t("getCompletionData: Semantic work: " + (nl() - $e)); const bt = j && pje(j, o, r, m), Vt = _a(bt && (bt.isUnion() ? bt.types : [bt]), (Z) => Z.isLiteral() && !(Z.flags & 1024) ? Z.value : void 0), et = j && bt && _je(j, bt, m); return { kind: 0, symbols: Re, completionKind: Ge, isInSnippetScope: k, propertyAccessToConvert: Y, isNewIdentifierLocation: Te, location: pe, keywordFilters: ye, literals: Vt, symbolToOriginInfoMap: Ke, recommendedCompletion: et, previousToken: j, contextToken: te, isJsxInitializer: ie, insideJsDocTagTypeExpression: O, symbolToSortTextMap: He, isTypeOnlyLocation: ot, isJsxIdentifierExpected: H, isRightOfOpenTag: ne, isRightOfDotOrQuestionDot: P || ue, importStatementCompletion: le, hasUnresolvedAutoImports: We, flags: ee }; function it(Z) { switch (Z.kind) { case 344: case 351: case 345: case 347: case 349: case 352: case 353: return !0; case 348: return !!Z.constraint; default: return !1; } } function nn(Z) { if (it(Z)) { const we = mp(Z) ? Z.constraint : Z.typeExpression; return we && we.kind === 312 ? we : void 0; } if (yC(Z) || _J(Z)) return Z.class; } function Xt() { Ge = 2; const Z = B0(X), we = O || Z && !X.isTypeOf || _h(X.parent) || W8(te, r, m), q = mF(X); if ($d(X) || Z || Pr(X)) { const Rt = Hl(X.parent); Rt && (Te = !0); let ht = m.getSymbolAtLocation(X); if (ht && (ht = nf(ht, m), ht.flags & 1920)) { const dt = m.getExportsOfModule(ht); D.assertEachIsDefined(dt, "getExportsOfModule() should all be defined"); const dn = (Ti) => m.isValidPropertyAccess(Z ? X : X.parent, Ti.name), $n = (Ti) => ote(Ti, m), ii = Rt ? (Ti) => { var Si; return !!(Ti.flags & 1920) && !((Si = Ti.declarations) != null && Si.every((Bi) => Bi.parent === X.parent)); } : q ? (Ti) => $n(Ti) || dn(Ti) : we ? $n : dn; for (const Ti of dt) ii(Ti) && Re.push(Ti); if (!we && ht.declarations && ht.declarations.some((Ti) => Ti.kind !== 308 && Ti.kind !== 264 && Ti.kind !== 263)) { let Ti = m.getTypeOfSymbolAtLocation(ht, X).getNonOptionalType(), Si = !1; if (Ti.isNullableType()) { const Bi = P && !ue && s.includeAutomaticOptionalChainCompletions !== !1; (Bi || ue) && (Ti = Ti.getNonNullableType(), Bi && (Si = !0)); } On(Ti, !!(X.flags & 32768), Si); } return; } } if (!we) { m.tryGetThisTypeAt(X, !1); let Rt = m.getTypeAtLocation(X).getNonOptionalType(), ht = !1; if (Rt.isNullableType()) { const dt = P && !ue && s.includeAutomaticOptionalChainCompletions !== !1; (dt || ue) && (Rt = Rt.getNonNullableType(), dt && (ht = !0)); } On(Rt, !!(X.flags & 32768), ht); } } function On(Z, we, q) { Te = !!Z.getStringIndexType(), ue && kt(Z.getCallSignatures()) && (Te = !0); const Rt = X.kind === 202 ? X : X.parent; if (b) for (const ht of Z.getApparentProperties()) m.isValidPropertyAccessForCompletions(Rt, Z, ht) && Hn(ht, !1, q); else Re.push(...yn(_G(Z, m), (ht) => m.isValidPropertyAccessForCompletions(Rt, Z, ht))); if (we && s.includeCompletionsWithInsertText) { const ht = m.getPromisedTypeOfPromise(Z); if (ht) for (const dt of ht.getApparentProperties()) m.isValidPropertyAccessForCompletions(Rt, ht, dt) && Hn(dt, !0, q); } } function Hn(Z, we, q) { var Rt; const ht = En(Z.declarations, (ii) => ri(La(ii), Ss)); if (ht) { const ii = In(ht.expression), Ti = ii && m.getSymbolAtLocation(ii), Si = Ti && ite(Ti, te, m); if (Si && _p(Me, go(Si))) { const Bi = Re.length; Re.push(Si); const fo = Si.parent; if (!fo || !J8(fo) || m.tryGetMemberInModuleExportsAndProperties(Si.name, fo) !== Si) Ke[Bi] = { kind: $n(2) }; else { const vo = Oc(M_(fo.name)) ? (Rt = CM(fo)) == null ? void 0 : Rt.fileName : void 0, { moduleSpecifier: no } = (Pe || (Pe = Fu.createImportSpecifierResolver(r, e, f, s))).getModuleSpecifierForBestExportInfo([{ exportKind: 0, moduleFileName: vo, isFromPackageJson: !1, moduleSymbol: fo, symbol: Si, targetFlags: nf(Si, m).flags }], o, cx(pe)) || {}; if (no) { const sa = { kind: $n(6), moduleSymbol: fo, isDefaultExport: !1, symbolName: Si.name, exportName: Si.name, fileName: vo, moduleSpecifier: no }; Ke[Bi] = sa; } } } else s.includeCompletionsWithInsertText && (dn(Z), dt(Z), Re.push(Z)); } else dn(Z), dt(Z), Re.push(Z); function dt(ii) { Aje(ii) && (He[go(ii)] = nu.LocalDeclarationPriority); } function dn(ii) { s.includeCompletionsWithInsertText && (we && _p(Me, go(ii)) ? Ke[Re.length] = { kind: $n(8) } : q && (Ke[Re.length] = { kind: 16 })); } function $n(ii) { return q ? ii | 16 : ii; } } function In(Z) { return Ve(Z) ? Z : Pr(Z) ? In(Z.expression) : void 0; } function Yt() { return (Ie() || gt() || Ji() || Nt() || xe() || fr() || _t() || xi() || (Ki(), 1)) === 1; } function fr() { return re(te) ? (Ge = 5, Te = !0, ye = 4, 1) : 0; } function xi() { const Z = V(te), we = Z && m.getContextualType(Z.attributes); if (!we) return 0; const q = Z && m.getContextualType(Z.attributes, 4); return Re = ha(Re, K(fG(we, q, Z.attributes, m), Z.attributes.properties)), ce(), Ge = 3, Te = !1, 1; } function Ji() { return le ? (Te = !0, rr(), 1) : 0; } function Ki() { ye = me(te) ? 5 : 1, Ge = 1, Te = xr(), j !== te && D.assert(!!j, "Expected 'contextToken' to be defined when different from 'previousToken'."); const Z = j !== te ? j.getStart() : o, we = Rn(te, Z, r) || r; k = xt(we); const q = (ot ? 0 : 111551) | 788968 | 1920 | 2097152, Rt = j && !cx(j); Re = ha(Re, m.getSymbolsInScope(we, q)), D.assertEachIsDefined(Re, "getSymbolsInScope() should all be defined"); for (let ht = 0; ht < Re.length; ht++) { const dt = Re[ht]; if (!m.isArgumentsSymbol(dt) && !kt(dt.declarations, (dn) => dn.getSourceFile() === r) && (He[go(dt)] = nu.GlobalsOrKeywords), Rt && !(dt.flags & 111551)) { const dn = dt.declarations && un(dt.declarations, tW); if (dn) { const $n = { kind: 64, declaration: dn }; Ke[ht] = $n; } } } if (s.includeCompletionsWithInsertText && we.kind !== 308) { const ht = m.tryGetThisTypeAt(we, !1, li(we.parent) ? we : void 0); if (ht && !xje(ht, r, m)) for (const dt of _G(ht, m)) Ke[Re.length] = { kind: 1 }, Re.push(dt), He[go(dt)] = nu.SuggestedClassMembers; } rr(), ot && (ye = te && ZE(te.parent) ? 6 : 7); } function Rr() { return le ? !0 : Fe || !s.includeCompletionsForModuleExports ? !1 : r.externalModuleIndicator || r.commonJsModuleIndicator || x$(e.getCompilerOptions()) ? !0 : kye(e); } function xt(Z) { switch (Z.kind) { case 308: case 225: case 291: case 238: return !0; default: return Ia(Z); } } function gn() { return O || !!le && u1(pe.parent) || !Ht(te) && (W8(te, r, m) || _h(pe) || ln(te)); } function Ht(Z) { return Z && (Z.kind === 112 && (Z.parent.kind === 183 || fC(Z.parent)) || Z.kind === 129 && Z.parent.kind === 179); } function ln(Z) { if (Z) { const we = Z.parent.kind; switch (Z.kind) { case 58: return we === 169 || we === 168 || we === 166 || we === 257 || HS(we); case 63: return we === 262; case 128: return we === 231; case 29: return we === 180 || we === 213; case 94: return we === 165; case 150: return we === 235; } } return !1; } function rr() { var Z, we; if (!Rr() || (D.assert(!(c != null && c.data), "Should not run 'collectAutoImports' when faster path is available via `data`"), c && !c.source)) return; ee |= 1; const Rt = j === te && le ? "" : j && Ve(j) ? j.text.toLowerCase() : "", ht = (Z = f.getModuleSpecifierCache) == null ? void 0 : Z.call(f), dt = i6(r, f, e, s, y), dn = (we = f.getPackageJsonAutoImportProvider) == null ? void 0 : we.call(f), $n = c ? void 0 : cw(r, s, f); FTe("collectAutoImports", f, Pe || (Pe = Fu.createImportSpecifierResolver(r, e, f, s)), e, o, s, !!le, cx(pe), (Ti) => { dt.search(r.path, ne, (Si, Bi) => { if (!w_(Si, $o(f.getCompilationSettings())) || !c && ZS(Si) || !ot && !le && !(Bi & 111551) || ot && !(Bi & 790504)) return !1; const fo = Si.charCodeAt(0); return ne && (fo < 65 || fo > 90) ? !1 : c ? !0 : oSe(Si, Rt); }, (Si, Bi, fo, vo) => { if (c && !kt(Si, (ui) => c.source === M_(ui.moduleSymbol.name)) || (Si = yn(Si, ii), !Si.length)) return; const no = Ti.tryResolve(Si, fo) || {}; if (no === "failed") return; let sa = Si[0], Gi; no !== "skipped" && ({ exportInfo: sa = Si[0], moduleSpecifier: Gi } = no); const qr = sa.exportKind === 1, is = qr && qA(sa.symbol) || sa.symbol; lr(is, { kind: Gi ? 32 : 4, moduleSpecifier: Gi, symbolName: Bi, exportMapKey: vo, exportName: sa.exportKind === 2 ? "export=" : sa.symbol.name, fileName: sa.moduleFileName, isDefaultExport: qr, moduleSymbol: sa.moduleSymbol, isFromPackageJson: sa.isFromPackageJson }); }), We = Ti.skippedAny(), ee |= Ti.resolvedAny() ? 8 : 0, ee |= Ti.resolvedBeyondLimit() ? 16 : 0; }); function ii(Ti) { const Si = ri(Ti.moduleSymbol.valueDeclaration, ji); if (!Si) { const Bi = M_(Ti.moduleSymbol.name); return FT.nodeCoreModules.has(Bi) && Ea(Bi, "node:") !== t9(r, e) ? !1 : $n ? $n.allowsImportingAmbientModule(Ti.moduleSymbol, At(Ti.isFromPackageJson)) : !0; } return eQ(Ti.isFromPackageJson ? dn : e, r, Si, s, $n, At(Ti.isFromPackageJson), ht); } } function lr(Z, we) { const q = go(Z); He[q] !== nu.GlobalsOrKeywords && (Ke[Re.length] = we, He[q] = le ? nu.LocationPriority : nu.AutoImportSuggestions, Re.push(Z)); } function Di(Z, we) { dr(pe) || Z.forEach((q) => { if (!_i(q)) return; const Rt = uG(q, $o(i), void 0, 0, !1); if (!Rt) return; const { name: ht } = Rt, dt = rje(q, ht, we, e, f, i, s, d); if (!dt) return; const dn = { kind: 128, ...dt }; ee |= 32, Ke[Re.length] = dn, Re.push(q); }); } function _i(Z) { return !!(Z.flags & 8196); } function Rn(Z, we, q) { let Rt = Z; for (; Rt && !c$(Rt, we, q); ) Rt = Rt.parent; return Rt; } function en(Z) { const we = nl(), q = Ur(Z) || je(Z) || Ut(Z) || Pn(Z) || h7(Z); return t("getCompletionsAtPosition: isCompletionListBlocker: " + (nl() - we)), q; } function Pn(Z) { if (Z.kind === 11) return !0; if (Z.kind === 31 && Z.parent) { if (pe === Z.parent && (pe.kind === 283 || pe.kind === 282)) return !1; if (Z.parent.kind === 283) return pe.parent.kind !== 283; if (Z.parent.kind === 284 || Z.parent.kind === 282) return !!Z.parent.parent && Z.parent.parent.kind === 281; } return !1; } function xr() { if (te) { const Z = te.parent.kind, we = dG(te); switch (we) { case 27: return Z === 210 || Z === 173 || Z === 211 || Z === 206 || Z === 223 || Z === 181 || Z === 207; case 20: return Z === 210 || Z === 173 || Z === 211 || Z === 214 || Z === 193; case 22: return Z === 206 || Z === 178 || Z === 164; case 142: case 143: case 100: return !0; case 24: return Z === 264; case 18: return Z === 260 || Z === 207; case 63: return Z === 257 || Z === 223; case 15: return Z === 225; case 16: return Z === 236; case 132: return Z === 171 || Z === 300; case 41: return Z === 171; } if (x6(we)) return !0; } return !1; } function Ur(Z) { return (zq(Z) || nW(Z)) && (U8(Z, o) || o === Z.end && (!!Z.isUnterminated || zq(Z))); } function Ie() { const Z = Tje(te); if (!Z) return 0; const q = (vO(Z.parent) ? Z.parent : void 0) || Z, Rt = eSe(q, m); if (!Rt) return 0; const ht = m.getTypeFromTypeNode(q), dt = _G(Rt, m), dn = _G(ht, m), $n = /* @__PURE__ */ new Set(); return dn.forEach((ii) => $n.add(ii.escapedName)), Re = ha(Re, yn(dt, (ii) => !$n.has(ii.escapedName))), Ge = 0, Te = !0, 1; } function gt() { const Z = Re.length, we = hje(te); if (!we) return 0; Ge = 0; let q, Rt; if (we.kind === 207) { const ht = Cje(we, m); if (ht === void 0) return we.flags & 33554432 ? 2 : (Fe = !0, 0); const dt = m.getContextualType(we, 4), dn = (dt || ht).getStringIndexType(), $n = (dt || ht).getNumberIndexType(); if (Te = !!dn || !!$n, q = fG(ht, dt, we, m), Rt = we.properties, q.length === 0 && !$n) return Fe = !0, 0; } else { D.assert(we.kind === 203), Te = !1; const ht = Rm(we.parent); if (!kA(ht)) return D.fail("Root declaration is not variable-like."); let dt = xv(ht) || !!Jc(ht) || ht.parent.parent.kind === 247; if (!dt && ht.kind === 166 && (yt(ht.parent) ? dt = !!m.getContextualType(ht.parent) : (ht.parent.kind === 171 || ht.parent.kind === 175) && (dt = yt(ht.parent.parent) && !!m.getContextualType(ht.parent.parent))), dt) { const dn = m.getTypeAtLocation(we); if (!dn) return 2; q = m.getPropertiesOfType(dn).filter(($n) => m.isPropertyAccessible(we, !1, !1, dn, $n)), Rt = we.elements; } } if (q && q.length > 0) { const ht = Sn(q, D.checkDefined(Rt)); Re = ha(Re, ht), ce(), we.kind === 207 && s.includeCompletionsWithObjectLiteralMethodSnippets && s.includeCompletionsWithInsertText && (Wt(Z), Di(ht, we)); } return 1; } function Nt() { if (!te) return 0; const Z = te.kind === 18 || te.kind === 27 ? ri(te.parent, Gz) : DF(te) ? ri(te.parent.parent, Gz) : void 0; if (!Z) return 0; DF(te) || (ye = 8); const { moduleSpecifier: we } = Z.kind === 272 ? Z.parent.parent : Z.parent; if (!we) return Te = !0, Z.kind === 272 ? 2 : 0; const q = m.getSymbolAtLocation(we); if (!q) return Te = !0, 2; Ge = 3, Te = !1; const Rt = m.getExportsAndPropertiesOfModule(q), ht = new Set(Z.elements.filter((dn) => !Oe(dn)).map((dn) => (dn.propertyName || dn.name).escapedText)), dt = Rt.filter((dn) => dn.escapedName !== "default" && !ht.has(dn.escapedName)); return Re = ha(Re, dt), dt.length || (ye = 0), 1; } function xe() { var Z; const we = te && (te.kind === 18 || te.kind === 27) ? ri(te.parent, j_) : void 0; if (!we) return 0; const q = nr(we, Sm(ji, Hl)); return Ge = 5, Te = !1, (Z = q.locals) == null || Z.forEach((Rt, ht) => { var dt, dn; Re.push(Rt), (dn = (dt = q.symbol) == null ? void 0 : dt.exports) != null && dn.has(ht) && (He[go(Rt)] = nu.OptionalMember); }), 1; } function _t() { const Z = Eje(r, te, pe, o); if (!Z) return 0; if (Ge = 3, Te = !0, ye = te.kind === 41 ? 0 : li(Z) ? 2 : 3, !li(Z)) return 1; const we = te.kind === 26 ? te.parent.parent : te.parent; let q = Pc(we) ? wu(we) : 0; if (te.kind === 79 && !Oe(te)) switch (te.getText()) { case "private": q = q | 8; break; case "static": q = q | 32; break; case "override": q = q | 16384; break; } if (Cl(we) && (q |= 32), !(q & 8)) { const Rt = li(Z) && q & 16384 ? WE(Wp(Z)) : NI(Z), ht = Mo(Rt, (dt) => { const dn = m.getTypeAtLocation(dt); return q & 32 ? (dn == null ? void 0 : dn.symbol) && m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(dn.symbol, Z)) : dn && m.getPropertiesOfType(dn); }); Re = ha(Re, rt(ht, Z.members, q)), Ye(Re, (dt, dn) => { const $n = dt == null ? void 0 : dt.valueDeclaration; if ($n && Pc($n) && $n.name && Ss($n.name)) { const ii = { kind: 512, symbolName: m.symbolToString(dt) }; Ke[dn] = ii; } }); } return 1; } function _e(Z) { return !!Z.parent && Ma(Z.parent) && jl(Z.parent.parent) && (gI(Z.kind) || sg(Z)); } function re(Z) { if (Z) { const we = Z.parent; switch (Z.kind) { case 20: case 27: return jl(Z.parent) ? Z.parent : void 0; default: if (_e(Z)) return we.parent; } } } function me(Z) { if (Z) { let we; const q = nr(Z.parent, (Rt) => li(Rt) ? "quit" : Ys(Rt) && we === Rt.body ? !0 : (we = Rt, !1)); return q && q; } } function V(Z) { if (Z) { const we = Z.parent; switch (Z.kind) { case 31: case 30: case 43: case 79: case 208: case 289: case 288: case 290: if (we && (we.kind === 282 || we.kind === 283)) { if (Z.kind === 31) { const q = Tc(Z.pos, r, void 0); if (!we.typeArguments || q && q.kind === 43) break; } return we; } else if (we.kind === 288) return we.parent.parent; break; case 10: if (we && (we.kind === 288 || we.kind === 290)) return we.parent.parent; break; case 19: if (we && we.kind === 291 && we.parent && we.parent.kind === 288) return we.parent.parent.parent; if (we && we.kind === 290) return we.parent.parent; break; } } } function je(Z) { const we = Z.parent, q = we.kind; switch (Z.kind) { case 27: return q === 257 || on(Z) || q === 240 || q === 263 || Je(q) || q === 261 || q === 204 || q === 262 || li(we) && !!we.typeParameters && we.typeParameters.end >= Z.pos; case 24: return q === 204; case 58: return q === 205; case 22: return q === 204; case 20: return q === 295 || Je(q); case 18: return q === 263; case 29: return q === 260 || q === 228 || q === 261 || q === 262 || HS(q); case 124: return q === 169 && !li(we.parent); case 25: return q === 166 || !!we.parent && we.parent.kind === 204; case 123: case 121: case 122: return q === 166 && !jl(we.parent); case 128: return q === 273 || q === 278 || q === 271; case 137: case 151: return !pG(Z); case 79: if (q === 273 && Z === we.name && Z.text === "type") return !1; break; case 84: case 92: case 118: case 98: case 113: case 100: case 119: case 85: case 138: return !0; case 154: return q !== 273; case 41: return qa(Z.parent) && !nc(Z.parent); } if (x6(dG(Z)) && pG(Z) || _e(Z) && (!Ve(Z) || gI(dG(Z)) || Oe(Z))) return !1; switch (dG(Z)) { case 126: case 84: case 85: case 136: case 92: case 98: case 118: case 119: case 121: case 122: case 123: case 124: case 113: return !0; case 132: return Za(Z.parent); } if (nr(Z.parent, li) && Z === j && Qe(Z, o)) return !1; const ht = j0(Z.parent, 169); if (ht && Z !== j && li(j.parent.parent) && o <= j.end) { if (Qe(Z, j.end)) return !1; if (Z.kind !== 63 && (m8(ht) || SM(ht))) return !0; } return sg(Z) && !Xf(Z.parent) && !$p(Z.parent) && !(li(Z.parent) && (Z !== j || o > j.end)); } function Qe(Z, we) { return Z.kind !== 63 && (Z.kind === 26 || !d_(Z.end, we, r)); } function Je(Z) { return HS(Z) && Z !== 173; } function Ut(Z) { if (Z.kind === 8) { const we = Z.getFullText(); return we.charAt(we.length - 1) === "."; } return !1; } function on(Z) { return Z.parent.kind === 258 && !W8(Z, r, m); } function Sn(Z, we) { if (we.length === 0) return Z; const q = /* @__PURE__ */ new Set(), Rt = /* @__PURE__ */ new Set(); for (const dt of we) { if (dt.kind !== 299 && dt.kind !== 300 && dt.kind !== 205 && dt.kind !== 171 && dt.kind !== 174 && dt.kind !== 175 && dt.kind !== 301 || Oe(dt)) continue; let dn; if (Ix(dt)) br(dt, q); else if (us(dt) && dt.propertyName) dt.propertyName.kind === 79 && (dn = dt.propertyName.escapedText); else { const $n = La(dt); dn = $n && O_($n) ? PI($n) : void 0; } dn !== void 0 && Rt.add(dn); } const ht = Z.filter((dt) => !Rt.has(dt.escapedName)); return pt(q, ht), ht; } function br(Z, we) { const q = Z.expression, Rt = m.getSymbolAtLocation(q), ht = Rt && m.getTypeOfSymbolAtLocation(Rt, q), dt = ht && ht.properties; dt && dt.forEach((dn) => { we.add(dn.name); }); } function ce() { Re.forEach((Z) => { var we; if (Z.flags & 16777216) { const q = go(Z); He[q] = (we = He[q]) != null ? we : nu.OptionalMember; } }); } function pt(Z, we) { if (Z.size !== 0) for (const q of we) Z.has(q.name) && (He[go(q)] = nu.MemberDeclaredBySpreadAssignment); } function Wt(Z) { var we; for (let q = Z; q < Re.length; q++) { const Rt = Re[q], ht = go(Rt), dt = Ke == null ? void 0 : Ke[q], dn = $o(i), $n = uG(Rt, dn, dt, 0, !1); if ($n) { const ii = (we = He[ht]) != null ? we : nu.LocationPriority, { name: Ti } = $n; He[ht] = nu.ObjectLiteralProperty(ii, Ti); } } } function rt(Z, we, q) { const Rt = /* @__PURE__ */ new Set(); for (const ht of we) { if (ht.kind !== 169 && ht.kind !== 171 && ht.kind !== 174 && ht.kind !== 175 || Oe(ht) || Nd(ht, 8) || za(ht) !== !!(q & 32)) continue; const dt = v1(ht.name); dt && Rt.add(dt); } return Z.filter((ht) => !Rt.has(ht.escapedName) && !!ht.declarations && !(qf(ht) & 8) && !(ht.valueDeclaration && zu(ht.valueDeclaration))); } function K(Z, we) { const q = /* @__PURE__ */ new Set(), Rt = /* @__PURE__ */ new Set(); for (const dt of we) Oe(dt) || (dt.kind === 288 ? q.add(dt.name.escapedText) : ST(dt) && br(dt, Rt)); const ht = Z.filter((dt) => !q.has(dt.escapedName)); return pt(Rt, ht), ht; } function Oe(Z) { return Z.getStart(r) <= o && o <= Z.getEnd(); } } function hje(e) { if (e) { const { parent: t } = e; switch (e.kind) { case 18: case 27: if (As(t) || Bm(t)) return t; break; case 41: return nc(t) ? ri(t.parent, As) : void 0; case 79: return e.text === "async" && Xf(e.parent) ? e.parent.parent : void 0; } } } function cG(e, t) { const r = Tc(e, t); return r && e <= r.end && (eg(r) || bd(r.kind)) ? { contextToken: Tc(r.getFullStart(), t, void 0), previousToken: r } : { contextToken: r, previousToken: r }; } function KTe(e, t, r, i) { const o = t.isPackageJsonImport ? i.getPackageJsonAutoImportProvider() : r, s = o.getTypeChecker(), c = t.ambientModuleName ? s.tryFindAmbientModule(t.ambientModuleName) : t.fileName ? s.getMergedSymbol(D.checkDefined(o.getSourceFile(t.fileName)).symbol) : void 0; if (!c) return; let f = t.exportName === "export=" ? s.resolveExternalModuleSymbol(c) : s.tryGetMemberInModuleExportsAndProperties(t.exportName, c); return f ? (f = t.exportName === "default" && qA(f) || f, { symbol: f, origin: aje(t, e, c) }) : void 0; } function uG(e, t, r, i, o) { if (jVe(r)) return; const s = BVe(r) ? r.symbolName : e.name; if (s === void 0 || e.flags & 1536 && rN(s.charCodeAt(0)) || AN(e)) return; const c = { name: s, needsConvertPropertyAccess: !1 }; if (w_(s, t, o ? 1 : 0) || e.valueDeclaration && zu(e.valueDeclaration)) return c; switch (i) { case 3: return Yee(r) ? { name: r.symbolName, needsConvertPropertyAccess: !1 } : void 0; case 0: return { name: JSON.stringify(s), needsConvertPropertyAccess: !1 }; case 2: case 1: return s.charCodeAt(0) === 32 ? void 0 : { name: s, needsConvertPropertyAccess: !0 }; case 5: case 4: return c; default: D.assertNever(i); } } function XTe(e, t) { if (!t) return YTe(e); const r = e + 8 + 1; return A6[r] || (A6[r] = YTe(e).filter((i) => !gje(KE(i.name)))); } function YTe(e) { return A6[e] || (A6[e] = dte().filter((t) => { const r = KE(t.name); switch (e) { case 0: return !1; case 1: return QTe(r) || r === 136 || r === 142 || r === 154 || r === 143 || r === 126 || rw(r) && r !== 155; case 5: return QTe(r); case 2: return x6(r); case 3: return $Te(r); case 4: return gI(r); case 6: return rw(r) || r === 85; case 7: return rw(r); case 8: return r === 154; default: return D.assertNever(e); } })); } function gje(e) { switch (e) { case 126: case 131: case 160: case 134: case 136: case 92: case 159: case 117: case 138: case 118: case 140: case 141: case 142: case 143: case 144: case 148: case 149: case 161: case 121: case 122: case 123: case 146: case 152: case 153: case 154: case 156: case 157: return !0; default: return !1; } } function $Te(e) { return e === 146; } function x6(e) { switch (e) { case 126: case 127: case 135: case 137: case 151: case 132: case 136: case 161: return !0; default: return rW(e); } } function QTe(e) { return e === 132 || e === 133 || e === 128 || e === 150 || e === 154 || !i3(e) && !x6(e); } function dG(e) { var t; return Ve(e) ? (t = M0(e)) != null ? t : 0 : e.kind; } function yje(e, t) { const r = []; if (e) { const i = e.getSourceFile(), o = e.parent, s = i.getLineAndCharacterOfPosition(e.end).line, c = i.getLineAndCharacterOfPosition(t).line; (Gc(o) || Kc(o) && o.moduleSpecifier) && e === o.moduleSpecifier && s === c && r.push({ name: mo(130), kind: "keyword", kindModifiers: "", sortText: nu.GlobalsOrKeywords }); } return r; } function vje(e, t) { return nr(e, (r) => bI(r) && G8(r, t) ? !0 : Vm(r) ? "quit" : !1); } function fG(e, t, r, i) { const o = t && t !== e, s = o && !(t.flags & 3) ? i.getUnionType([e, t]) : e, c = bje(s, r, i); return s.isClass() && ZTe(c) ? [] : o ? yn(c, f) : c; function f(d) { return Ne(d.declarations) ? kt(d.declarations, (y) => y.parent !== r) : !0; } } function bje(e, t, r) { return e.isUnion() ? r.getAllPossiblePropertiesOfTypes(yn(e.types, (i) => !(i.flags & 134348796 || r.isArrayLikeType(i) || r.isTypeInvalidDueToUnionDiscriminant(i, t) || r.typeHasCallOrConstructSignatures(i) || i.isClass() && ZTe(i.getApparentProperties())))) : e.getApparentProperties(); } function ZTe(e) { return kt(e, (t) => !!(qf(t) & 24)); } function _G(e, t) { return e.isUnion() ? D.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types), "getAllPossiblePropertiesOfTypes() should all be defined") : D.checkEachDefined(e.getApparentProperties(), "getApparentProperties() should all be defined"); } function Eje(e, t, r, i) { var o; switch (r.kind) { case 354: return ri(r.parent, ax); case 1: const s = ri(Zs(ro(r.parent, ji).statements), ax); if (s && !ys(s, 19, e)) return s; break; case 79: { if (M0(r) || Za(r.parent) && r.parent.initializer === r) return; if (pG(r)) return nr(r, ax); } } if (t) { if (r.kind === 135 || Ve(t) && Za(t.parent) && li(r)) return nr(t, li); switch (t.kind) { case 63: return; case 26: case 19: return pG(r) && r.parent.name === r ? r.parent.parent : ri(r, ax); case 18: case 27: return ri(t.parent, ax); default: if (ax(r)) { if (il(e, t.getEnd()).line !== il(e, i).line) return r; const s = li(t.parent.parent) ? x6 : $Te; return s(t.kind) || t.kind === 41 || Ve(t) && s((o = M0(t)) != null ? o : 0) ? t.parent.parent : void 0; } return; } } } function Tje(e) { if (!e) return; const t = e.parent; switch (e.kind) { case 18: if (rf(t)) return t; break; case 26: case 27: case 79: if (t.kind === 168 && rf(t.parent)) return t.parent; break; } } function eSe(e, t) { if (!e) return; if (Pi(e) && xM(e.parent)) return t.getTypeArgumentConstraint(e); const r = eSe(e.parent, t); if (r) switch (e.kind) { case 168: return t.getTypeOfPropertyOfContextualType(r, e.symbol.escapedName); case 190: case 184: case 189: return r; } } function pG(e) { return e.parent && yM(e.parent) && ax(e.parent.parent); } function Sje(e, t, r, i) { switch (t) { case ".": case "@": return !0; case '"': case "'": case "`": return !!r && Kye(r) && i === r.getStart(e) + 1; case "#": return !!r && ki(r) && !!Ec(r); case "<": return !!r && r.kind === 29 && (!vr(r.parent) || tSe(r.parent)); case "/": return !!r && (Ts(r) ? !!pN(r) : r.kind === 43 && Ax(r.parent)); case " ": return !!r && hk(r) && r.parent.kind === 308; default: return D.assertNever(t); } } function tSe({ left: e }) { return Sl(e); } function xje(e, t, r) { const i = r.resolveName("self", void 0, 111551, !1); if (i && r.getTypeOfSymbolAtLocation(i, t) === e) return !0; const o = r.resolveName("global", void 0, 111551, !1); if (o && r.getTypeOfSymbolAtLocation(o, t) === e) return !0; const s = r.resolveName("globalThis", void 0, 111551, !1); return !!(s && r.getTypeOfSymbolAtLocation(s, t) === e); } function Aje(e) { return !!(e.valueDeclaration && wu(e.valueDeclaration) & 32 && li(e.valueDeclaration.parent)); } function Cje(e, t) { const r = t.getContextualType(e); if (r) return r; const i = Cv(e.parent); if (vr(i) && i.operatorToken.kind === 63 && e === i.left) return t.getTypeAtLocation(i); if (yt(i)) return t.getContextualType(i); } function nSe(e) { var t, r, i; let o, s = !1; const c = f(); return { isKeywordOnlyCompletion: s, keywordCompletion: o, isNewIdentifierLocation: !!(c || o === 154), isTopLevelTypeOnly: !!((r = (t = ri(c, Gc)) == null ? void 0 : t.importClause) != null && r.isTypeOnly) || !!((i = ri(c, tu)) != null && i.isTypeOnly), couldBeTypeOnlyImportSpecifier: !!c && iSe(c, e), replacementSpan: Lje(c) }; function f() { const d = e.parent; if (tu(d)) return o = e.kind === 154 ? void 0 : 154, ate(d.moduleReference) ? d : void 0; if (iSe(d, e) && aSe(d.parent)) return d; if (by(d) || Ov(d)) { if (!d.parent.isTypeOnly && (e.kind === 18 || e.kind === 100 || e.kind === 27) && (o = 154), aSe(d)) if (e.kind === 19 || e.kind === 79) s = !0, o = 158; else return d.parent.parent; return; } if (hk(e) && ji(d)) return o = 154, e; if (hk(e) && Gc(d)) return o = 154, ate(d.moduleSpecifier) ? d : void 0; } } function Lje(e) { var t, r, i; if (!e) return; const o = (t = nr(e, Sm(Gc, tu))) != null ? t : e, s = o.getSourceFile(); if (mT(o, s)) return $u(o, s); D.assert(o.kind !== 100 && o.kind !== 273); const c = o.kind === 269 ? (i = rSe((r = o.importClause) == null ? void 0 : r.namedBindings)) != null ? i : o.moduleSpecifier : o.moduleReference, f = { pos: o.getFirstToken().getStart(), end: c.pos }; if (mT(f, s)) return Vv(f); } function rSe(e) { var t; return un((t = ri(e, by)) == null ? void 0 : t.elements, (r) => { var i; return !r.propertyName && ZS(r.name.text) && ((i = Tc(r.name.pos, e.getSourceFile(), e)) == null ? void 0 : i.kind) !== 27; }); } function iSe(e, t) { return Td(e) && (e.isTypeOnly || t === e.name && DF(t)); } function aSe(e) { if (!ate(e.parent.parent.moduleSpecifier) || e.parent.name) return !1; if (by(e)) { const t = rSe(e); return (t ? e.elements.indexOf(t) : e.elements.length) < 2; } return !0; } function ate(e) { var t; return Sl(e) ? !0 : !((t = ri(Um(e) ? e.expression : e, Ts)) != null && t.text); } function Ije(e) { return nr(e, (r) => aT(r) || kje(r) || Ja(r) ? "quit" : Wi(r)); } function kje(e) { return e.parent && zs(e.parent) && e.parent.body === e; } function ote(e, t, r = /* @__PURE__ */ new Map()) { return i(e) || i(nf(e.exportSymbol || e, t)); function i(o) { return !!(o.flags & 788968) || t.isUnknownSymbol(o) || !!(o.flags & 1536) && _p(r, go(o)) && t.getExportsOfModule(o).some((s) => ote(s, t, r)); } } function wje(e, t) { const r = nf(e, t).declarations; return !!Ne(r) && Vn(r, e9); } function oSe(e, t) { if (t.length === 0) return !0; let r = !1, i, o = 0; const s = e.length; for (let c = 0; c < s; c++) { const f = e.charCodeAt(c), d = t.charCodeAt(o); if ((f === d || f === Dje(d)) && (r || (r = i === void 0 || 97 <= i && i <= 122 && 65 <= f && f <= 90 || i === 95 && f !== 95), r && o++, o === t.length)) return !0; i = f; } return !1; } function Dje(e) { return 97 <= e && e <= 122 ? e - 32 : e; } var mG, ste, nu, lte, cte, ute, A6, dte, Rje = L({ "src/services/completions.ts"() { Kr(), gte(), mG = 100, ste = 1e3, nu = { 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"; } }, lte = /* @__PURE__ */ ((e) => (e.ThisProperty = "ThisProperty/", e.ClassMemberSnippet = "ClassMemberSnippet/", e.TypeOnlyAlias = "TypeOnlyAlias/", e.ObjectLiteralMethodSnippet = "ObjectLiteralMethodSnippet/", e.SwitchCases = "SwitchCases/", e))(lte || {}), cte = /* @__PURE__ */ ((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))(cte || {}), ute = /* @__PURE__ */ ((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))(ute || {}), A6 = [], dte = hd(() => { const e = []; for (let t = 81; t <= 162; t++) e.push({ name: mo(t), kind: "keyword", kindModifiers: "", sortText: nu.GlobalsOrKeywords }); return e; }); } }); function fte() { const e = /* @__PURE__ */ new Map(); function t(r) { const i = e.get(r.name); (!i || hte[i.kind] < hte[r.kind]) && e.set(r.name, r); } return { add: t, has: e.has.bind(e), values: e.values.bind(e) }; } function Nje(e, t, r, i, o, s, c, f, d) { if (Cye(e, t)) { const y = Xje(e, t, i, o); return y && sSe(y); } if (VT(e, t, r)) { if (!r || !Ts(r)) return; const y = cSe(e, r, t, s.getTypeChecker(), i, o, f); return Oje(y, r, e, o, s, c, i, f, t, d); } } function Oje(e, t, r, i, o, s, c, f, d, y) { if (e === void 0) return; const m = b$(t); switch (e.kind) { case 0: return sSe(e.paths); case 1: { const b = tj(); return tte(e.symbols, b, t, t, r, d, r, i, o, 99, s, 4, f, c, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, y), { isGlobalCompletion: !1, isMemberCompletion: !0, isNewIdentifierLocation: e.hasIndexSignature, optionalReplacementSpan: m, entries: b }; } case 2: { const b = e.types.map((A) => ({ name: A.value, kindModifiers: "", kind: "string", sortText: nu.LocationPriority, replacementSpan: v$(t) })); return { isGlobalCompletion: !1, isMemberCompletion: !1, isNewIdentifierLocation: e.isNewIdentifier, optionalReplacementSpan: m, entries: b }; } default: return D.assertNever(e); } } function Pje(e, t, r, i, o, s, c, f, d) { if (!i || !Ts(i)) return; const y = cSe(t, i, r, o, s, c, d); return y && Mje(e, i, y, t, o, f); } function Mje(e, t, r, i, o, s) { switch (r.kind) { case 0: { const c = un(r.paths, (f) => f.name === e); return c && S6(e, lSe(c.extension), c.kind, [Cf(e)]); } case 1: { const c = un(r.symbols, (f) => f.name === e); return c && rte(c, c.name, o, i, t, s); } case 2: return un(r.types, (c) => c.value === e) ? S6(e, "", "string", [Cf(e)]) : void 0; default: return D.assertNever(r); } } function sSe(e) { return { isGlobalCompletion: !1, isMemberCompletion: !1, isNewIdentifierLocation: !0, entries: e.map(({ name: o, kind: s, span: c, extension: f }) => ({ name: o, kind: s, kindModifiers: lSe(f), sortText: nu.LocationPriority, replacementSpan: c })) }; } function lSe(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 D.fail("Extension .tsbuildinfo is unsupported."); case void 0: return ""; default: return D.assertNever(e); } } function cSe(e, t, r, i, o, s, c) { const f = uSe(t.parent); switch (f.kind) { case 198: { const A = uSe(f.parent); switch (A.kind) { case 230: case 180: { const O = nr(f, (k) => k.parent === A); return O ? { kind: 2, types: C6(i.getTypeArgumentConstraint(O)), isNewIdentifier: !1 } : void 0; } case 196: const { indexType: C, objectType: I } = A; return G8(C, r) ? dSe(i.getTypeFromTypeNode(I)) : void 0; case 202: return { kind: 0, paths: _Se(e, t, o, s, i, c) }; case 189: { if (!V_(A.parent)) return; const O = Fje(A, f); return { kind: 2, types: C6(i.getTypeArgumentConstraint(A)).filter((B) => !Ii(O, B.value)), isNewIdentifier: !1 }; } default: return; } } case 299: return As(f.parent) && f.name === t ? Gje(i, f.parent) : d() || d(0); case 209: { const { expression: A, argumentExpression: C } = f; return t === Us(C) ? dSe(i.getTypeAtLocation(A)) : void 0; } case 210: case 211: case 288: if (!Zje(t) && !tf(f)) { const A = J6.getArgumentInfoForCompletions(f.kind === 288 ? f.parent : t, r, e); return A && Bje(A.invocation, t, A, i) || d(); } case 269: case 275: case 280: return { kind: 0, paths: _Se(e, t, o, s, i, c) }; case 292: const y = r9(i, f.parent.clauses), m = d(); return m ? { kind: 2, types: m.types.filter((A) => !y.hasValue(A.value)), isNewIdentifier: !1 } : void 0; default: return d(); } function d(y = 4) { const m = C6(jF(t, i, y)); if (m.length) return { kind: 2, types: m, isNewIdentifier: !1 }; } } function uSe(e) { switch (e.kind) { case 193: return vN(e); case 214: return Cv(e); default: return e; } } function Fje(e, t) { return _a(e.types, (r) => r !== t && X0(r) && Go(r.literal) ? r.literal.text : void 0); } function Bje(e, t, r, i) { let o = !1; const s = /* @__PURE__ */ new Map(), c = [], f = qu(e) ? D.checkDefined(nr(t.parent, $p)) : t; i.getResolvedSignatureForStringLiteralCompletions(e, f, c); const d = Mo(c, (y) => { if (!mu(y) && r.argumentCount > y.parameters.length) return; let m = y.getTypeParameterAtPosition(r.argumentIndex); if (qu(e)) { const b = i.getTypeOfPropertyOfType(m, f.name.text); b && (m = b); } return o = o || !!(m.flags & 4), C6(m, s); }); return Ne(d) ? { kind: 2, types: d, isNewIdentifier: o } : void 0; } function dSe(e) { return e && { kind: 1, symbols: yn(e.getApparentProperties(), (t) => !(t.valueDeclaration && zu(t.valueDeclaration))), hasIndexSignature: U$(e) }; } function Gje(e, t) { const r = e.getContextualType(t); if (!r) return; const i = e.getContextualType(t, 4); return { kind: 1, symbols: fG(r, i, t, e), hasIndexSignature: U$(r) }; } function C6(e, t = /* @__PURE__ */ new Map()) { return e ? (e = S$(e), e.isUnion() ? Mo(e.types, (r) => C6(r, t)) : e.isStringLiteral() && !(e.flags & 1024) && _p(t, e.value) ? [e] : nt) : nt; } function XC(e, t, r) { return { name: e, kind: t, extension: r }; } function _te(e) { return XC(e, "directory", void 0); } function fSe(e, t, r) { const i = $je(e, t), o = e.length === 0 ? void 0 : Cc(t, e.length); return r.map(({ name: s, kind: c, extension: f }) => Math.max(s.indexOf(Os), s.indexOf(TR)) !== -1 ? { name: s, kind: c, extension: f, span: o } : { name: s, kind: c, extension: f, span: i }); } function _Se(e, t, r, i, o, s) { return fSe(t.text, t.getStart(e) + 1, Uje(e, t, r, i, o, s)); } function Uje(e, t, r, i, o, s) { const c = qc(t.text), f = Ts(t) ? hp(e, t) : void 0, d = e.path, y = fi(d), m = pte(r, 1, e, o, s, f); return Qje(c) || !r.baseUrl && (xm(c) || ele(c)) ? Vje(c, y, r, i, d, m) : zje(c, y, f, r, i, m, o); } function pte(e, t, r, i, o, s) { return { extensionsToSearch: nd(jje(e, i)), referenceKind: t, importingSourceFile: r, endingPreference: o == null ? void 0 : o.importModuleSpecifierEnding, resolutionMode: s }; } function Vje(e, t, r, i, o, s) { return r.rootDirs ? Wje(r.rootDirs, e, t, s, r, i, o) : ko(Ew(e, t, s, i, !1, o).values()); } function jje(e, t) { const r = t ? _a(t.getAmbientModules(), (s) => { const c = s.name.slice(1, -1); if (!(!c.startsWith("*.") || c.includes("/"))) return c.slice(1); }) : [], i = [...tk(e), r], o = gl(e); return NF(o) ? zN(e, i) : i; } function Hje(e, t, r, i) { e = e.map((s) => Wo(xm(s) ? s : Oi(t, s))); const o = En(e, (s) => hv(s, r, t, i) ? r.substr(s.length) : void 0); return oA([...e.map((s) => Oi(s, o)), r], RS, Lu); } function Wje(e, t, r, i, o, s, c) { const f = o.project || s.getCurrentDirectory(), d = !(s.useCaseSensitiveFileNames && s.useCaseSensitiveFileNames()), y = Hje(e, f, r, d); return Mo(y, (m) => ko(Ew(t, m, i, s, !0, c).values())); } function Ew(e, t, r, i, o, s, c = fte()) { var f; e === void 0 && (e = ""), e = qc(e), pv(e) || (e = fi(e)), e === "" && (e = "." + Os), e = Iu(e); const d = mv(t, e), y = pv(d) ? d : fi(d); if (!o) { const C = $ye(y, i); if (C) { const O = zI(C, i).typesVersions; if (typeof O == "object") { const k = (f = a5(O)) == null ? void 0 : f.paths; if (k) { const B = fi(C), U = d.slice(Iu(B).length); if (mSe(c, U, B, r, i, k)) return c; } } } } const m = !(i.useCaseSensitiveFileNames && i.useCaseSensitiveFileNames()); if (!XF(i, y)) return c; const b = H$(i, y, r.extensionsToSearch, void 0, ["./*"]); if (b) for (let C of b) { if (C = Wo(C), s && JE(C, s, t, m) === 0) continue; const { name: I, extension: O } = pSe(cu(C), i.getCompilationSettings(), r); c.add(XC(I, "script", O)); } const A = JF(i, y); if (A) for (const C of A) { const I = cu(Wo(C)); I !== "@types" && c.add(_te(I)); } return c; } function pSe(e, t, r) { const i = P1.tryGetRealFileNameForNonJsDeclarationFileName(e); if (i) return { name: i, extension: yh(i) }; if (r.referenceKind === 0) return { name: e, extension: yh(e) }; const o = Qz(r.endingPreference, r.resolutionMode, t, r.importingSourceFile); if (o === 3) { if (vc(e, G3)) return { name: e, extension: yh(e) }; const c = P1.tryGetJSExtensionForFile(e, t); return c ? { name: x1(e, c), extension: c } : { name: e, extension: yh(e) }; } if ((o === 0 || o === 1) && vc(e, [".js", ".jsx", ".ts", ".tsx", ".d.ts"])) return { name: Od(e), extension: yh(e) }; const s = P1.tryGetJSExtensionForFile(e, t); return s ? { name: x1(e, s), extension: s } : { name: e, extension: yh(e) }; } function mSe(e, t, r, i, o, s) { const c = (d) => s[d], f = (d, y) => { const m = YA(d), b = YA(y), A = typeof m == "object" ? m.prefix.length : d.length, C = typeof b == "object" ? b.prefix.length : y.length; return js(C, A); }; return hSe(e, t, r, i, o, Xh(s), c, f); } function hSe(e, t, r, i, o, s, c, f) { let d = [], y; for (const m of s) { if (m === ".") continue; const b = m.replace(/^\.\//, ""), A = c(m); if (A) { const C = YA(b); if (!C) continue; const I = typeof C == "object" && LP(C, t); I && (y === void 0 || f(m, y) === -1) && (y = m, d = d.filter((k) => !k.matchedPattern)), (typeof C == "string" || y === void 0 || f(m, y) !== 1) && d.push({ matchedPattern: I, results: qje(b, A, t, r, i, o).map(({ name: k, kind: B, extension: U }) => XC(k, B, U)) }); } } return d.forEach((m) => m.results.forEach((b) => e.add(b))), y !== void 0; } function zje(e, t, r, i, o, s, c) { const { baseUrl: f, paths: d } = i, y = fte(), m = gl(i); if (f) { const A = i.project || o.getCurrentDirectory(), C = Wo(Oi(A, f)); Ew(e, C, s, o, !1, void 0, y), d && mSe(y, e, C, s, o, d); } const b = ySe(e); for (const A of Kje(e, b, c)) y.add(XC(A, "external module name", void 0)); if (ESe(o, i, t, b, s, y), NF(m)) { let A = !1; if (b === void 0) for (const C of Yje(o, t)) { const I = XC(C, "external module name", void 0); y.has(I.name) || (A = !0, y.add(I)); } if (!A) { let C = (I) => { const O = Oi(I, "node_modules"); XF(o, O) && Ew(e, O, s, o, !1, void 0, y); }; if (b && Hz(i)) { const I = C; C = (O) => { const k = rd(e); k.shift(); let B = k.shift(); if (!B) return I(O); if (Ea(B, "@")) { const te = k.shift(); if (!te) return I(O); B = Oi(B, te); } const U = Oi(O, "node_modules", B), j = Oi(U, "package.json"); if (KF(o, j)) { const X = zI(j, o).exports; if (X) { if (typeof X != "object" || X === null) return; const Y = Xh(X), P = k.join("/") + (k.length && pv(e) ? "/" : ""), ue = r === 99 ? ["node", "import", "types"] : ["node", "require", "types"]; hSe(y, P, U, s, o, Y, (ne) => WE(gSe(X[ne], ue)), bK); return; } } return I(O); }; } $h(t, C); } } return ko(y.values()); } function gSe(e, t) { if (typeof e == "string") return e; if (e && typeof e == "object" && !Ga(e)) { for (const r in e) if (r === "default" || t.indexOf(r) > -1 || o8(t, r)) { const i = e[r]; return gSe(i, t); } } } function ySe(e) { return mte(e) ? pv(e) ? e : fi(e) : void 0; } function qje(e, t, r, i, o, s) { if (!tc(e, "*")) return lu(e, "*") ? nt : d(e, "script"); const c = e.slice(0, e.length - 1), f = fj(r, c); if (f === void 0) return e[e.length - 2] === "/" ? d(c, "directory") : Mo(t, (m) => { var b; return (b = vSe("", i, m, o, s)) == null ? void 0 : b.map(({ name: A, ...C }) => ({ name: c + A, ...C })); }); return Mo(t, (y) => vSe(f, i, y, o, s)); function d(y, m) { return Ea(y, r) ? [{ name: qE(y), kind: m, extension: void 0 }] : nt; } } function vSe(e, t, r, i, o) { if (!o.readDirectory) return; const s = YA(r); if (s === void 0 || Va(s)) return; const c = mv(s.prefix), f = pv(s.prefix) ? c : fi(c), d = pv(s.prefix) ? "" : cu(c), y = mte(e), m = y ? pv(e) ? e : fi(e) : void 0, b = y ? Oi(f, d + m) : f, A = Wo(s.suffix), C = Wo(Oi(t, b)), I = y ? C : Iu(C) + d, O = A ? "**/*" + A : "./*", k = _a(H$(o, C, i.extensionsToSearch, void 0, [O]), (j) => { const te = U(j); if (te) { if (mte(te)) return _te(rd(bSe(te))[1]); const { name: X, extension: Y } = pSe(te, o.getCompilationSettings(), i); return XC(X, "script", Y); } }), B = A ? nt : _a(JF(o, C), (j) => j === "node_modules" ? void 0 : _te(j)); return [...k, ...B]; function U(j) { const te = Jje(Wo(j), I, A); return te === void 0 ? void 0 : bSe(te); } } function Jje(e, t, r) { return Ea(e, t) && tc(e, r) ? e.slice(t.length, e.length - r.length) : void 0; } function bSe(e) { return e[0] === Os ? e.slice(1) : e; } function Kje(e, t, r) { const o = r.getAmbientModules().map((s) => M_(s.name)).filter((s) => Ea(s, e) && s.indexOf("*") < 0); if (t !== void 0) { const s = Iu(t); return o.map((c) => $L(c, s)); } return o; } function Xje(e, t, r, i) { const o = ra(e, t), s = ch(e.text, o.pos), c = s && un(s, (I) => t >= I.pos && t <= I.end); if (!c) return; const f = e.text.slice(c.pos, t), d = TSe.exec(f); if (!d) return; const [, y, m, b] = d, A = fi(e.path), C = m === "path" ? Ew(b, A, pte(r, 0, e), i, !0, e.path) : m === "types" ? ESe(i, r, A, ySe(b), pte(r, 1, e)) : D.fail(); return fSe(b, c.pos + y.length, ko(C.values())); } function ESe(e, t, r, i, o, s = fte()) { const c = /* @__PURE__ */ new Map(), f = YF(() => r8(t, e)) || nt; for (const y of f) d(y); for (const y of W$(r, e)) { const m = Oi(fi(y), "node_modules/@types"); d(m); } return s; function d(y) { if (XF(e, y)) for (const m of JF(e, y)) { const b = m5(m); if (!(t.types && !Ii(t.types, b))) if (i === void 0) c.has(b) || (s.add(XC(b, "external module name", void 0)), c.set(b, !0)); else { const A = Oi(y, m), C = qz(i, b, H0(e)); C !== void 0 && Ew(C, A, o, e, !1, void 0, s); } } } } function Yje(e, t) { if (!e.readFile || !e.fileExists) return nt; const r = []; for (const i of W$(t, e)) { const o = zI(i, e); for (const s of SSe) { const c = o[s]; if (c) for (const f in c) Ns(c, f) && !Ea(f, "@types/") && r.push(f); } } return r; } function $je(e, t) { const r = Math.max(e.lastIndexOf(Os), e.lastIndexOf(TR)), i = r !== -1 ? r + 1 : 0, o = e.length - i; return o === 0 || w_(e.substr(i, o), 99) ? void 0 : Cc(t + i, o); } function Qje(e) { if (e && e.length >= 2 && e.charCodeAt(0) === 46) { const t = e.length >= 3 && e.charCodeAt(1) === 46 ? 2 : 1, r = e.charCodeAt(t); return r === 47 || r === 92; } return !1; } function mte(e) { return lu(e, Os); } function Zje(e) { return eo(e.parent) && Wc(e.parent.arguments) === e && Ve(e.parent.expression) && e.parent.expression.escapedText === "require"; } var hte, TSe, SSe, eHe = L({ "src/services/stringCompletions.ts"() { Kr(), gte(), hte = { directory: 0, script: 1, ["external module name"]: 2 }, TSe = /^(\/\/\/\s* Pje, getStringLiteralCompletions: () => Nje }); var tHe = L({ "src/services/_namespaces/ts.Completions.StringCompletions.ts"() { eHe(); } }), Yx = {}; fe(Yx, { CompletionKind: () => ute, CompletionSource: () => lte, SortText: () => nu, StringCompletions: () => hG, SymbolOriginInfoKind: () => cte, createCompletionDetails: () => S6, createCompletionDetailsForSymbol: () => rte, getCompletionEntriesFromSymbols: () => tte, getCompletionEntryDetails: () => uje, getCompletionEntrySymbol: () => fje, getCompletionsAtPosition: () => HVe, getPropertiesForObjectExpression: () => fG, moduleSpecifierResolutionCacheAttemptLimit: () => ste, moduleSpecifierResolutionLimit: () => mG }); var gte = L({ "src/services/_namespaces/ts.Completions.ts"() { Rje(), tHe(); } }); function yte(e, t, r, i) { const o = aHe(e, r, i); return (s, c, f) => { const { directImports: d, indirectUsers: y } = nHe(e, t, o, c, r, i); return { indirectUsers: y, ...rHe(d, s, c.exportKind, r, f) }; }; } function nHe(e, t, r, { exportingModuleSymbol: i, exportKind: o }, s, c) { const f = BC(), d = BC(), y = [], m = !!i.globalExports, b = m ? void 0 : []; return C(i), { directImports: y, indirectUsers: A() }; function A() { if (m) return e; if (i.declarations) for (const j of i.declarations) _1(j) && t.has(j.getSourceFile().fileName) && B(j); return b.map(Zn); } function C(j) { const te = U(j); if (te) { for (const X of te) if (f(X)) switch (c && c.throwIfCancellationRequested(), X.kind) { case 210: if (tf(X)) { I(X); break; } if (!m) { const P = X.parent; if (o === 2 && P.kind === 257) { const { name: ue } = P; if (ue.kind === 79) { y.push(ue); break; } } } break; case 79: break; case 268: k(X, X.name, Jr(X, 1), !1); break; case 269: y.push(X); const Y = X.importClause && X.importClause.namedBindings; Y && Y.kind === 271 ? k(X, Y.name, !1, !0) : !m && YS(X) && B(L6(X)); break; case 275: X.exportClause ? X.exportClause.kind === 277 ? B(L6(X), !0) : y.push(X) : C(uHe(X, s)); break; case 202: !m && X.isTypeOf && !X.qualifier && O(X) && B(X.getSourceFile(), !0), y.push(X); break; default: D.failBadSyntaxKind(X, "Unexpected import kind."); } } } function I(j) { const te = nr(j, gG) || j.getSourceFile(); B(te, !!O(j, !0)); } function O(j, te = !1) { return nr(j, (X) => te && gG(X) ? "quit" : H_(X) && kt(X.modifiers, v7)); } function k(j, te, X, Y) { if (o === 2) Y || y.push(j); else if (!m) { const P = L6(j); D.assert(P.kind === 308 || P.kind === 264), X || iHe(P, te, s) ? B(P, !0) : B(P); } } function B(j, te = !1) { if (D.assert(!m), !d(j) || (b.push(j), !te)) return; const Y = s.getMergedSymbol(j.symbol); if (!Y) return; D.assert(!!(Y.flags & 1536)); const P = U(Y); if (P) for (const ue of P) dg(ue) || B(L6(ue), !0); } function U(j) { return r.get(go(j).toString()); } } function rHe(e, t, r, i, o) { const s = [], c = []; function f(A, C) { s.push([A, C]); } if (e) for (const A of e) d(A); return { importSearches: s, singleReferences: c }; function d(A) { if (A.kind === 268) { bte(A) && y(A.name); return; } if (A.kind === 79) { y(A); return; } if (A.kind === 202) { if (A.qualifier) { const O = Ef(A.qualifier); O.escapedText === Nl(t) && c.push(O); } else r === 2 && c.push(A.argument.literal); return; } if (A.moduleSpecifier.kind !== 10) return; if (A.kind === 275) { A.exportClause && j_(A.exportClause) && m(A.exportClause); return; } const { name: C, namedBindings: I } = A.importClause || { name: void 0, namedBindings: void 0 }; if (I) switch (I.kind) { case 271: y(I.name); break; case 272: (r === 0 || r === 1) && m(I); break; default: D.assertNever(I); } if (C && (r === 1 || r === 2) && (!o || C.escapedText === MF(t))) { const O = i.getSymbolAtLocation(C); f(C, O); } } function y(A) { r === 2 && (!o || b(A.escapedText)) && f(A, i.getSymbolAtLocation(A)); } function m(A) { if (A) for (const C of A.elements) { const { name: I, propertyName: O } = C; if (b((O || I).escapedText)) if (O) c.push(O), (!o || I.escapedText === t.escapedName) && f(I, i.getSymbolAtLocation(I)); else { const k = C.kind === 278 && C.propertyName ? i.getExportSpecifierLocalTargetSymbol(C) : i.getSymbolAtLocation(I); f(I, k); } } } function b(A) { return A === t.escapedName || r !== 0 && A === "default"; } } function iHe(e, t, r) { const i = r.getSymbolAtLocation(t); return !!ASe(e, (o) => { if (!Kc(o)) return; const { exportClause: s, moduleSpecifier: c } = o; return !c && s && j_(s) && s.elements.some((f) => r.getExportSpecifierLocalTargetSymbol(f) === i); }); } function xSe(e, t, r) { var i; const o = [], s = e.getTypeChecker(); for (const c of t) { const f = r.valueDeclaration; if ((f == null ? void 0 : f.kind) === 308) { for (const d of c.referencedFiles) e.getSourceFileFromReference(c, d) === f && o.push({ kind: "reference", referencingFile: c, ref: d }); for (const d of c.typeReferenceDirectives) { const y = (i = e.getResolvedTypeReferenceDirectives().get(d.fileName, d.resolutionMode || c.impliedNodeFormat)) == null ? void 0 : i.resolvedTypeReferenceDirective; y !== void 0 && y.resolvedFileName === f.fileName && o.push({ kind: "reference", referencingFile: c, ref: d }); } } CSe(c, (d, y) => { s.getSymbolAtLocation(y) === r && o.push({ kind: "import", literal: y }); }); } return o; } function aHe(e, t, r) { const i = /* @__PURE__ */ new Map(); for (const o of e) r && r.throwIfCancellationRequested(), CSe(o, (s, c) => { const f = t.getSymbolAtLocation(c); if (f) { const d = go(f).toString(); let y = i.get(d); y || i.set(d, y = []), y.push(s); } }); return i; } function ASe(e, t) { return Ye(e.kind === 308 ? e.statements : e.body.statements, (r) => t(r) || gG(r) && Ye(r.body && r.body.statements, t)); } function CSe(e, t) { if (e.externalModuleIndicator || e.imports !== void 0) for (const r of e.imports) t(_N(r), r); else ASe(e, (r) => { switch (r.kind) { case 275: case 269: { const i = r; i.moduleSpecifier && Go(i.moduleSpecifier) && t(i, i.moduleSpecifier); break; } case 268: { const i = r; bte(i) && t(i, i.moduleReference.expression); break; } } }); } function LSe(e, t, r, i) { return i ? o() : o() || s(); function o() { var d; const { parent: y } = e, m = y.parent; if (t.exportSymbol) return y.kind === 208 ? (d = t.declarations) != null && d.some((C) => C === y) && vr(m) ? A(m, !1) : void 0 : c(t.exportSymbol, f(y)); { const C = sHe(y, e); if (C && Jr(C, 1)) return tu(C) && C.moduleReference === e ? i ? void 0 : { kind: 0, symbol: r.getSymbolAtLocation(C.name) } : c(t, f(C)); if (Sh(y)) return c(t, 0); if (Pl(y)) return b(y); if (Pl(m)) return b(m); if (vr(y)) return A(y, !0); if (vr(m)) return A(m, !0); if (fJ(y) || oJ(y)) return c(t, 0); } function b(C) { if (!C.symbol.parent) return; const I = C.isExportEquals ? 2 : 1; return { kind: 1, symbol: t, exportInfo: { exportingModuleSymbol: C.symbol.parent, exportKind: I } }; } function A(C, I) { let O; switch (xl(C)) { case 1: O = 0; break; case 2: O = 2; break; default: return; } const k = I ? r.getSymbolAtLocation(Zue(ro(C.left, ol))) : t; return k && c(k, O); } } function s() { if (!lHe(e)) return; let y = r.getImmediateAliasedSymbol(t); if (!y || (y = cHe(y, r), y.escapedName === "export=" && (y = oHe(y, r), y === void 0))) return; const m = MF(y); if (m === void 0 || m === "default" || m === t.escapedName) return { kind: 0, symbol: y }; } function c(d, y) { const m = vte(d, y, r); return m && { kind: 1, symbol: d, exportInfo: m }; } function f(d) { return Jr(d, 1024) ? 1 : 0; } } function oHe(e, t) { var r, i; if (e.flags & 2097152) return t.getImmediateAliasedSymbol(e); const o = D.checkDefined(e.valueDeclaration); if (Pl(o)) return (r = ri(o.expression, Lm)) == null ? void 0 : r.symbol; if (vr(o)) return (i = ri(o.right, Lm)) == null ? void 0 : i.symbol; if (ji(o)) return o.symbol; } function sHe(e, t) { const r = Wi(e) ? e : us(e) ? pA(e) : void 0; return r ? e.name !== t || mC(r.parent) ? void 0 : sc(r.parent.parent) ? r.parent.parent : void 0 : e; } function lHe(e) { const { parent: t } = e; switch (t.kind) { case 268: return t.name === e && bte(t); case 273: return !t.propertyName; case 270: case 271: return D.assert(t.name === e), !0; case 205: return dr(e) && g1(t.parent.parent); default: return !1; } } function vte(e, t, r) { const i = e.parent; if (!i) return; const o = r.getMergedSymbol(i); return J8(o) ? { exportingModuleSymbol: o, exportKind: t } : void 0; } function cHe(e, t) { if (e.declarations) for (const r of e.declarations) { if (od(r) && !r.propertyName && !r.parent.parent.moduleSpecifier) return t.getExportSpecifierLocalTargetSymbol(r) || e; if (Pr(r) && ph(r.expression) && !ki(r.name)) return t.getSymbolAtLocation(r); if (Xf(r) && vr(r.parent.parent) && xl(r.parent.parent) === 2) return t.getExportSpecifierLocalTargetSymbol(r.name); } return e; } function uHe(e, t) { return t.getMergedSymbol(L6(e).symbol); } function L6(e) { if (e.kind === 210) return e.getSourceFile(); const { parent: t } = e; return t.kind === 308 ? t : (D.assert(t.kind === 265), ro(t.parent, gG)); } function gG(e) { return e.kind === 264 && e.name.kind === 10; } function bte(e) { return e.moduleReference.kind === 280 && e.moduleReference.expression.kind === 10; } var Ete, Tte, dHe = L({ "src/services/importTracker.ts"() { Kr(), Ete = /* @__PURE__ */ ((e) => (e[e.Named = 0] = "Named", e[e.Default = 1] = "Default", e[e.ExportEquals = 2] = "ExportEquals", e))(Ete || {}), Tte = /* @__PURE__ */ ((e) => (e[e.Import = 0] = "Import", e[e.Export = 1] = "Export", e))(Tte || {}); } }); function Ah(e, t = 1) { return { kind: t, node: e.name || e, context: fHe(e) }; } function ISe(e) { return e && e.kind === void 0; } function fHe(e) { if (_u(e)) return W1(e); if (e.parent) { if (!_u(e.parent) && !Pl(e.parent)) { if (dr(e)) { const r = vr(e.parent) ? e.parent : ol(e.parent) && vr(e.parent.parent) && e.parent.parent.left === e.parent ? e.parent.parent : void 0; if (r && xl(r) !== 0) return W1(r); } if (xh(e.parent) || Ax(e.parent)) return e.parent.parent; if (xx(e.parent) || k1(e.parent) || mI(e.parent)) return e.parent; if (Ts(e)) { const r = pN(e); if (r) { const i = nr(r, (o) => _u(o) || Ia(o) || bI(o)); return _u(i) ? W1(i) : i; } } const t = nr(e, Ss); return t ? W1(t.parent) : void 0; } if (e.parent.name === e || jl(e.parent) || Pl(e.parent) || (VS(e.parent) || us(e.parent)) && e.parent.propertyName === e || e.kind === 88 && Jr(e.parent, 1025)) return W1(e.parent); } } function W1(e) { if (e) switch (e.kind) { case 257: return !Ou(e.parent) || e.parent.declarations.length !== 1 ? e : sc(e.parent.parent) ? e.parent.parent : bA(e.parent.parent) ? W1(e.parent.parent) : e.parent; case 205: return W1(e.parent.parent); case 273: return e.parent.parent.parent; case 278: case 271: return e.parent.parent; case 270: case 277: return e.parent; case 223: return eu(e.parent) ? e.parent : e; case 247: case 246: return { start: e.initializer, end: e.expression }; case 299: case 300: return Cy(e.parent) ? W1(nr(e.parent, (t) => vr(t) || bA(t))) : e; default: return e; } } function Ste(e, t, r) { if (!r) return; const i = ISe(r) ? k6(r.start, t, r.end) : k6(r, t); return i.start !== e.start || i.length !== e.length ? { contextSpan: i } : void 0; } function _He(e, t, r, i, o) { const s = Af(i, o), c = { use: 1 }, f = XT.getReferencedSymbolsForNode(o, s, e, r, t, c), d = e.getTypeChecker(), y = XT.getAdjustedNode(s, c), m = pHe(y) ? d.getSymbolAtLocation(y) : void 0; return !f || !f.length ? void 0 : _a(f, ({ definition: b, references: A }) => b && { definition: d.runWithCancellationToken(t, (C) => gHe(b, C, s)), references: A.map((C) => vHe(C, m)) }); } function pHe(e) { return e.kind === 88 || !!bN(e) || EN(e) || e.kind === 135 && jl(e.parent); } function mHe(e, t, r, i, o) { const s = Af(i, o); let c; const f = kSe(e, t, r, s, o); if (s.parent.kind === 208 || s.parent.kind === 205 || s.parent.kind === 209 || s.kind === 106) c = f && [...f]; else if (f) { const y = lj(f), m = /* @__PURE__ */ new Map(); for (; !y.isEmpty(); ) { const b = y.dequeue(); if (!_p(m, ds(b.node))) continue; c = Fn(c, b); const A = kSe(e, t, r, b.node, b.node.pos); A && y.enqueue(...A); } } const d = e.getTypeChecker(); return rn(c, (y) => EHe(y, d)); } function kSe(e, t, r, i, o) { if (i.kind === 308) return; const s = e.getTypeChecker(); if (i.parent.kind === 300) { const c = []; return XT.getReferenceEntriesForShorthandPropertyAssignment(i, s, (f) => c.push(Ah(f))), c; } else if (i.kind === 106 || ad(i.parent)) { const c = s.getSymbolAtLocation(i); return c.valueDeclaration && [Ah(c.valueDeclaration)]; } else return wSe(o, i, e, r, t, { implementations: !0, use: 1 }); } function hHe(e, t, r, i, o, s, c) { return rn(DSe(XT.getReferencedSymbolsForNode(o, i, e, r, t, s)), (f) => c(f, i, e.getTypeChecker())); } function wSe(e, t, r, i, o, s = {}, c = new Set(i.map((f) => f.fileName))) { return DSe(XT.getReferencedSymbolsForNode(e, t, r, i, o, s, c)); } function DSe(e) { return e && Mo(e, (t) => t.references); } function gHe(e, t, r) { const i = (() => { switch (e.type) { case 0: { const { symbol: m } = e, { displayParts: b, kind: A } = RSe(m, t, r), C = b.map((k) => k.text).join(""), I = m.declarations && Wc(m.declarations), O = I ? La(I) || I : r; return { ...I6(O), name: C, kind: A, displayParts: b, context: W1(I) }; } case 1: { const { node: m } = e; return { ...I6(m), name: m.text, kind: "label", displayParts: [Sd(m.text, 17)] }; } case 2: { const { node: m } = e, b = mo(m.kind); return { ...I6(m), name: b, kind: "keyword", displayParts: [{ text: b, kind: "keyword" }] }; } case 3: { const { node: m } = e, b = t.getSymbolAtLocation(m), A = b && ky.getSymbolDisplayPartsDocumentationAndSymbolKind(t, b, m.getSourceFile(), GT(m), m).displayParts || [Cf("this")]; return { ...I6(m), name: "this", kind: "var", displayParts: A }; } case 4: { const { node: m } = e; return { ...I6(m), name: m.text, kind: "var", displayParts: [Sd(bc(m), 8)] }; } case 5: return { textSpan: Vv(e.reference), sourceFile: e.file, name: e.reference.fileName, kind: "string", displayParts: [Sd(`"${e.reference.fileName}"`, 8)] }; default: return D.assertNever(e); } })(), { sourceFile: o, textSpan: s, name: c, kind: f, displayParts: d, context: y } = i; return { containerKind: "", containerName: "", fileName: o.fileName, kind: f, name: c, textSpan: s, displayParts: d, ...Ste(s, o, y) }; } function I6(e) { const t = e.getSourceFile(); return { sourceFile: t, textSpan: k6(Ss(e) ? e.expression : e, t) }; } function RSe(e, t, r) { const i = XT.getIntersectingMeaningFromDeclarations(r, e), o = e.declarations && Wc(e.declarations) || r, { displayParts: s, symbolKind: c } = ky.getSymbolDisplayPartsDocumentationAndSymbolKind(t, e, o.getSourceFile(), o, o, i); return { displayParts: s, kind: c }; } function yHe(e, t, r, i) { return { ...yG(e), ...i && bHe(e, t, r) }; } function vHe(e, t) { const r = NSe(e); return t ? { ...r, isDefinition: e.kind !== 0 && PSe(e.node, t) } : r; } function NSe(e) { const t = yG(e); if (e.kind === 0) return { ...t, isWriteAccess: !1 }; const { kind: r, node: i } = e; return { ...t, isWriteAccess: OSe(i), isInString: r === 2 ? !0 : void 0 }; } function yG(e) { if (e.kind === 0) return { textSpan: e.textSpan, fileName: e.fileName }; { const t = e.node.getSourceFile(), r = k6(e.node, t); return { textSpan: r, fileName: t.fileName, ...Ste(r, t, e.context) }; } } function bHe(e, t, r) { if (e.kind !== 0 && Ve(t)) { const { node: i, kind: o } = e, s = i.parent, c = t.text, f = Xf(s); if (f || Y8(s) && s.name === i && s.dotDotDotToken === void 0) { const d = { prefixText: c + ": " }, y = { suffixText: ": " + c }; if (o === 3) return d; if (o === 4) return y; if (f) { const m = s.parent; return As(m) && vr(m.parent) && ph(m.parent.left) ? d : y; } else return d; } else if (Td(s) && !s.propertyName) { const d = od(t.parent) ? r.getExportSpecifierLocalTargetSymbol(t.parent) : r.getSymbolAtLocation(t); return Ii(d.declarations, s) ? { prefixText: c + " as " } : em; } else if (od(s) && !s.propertyName) return t === e.node || r.getSymbolAtLocation(t) === r.getSymbolAtLocation(e.node) ? { prefixText: c + " as " } : { suffixText: " as " + c }; } return em; } function EHe(e, t) { const r = yG(e); if (e.kind !== 0) { const { node: i } = e; return { ...r, ...THe(i, t) }; } else return { ...r, kind: "", displayParts: [] }; } function THe(e, t) { const r = t.getSymbolAtLocation(_u(e) && e.name ? e.name : e); return r ? RSe(r, t, e) : e.kind === 207 ? { kind: "interface", displayParts: [hu(20), Cf("object literal"), hu(21)] } : e.kind === 228 ? { kind: "local class", displayParts: [hu(20), Cf("anonymous local class"), hu(21)] } : { kind: j1(e), displayParts: [] }; } function SHe(e) { const t = yG(e); if (e.kind === 0) return { fileName: t.fileName, span: { textSpan: t.textSpan, kind: "reference" } }; const r = OSe(e.node), i = { textSpan: t.textSpan, kind: r ? "writtenReference" : "reference", isInString: e.kind === 2 ? !0 : void 0, ...t.contextSpan && { contextSpan: t.contextSpan } }; return { fileName: t.fileName, span: i }; } function k6(e, t, r) { let i = e.getStart(t), o = (r || e).getEnd(); return Ts(e) && o - i > 2 && (D.assert(r === void 0), i += 1, o -= 1), fc(i, o); } function xte(e) { return e.kind === 0 ? e.textSpan : k6(e.node, e.node.getSourceFile()); } function OSe(e) { const t = bN(e); return !!t && xHe(t) || e.kind === 88 || XI(e); } function PSe(e, t) { var r; if (!t) return !1; const i = bN(e) || (e.kind === 88 ? e.parent : EN(e) || e.kind === 135 && jl(e.parent) ? e.parent.parent : void 0), o = i && vr(i) ? i.left : void 0; return !!(i && ((r = t.declarations) != null && r.some((s) => s === i || s === o))); } function xHe(e) { if (e.flags & 16777216) return !0; switch (e.kind) { case 223: case 205: case 260: case 228: case 88: case 263: case 302: case 278: case 270: case 268: case 273: case 261: case 341: case 349: case 288: case 264: case 267: case 271: case 277: case 166: case 300: case 262: case 165: return !0; case 299: return !Cy(e.parent); case 259: case 215: case 173: case 171: case 174: case 175: return !!e.body; case 257: case 169: return !!e.initializer || mC(e.parent); case 170: case 168: case 351: case 344: return !1; default: return D.failBadSyntaxKind(e); } } var Ate, Cte, Lte, XT, AHe = L({ "src/services/findAllReferences.ts"() { Kr(), MSe(), Ate = /* @__PURE__ */ ((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))(Ate || {}), Cte = /* @__PURE__ */ ((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))(Cte || {}), Lte = /* @__PURE__ */ ((e) => (e[e.Other = 0] = "Other", e[e.References = 1] = "References", e[e.Rename = 2] = "Rename", e))(Lte || {}), ((e) => { function t(Ie, gt, Nt, xe, _t, _e = {}, re = new Set(xe.map((me) => me.fileName))) { var me, V, je; if (gt = r(gt, _e), ji(gt)) { const ce = Sw.getReferenceAtPosition(gt, Ie, Nt); if (!(ce != null && ce.file)) return; const pt = Nt.getTypeChecker().getMergedSymbol(ce.file.symbol); if (pt) return y(Nt, pt, !1, xe, re); const Wt = Nt.getFileIncludeReasons(); return Wt ? [{ definition: { type: 5, reference: ce.reference, file: gt }, references: o(ce.file, Wt, Nt) || nt }] : void 0; } if (!_e.implementations) { const ce = b(gt, xe, _t); if (ce) return ce; } const Qe = Nt.getTypeChecker(), Je = Qe.getSymbolAtLocation(jl(gt) && gt.parent.name || gt); if (!Je) { if (!_e.implementations && Ts(gt)) { if (FF(gt)) { const ce = Nt.getFileIncludeReasons(), pt = (je = (V = (me = gt.getSourceFile().resolvedModules) == null ? void 0 : me.get(gt.text, hp(gt.getSourceFile(), gt))) == null ? void 0 : V.resolvedModule) == null ? void 0 : je.resolvedFileName, Wt = pt ? Nt.getSourceFile(pt) : void 0; if (Wt) return [{ definition: { type: 4, node: gt }, references: o(Wt, ce, Nt) || nt }]; } return xt(gt, xe, Qe, _t); } return; } if (Je.escapedName === "export=") return y(Nt, Je.parent, !1, xe, re); const Ut = c(Je, Nt, xe, _t, _e, re); if (Ut && !(Je.flags & 33554432)) return Ut; const on = s(gt, Je, Qe), Sn = on && c(on, Nt, xe, _t, _e, re), br = A(Je, gt, xe, re, Qe, _t, _e); return f(Nt, Ut, br, Sn); } e.getReferencedSymbolsForNode = t; function r(Ie, gt) { return gt.use === 1 ? Ie = u$(Ie) : gt.use === 2 && (Ie = xF(Ie)), Ie; } e.getAdjustedNode = r; function i(Ie, gt, Nt, xe = new Set(Nt.map((_t) => _t.fileName))) { var _t, _e; const re = (_t = gt.getSourceFile(Ie)) == null ? void 0 : _t.symbol; if (re) return ((_e = y(gt, re, !1, Nt, xe)[0]) == null ? void 0 : _e.references) || nt; const me = gt.getFileIncludeReasons(), V = gt.getSourceFile(Ie); return V && me && o(V, me, gt) || nt; } e.getReferencesForFileName = i; function o(Ie, gt, Nt) { let xe; const _t = gt.get(Ie.path) || nt; for (const _e of _t) if (Z0(_e)) { const re = Nt.getSourceFileByPath(_e.file), me = Xk(Nt.getSourceFileByPath, _e); DC(me) && (xe = Fn(xe, { kind: 0, fileName: re.fileName, textSpan: Vv(me) })); } return xe; } function s(Ie, gt, Nt) { if (Ie.parent && AO(Ie.parent)) { const xe = Nt.getAliasedSymbol(gt), _t = Nt.getMergedSymbol(xe); if (xe !== _t) return _t; } } function c(Ie, gt, Nt, xe, _t, _e) { const re = Ie.flags & 1536 && Ie.declarations && un(Ie.declarations, ji); if (!re) return; const me = Ie.exports.get("export="), V = y(gt, Ie, !!me, Nt, _e); if (!me || !_e.has(re.fileName)) return V; const je = gt.getTypeChecker(); return Ie = nf(me, je), f(gt, V, A(Ie, void 0, Nt, _e, je, xe, _t)); } function f(Ie, ...gt) { let Nt; for (const xe of gt) if (!(!xe || !xe.length)) { if (!Nt) { Nt = xe; continue; } for (const _t of xe) { if (!_t.definition || _t.definition.type !== 0) { Nt.push(_t); continue; } const _e = _t.definition.symbol, re = $i(Nt, (V) => !!V.definition && V.definition.type === 0 && V.definition.symbol === _e); if (re === -1) { Nt.push(_t); continue; } const me = Nt[re]; Nt[re] = { definition: me.definition, references: me.references.concat(_t.references).sort((V, je) => { const Qe = d(Ie, V), Je = d(Ie, je); if (Qe !== Je) return js(Qe, Je); const Ut = xte(V), on = xte(je); return Ut.start !== on.start ? js(Ut.start, on.start) : js(Ut.length, on.length); }) }; } } return Nt; } function d(Ie, gt) { const Nt = gt.kind === 0 ? Ie.getSourceFile(gt.fileName) : gt.node.getSourceFile(); return Ie.getSourceFiles().indexOf(Nt); } function y(Ie, gt, Nt, xe, _t) { D.assert(!!gt.valueDeclaration); const _e = _a(xSe(Ie, xe, gt), (me) => { if (me.kind === "import") { const V = me.literal.parent; if (X0(V)) { const je = ro(V.parent, dg); if (Nt && !je.qualifier) return; } return Ah(me.literal); } else return { kind: 0, fileName: me.referencingFile.fileName, textSpan: Vv(me.ref) }; }); if (gt.declarations) for (const me of gt.declarations) switch (me.kind) { case 308: break; case 264: _t.has(me.getSourceFile().fileName) && _e.push(Ah(me.name)); break; default: D.assert(!!(gt.flags & 33554432), "Expected a module symbol to be declared by a SourceFile or ModuleDeclaration."); } const re = gt.exports.get("export="); if (re != null && re.declarations) for (const me of re.declarations) { const V = me.getSourceFile(); if (_t.has(V.fileName)) { const je = vr(me) && Pr(me.left) ? me.left.expression : Pl(me) ? D.checkDefined(ys(me, 93, V)) : La(me) || me; _e.push(Ah(je)); } } return _e.length ? [{ definition: { type: 0, symbol: gt }, references: _e }] : nt; } function m(Ie) { return Ie.kind === 146 && vx(Ie.parent) && Ie.parent.operator === 146; } function b(Ie, gt, Nt) { if (rw(Ie.kind)) return Ie.kind === 114 && Ex(Ie.parent) || Ie.kind === 146 && !m(Ie) ? void 0 : Ge(gt, Ie.kind, Nt, Ie.kind === 146 ? m : void 0); if (IA(Ie.parent) && Ie.parent.name === Ie) return $e(gt, Nt); if (mx(Ie) && Cl(Ie.parent)) return [{ definition: { type: 2, node: Ie }, references: [Ah(Ie)] }]; if (B8(Ie)) { const xe = yF(Ie.parent, Ie.text); return xe && Te(xe.parent, xe); } else if (t$(Ie)) return Te(Ie.parent, Ie); if (FC(Ie)) return Rr(Ie, gt, Nt); if (Ie.kind === 106) return Ji(Ie); } function A(Ie, gt, Nt, xe, _t, _e, re) { const me = gt && O(Ie, gt, _t, !Ur(re)) || Ie, V = gt ? Di(gt, me) : 7, je = [], Qe = new U(Nt, xe, gt ? I(gt) : 0, _t, _e, V, re, je), Je = !Ur(re) || !me.declarations ? void 0 : un(me.declarations, od); if (Je) Ke(Je.name, me, Je, Qe.createSearch(gt, Ie, void 0), Qe, !0, !0); else if (gt && gt.kind === 88 && me.escapedName === "default" && me.parent) bt(gt, me, Qe), j(gt, me, { exportingModuleSymbol: me.parent, exportKind: 1 }, Qe); else { const Ut = Qe.createSearch(gt, me, void 0, { allSearchSymbols: gt ? gn(me, gt, _t, re.use === 2, !!re.providePrefixAndSuffixTextForRename, !!re.implementations) : [me] }); C(me, Qe, Ut); } return je; } function C(Ie, gt, Nt) { const xe = ne(Ie); if (xe) We(xe, xe.getSourceFile(), Nt, gt, !(ji(xe) && !Ii(gt.sourceFiles, xe))); else for (const _t of gt.sourceFiles) gt.cancellationToken.throwIfCancellationRequested(), P(_t, Nt, gt); } function I(Ie) { switch (Ie.kind) { case 173: case 135: return 1; case 79: if (li(Ie.parent)) return D.assert(Ie.parent.name === Ie), 2; default: return 0; } } function O(Ie, gt, Nt, xe) { const { parent: _t } = gt; return od(_t) && xe ? He(gt, Ie, _t, Nt) : En(Ie.declarations, (_e) => { if (!_e.parent) { if (Ie.flags & 33554432) return; D.fail(`Unexpected symbol at ${D.formatSyntaxKind(gt.kind)}: ${D.formatSymbol(Ie)}`); } return rf(_e.parent) && gx(_e.parent.parent) ? Nt.getPropertyOfType(Nt.getTypeFromTypeNode(_e.parent.parent), Ie.name) : void 0; }); } let k; ((Ie) => { Ie[Ie.None = 0] = "None", Ie[Ie.Constructor = 1] = "Constructor", Ie[Ie.Class = 2] = "Class"; })(k || (k = {})); function B(Ie) { if (!(Ie.flags & 33555968)) return; const gt = Ie.declarations && un(Ie.declarations, (Nt) => !ji(Nt) && !Hl(Nt)); return gt && gt.symbol; } class U { constructor(gt, Nt, xe, _t, _e, re, me, V) { this.sourceFiles = gt, this.sourceFilesSet = Nt, this.specialSearchKind = xe, this.checker = _t, this.cancellationToken = _e, this.searchMeaning = re, this.options = me, this.result = V, this.inheritsFromCache = /* @__PURE__ */ new Map(), this.markSeenContainingTypeReference = BC(), this.markSeenReExportRHS = BC(), this.symbolIdToReferences = [], this.sourceFileToSeenSymbols = []; } includesSourceFile(gt) { return this.sourceFilesSet.has(gt.fileName); } getImportSearches(gt, Nt) { return this.importTracker || (this.importTracker = yte(this.sourceFiles, this.sourceFilesSet, this.checker, this.cancellationToken)), this.importTracker(gt, Nt, this.options.use === 2); } createSearch(gt, Nt, xe, _t = {}) { const { text: _e = M_(Nl(qA(Nt) || B(Nt) || Nt)), allSearchSymbols: re = [Nt] } = _t, me = al(_e), V = this.options.implementations && gt ? xr(gt, Nt, this.checker) : void 0; return { symbol: Nt, comingFrom: xe, text: _e, escapedText: me, parents: V, allSearchSymbols: re, includes: (je) => Ii(re, je) }; } referenceAdder(gt) { const Nt = go(gt); let xe = this.symbolIdToReferences[Nt]; return xe || (xe = this.symbolIdToReferences[Nt] = [], this.result.push({ definition: { type: 0, symbol: gt }, references: xe })), (_t, _e) => xe.push(Ah(_t, _e)); } addStringOrCommentReference(gt, Nt) { this.result.push({ definition: void 0, references: [{ kind: 0, fileName: gt, textSpan: Nt }] }); } markSearchedSymbols(gt, Nt) { const xe = ds(gt), _t = this.sourceFileToSeenSymbols[xe] || (this.sourceFileToSeenSymbols[xe] = /* @__PURE__ */ new Set()); let _e = !1; for (const re of Nt) _e = Yb(_t, go(re)) || _e; return _e; } } function j(Ie, gt, Nt, xe) { const { importSearches: _t, singleReferences: _e, indirectUsers: re } = xe.getImportSearches(gt, Nt); if (_e.length) { const me = xe.referenceAdder(gt); for (const V of _e) X(V, xe) && me(V); } for (const [me, V] of _t) Fe(me.getSourceFile(), xe.createSearch(me, V, 1), xe); if (re.length) { let me; switch (Nt.exportKind) { case 0: me = xe.createSearch(Ie, gt, 1); break; case 1: me = xe.options.use === 2 ? void 0 : xe.createSearch(Ie, gt, 1, { text: "default" }); break; } if (me) for (const V of re) P(V, me, xe); } } function te(Ie, gt, Nt, xe, _t, _e, re, me) { const V = yte(Ie, new Set(Ie.map((Ut) => Ut.fileName)), gt, Nt), { importSearches: je, indirectUsers: Qe, singleReferences: Je } = V(xe, { exportKind: re ? 1 : 0, exportingModuleSymbol: _t }, !1); for (const [Ut] of je) me(Ut); for (const Ut of Je) Ve(Ut) && dg(Ut.parent) && me(Ut); for (const Ut of Qe) for (const on of pe(Ut, re ? "default" : _e)) { const Sn = gt.getSymbolAtLocation(on), br = kt(Sn == null ? void 0 : Sn.declarations, (ce) => !!ri(ce, Pl)); Ve(on) && !VS(on.parent) && (Sn === xe || br) && me(on); } } e.eachExportReference = te; function X(Ie, gt) { return Re(Ie, gt) ? gt.options.use !== 2 ? !0 : Ve(Ie) ? !(VS(Ie.parent) && Ie.escapedText === "default") : !1 : !1; } function Y(Ie, gt) { if (Ie.declarations) for (const Nt of Ie.declarations) { const xe = Nt.getSourceFile(); Fe(xe, gt.createSearch(Nt, Ie, 0), gt, gt.includesSourceFile(xe)); } } function P(Ie, gt, Nt) { NQ(Ie).get(gt.escapedText) !== void 0 && Fe(Ie, gt, Nt); } function ue(Ie, gt) { return Cy(Ie.parent.parent) ? gt.getPropertySymbolOfDestructuringAssignment(Ie) : void 0; } function ne(Ie) { const { declarations: gt, flags: Nt, parent: xe, valueDeclaration: _t } = Ie; if (_t && (_t.kind === 215 || _t.kind === 228)) return _t; if (!gt) return; if (Nt & 8196) { const me = un(gt, (V) => Nd(V, 8) || zu(V)); return me ? j0(me, 260) : void 0; } if (gt.some(Y8)) return; const _e = xe && !(Ie.flags & 262144); if (_e && !(J8(xe) && !xe.globalExports)) return; let re; for (const me of gt) { const V = GT(me); if (re && re !== V || !V || V.kind === 308 && !ef(V)) return; if (re = V, Ms(re)) { let je; for (; je = tz(re); ) re = je; } } return _e ? re.getSourceFile() : re; } function ge(Ie, gt, Nt, xe = Nt) { return ie(Ie, gt, Nt, () => !0, xe) || !1; } e.isSymbolReferencedInFile = ge; function ie(Ie, gt, Nt, xe, _t = Nt) { const _e = Yd(Ie.parent, Ie.parent.parent) ? ss(gt.getSymbolsOfParameterPropertyDeclaration(Ie.parent, Ie.text)) : gt.getSymbolAtLocation(Ie); if (_e) for (const re of pe(Nt, _e.name, _t)) { if (!Ve(re) || re === Ie || re.escapedText !== Ie.escapedText) continue; const me = gt.getSymbolAtLocation(re); if (me === _e || gt.getShorthandAssignmentValueSymbol(re.parent) === _e || od(re.parent) && He(re, me, re.parent, gt) === _e) { const V = xe(re); if (V) return V; } } } e.eachSymbolReferenceInFile = ie; function H(Ie, gt) { return yn(pe(gt, Ie), (_t) => !!bN(_t)).reduce((_t, _e) => { const re = xe(_e); return !kt(_t.declarationNames) || re === _t.depth ? (_t.declarationNames.push(_e), _t.depth = re) : re < _t.depth && (_t.declarationNames = [_e], _t.depth = re), _t; }, { depth: 1 / 0, declarationNames: [] }).declarationNames; function xe(_t) { let _e = 0; for (; _t; ) _t = GT(_t), _e++; return _e; } } e.getTopMostDeclarationNamesInFile = H; function le(Ie, gt, Nt, xe) { if (!Ie.name || !Ve(Ie.name)) return !1; const _t = D.checkDefined(Nt.getSymbolAtLocation(Ie.name)); for (const _e of gt) for (const re of pe(_e, _t.name)) { if (!Ve(re) || re === Ie.name || re.escapedText !== Ie.name.escapedText) continue; const me = gF(re), V = eo(me.parent) && me.parent.expression === me ? me.parent : void 0, je = Nt.getSymbolAtLocation(re); if (je && Nt.getRootSymbols(je).some((Qe) => Qe === _t) && xe(re, V)) return !0; } return !1; } e.someSignatureUsage = le; function pe(Ie, gt, Nt = Ie) { return ye(Ie, gt, Nt).map((xe) => Af(Ie, xe)); } function ye(Ie, gt, Nt = Ie) { const xe = []; if (!gt || !gt.length) return xe; const _t = Ie.text, _e = _t.length, re = gt.length; let me = _t.indexOf(gt, Nt.pos); for (; me >= 0 && !(me > Nt.end); ) { const V = me + re; (me === 0 || !P0(_t.charCodeAt(me - 1), 99)) && (V === _e || !P0(_t.charCodeAt(V), 99)) && xe.push(me), me = _t.indexOf(gt, me + re + 1); } return xe; } function Te(Ie, gt) { const Nt = Ie.getSourceFile(), xe = gt.text, _t = _a(pe(Nt, xe, Ie), (_e) => _e === gt || B8(_e) && yF(_e, xe) === gt ? Ah(_e) : void 0); return [{ definition: { type: 1, node: gt }, references: _t }]; } function ee(Ie, gt) { switch (Ie.kind) { case 80: if ($0(Ie.parent)) return !0; case 79: return Ie.text.length === gt.length; case 14: case 10: { const Nt = Ie; return (vF(Nt) || a$(Ie) || lye(Ie) || eo(Ie.parent) && KS(Ie.parent) && Ie.parent.arguments[1] === Ie) && Nt.text.length === gt.length; } case 8: return vF(Ie) && Ie.text.length === gt.length; case 88: return gt.length === 7; default: return !1; } } function $e(Ie, gt) { const Nt = Mo(Ie, (xe) => (gt.throwIfCancellationRequested(), _a(pe(xe, "meta", xe), (_t) => { const _e = _t.parent; if (IA(_e)) return Ah(_e); }))); return Nt.length ? [{ definition: { type: 2, node: Nt[0].node }, references: Nt }] : void 0; } function Ge(Ie, gt, Nt, xe) { const _t = Mo(Ie, (_e) => (Nt.throwIfCancellationRequested(), _a(pe(_e, mo(gt), _e), (re) => { if (re.kind === gt && (!xe || xe(re))) return Ah(re); }))); return _t.length ? [{ definition: { type: 2, node: _t[0].node }, references: _t }] : void 0; } function Fe(Ie, gt, Nt, xe = !0) { return Nt.cancellationToken.throwIfCancellationRequested(), We(Ie, Ie, gt, Nt, xe); } function We(Ie, gt, Nt, xe, _t) { if (xe.markSearchedSymbols(gt, Nt.allSearchSymbols)) for (const _e of ye(gt, Nt.text, Ie)) Pe(gt, _e, Nt, xe, _t); } function Re(Ie, gt) { return !!(BT(Ie) & gt.searchMeaning); } function Pe(Ie, gt, Nt, xe, _t) { const _e = Af(Ie, gt); if (!ee(_e, Nt.text)) { !xe.options.implementations && (xe.options.findInStrings && VT(Ie, gt) || xe.options.findInComments && Lye(Ie, gt)) && xe.addStringOrCommentReference(Ie.fileName, Cc(gt, Nt.text.length)); return; } if (!Re(_e, xe)) return; let re = xe.checker.getSymbolAtLocation(_e); if (!re) return; const me = _e.parent; if (Td(me) && me.propertyName === _e) return; if (od(me)) { D.assert(_e.kind === 79), Ke(_e, re, me, Nt, xe, _t); return; } const V = lr(Nt, re, _e, xe); if (!V) { At(re, Nt, xe); return; } switch (xe.specialSearchKind) { case 0: _t && bt(_e, V, xe); break; case 1: Vt(_e, Ie, Nt, xe); break; case 2: et(_e, Nt, xe); break; default: D.assertNever(xe.specialSearchKind); } dr(_e) && us(_e.parent) && g1(_e.parent.parent.parent) && (re = _e.parent.symbol, !re) || ot(_e, re, Nt, xe); } function Ke(Ie, gt, Nt, xe, _t, _e, re) { D.assert(!re || !!_t.options.providePrefixAndSuffixTextForRename, "If alwaysGetReferences is true, then prefix/suffix text must be enabled"); const { parent: me, propertyName: V, name: je } = Nt, Qe = me.parent, Je = He(Ie, gt, Nt, _t.checker); if (!re && !xe.includes(Je)) return; if (V ? Ie === V ? (Qe.moduleSpecifier || Ut(), _e && _t.options.use !== 2 && _t.markSeenReExportRHS(je) && bt(je, D.checkDefined(Nt.symbol), _t)) : _t.markSeenReExportRHS(Ie) && Ut() : _t.options.use === 2 && je.escapedText === "default" || Ut(), !Ur(_t.options) || re) { const Sn = Ie.escapedText === "default" || Nt.name.escapedText === "default" ? 1 : 0, br = D.checkDefined(Nt.symbol), ce = vte(br, Sn, _t.checker); ce && j(Ie, br, ce, _t); } if (xe.comingFrom !== 1 && Qe.moduleSpecifier && !V && !Ur(_t.options)) { const on = _t.checker.getExportSpecifierLocalTargetSymbol(Nt); on && Y(on, _t); } function Ut() { _e && bt(Ie, Je, _t); } } function He(Ie, gt, Nt, xe) { return Me(Ie, Nt) && xe.getExportSpecifierLocalTargetSymbol(Nt) || gt; } function Me(Ie, gt) { const { parent: Nt, propertyName: xe, name: _t } = gt; return D.assert(xe === Ie || _t === Ie), xe ? xe === Ie : !Nt.parent.moduleSpecifier; } function ot(Ie, gt, Nt, xe) { const _t = LSe(Ie, gt, xe.checker, Nt.comingFrom === 1); if (!_t) return; const { symbol: _e } = _t; _t.kind === 0 ? Ur(xe.options) || Y(_e, xe) : j(Ie, _e, _t.exportInfo, xe); } function At({ flags: Ie, valueDeclaration: gt }, Nt, xe) { const _t = xe.checker.getShorthandAssignmentValueSymbol(gt), _e = gt && La(gt); !(Ie & 33554432) && _e && Nt.includes(_t) && bt(_e, _t, xe); } function bt(Ie, gt, Nt) { const { kind: xe, symbol: _t } = "kind" in gt ? gt : { kind: void 0, symbol: gt }; if (Nt.options.use === 2 && Ie.kind === 88) return; const _e = Nt.referenceAdder(_t); Nt.options.implementations ? In(Ie, _e, Nt) : _e(Ie, xe); } function Vt(Ie, gt, Nt, xe) { Qk(Ie) && bt(Ie, Nt.symbol, xe); const _t = () => xe.referenceAdder(Nt.symbol); if (li(Ie.parent)) D.assert(Ie.kind === 88 || Ie.parent.name === Ie), it(Nt.symbol, gt, _t()); else { const _e = Pn(Ie); _e && (Xt(_e, _t()), Hn(_e, xe)); } } function et(Ie, gt, Nt) { bt(Ie, gt.symbol, Nt); const xe = Ie.parent; if (Nt.options.use === 2 || !li(xe)) return; D.assert(xe.name === Ie); const _t = Nt.referenceAdder(gt.symbol); for (const _e of xe.members) yA(_e) && za(_e) && _e.body && _e.body.forEachChild(function re(me) { me.kind === 108 ? _t(me) : !qa(me) && !li(me) && me.forEachChild(re); }); } function it(Ie, gt, Nt) { const xe = nn(Ie); if (xe && xe.declarations) for (const _t of xe.declarations) { const _e = ys(_t, 135, gt); D.assert(_t.kind === 173 && !!_e), Nt(_e); } Ie.exports && Ie.exports.forEach((_t) => { const _e = _t.valueDeclaration; if (_e && _e.kind === 171) { const re = _e.body; re && en(re, 108, (me) => { Qk(me) && Nt(me); }); } }); } function nn(Ie) { return Ie.members && Ie.members.get("__constructor"); } function Xt(Ie, gt) { const Nt = nn(Ie.symbol); if (Nt && Nt.declarations) for (const xe of Nt.declarations) { D.assert(xe.kind === 173); const _t = xe.body; _t && en(_t, 106, (_e) => { ZY(_e) && gt(_e); }); } } function On(Ie) { return !!nn(Ie.symbol); } function Hn(Ie, gt) { if (On(Ie)) return; const Nt = Ie.symbol, xe = gt.createSearch(void 0, Nt, void 0); C(Nt, gt, xe); } function In(Ie, gt, Nt) { if (sg(Ie) && _i(Ie.parent)) { gt(Ie); return; } if (Ie.kind !== 79) return; Ie.parent.kind === 300 && Rn(Ie, Nt.checker, gt); const xe = Yt(Ie); if (xe) { gt(xe); return; } const _t = nr(Ie, (me) => !Ed(me.parent) && !Pi(me.parent) && !QE(me.parent)), _e = _t.parent; if (SM(_e) && _e.type === _t && Nt.markSeenContainingTypeReference(_e)) if (xv(_e)) re(_e.initializer); else if (qa(_e) && _e.body) { const me = _e.body; me.kind === 238 ? iT(me, (V) => { V.expression && re(V.expression); }) : re(me); } else ZE(_e) && re(_e.expression); function re(me) { fr(me) && gt(me); } } function Yt(Ie) { return Ve(Ie) || Pr(Ie) ? Yt(Ie.parent) : vy(Ie) ? ri(Ie.parent.parent, li) : void 0; } function fr(Ie) { switch (Ie.kind) { case 214: return fr(Ie.expression); case 216: case 215: case 207: case 228: case 206: return !0; default: return !1; } } function xi(Ie, gt, Nt, xe) { if (Ie === gt) return !0; const _t = go(Ie) + "," + go(gt), _e = Nt.get(_t); if (_e !== void 0) return _e; Nt.set(_t, !1); const re = !!Ie.declarations && Ie.declarations.some((me) => NI(me).some((V) => { const je = xe.getTypeAtLocation(V); return !!je && !!je.symbol && xi(je.symbol, gt, Nt, xe); })); return Nt.set(_t, re), re; } function Ji(Ie) { let gt = QR(Ie, !1); if (!gt) return; let Nt = 32; switch (gt.kind) { case 169: case 168: case 171: case 170: case 173: case 174: case 175: Nt &= Iv(gt), gt = gt.parent; break; default: return; } const xe = gt.getSourceFile(), _t = _a(pe(xe, "super", gt), (_e) => { if (_e.kind !== 106) return; const re = QR(_e, !1); return re && za(re) === !!Nt && re.parent.symbol === gt.symbol ? Ah(_e) : void 0; }); return [{ definition: { type: 0, symbol: gt.symbol }, references: _t }]; } function Ki(Ie) { return Ie.kind === 79 && Ie.parent.kind === 166 && Ie.parent.name === Ie; } function Rr(Ie, gt, Nt) { let xe = yd(Ie, !1, !1), _t = 32; switch (xe.kind) { case 171: case 170: if (N_(xe)) { _t &= Iv(xe), xe = xe.parent; break; } case 169: case 168: case 173: case 174: case 175: _t &= Iv(xe), xe = xe.parent; break; case 308: if (Yl(xe) || Ki(Ie)) return; case 259: case 215: break; default: return; } const _e = Mo(xe.kind === 308 ? gt : [xe.getSourceFile()], (me) => (Nt.throwIfCancellationRequested(), pe(me, "this", ji(xe) ? me : xe).filter((V) => { if (!FC(V)) return !1; const je = yd(V, !1, !1); if (!Lm(je)) return !1; switch (xe.kind) { case 215: case 259: return xe.symbol === je.symbol; case 171: case 170: return N_(xe) && xe.symbol === je.symbol; case 228: case 260: case 207: return je.parent && Lm(je.parent) && xe.symbol === je.parent.symbol && za(je) === !!_t; case 308: return je.kind === 308 && !Yl(je) && !Ki(V); } }))).map((me) => Ah(me)); return [{ definition: { type: 3, node: En(_e, (me) => Ma(me.node.parent) ? me.node : void 0) || Ie }, references: _e }]; } function xt(Ie, gt, Nt, xe) { const _t = SF(Ie, Nt), _e = Mo(gt, (re) => (xe.throwIfCancellationRequested(), _a(pe(re, Ie.text), (me) => { if (Ts(me) && me.text === Ie.text) if (_t) { const V = SF(me, Nt); if (_t !== Nt.getStringType() && _t === V) return Ah(me, 2); } else return px(me) && !mT(me, re) ? void 0 : Ah(me, 2); }))); return [{ definition: { type: 4, node: Ie }, references: _e }]; } function gn(Ie, gt, Nt, xe, _t, _e) { const re = []; return Ht(Ie, gt, Nt, xe, !(xe && _t), (me, V, je) => { je && rr(Ie) !== rr(je) && (je = void 0), re.push(je || V || me); }, () => !_e), re; } function Ht(Ie, gt, Nt, xe, _t, _e, re) { const me = u6(gt); if (me) { const Sn = Nt.getShorthandAssignmentValueSymbol(gt.parent); if (Sn && xe) return _e(Sn, void 0, void 0, 3); const br = Nt.getContextualType(me.parent), ce = br && En(x9(me, Nt, br, !0), (K) => Ut(K, 4)); if (ce) return ce; const pt = ue(gt, Nt), Wt = pt && _e(pt, void 0, void 0, 4); if (Wt) return Wt; const rt = Sn && _e(Sn, void 0, void 0, 3); if (rt) return rt; } const V = s(gt, Ie, Nt); if (V) { const Sn = _e(V, void 0, void 0, 1); if (Sn) return Sn; } const je = Ut(Ie); if (je) return je; if (Ie.valueDeclaration && Yd(Ie.valueDeclaration, Ie.valueDeclaration.parent)) { const Sn = Nt.getSymbolsOfParameterPropertyDeclaration(ro(Ie.valueDeclaration, Ma), Ie.name); return D.assert(Sn.length === 2 && !!(Sn[0].flags & 1) && !!(Sn[1].flags & 4)), Ut(Ie.flags & 1 ? Sn[1] : Sn[0]); } const Qe = Tl(Ie, 278); if (!xe || Qe && !Qe.propertyName) { const Sn = Qe && Nt.getExportSpecifierLocalTargetSymbol(Qe); if (Sn) { const br = _e(Sn, void 0, void 0, 1); if (br) return br; } } if (!xe) { let Sn; return _t ? Sn = Y8(gt.parent) ? BF(Nt, gt.parent) : void 0 : Sn = on(Ie, Nt), Sn && Ut(Sn, 4); } if (D.assert(xe), _t) { const Sn = on(Ie, Nt); return Sn && Ut(Sn, 4); } function Ut(Sn, br) { return En(Nt.getRootSymbols(Sn), (ce) => _e(Sn, ce, void 0, br) || (ce.parent && ce.parent.flags & 96 && re(ce) ? ln(ce.parent, ce.name, Nt, (pt) => _e(Sn, ce, pt, br)) : void 0)); } function on(Sn, br) { const ce = Tl(Sn, 205); if (ce && Y8(ce)) return BF(br, ce); } } function ln(Ie, gt, Nt, xe) { const _t = /* @__PURE__ */ new Map(); return _e(Ie); function _e(re) { if (!(!(re.flags & 96) || !_p(_t, go(re)))) return En(re.declarations, (me) => En(NI(me), (V) => { const je = Nt.getTypeAtLocation(V), Qe = je && je.symbol && Nt.getPropertyOfType(je, gt); return je && Qe && (En(Nt.getRootSymbols(Qe), xe) || _e(je.symbol)); })); } } function rr(Ie) { return Ie.valueDeclaration ? !!(wu(Ie.valueDeclaration) & 32) : !1; } function lr(Ie, gt, Nt, xe) { const { checker: _t } = xe; return Ht(gt, Nt, _t, !1, xe.options.use !== 2 || !!xe.options.providePrefixAndSuffixTextForRename, (_e, re, me, V) => (me && rr(gt) !== rr(me) && (me = void 0), Ie.includes(me || re || _e) ? { symbol: re && !(Al(_e) & 6) ? re : _e, kind: V } : void 0), (_e) => !(Ie.parents && !Ie.parents.some((re) => xi(_e.parent, re, xe.inheritsFromCache, _t)))); } function Di(Ie, gt) { let Nt = BT(Ie); const { declarations: xe } = gt; if (xe) { let _t; do { _t = Nt; for (const _e of xe) { const re = M8(_e); re & Nt && (Nt |= re); } } while (Nt !== _t); } return Nt; } e.getIntersectingMeaningFromDeclarations = Di; function _i(Ie) { return Ie.flags & 16777216 ? !(Yu(Ie) || Xp(Ie)) : kA(Ie) ? xv(Ie) : Ys(Ie) ? !!Ie.body : li(Ie) || VR(Ie); } function Rn(Ie, gt, Nt) { const xe = gt.getSymbolAtLocation(Ie), _t = gt.getShorthandAssignmentValueSymbol(xe.valueDeclaration); if (_t) for (const _e of _t.getDeclarations()) M8(_e) & 1 && Nt(_e); } e.getReferenceEntriesForShorthandPropertyAssignment = Rn; function en(Ie, gt, Nt) { Oa(Ie, (xe) => { xe.kind === gt && Nt(xe), en(xe, gt, Nt); }); } function Pn(Ie) { return Iz(gF(Ie).parent); } function xr(Ie, gt, Nt) { const xe = MC(Ie) ? Ie.parent : void 0, _t = xe && Nt.getTypeAtLocation(xe.expression), _e = _a(_t && (_t.isUnionOrIntersection() ? _t.types : _t.symbol === gt.parent ? void 0 : [_t]), (re) => re.symbol && re.symbol.flags & 96 ? re.symbol : void 0); return _e.length === 0 ? void 0 : _e; } function Ur(Ie) { return Ie.use === 2 && Ie.providePrefixAndSuffixTextForRename; } })(XT || (XT = {})); } }), ll = {}; fe(ll, { Core: () => XT, DefinitionKind: () => Ate, EntryKind: () => Cte, ExportKind: () => Ete, FindReferencesUse: () => Lte, ImportExport: () => Tte, createImportTracker: () => yte, findModuleReferences: () => xSe, findReferenceOrRenameEntries: () => hHe, findReferencedSymbols: () => _He, getContextNode: () => W1, getExportInfo: () => vte, getImplementationsAtPosition: () => mHe, getImportOrExportSymbol: () => LSe, getReferenceEntriesForNode: () => wSe, getTextSpanOfEntry: () => xte, isContextWithStartAndEndNode: () => ISe, isDeclarationOfSymbol: () => PSe, nodeEntry: () => Ah, toContextSpan: () => Ste, toHighlightSpan: () => SHe, toReferenceEntry: () => NSe, toRenameLocation: () => yHe }); var MSe = L({ "src/services/_namespaces/ts.FindAllReferences.ts"() { dHe(), AHe(); } }); function FSe(e, t, r, i, o) { var s, c; const f = GSe(t, r, e), d = f && [OHe(f.reference.fileName, f.fileName, f.unverified)] || nt; if (f != null && f.file) return d; const y = Af(t, r); if (y === t) return; const { parent: m } = y, b = e.getTypeChecker(); if (y.kind === 161 || Ve(y) && I7(m) && m.tagName === y) return LHe(b, y) || nt; if (B8(y)) { const k = yF(y.parent, y.text); return k ? [kte(b, k, "label", y.text, void 0)] : void 0; } if (y.kind === 105) { const k = nr(y.parent, (B) => Cl(B) ? "quit" : Ys(B)); return k ? [w6(b, k)] : void 0; } if (y.kind === 133) { const k = nr(y, (U) => Ys(U)); return k && kt(k.modifiers, (U) => U.kind === 132) ? [w6(b, k)] : void 0; } if (y.kind === 125) { const k = nr(y, (U) => Ys(U)); return k && k.asteriskToken ? [w6(b, k)] : void 0; } if (mx(y) && Cl(y.parent)) { const k = y.parent.parent, { symbol: B, failedAliasResolution: U } = vG(k, b, o), j = yn(k.members, Cl), te = B ? b.symbolToString(B, k) : "", X = y.getSourceFile(); return rn(j, (Y) => { let { pos: P } = qp(Y); return P = zo(X.text, P), kte(b, Y, "constructor", "static {}", te, !1, U, { start: P, length: 6 }); }); } let { symbol: A, failedAliasResolution: C } = vG(y, b, o), I = y; if (i && C) { const k = Ye([y, ...(A == null ? void 0 : A.declarations) || nt], (U) => nr(U, Nce)), B = k && fN(k); B && ({ symbol: A, failedAliasResolution: C } = vG(B, b, o), I = B); } if (!A && FF(I)) { const k = (c = (s = t.resolvedModules) == null ? void 0 : s.get(I.text, hp(t, I))) == null ? void 0 : c.resolvedModule; if (k) return [{ name: I.text, fileName: k.resolvedFileName, containerName: void 0, containerKind: void 0, kind: "script", textSpan: Cc(0, 0), failedAliasResolution: C, isAmbient: sd(k.resolvedFileName), unverified: I !== y }]; } if (!A) return ha(d, DHe(y, b)); if (i && Vn(A.declarations, (k) => k.getSourceFile().fileName === t.fileName)) return; const O = MHe(b, y); if (O && !(qu(y.parent) && FHe(O))) { const k = w6(b, O, C); if (b.getRootSymbols(A).some((B) => CHe(B, O))) return [k]; { const B = YC(b, A, y, C, O) || nt; return y.kind === 106 ? [k, ...B] : [...B, k]; } } if (y.parent.kind === 300) { const k = b.getShorthandAssignmentValueSymbol(A.valueDeclaration), B = k != null && k.declarations ? k.declarations.map((U) => Tw(U, b, k, y, !1, C)) : nt; return ha(B, BSe(b, y) || nt); } if (hl(y) && us(m) && Bm(m.parent) && y === (m.propertyName || m.name)) { const k = X8(y), B = b.getTypeAtLocation(m.parent); return k === void 0 ? nt : Mo(B.isUnion() ? B.types : [B], (U) => { const j = U.getProperty(k); return j && YC(b, j, y); }); } return ha(d, BSe(b, y) || YC(b, A, y, C)); } function CHe(e, t) { var r; return e === t.symbol || e === t.symbol.parent || Ku(t.parent) || !WS(t.parent) && e === ((r = ri(t.parent, Lm)) == null ? void 0 : r.symbol); } function BSe(e, t) { const r = u6(t); if (r) { const i = r && e.getContextualType(r.parent); if (i) return Mo(x9(r, e, i, !1), (o) => YC(e, o, t)); } } function LHe(e, t) { const r = nr(t, Pc); if (!(r && r.name)) return; const i = nr(r, li); if (!i) return; const o = Wp(i); if (!o) return; const s = Us(o.expression), c = Nu(s) ? s.symbol : e.getSymbolAtLocation(s); if (!c) return; const f = Zi(AA(r.name)), d = _c(r) ? e.getPropertyOfType(e.getTypeOfSymbol(c), f) : e.getPropertyOfType(e.getDeclaredTypeOfSymbol(c), f); if (d) return YC(e, d, t); } function GSe(e, t, r) { var i, o, s, c; const f = $C(e.referencedFiles, t); if (f) { const m = r.getSourceFileFromReference(e, f); return m && { reference: f, fileName: m.fileName, file: m, unverified: !1 }; } const d = $C(e.typeReferenceDirectives, t); if (d) { const m = (i = r.getResolvedTypeReferenceDirectives().get(d.fileName, d.resolutionMode || e.impliedNodeFormat)) == null ? void 0 : i.resolvedTypeReferenceDirective, b = m && r.getSourceFile(m.resolvedFileName); return b && { reference: d, fileName: b.fileName, file: b, unverified: !1 }; } const y = $C(e.libReferenceDirectives, t); if (y) { const m = r.getLibFileFromReference(y); return m && { reference: y, fileName: m.fileName, file: m, unverified: !1 }; } if ((o = e.resolvedModules) != null && o.size()) { const m = tw(e, t); if (FF(m) && Oc(m.text) && e.resolvedModules.has(m.text, hp(e, m))) { const b = (c = (s = e.resolvedModules.get(m.text, hp(e, m))) == null ? void 0 : s.resolvedModule) == null ? void 0 : c.resolvedFileName, A = b || mv(fi(e.fileName), m.text); return { file: r.getSourceFile(A), fileName: A, reference: { pos: m.getStart(), end: m.getEnd(), fileName: m.text }, unverified: !b }; } } } function IHe(e, t, r) { const i = Af(t, r); if (i === t) return; if (IA(i.parent) && i.parent.name === i) return Ite(e.getTypeAtLocation(i.parent), e, i.parent, !1); const { symbol: o, failedAliasResolution: s } = vG(i, e, !1); if (!o) return; const c = e.getTypeOfSymbolAtLocation(o, i), f = kHe(o, c, e), d = f && Ite(f, e, i, s), y = d && d.length !== 0 ? d : Ite(c, e, i, s); return y.length ? y : !(o.flags & 111551) && o.flags & 788968 ? YC(e, nf(o, e), i, s) : void 0; } function Ite(e, t, r, i) { return Mo(e.isUnion() && !(e.flags & 32) ? e.types : [e], (o) => o.symbol && YC(t, o.symbol, r, i)); } function kHe(e, t, r) { if (t.symbol === e || e.valueDeclaration && t.symbol && Wi(e.valueDeclaration) && e.valueDeclaration.initializer === t.symbol.valueDeclaration) { const i = t.getCallSignatures(); if (i.length === 1) return r.getReturnTypeOfSignature(ss(i)); } } function wHe(e, t, r) { const i = FSe(e, t, r); if (!i || i.length === 0) return; const o = $C(t.referencedFiles, r) || $C(t.typeReferenceDirectives, r) || $C(t.libReferenceDirectives, r); if (o) return { definitions: i, textSpan: Vv(o) }; const s = Af(t, r), c = Cc(s.getStart(), s.getWidth()); return { definitions: i, textSpan: c }; } function DHe(e, t) { return _a(t.getIndexInfosAtLocation(e), (r) => r.declaration && w6(t, r.declaration)); } function vG(e, t, r) { const i = t.getSymbolAtLocation(e); let o = !1; if (i != null && i.declarations && i.flags & 2097152 && !r && RHe(e, i.declarations[0])) { const s = t.getAliasedSymbol(i); if (s.declarations) return { symbol: s }; o = !0; } return { symbol: i, failedAliasResolution: o }; } function RHe(e, t) { return e.kind !== 79 ? !1 : e.parent === t ? !0 : t.kind !== 271; } function NHe(e) { if (!DI(e)) return !1; const t = nr(e, (r) => Ku(r) ? !0 : DI(r) ? !1 : "quit"); return !!t && xl(t) === 5; } function YC(e, t, r, i, o) { const s = yn(t.declarations, (b) => b !== o), c = yn(s, (b) => !NHe(b)), f = kt(c) ? c : s; return d() || y() || rn(f, (b) => Tw(b, e, t, r, !1, i)); function d() { if (t.flags & 32 && !(t.flags & 19) && (Qk(r) || r.kind === 135)) { const b = un(s, li) || D.fail("Expected declaration to have at least one class-like declaration"); return m(b.members, !0); } } function y() { return e$(r) || o$(r) ? m(s, !1) : void 0; } function m(b, A) { if (!b) return; const C = b.filter(A ? jl : qa), I = C.filter((O) => !!O.body); return C.length ? I.length !== 0 ? I.map((O) => Tw(O, e, t, r)) : [Tw(Ho(C), e, t, r, !1, i)] : void 0; } } function Tw(e, t, r, i, o, s) { const c = t.symbolToString(r), f = ky.getSymbolKind(t, r, i), d = r.parent ? t.symbolToString(r.parent, i) : ""; return kte(t, e, f, c, d, o, s); } function kte(e, t, r, i, o, s, c, f) { const d = t.getSourceFile(); if (!f) { const y = La(t) || t; f = $u(y, d); } return { fileName: d.fileName, textSpan: f, kind: r, name: i, containerKind: void 0, containerName: o, ...ll.toContextSpan(f, d, ll.getContextNode(t)), isLocal: !wte(e, t), isAmbient: !!(t.flags & 16777216), unverified: s, failedAliasResolution: c }; } function wte(e, t) { if (e.isDeclarationVisible(t)) return !0; if (!t.parent) return !1; if (xv(t.parent) && t.parent.initializer === t) return wte(e, t.parent); switch (t.kind) { case 169: case 174: case 175: case 171: if (Nd(t, 8)) return !1; case 173: case 299: case 300: case 207: case 228: case 216: case 215: return wte(e, t.parent); default: return !1; } } function w6(e, t, r) { return Tw(t, e, t.symbol, t, !1, r); } function $C(e, t) { return un(e, (r) => sM(r, t)); } function OHe(e, t, r) { return { fileName: t, textSpan: fc(0, 0), kind: "script", name: e, containerName: void 0, containerKind: void 0, unverified: r }; } function PHe(e) { const t = nr(e, (i) => !MC(i)), r = t == null ? void 0 : t.parent; return r && WS(r) && qM(r) === t ? r : void 0; } function MHe(e, t) { const r = PHe(t), i = r && e.getResolvedSignature(r); return ri(i && i.declaration, (o) => qa(o) && !Eh(o)); } function FHe(e) { switch (e.kind) { case 173: case 182: case 177: return !0; default: return !1; } } var BHe = L({ "src/services/goToDefinition.ts"() { Kr(); } }), Sw = {}; fe(Sw, { createDefinitionInfo: () => Tw, findReferenceInPosition: () => $C, getDefinitionAndBoundSpan: () => wHe, getDefinitionAtPosition: () => FSe, getReferenceAtPosition: () => GSe, getTypeDefinitionAtPosition: () => IHe }); var GHe = L({ "src/services/_namespaces/ts.GoToDefinition.ts"() { BHe(); } }); function UHe(e) { return e.includeInlayParameterNameHints === "literals" || e.includeInlayParameterNameHints === "all"; } function VHe(e) { return e.includeInlayParameterNameHints === "literals"; } function jHe(e) { const { file: t, program: r, span: i, cancellationToken: o, preferences: s } = e, c = t.text, f = r.getCompilerOptions(), d = r.getTypeChecker(), y = []; return m(t), y; function m(pe) { if (!(!pe || pe.getFullWidth() === 0)) { switch (pe.kind) { case 264: case 260: case 261: case 259: case 228: case 215: case 171: case 216: o.throwIfCancellationRequested(); } if (lM(i, pe.pos, pe.getFullWidth()) && !(Pi(pe) && !vy(pe))) return s.includeInlayVariableTypeHints && Wi(pe) || s.includeInlayPropertyDeclarationTypeHints && Za(pe) ? B(pe) : s.includeInlayEnumMemberValueHints && D1(pe) ? O(pe) : UHe(s) && (eo(pe) || I1(pe)) ? U(pe) : (s.includeInlayFunctionParameterTypeHints && Ys(pe) && D3(pe) && ue(pe), s.includeInlayFunctionLikeReturnTypeHints && b(pe) && Y(pe)), Oa(pe, m); } } function b(pe) { return zs(pe) || Ms(pe) || pc(pe) || nc(pe) || U_(pe); } function A(pe, ye, Te) { y.push({ text: `${Te ? "..." : ""}${ge(pe, bG)}:`, position: ye, kind: "Parameter", whitespaceAfter: !0 }); } function C(pe, ye) { y.push({ text: `: ${ge(pe, bG)}`, position: ye, kind: "Type", whitespaceBefore: !0 }); } function I(pe, ye) { y.push({ text: `= ${ge(pe, bG)}`, position: ye, kind: "Enum", whitespaceBefore: !0 }); } function O(pe) { if (pe.initializer) return; const ye = d.getConstantValue(pe); ye !== void 0 && I(ye.toString(), pe.end); } function k(pe) { return pe.symbol && pe.symbol.flags & 1536; } function B(pe) { if (!pe.initializer || Ja(pe.name) || Wi(pe) && !le(pe) || Jc(pe)) return; const Te = d.getTypeAtLocation(pe); if (k(Te)) return; const ee = ie(Te); if (ee) { if (s.includeInlayVariableTypeHintsWhenTypeMatchesName === !1 && DS(pe.name.getText(), ee)) return; C(ee, pe.name.end); } } function U(pe) { const ye = pe.arguments; if (!ye || !ye.length) return; const Te = [], ee = d.getResolvedSignatureForSignatureHelp(pe, Te); if (!(!ee || !Te.length)) for (let $e = 0; $e < ye.length; ++$e) { const Ge = ye[$e], Fe = Us(Ge); if (VHe(s) && !X(Fe)) continue; const We = d.getParameterIdentifierNameAtPosition(ee, $e); if (We) { const [Re, Pe] = We; if (!(s.includeInlayParameterNameHintsWhenArgumentMatchesName || !j(Fe, Re)) && !Pe) continue; const He = Zi(Re); if (te(Fe, He)) continue; A(He, Ge.getStart(), Pe); } } } function j(pe, ye) { return Ve(pe) ? pe.text === ye : Pr(pe) ? pe.name.text === ye : !1; } function te(pe, ye) { if (!w_(ye, f.target, UN(t.scriptKind))) return !1; const Te = ch(c, pe.pos); if (!(Te != null && Te.length)) return !1; const ee = USe(ye); return kt(Te, ($e) => ee.test(c.substring($e.pos, $e.end))); } function X(pe) { switch (pe.kind) { case 221: { const ye = pe.operand; return $E(ye) || Ve(ye) && sk(ye.escapedText); } case 110: case 95: case 104: case 14: case 225: return !0; case 79: { const ye = pe.escapedText; return H(ye) || sk(ye); } } return $E(pe); } function Y(pe) { if (zs(pe) && !ys(pe, 20, t) || fp(pe) || !pe.body) return; const Te = d.getSignatureFromDeclaration(pe); if (!Te) return; const ee = d.getReturnTypeOfSignature(Te); if (k(ee)) return; const $e = ie(ee); $e && C($e, P(pe)); } function P(pe) { const ye = ys(pe, 21, t); return ye ? ye.end : pe.parameters.end; } function ue(pe) { const ye = d.getSignatureFromDeclaration(pe); if (ye) for (let Te = 0; Te < pe.parameters.length && Te < ye.parameters.length; ++Te) { const ee = pe.parameters[Te]; if (!le(ee) || Jc(ee)) continue; const Ge = ne(ye.parameters[Te]); Ge && C(Ge, ee.questionToken ? ee.questionToken.end : ee.name.end); } } function ne(pe) { const ye = pe.valueDeclaration; if (!ye || !Ma(ye)) return; const Te = d.getTypeOfSymbolAtLocation(pe, ye); if (!k(Te)) return ie(Te); } function ge(pe, ye) { return pe.length > ye ? pe.substr(0, ye - 3) + "..." : pe; } function ie(pe) { const Te = U1(); return TI((ee) => { const $e = d.typeToTypeNode(pe, void 0, 71286784); D.assertIsDefined($e, "should always get typenode"), Te.writeNode(4, $e, t, ee); }); } function H(pe) { return pe === "undefined"; } function le(pe) { if ((dT(pe) || Wi(pe) && ig(pe)) && pe.initializer) { const ye = Us(pe.initializer); return !(X(ye) || I1(ye) || As(ye) || ZE(ye)); } return !0; } } var bG, USe, HHe = L({ "src/services/inlayHints.ts"() { Kr(), bG = 30, USe = (e) => new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`); } }), Dte = {}; fe(Dte, { provideInlayHints: () => jHe }); var WHe = L({ "src/services/_namespaces/ts.InlayHints.ts"() { HHe(); } }); function zHe(e, t) { const r = []; return I$(e, (i) => { for (const o of JHe(i)) { const s = Vm(o) && o.tags && un(o.tags, (f) => f.kind === 330 && (f.tagName.escapedText === "inheritDoc" || f.tagName.escapedText === "inheritdoc")); if (o.comment === void 0 && !s || Vm(o) && i.kind !== 349 && i.kind !== 341 && o.tags && o.tags.some((f) => f.kind === 349 || f.kind === 341) && !o.tags.some((f) => f.kind === 344 || f.kind === 345)) continue; let c = o.comment ? $x(o.comment, t) : []; s && s.comment && (c = c.concat($x(s.comment, t))), Ii(r, c, qHe) || r.push(c); } }), nd(wo(r, [VC()])); } function qHe(e, t) { return oa(e, t, (r, i) => r.kind === i.kind && r.text === i.text); } function JHe(e) { switch (e.kind) { case 344: case 351: return [e]; case 341: case 349: return [e, e.parent]; default: return ez(e); } } function KHe(e, t) { const r = []; return I$(e, (i) => { const o = l1(i); if (!(o.some((s) => s.kind === 349 || s.kind === 341) && !o.some((s) => s.kind === 344 || s.kind === 345))) for (const s of o) r.push({ name: s.tagName.text, text: XHe(s, t) }); }), r; } function $x(e, t) { return typeof e == "string" ? [Cf(e)] : Mo(e, (r) => r.kind === 324 ? [Cf(r.text)] : Vye(r, t)); } function XHe(e, t) { const { comment: r, kind: i } = e, o = YHe(i); switch (i) { case 352: const f = e.typeExpression; return f ? s(f) : r === void 0 ? void 0 : $x(r, t); case 332: return s(e.class); case 331: return s(e.class); case 348: const d = e, y = []; if (d.constraint && y.push(Cf(d.constraint.getText())), Ne(d.typeParameters)) { Ne(y) && y.push(yl()); const b = d.typeParameters[d.typeParameters.length - 1]; Ye(d.typeParameters, (A) => { y.push(o(A.getText())), b !== A && y.push(hu(27), yl()); }); } return r && y.push(yl(), ...$x(r, t)), y; case 347: case 353: return s(e.typeExpression); case 349: case 341: case 351: case 344: case 350: const { name: m } = e; return m ? s(m) : r === void 0 ? void 0 : $x(r, t); default: return r === void 0 ? void 0 : $x(r, t); } function s(f) { return c(f.getText()); } function c(f) { return r ? f.match(/^https?$/) ? [Cf(f), ...$x(r, t)] : [o(f), yl(), ...$x(r, t)] : [Cf(f)]; } } function YHe(e) { switch (e) { case 344: return Mye; case 351: return Fye; case 348: return Gye; case 349: case 341: return Bye; default: return Cf; } } function $He() { return jSe || (jSe = rn(Nte, (e) => ({ name: e, kind: "keyword", kindModifiers: "", sortText: Yx.SortText.LocationPriority }))); } function QHe() { return HSe || (HSe = rn(Nte, (e) => ({ name: `@${e}`, kind: "keyword", kindModifiers: "", sortText: Yx.SortText.LocationPriority }))); } function VSe(e) { return { name: e, kind: "", kindModifiers: "", displayParts: [Cf(e)], documentation: nt, tags: void 0, codeActions: void 0 }; } function ZHe(e) { if (!Ve(e.name)) return nt; const t = e.name.text, r = e.parent, i = r.parent; return qa(i) ? _a(i.parameters, (o) => { if (!Ve(o.name)) return; const s = o.name.text; if (!(r.tags.some((c) => c !== e && Qp(c) && Ve(c.name) && c.name.escapedText === s) || t !== void 0 && !Ea(s, t))) return { name: s, kind: "parameter", kindModifiers: "", sortText: Yx.SortText.LocationPriority }; }) : []; } function eWe(e) { return { name: e, kind: "parameter", kindModifiers: "", displayParts: [Cf(e)], documentation: nt, tags: void 0, codeActions: void 0 }; } function tWe(e, t, r, i) { const o = ra(t, r), s = nr(o, Vm); if (s && (s.comment !== void 0 || Ne(s.tags))) return; const c = o.getStart(t); if (!s && c < r) return; const f = aWe(o, i); if (!f) return; const { commentOwner: d, parameters: y, hasReturn: m } = f, b = yf(d) && d.jsDoc ? d.jsDoc : void 0, A = Zs(b); if (d.getStart(t) < r || A && s && A !== s) return; const C = nWe(t, r), I = lx(t.fileName), O = (y ? rWe(y || [], I, C, e) : "") + (m ? iWe(C, e) : ""), k = "/**", B = " */", U = (b || []).some((j) => !!j.tags); if (O && !U) { const j = k + e + C + " * ", te = c === r ? e + C : ""; return { newText: j + e + O + C + B + te, caretOffset: j.length }; } return { newText: k + B, caretOffset: 3 }; } function nWe(e, t) { const { text: r } = e, i = h_(t, e); let o = i; for (; o <= t && Cm(r.charCodeAt(o)); o++) ; return r.slice(i, o); } function rWe(e, t, r, i) { return e.map(({ name: o, dotDotDotToken: s }, c) => { const f = o.kind === 79 ? o.text : "param" + c; return `${r} * @param ${t ? s ? "{...any} " : "{any} " : ""}${f}${i}`; }).join(""); } function iWe(e, t) { return `${e} * @returns${t}`; } function aWe(e, t) { return gce(e, (r) => Rte(r, t)); } function Rte(e, t) { switch (e.kind) { case 259: case 215: case 171: case 173: case 170: case 216: const r = e; return { commentOwner: e, parameters: r.parameters, hasReturn: D6(r, t) }; case 299: return Rte(e.initializer, t); case 260: case 261: case 263: case 302: case 262: return { commentOwner: e }; case 168: { const o = e; return o.type && Eh(o.type) ? { commentOwner: e, parameters: o.type.parameters, hasReturn: D6(o.type, t) } : { commentOwner: e }; } case 240: { const s = e.declarationList.declarations, c = s.length === 1 && s[0].initializer ? oWe(s[0].initializer) : void 0; return c ? { commentOwner: e, parameters: c.parameters, hasReturn: D6(c, t) } : { commentOwner: e }; } case 308: return "quit"; case 264: return e.parent.kind === 264 ? void 0 : { commentOwner: e }; case 241: return Rte(e.expression, t); case 223: { const o = e; return xl(o) === 0 ? "quit" : qa(o.right) ? { commentOwner: e, parameters: o.right.parameters, hasReturn: D6(o.right, t) } : { commentOwner: e }; } case 169: const i = e.initializer; if (i && (Ms(i) || zs(i))) return { commentOwner: e, parameters: i.parameters, hasReturn: D6(i, t) }; } } function D6(e, t) { return !!(t != null && t.generateReturnInDocTemplate) && (Eh(e) || zs(e) && yt(e.body) || Ys(e) && e.body && oo(e.body) && !!iT(e.body, (r) => r)); } function oWe(e) { for (; e.kind === 214; ) e = e.expression; switch (e.kind) { case 215: case 216: return e; case 228: return un(e.members, jl); } } var Nte, jSe, HSe, WSe, sWe = L({ "src/services/jsDoc.ts"() { Kr(), Nte = [ "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", "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" ], WSe = VSe; } }), ib = {}; fe(ib, { getDocCommentTemplateAtPosition: () => tWe, getJSDocParameterNameCompletionDetails: () => eWe, getJSDocParameterNameCompletions: () => ZHe, getJSDocTagCompletionDetails: () => VSe, getJSDocTagCompletions: () => QHe, getJSDocTagNameCompletionDetails: () => WSe, getJSDocTagNameCompletions: () => $He, getJsDocCommentsFromDeclarations: () => zHe, getJsDocTagsFromDeclarations: () => KHe }); var lWe = L({ "src/services/_namespaces/ts.JsDoc.ts"() { sWe(); } }); function cWe(e, t, r, i, o, s) { const c = hr.ChangeTracker.fromContext({ host: r, formatContext: t, preferences: o }), f = s === "SortAndCombine" || s === "All", d = f, y = s === "RemoveUnused" || s === "All", m = Ote(e, e.statements.filter(Gc)), b = CWe(o, f ? () => JSe(m, o) === 2 : void 0), A = (I) => (y && (I = dWe(I, e, i)), d && (I = zSe(I, b, e)), f && (I = ry(I, (O, k) => Gte(O, k, b))), I); if (m.forEach((I) => C(I, A)), s !== "RemoveUnused") { const I = e.statements.filter(Kc); C(I, (O) => Pte(O, b)); } for (const I of e.statements.filter(ku)) { if (!I.body) continue; if (Ote(e, I.body.statements.filter(Gc)).forEach((k) => C(k, A)), s !== "RemoveUnused") { const k = I.body.statements.filter(Kc); C(k, (B) => Pte(B, b)); } } return c.getChanges(); function C(I, O) { if (Ne(I) === 0) return; VF(I[0]); const k = d ? XL(I, (j) => R6(j.moduleSpecifier)) : [I], B = f ? ry(k, (j, te) => Fte(j[0].moduleSpecifier, te[0].moduleSpecifier, b)) : k, U = Mo(B, (j) => R6(j[0].moduleSpecifier) ? O(j) : j); if (U.length === 0) c.deleteNodes(e, I, { leadingTriviaOption: hr.LeadingTriviaOption.Exclude, trailingTriviaOption: hr.TrailingTriviaOption.Include }, !0); else { const j = { leadingTriviaOption: hr.LeadingTriviaOption.Exclude, trailingTriviaOption: hr.TrailingTriviaOption.Include, suffix: eb(r, t.options) }; c.replaceNodeWithNodes(e, I[0], U, j); const te = c.nodeHasTrailingComment(e, I[0], j); c.deleteNodes(e, I.slice(1), { trailingTriviaOption: hr.TrailingTriviaOption.Include }, te); } } } function Ote(e, t) { const r = sy(e.languageVersion, !1, e.languageVariant), i = []; let o = 0; for (const s of t) i[o] && uWe(e, s, r) && o++, i[o] || (i[o] = []), i[o].push(s); return i; } function uWe(e, t, r) { const i = t.getFullStart(), o = t.getStart(); r.setText(e.text, i, o - i); let s = 0; for (; r.getTokenPos() < o; ) if (r.scan() === 4 && (s++, s >= 2)) return !0; return !1; } function dWe(e, t, r) { const i = r.getTypeChecker(), o = r.getCompilerOptions(), s = i.getJsxNamespace(t), c = i.getJsxFragmentFactory(t), f = !!(t.transformFlags & 2), d = []; for (const m of e) { const { importClause: b, moduleSpecifier: A } = m; if (!b) { d.push(m); continue; } let { name: C, namedBindings: I } = b; if (C && !y(C) && (C = void 0), I) if (Ov(I)) y(I.name) || (I = void 0); else { const O = I.elements.filter((k) => y(k.name)); O.length < I.elements.length && (I = O.length ? N.updateNamedImports(I, O) : void 0); } C || I ? d.push(xw(m, C, I)) : fWe(t, A) && (t.isDeclarationFile ? d.push(N.createImportDeclaration(m.modifiers, void 0, A, void 0)) : d.push(m)); } return d; function y(m) { return f && (m.text === s || c && m.text === c) && Y$(o.jsx) || ll.Core.isSymbolReferencedInFile(m, i, t); } } function fWe(e, t) { const r = Go(t) && t.text; return Va(r) && kt(e.moduleAugmentations, (i) => Go(i) && i.text === r); } function R6(e) { return e !== void 0 && Ts(e) ? e.text : void 0; } function _We(e, t, r) { const i = EG(t); return zSe(e, i, r); } function zSe(e, t, r) { if (e.length === 0) return e; const { importWithoutClause: i, typeOnlyImports: o, regularImports: s } = pWe(e), c = []; i && c.push(i); for (const f of [s, o]) { const d = f === o, { defaultImports: y, namespaceImports: m, namedImports: b } = f; if (!d && y.length === 1 && m.length === 1 && b.length === 0) { const te = y[0]; c.push(xw(te, te.importClause.name, m[0].importClause.namedBindings)); continue; } const A = ry(m, (te, X) => t(te.importClause.namedBindings.name.text, X.importClause.namedBindings.name.text)); for (const te of A) c.push(xw(te, void 0, te.importClause.namedBindings)); const C = Wc(y), I = Wc(b), O = C ?? I; if (!O) continue; let k; const B = []; if (y.length === 1) k = y[0].importClause.name; else for (const te of y) B.push(N.createImportSpecifier(!1, N.createIdentifier("default"), te.importClause.name)); B.push(...TWe(b)); const U = N.createNodeArray(qSe(B, t), I == null ? void 0 : I.importClause.namedBindings.elements.hasTrailingComma), j = U.length === 0 ? k ? void 0 : N.createNamedImports(nt) : I ? N.updateNamedImports(I.importClause.namedBindings, U) : N.createNamedImports(U); r && j && (I != null && I.importClause.namedBindings) && !mT(I.importClause.namedBindings, r) && or(j, 2), d && k && j ? (c.push(xw(O, k, void 0)), c.push(xw(I ?? O, void 0, j))) : c.push(xw(O, k, j)); } return c; } function pWe(e) { let t; const r = { defaultImports: [], namespaceImports: [], namedImports: [] }, i = { defaultImports: [], namespaceImports: [], namedImports: [] }; for (const o of e) { if (o.importClause === void 0) { t = t || o; continue; } const s = o.importClause.isTypeOnly ? r : i, { name: c, namedBindings: f } = o.importClause; c && s.defaultImports.push(o), f && (Ov(f) ? s.namespaceImports.push(o) : s.namedImports.push(o)); } return { importWithoutClause: t, typeOnlyImports: r, regularImports: i }; } function mWe(e, t) { const r = EG(t); return Pte(e, r); } function Pte(e, t) { if (e.length === 0) return e; const { exportWithoutClause: r, namedExports: i, typeOnlyExports: o } = c(e), s = []; r && s.push(r); for (const f of [i, o]) { if (f.length === 0) continue; const d = []; d.push(...Mo(f, (b) => b.exportClause && j_(b.exportClause) ? b.exportClause.elements : nt)); const y = qSe(d, t), m = f[0]; s.push(N.updateExportDeclaration(m, m.modifiers, m.isTypeOnly, m.exportClause && (j_(m.exportClause) ? N.updateNamedExports(m.exportClause, y) : N.updateNamespaceExport(m.exportClause, m.exportClause.name)), m.moduleSpecifier, m.assertClause)); } return s; function c(f) { let d; const y = [], m = []; for (const b of f) b.exportClause === void 0 ? d = d || b : b.isTypeOnly ? m.push(b) : y.push(b); return { exportWithoutClause: d, namedExports: y, typeOnlyExports: m }; } } function xw(e, t, r) { return N.updateImportDeclaration(e, e.modifiers, N.updateImportClause(e.importClause, e.importClause.isTypeOnly, t, r), e.moduleSpecifier, e.assertClause); } function qSe(e, t) { return ry(e, (r, i) => Mte(r, i, t)); } function Mte(e, t, r) { return e1(e.isTypeOnly, t.isTypeOnly) || r(e.name.text, t.name.text); } function hWe(e, t, r) { const i = EG(!!r); return Fte(e, t, i); } function Fte(e, t, r) { const i = e === void 0 ? void 0 : R6(e), o = t === void 0 ? void 0 : R6(t); return e1(i === void 0, o === void 0) || e1(Oc(i), Oc(o)) || r(i, o); } function Bte(e) { var t; switch (e.kind) { case 268: return (t = ri(e.moduleReference, Um)) == null ? void 0 : t.expression; case 269: return e.moduleSpecifier; case 240: return e.declarationList.declarations[0].initializer.arguments[0]; } } function gWe(e, t) { return JSe(Ote(e, e.statements.filter(Gc)), t); } function JSe(e, t) { const r = Qx(t, !1), i = Qx(t, !0); let o = 3, s = !1; for (const c of e) { if (c.length > 1) { const d = bP(c, (y) => { var m, b; return (b = (m = ri(y.moduleSpecifier, Go)) == null ? void 0 : m.text) != null ? b : ""; }, r, i); if (d && (o &= d, s = !0), !o) return o; } const f = un(c, (d) => { var y, m; return ((m = ri((y = d.importClause) == null ? void 0 : y.namedBindings, by)) == null ? void 0 : m.elements.length) > 1; }); if (f) { const d = Ute(f.importClause.namedBindings.elements, t); if (d && (o &= d, s = !0), !o) return o; } if (o !== 3) return o; } return s ? 0 : o; } function yWe(e, t) { const r = Qx(t, !1), i = Qx(t, !0); return bP(e, (o) => R6(Bte(o)) || "", r, i); } function vWe(e, t, r) { const i = _v(e, t, _l, (o, s) => Gte(o, s, r)); return i < 0 ? ~i : i; } function bWe(e, t, r) { const i = _v(e, t, _l, (o, s) => Mte(o, s, r)); return i < 0 ? ~i : i; } function Gte(e, t, r) { return Fte(Bte(e), Bte(t), r) || EWe(e, t); } function EWe(e, t) { return js(KSe(e), KSe(t)); } function KSe(e) { var t; switch (e.kind) { case 269: return e.importClause ? e.importClause.isTypeOnly ? 1 : ((t = e.importClause.namedBindings) == null ? void 0 : t.kind) === 271 ? 2 : e.importClause.name ? 3 : 4 : 0; case 268: return 5; case 240: return 6; } } function TWe(e) { return Mo(e, (t) => rn(SWe(t), (r) => r.name && r.propertyName && r.name.escapedText === r.propertyName.escapedText ? N.updateImportSpecifier(r, r.isTypeOnly, void 0, r.name) : r)); } function SWe(e) { var t; return (t = e.importClause) != null && t.namedBindings && by(e.importClause.namedBindings) ? e.importClause.namedBindings.elements : void 0; } function EG(e) { return e ? fse : Lu; } function xWe(e, t) { var r, i, o; const s = AWe(t), c = (r = t.organizeImportsCaseFirst) != null ? r : !1, f = (i = t.organizeImportsNumericCollation) != null ? i : !1, d = (o = t.organizeImportsAccentCollation) != null ? o : !0, y = e ? d ? "accent" : "base" : d ? "variant" : "case"; return new Intl.Collator(s, { usage: "sort", caseFirst: c || "false", sensitivity: y, numeric: f }).compare; } function AWe(e) { let t = e.organizeImportsLocale; t === "auto" && (t = _se()), t === void 0 && (t = "en"); const r = Intl.Collator.supportedLocalesOf(t); return r.length ? r[0] : "en"; } function Qx(e, t) { var r; return ((r = e.organizeImportsCollation) != null ? r : "ordinal") === "unicode" ? xWe(t, e) : EG(t); } function CWe(e, t) { var r; const i = typeof e.organizeImportsIgnoreCase == "boolean" ? e.organizeImportsIgnoreCase : (r = t == null ? void 0 : t()) != null ? r : !1; return Qx(e, i); } var XSe, Ute, LWe = L({ "src/services/organizeImports.ts"() { Kr(), XSe = class { has([e, t]) { return this._lastPreferences !== t || !this._cache ? !1 : this._cache.has(e); } get([e, t]) { if (!(this._lastPreferences !== t || !this._cache)) return this._cache.get(e); } set([e, t], r) { var i; this._lastPreferences !== t && (this._lastPreferences = t, this._cache = void 0), (i = this._cache) != null || (this._cache = /* @__PURE__ */ new WeakMap()), this._cache.set(e, r); } }, Ute = use((e, t) => { if (!ese(e, (o, s) => e1(o.isTypeOnly, s.isTypeOnly))) return 0; const r = Qx(t, !1), i = Qx(t, !0); return bP(e, (o) => o.name.text, r, i); }, new XSe()); } }), q_ = {}; fe(q_, { coalesceExports: () => mWe, coalesceImports: () => _We, compareImportOrExportSpecifiers: () => Mte, compareImportsOrRequireStatements: () => Gte, compareModuleSpecifiers: () => hWe, detectImportDeclarationSorting: () => yWe, detectImportSpecifierSorting: () => Ute, detectSorting: () => gWe, getImportDeclarationInsertionIndex: () => vWe, getImportSpecifierInsertionIndex: () => bWe, getOrganizeImportsComparer: () => Qx, organizeImports: () => cWe }); var IWe = L({ "src/services/_namespaces/ts.OrganizeImports.ts"() { LWe(); } }); function kWe(e, t) { const r = []; return wWe(e, t, r), DWe(e, r), r.sort((i, o) => i.textSpan.start - o.textSpan.start); } function wWe(e, t, r) { let i = 40, o = 0; const s = [...e.statements, e.endOfFileToken], c = s.length; for (; o < c; ) { for (; o < c && !rT(s[o]); ) f(s[o]), o++; if (o === c) break; const d = o; for (; o < c && rT(s[o]); ) f(s[o]), o++; const y = o - 1; y !== d && r.push(N6(ys(s[d], 100, e).getStart(e), s[y].getEnd(), "imports")); } function f(d) { var y; if (i === 0) return; t.throwIfCancellationRequested(), (_u(d) || sc(d) || pp(d) || ng(d) || d.kind === 1) && $Se(d, e, t, r), qa(d) && vr(d.parent) && Pr(d.parent.left) && $Se(d.parent.left, e, t, r), (oo(d) || Yp(d)) && Vte(d.statements.end, e, t, r), (li(d) || Yu(d)) && Vte(d.members.end, e, t, r); const m = RWe(d, e); m && r.push(m), i--, eo(d) ? (i++, f(d.expression), i--, d.arguments.forEach(f), (y = d.typeArguments) == null || y.forEach(f)) : ET(d) && d.elseStatement && ET(d.elseStatement) ? (f(d.expression), f(d.thenStatement), i++, f(d.elseStatement), i--) : d.forEachChild(f), i++; } } function DWe(e, t) { const r = [], i = e.getLineStarts(); for (const o of i) { const s = e.getLineEndOfPosition(o), c = e.text.substring(o, s), f = YSe(c); if (!(!f || Ay(e, o))) if (f[1]) { const d = r.pop(); d && (d.textSpan.length = s - d.textSpan.start, d.hintSpan.length = s - d.textSpan.start, t.push(d)); } else { const d = fc(e.text.indexOf("//", o), s); r.push(YT(d, "region", d, !1, f[2] || "#region")); } } } function YSe(e) { return e = QL(e), Ea(e, "//") ? (e = n1(e.slice(2)), QSe.exec(e)) : null; } function Vte(e, t, r, i) { const o = ch(t.text, e); if (!o) return; let s = -1, c = -1, f = 0; const d = t.getFullText(); for (const { kind: m, pos: b, end: A } of o) switch (r.throwIfCancellationRequested(), m) { case 2: const C = d.slice(b, A); if (YSe(C)) { y(), f = 0; break; } f === 0 && (s = b), c = A, f++; break; case 3: y(), i.push(N6(b, A, "comment")), f = 0; break; default: D.assertNever(m); } y(); function y() { f > 1 && i.push(N6(s, c, "comment")); } } function $Se(e, t, r, i) { _x(e) || Vte(e.pos, t, r, i); } function N6(e, t, r) { return YT(fc(e, t), r); } function RWe(e, t) { switch (e.kind) { case 238: if (qa(e.parent)) return NWe(e.parent, e, t); switch (e.parent.kind) { case 243: case 246: case 247: case 245: case 242: case 244: case 251: case 295: return m(e.parent); case 255: const C = e.parent; if (C.tryBlock === e) return m(e.parent); if (C.finallyBlock === e) { const I = ys(C, 96, t); if (I) return m(I); } default: return YT($u(e, t), "code"); } case 265: return m(e.parent); case 260: case 228: case 261: case 263: case 266: case 184: case 203: return m(e); case 186: return m(e, !1, !lC(e.parent), 22); case 292: case 293: return b(e.statements); case 207: return y(e); case 206: return y(e, 22); case 281: return s(e); case 285: return c(e); case 282: case 283: return f(e.attributes); case 225: case 14: return d(e); case 204: return m(e, !1, !us(e.parent), 22); case 216: return o(e); case 210: return i(e); case 214: return A(e); case 272: case 276: case 296: return r(e); } function r(C) { if (!C.elements.length) return; const I = ys(C, 18, t), O = ys(C, 19, t); if (!(!I || !O || d_(I.pos, O.pos, t))) return TG(I, O, C, t, !1, !1); } function i(C) { if (!C.arguments.length) return; const I = ys(C, 20, t), O = ys(C, 21, t); if (!(!I || !O || d_(I.pos, O.pos, t))) return TG(I, O, C, t, !1, !0); } function o(C) { if (oo(C.body) || Pd(C.body) || d_(C.body.getFullStart(), C.body.getEnd(), t)) return; const I = fc(C.body.getFullStart(), C.body.getEnd()); return YT(I, "code", $u(C)); } function s(C) { const I = fc(C.openingElement.getStart(t), C.closingElement.getEnd()), O = C.openingElement.tagName.getText(t), k = "<" + O + ">..."; return YT(I, "code", I, !1, k); } function c(C) { const I = fc(C.openingFragment.getStart(t), C.closingFragment.getEnd()); return YT(I, "code", I, !1, "<>..."); } function f(C) { if (C.properties.length !== 0) return N6(C.getStart(t), C.getEnd(), "code"); } function d(C) { if (!(C.kind === 14 && C.text.length === 0)) return N6(C.getStart(t), C.getEnd(), "code"); } function y(C, I = 18) { return m(C, !1, !Ru(C.parent) && !eo(C.parent), I); } function m(C, I = !1, O = !0, k = 18, B = k === 18 ? 19 : 23) { const U = ys(e, k, t), j = ys(e, B, t); return U && j && TG(U, j, C, t, I, O); } function b(C) { return C.length ? YT(Vv(C), "code") : void 0; } function A(C) { if (d_(C.getStart(), C.getEnd(), t)) return; const I = fc(C.getStart(), C.getEnd()); return YT(I, "code", $u(C)); } } function NWe(e, t, r) { const i = OWe(e, t, r), o = ys(t, 19, r); return i && o && TG(i, o, e, r, e.kind !== 216); } function TG(e, t, r, i, o = !1, s = !0) { const c = fc(s ? e.getFullStart() : e.getStart(i), t.getEnd()); return YT(c, "code", $u(r, i), o); } function YT(e, t, r = e, i = !1, o = "...") { return { textSpan: e, kind: t, hintSpan: r, bannerText: o, autoCollapse: i }; } function OWe(e, t, r) { if (Kue(e.parameters, r)) { const i = ys(e, 20, r); if (i) return i; } return ys(t, 18, r); } var QSe, PWe = L({ "src/services/outliningElementsCollector.ts"() { Kr(), QSe = /^#(end)?region(?:\s+(.*))?(?:\r)?$/; } }), jte = {}; fe(jte, { collectElements: () => kWe }); var MWe = L({ "src/services/_namespaces/ts.OutliningElementsCollector.ts"() { PWe(); } }); function hg(e, t) { SG.set(e, t); } function FWe(e) { return ko(qD(SG.values(), (t) => { var r; return e.cancellationToken && e.cancellationToken.isCancellationRequested() || !((r = t.kinds) != null && r.some((i) => qv(i, e.kind))) ? void 0 : t.getAvailableActions(e); })); } function BWe(e, t, r) { const i = SG.get(t); return i && i.getEditsForAction(e, r); } var SG, GWe = L({ "src/services/refactorProvider.ts"() { Kr(), Lh(), SG = /* @__PURE__ */ new Map(); } }); function ZSe(e, t = !0) { const { file: r, program: i } = e, o = Gx(e), s = ra(r, o.start), c = s.parent && Iv(s.parent) & 1 && t ? s.parent : $8(s, r, o); if (!c || !ji(c.parent) && !(Yp(c.parent) && ku(c.parent.parent))) return { error: Do(_.Could_not_find_export_statement) }; const f = i.getTypeChecker(), d = zWe(c.parent, f), y = Iv(c) || (Pl(c) && !c.isExportEquals ? 1025 : 0), m = !!(y & 1024); if (!(y & 1) || !m && d.exports.has("default")) return { error: Do(_.This_file_already_has_a_default_export) }; const b = (A) => Ve(A) && f.getSymbolAtLocation(A) ? void 0 : { error: Do(_.Can_only_convert_named_export) }; switch (c.kind) { case 259: case 260: case 261: case 263: case 262: case 264: { const A = c; return A.name ? b(A.name) || { exportNode: A, exportName: A.name, wasDefault: m, exportingModuleSymbol: d } : void 0; } case 240: { const A = c; if (!(A.declarationList.flags & 2) || A.declarationList.declarations.length !== 1) return; const C = ss(A.declarationList.declarations); return C.initializer ? (D.assert(!m, "Can't have a default flag here"), b(C.name) || { exportNode: A, exportName: C.name, wasDefault: m, exportingModuleSymbol: d }) : void 0; } case 274: { const A = c; return A.isExportEquals ? void 0 : b(A.expression) || { exportNode: A, exportName: A.expression, wasDefault: m, exportingModuleSymbol: d }; } default: return; } } function UWe(e, t, r, i, o) { VWe(e, r, i, t.getTypeChecker()), jWe(t, r, i, o); } function VWe(e, { wasDefault: t, exportNode: r, exportName: i }, o, s) { if (t) if (Pl(r) && !r.isExportEquals) { const c = r.expression, f = exe(c.text, c.text); o.replaceNode(e, r, N.createExportDeclaration(void 0, !1, N.createNamedExports([f]))); } else o.delete(e, D.checkDefined(GC(r, 88), "Should find a default keyword in modifier list")); else { const c = D.checkDefined(GC(r, 93), "Should find an export keyword in modifier list"); switch (r.kind) { case 259: case 260: case 261: o.insertNodeAfter(e, c, N.createToken(88)); break; case 240: const f = ss(r.declarationList.declarations); if (!ll.Core.isSymbolReferencedInFile(i, s, e) && !f.type) { o.replaceNode(e, r, N.createExportDefault(D.checkDefined(f.initializer, "Initializer was previously known to be present"))); break; } case 263: case 262: case 264: o.deleteModifier(e, c), o.insertNodeAfter(e, r, N.createExportDefault(N.createIdentifier(i.text))); break; default: D.fail(`Unexpected exportNode kind ${r.kind}`); } } } function jWe(e, { wasDefault: t, exportName: r, exportingModuleSymbol: i }, o, s) { const c = e.getTypeChecker(), f = D.checkDefined(c.getSymbolAtLocation(r), "Export name should resolve to a symbol"); ll.Core.eachExportReference(e.getSourceFiles(), c, s, f, i, r.text, t, (d) => { if (r === d) return; const y = d.getSourceFile(); t ? HWe(y, d, o, r.text) : WWe(y, d, o); }); } function HWe(e, t, r, i) { const { parent: o } = t; switch (o.kind) { case 208: r.replaceNode(e, t, N.createIdentifier(i)); break; case 273: case 278: { const c = o; r.replaceNode(e, c, Hte(i, c.name.text)); break; } case 270: { const c = o; D.assert(c.name === t, "Import clause name should match provided ref"); const f = Hte(i, t.text), { namedBindings: d } = c; if (!d) r.replaceNode(e, t, N.createNamedImports([f])); else if (d.kind === 271) { r.deleteRange(e, { pos: t.getStart(e), end: d.getStart(e) }); const y = Go(c.parent.moduleSpecifier) ? C$(c.parent.moduleSpecifier, e) : 1, m = Ly(void 0, [Hte(i, t.text)], c.parent.moduleSpecifier, y); r.insertNodeAfter(e, c.parent, m); } else r.delete(e, t), r.insertNodeAtEndOfList(e, d.elements, f); break; } case 202: const s = o; r.replaceNode(e, o, N.createImportTypeNode(s.argument, s.assertions, N.createIdentifier(i), s.typeArguments, s.isTypeOf)); break; default: D.failBadSyntaxKind(o); } } function WWe(e, t, r) { const i = t.parent; switch (i.kind) { case 208: r.replaceNode(e, t, N.createIdentifier("default")); break; case 273: { const o = N.createIdentifier(i.name.text); i.parent.elements.length === 1 ? r.replaceNode(e, i.parent, o) : (r.delete(e, i), r.insertNodeBefore(e, i.parent, o)); break; } case 278: { r.replaceNode(e, i, exe("default", i.name.text)); break; } default: D.assertNever(i, `Unexpected parent kind ${i.kind}`); } } function Hte(e, t) { return N.createImportSpecifier(!1, e === t ? void 0 : N.createIdentifier(e), N.createIdentifier(t)); } function exe(e, t) { return N.createExportSpecifier(!1, e === t ? void 0 : N.createIdentifier(e), N.createIdentifier(t)); } function zWe(e, t) { if (ji(e)) return e.symbol; const r = e.parent.symbol; return r.valueDeclaration && _1(r.valueDeclaration) ? t.getMergedSymbol(r) : r; } var xG, O6, P6, qWe = L({ "src/services/refactors/convertExport.ts"() { Kr(), Lh(), xG = "Convert export", O6 = { name: "Convert default export to named export", description: _.Convert_default_export_to_named_export.message, kind: "refactor.rewrite.export.named" }, P6 = { name: "Convert named export to default export", description: _.Convert_named_export_to_default_export.message, kind: "refactor.rewrite.export.default" }, hg(xG, { kinds: [ O6.kind, P6.kind ], getAvailableActions: function(t) { const r = ZSe(t, t.triggerReason === "invoked"); if (!r) return nt; if (!Ch(r)) { const i = r.wasDefault ? O6 : P6; return [{ name: xG, description: i.description, actions: [i] }]; } return t.preferences.provideRefactorNotApplicableReason ? [ { name: xG, description: _.Convert_default_export_to_named_export.message, actions: [ { ...O6, notApplicableReason: r.error }, { ...P6, notApplicableReason: r.error } ] } ] : nt; }, getEditsForAction: function(t, r) { D.assert(r === O6.name || r === P6.name, "Unexpected action name"); const i = ZSe(t); return D.assert(i && !Ch(i), "Expected applicable refactor info"), { edits: hr.ChangeTracker.with(t, (s) => UWe(t.file, t.program, i, s, t.cancellationToken)), renameFilename: void 0, renameLocation: void 0 }; } }); } }); function txe(e, t = !0) { const { file: r } = e, i = Gx(e), o = ra(r, i.start), s = t ? nr(o, Gc) : $8(o, r, i); if (!s || !Gc(s)) return { error: "Selection is not an import declaration." }; const c = i.start + i.length, f = UT(s, s.parent, r); if (f && c > f.getStart()) return; const { importClause: d } = s; return d ? d.namedBindings ? d.namedBindings.kind === 271 ? { convertTo: 0, import: d.namedBindings } : nxe(e.program, d) ? { convertTo: 1, import: d.namedBindings } : { convertTo: 2, import: d.namedBindings } : { error: Do(_.Could_not_find_namespace_import_or_named_imports) } : { error: Do(_.Could_not_find_import_clause) }; } function nxe(e, t) { return hT(e.getCompilerOptions()) && YWe(t.parent.moduleSpecifier, e.getTypeChecker()); } function JWe(e, t, r, i) { const o = t.getTypeChecker(); i.convertTo === 0 ? KWe(e, o, r, i.import, hT(t.getCompilerOptions())) : ixe(e, t, r, i.import, i.convertTo === 1); } function KWe(e, t, r, i, o) { let s = !1; const c = [], f = /* @__PURE__ */ new Map(); ll.Core.eachSymbolReferenceInFile(i.name, t, e, (b) => { if (!tce(b.parent)) s = !0; else { const A = rxe(b.parent).text; t.resolveName(A, b, 67108863, !0) && f.set(A, !0), D.assert(XWe(b.parent) === b, "Parent expression should match id"), c.push(b.parent); } }); const d = /* @__PURE__ */ new Map(); for (const b of c) { const A = rxe(b).text; let C = d.get(A); C === void 0 && d.set(A, C = f.has(A) ? HT(A, e) : A), r.replaceNode(e, b, N.createIdentifier(C)); } const y = []; d.forEach((b, A) => { y.push(N.createImportSpecifier(!1, b === A ? void 0 : N.createIdentifier(A), N.createIdentifier(b))); }); const m = i.parent.parent; s && !o ? r.insertNodeAfter(e, m, Wte(m, void 0, y)) : r.replaceNode(e, m, Wte(m, s ? N.createIdentifier(i.name.text) : void 0, y)); } function rxe(e) { return Pr(e) ? e.name : e.right; } function XWe(e) { return Pr(e) ? e.expression : e.left; } function ixe(e, t, r, i, o = nxe(t, i.parent)) { const s = t.getTypeChecker(), c = i.parent.parent, { moduleSpecifier: f } = c, d = /* @__PURE__ */ new Set(); i.elements.forEach((I) => { const O = s.getSymbolAtLocation(I.name); O && d.add(O); }); const y = f && Go(f) ? Fu.moduleSpecifierToValidIdentifier(f.text, 99) : "module"; function m(I) { return !!ll.Core.eachSymbolReferenceInFile(I.name, s, e, (O) => { const k = s.resolveName(y, O, 67108863, !0); return k ? d.has(k) ? od(O.parent) : !0 : !1; }); } const A = i.elements.some(m) ? HT(y, e) : y, C = /* @__PURE__ */ new Set(); for (const I of i.elements) { const O = (I.propertyName || I.name).text; ll.Core.eachSymbolReferenceInFile(I.name, s, e, (k) => { const B = N.createPropertyAccessExpression(N.createIdentifier(A), O); Xf(k.parent) ? r.replaceNode(e, k.parent, N.createPropertyAssignment(k.text, B)) : od(k.parent) ? C.add(I) : r.replaceNode(e, k, B); }); } if (r.replaceNode(e, i, o ? N.createIdentifier(A) : N.createNamespaceImport(N.createIdentifier(A))), C.size) { const I = ko(C.values(), (O) => N.createImportSpecifier(O.isTypeOnly, O.propertyName && N.createIdentifier(O.propertyName.text), N.createIdentifier(O.name.text))); r.insertNodeAfter(e, i.parent.parent, Wte(c, void 0, I)); } } function YWe(e, t) { const r = t.resolveExternalModuleName(e); if (!r) return !1; const i = t.resolveExternalModuleSymbol(r); return r !== i; } function Wte(e, t, r) { return N.createImportDeclaration(void 0, N.createImportClause(!1, t, r && r.length ? N.createNamedImports(r) : void 0), e.moduleSpecifier, void 0); } var AG, M6, $We = L({ "src/services/refactors/convertImport.ts"() { Kr(), Lh(), AG = "Convert import", M6 = { [0]: { name: "Convert namespace import to named imports", description: _.Convert_namespace_import_to_named_imports.message, kind: "refactor.rewrite.import.named" }, [2]: { name: "Convert named imports to namespace import", description: _.Convert_named_imports_to_namespace_import.message, kind: "refactor.rewrite.import.namespace" }, [1]: { name: "Convert named imports to default import", description: _.Convert_named_imports_to_default_import.message, kind: "refactor.rewrite.import.default" } }, hg(AG, { kinds: wS(M6).map((e) => e.kind), getAvailableActions: function(t) { const r = txe(t, t.triggerReason === "invoked"); if (!r) return nt; if (!Ch(r)) { const i = M6[r.convertTo]; return [{ name: AG, description: i.description, actions: [i] }]; } return t.preferences.provideRefactorNotApplicableReason ? wS(M6).map((i) => ({ name: AG, description: i.description, actions: [{ ...i, notApplicableReason: r.error }] })) : nt; }, getEditsForAction: function(t, r) { D.assert(kt(wS(M6), (s) => s.name === r), "Unexpected action name"); const i = txe(t); return D.assert(i && !Ch(i), "Expected applicable refactor info"), { edits: hr.ChangeTracker.with(t, (s) => JWe(t.file, t.program, s, i)), renameFilename: void 0, renameLocation: void 0 }; } }); } }); function axe(e, t = !0) { const { file: r, startPosition: i } = e, o = Ju(r), s = ra(r, i), c = kF(Gx(e)), f = c.pos === c.end && t, d = nr(s, (C) => C.parent && Pi(C) && !ab(c, C.parent, r) && (f || l$(s, r, c.pos, c.end))); if (!d || !Pi(d)) return { error: Do(_.Selection_is_not_a_valid_type_node) }; const y = e.program.getTypeChecker(), m = nze(d, o); if (m === void 0) return { error: Do(_.No_type_could_be_extracted_from_this_type_node) }; const b = QWe(y, d, m, r); if (!b) return { error: Do(_.No_type_could_be_extracted_from_this_type_node) }; const A = zte(y, d); return { isJS: o, selection: d, enclosingNode: m, typeParameters: b, typeElements: A }; } function zte(e, t) { if (t) if (vO(t)) { const r = [], i = /* @__PURE__ */ new Map(); for (const o of t.types) { const s = zte(e, o); if (!s || !s.every((c) => c.name && _p(i, X8(c.name)))) return; yi(r, s); } return r; } else { if (yx(t)) return zte(e, t.type); if (rf(t)) return t.members; } } function ab(e, t, r) { return V8(e, zo(r.text, t.pos), t.end); } function QWe(e, t, r, i) { const o = []; return s(t) ? void 0 : o; function s(c) { if (V_(c)) { if (Ve(c.typeName)) { const f = c.typeName, d = e.resolveName(f.text, f, 262144, !0); for (const y of (d == null ? void 0 : d.declarations) || nt) if (Ol(y) && y.getSourceFile() === i) { if (y.name.escapedText === f.escapedText && ab(y, t, i)) return !0; if (ab(r, y, i) && !ab(t, y, i)) { a_(o, y); break; } } } } else if (uC(c)) { const f = nr(c, (d) => cC(d) && ab(d.extendsType, c, i)); if (!f || !ab(t, f, i)) return !0; } else if (b7(c) || E7(c)) { const f = nr(c.parent, qa); if (f && f.type && ab(f.type, c, i) && !ab(t, f, i)) return !0; } else if (yk(c)) { if (Ve(c.exprName)) { const f = e.resolveName(c.exprName.text, c.exprName, 111551, !1); if (f != null && f.valueDeclaration && ab(r, f.valueDeclaration, i) && !ab(t, f.valueDeclaration, i)) return !0; } else if (_T(c.exprName.left) && !ab(t, c.parent, i)) return !0; } return i && lC(c) && il(i, c.pos).line === il(i, c.end).line && or(c, 1), Oa(c, s); } } function ZWe(e, t, r, i) { const { enclosingNode: o, selection: s, typeParameters: c } = i, f = N.createTypeAliasDeclaration(void 0, r, c.map((d) => N.updateTypeParameterDeclaration(d, d.modifiers, d.name, d.constraint, void 0)), s); e.insertNodeBefore(t, o, Vq(f), !0), e.replaceNode(t, s, N.createTypeReferenceNode(r, c.map((d) => N.createTypeReferenceNode(d.name, void 0))), { leadingTriviaOption: hr.LeadingTriviaOption.Exclude, trailingTriviaOption: hr.TrailingTriviaOption.ExcludeWhitespace }); } function eze(e, t, r, i) { var o; const { enclosingNode: s, selection: c, typeParameters: f, typeElements: d } = i, y = N.createInterfaceDeclaration(void 0, r, f, void 0, d); mt(y, (o = d[0]) == null ? void 0 : o.parent), e.insertNodeBefore(t, s, Vq(y), !0), e.replaceNode(t, c, N.createTypeReferenceNode(r, f.map((m) => N.createTypeReferenceNode(m.name, void 0))), { leadingTriviaOption: hr.LeadingTriviaOption.Exclude, trailingTriviaOption: hr.TrailingTriviaOption.ExcludeWhitespace }); } function tze(e, t, r, i, o) { var s; const { enclosingNode: c, selection: f, typeParameters: d } = o; or(f, 7168); const y = N.createJSDocTypedefTag(N.createIdentifier("typedef"), N.createJSDocTypeExpression(f), N.createIdentifier(i)), m = []; Ye(d, (A) => { const C = mA(A), I = N.createTypeParameterDeclaration(void 0, A.name), O = N.createJSDocTemplateTag(N.createIdentifier("template"), C && ro(C, AT), [I]); m.push(O); }); const b = N.createJSDocComment(void 0, N.createNodeArray(ha(m, [y]))); if (Vm(c)) { const A = c.getStart(r), C = eb(t.host, (s = t.formatContext) == null ? void 0 : s.options); e.insertNodeAt(r, c.getStart(r), b, { suffix: C + C + r.text.slice(P$(r.text, A - 1), A) }); } else e.insertNodeBefore(r, c, b, !0); e.replaceNode(r, f, N.createTypeReferenceNode(i, d.map((A) => N.createTypeReferenceNode(A.name, void 0)))); } function nze(e, t) { return nr(e, Ia) || (t ? nr(e, Vm) : void 0); } var CG, F6, B6, G6, rze = L({ "src/services/refactors/extractType.ts"() { Kr(), Lh(), CG = "Extract type", F6 = { name: "Extract to type alias", description: Do(_.Extract_to_type_alias), kind: "refactor.extract.type" }, B6 = { name: "Extract to interface", description: Do(_.Extract_to_interface), kind: "refactor.extract.interface" }, G6 = { name: "Extract to typedef", description: Do(_.Extract_to_typedef), kind: "refactor.extract.typedef" }, hg(CG, { kinds: [ F6.kind, B6.kind, G6.kind ], getAvailableActions: function(t) { const r = axe(t, t.triggerReason === "invoked"); return r ? Ch(r) ? t.preferences.provideRefactorNotApplicableReason ? [{ name: CG, description: Do(_.Extract_type), actions: [ { ...G6, notApplicableReason: r.error }, { ...F6, notApplicableReason: r.error }, { ...B6, notApplicableReason: r.error } ] }] : nt : [{ name: CG, description: Do(_.Extract_type), actions: r.isJS ? [G6] : Fn([F6], r.typeElements && B6) }] : nt; }, getEditsForAction: function(t, r) { const { file: i } = t, o = axe(t); D.assert(o && !Ch(o), "Expected to find a range to extract"); const s = HT("NewType", i), c = hr.ChangeTracker.with(t, (y) => { switch (r) { case F6.name: return D.assert(!o.isJS, "Invalid actionName/JS combo"), ZWe(y, i, s, o); case G6.name: return D.assert(o.isJS, "Invalid actionName/JS combo"), tze(y, t, i, s, o); case B6.name: return D.assert(!o.isJS && !!o.typeElements, "Invalid actionName/JS combo"), eze(y, i, s, o); default: D.fail("Unexpected action name"); } }), f = i.fileName, d = t6(c, f, s, !1); return { edits: c, renameFilename: f, renameLocation: d }; } }); } }); function Ch(e) { return e.error !== void 0; } function qv(e, t) { return t ? e.substr(0, t.length) === t : !0; } var ize = L({ "src/services/refactors/helpers.ts"() { } }); function aze(e) { const { file: t } = e, r = kF(Gx(e)), { statements: i } = t, o = $i(i, (f) => f.end > r.pos); if (o === -1) return; const s = i[o]; if (du(s) && s.name && af(s.name, r)) return { toMove: [i[o]], afterLast: i[o + 1] }; if (r.pos > s.getStart(t)) return; const c = $i(i, (f) => f.end > r.end, o); if (!(c !== -1 && (c === 0 || i[c].getStart(t) < r.end))) return { toMove: i.slice(o, c === -1 ? i.length : c), afterLast: c === -1 ? void 0 : i[c] }; } function oze(e, t, r, i, o, s) { const c = t.getTypeChecker(), f = Sze(e, r.all, c), d = fi(e.fileName), y = YN(e.fileName), m = Oi(d, Eze(Tze(f.oldFileImportsFromNewFile, f.movedSymbols), y, d, o)) + y; i.createNewFile(e, m, uze(e, f, i, r, t, o, m, s)), cze(t, i, e.fileName, m, H0(o)); } function oxe(e) { const t = aze(e); if (t === void 0) return; const r = [], i = [], { toMove: o, afterLast: s } = t; return ej(o, sze, (c, f) => { for (let d = c; d < f; d++) r.push(o[d]); i.push({ first: o[c], afterLast: s }); }), r.length === 0 ? void 0 : { all: r, ranges: i }; } function sze(e) { return !lze(e) && !dp(e); } function lze(e) { switch (e.kind) { case 269: return !0; case 268: return !Jr(e, 1); case 240: return e.declarationList.declarations.every((t) => !!t.initializer && vd(t.initializer, !0)); default: return !1; } } function cze(e, t, r, i, o) { const s = e.getCompilerOptions().configFile; if (!s) return; const c = Wo(Oi(r, "..", i)), f = ER(s.fileName, c, o), d = s.statements[0] && ri(s.statements[0].expression, As), y = d && un(d.properties, (m) => Uc(m) && Go(m.name) && m.name.text === "files"); y && Ru(y.initializer) && t.insertNodeInListAfter(s, Ho(y.initializer.elements), N.createStringLiteral(f), y.initializer.elements); } function uze(e, t, r, i, o, s, c, f) { const d = o.getTypeChecker(), y = wP(e.statements, dp); if (e.externalModuleIndicator === void 0 && e.commonJsModuleIndicator === void 0 && t.oldImportsNeededByNewFile.size() === 0) return sxe(e, i.ranges, r), [...y, ...i.all]; const m = !!e.externalModuleIndicator, b = yp(e, f), A = hze(e, t.oldFileImportsFromNewFile, c, o, s, m, b); A && GF(r, e, A, !0, f), dze(e, i.all, r, t.unusedImportsFromOldFile, d), sxe(e, i.ranges, r), fze(r, o, s, e, t.movedSymbols, c); const C = bze(e, t.oldImportsNeededByNewFile, t.newFileImportsFromOldFile, r, d, o, s, m, b), I = gze(e, i.all, t.oldFileImportsFromNewFile, m); return C.length && I.length ? [ ...y, ...C, 4, ...I ] : [ ...y, ...C, ...I ]; } function sxe(e, t, r) { for (const { first: i, afterLast: o } of t) r.deleteNodeRangeExcludingEnd(e, i, o); } function dze(e, t, r, i, o) { for (const s of e.statements) Ii(t, s) || qte(s, (c) => dxe(e, c, r, (f) => i.has(o.getSymbolAtLocation(f)))); } function fze(e, t, r, i, o, s) { const c = t.getTypeChecker(); for (const f of t.getSourceFiles()) if (f !== i) for (const d of f.statements) qte(d, (y) => { if (c.getSymbolAtLocation(lxe(y)) !== i.symbol) return; const m = (O) => { const k = us(O.parent) ? BF(c, O.parent) : nf(c.getSymbolAtLocation(O), c); return !!k && o.has(k); }; dxe(f, y, e, m); const b = mv(fi(i.path), s), A = y5(t.getCompilerOptions(), f, f.path, b, Bx(t, r)), C = pxe(y, N.createStringLiteral(A), m); C && e.insertNodeAfter(f, d, C); const I = _ze(y); I && pze(e, f, c, o, A, I, y); }); } function _ze(e) { switch (e.kind) { case 269: return e.importClause && e.importClause.namedBindings && e.importClause.namedBindings.kind === 271 ? e.importClause.namedBindings.name : void 0; case 268: return e.name; case 257: return ri(e.name, Ve); default: return D.assertNever(e, `Unexpected node kind ${e.kind}`); } } function pze(e, t, r, i, o, s, c) { const f = Fu.moduleSpecifierToValidIdentifier(o, 99); let d = !1; const y = []; if (ll.Core.eachSymbolReferenceInFile(s, r, t, (m) => { Pr(m.parent) && (d = d || !!r.resolveName(f, m, 67108863, !0), i.has(r.getSymbolAtLocation(m.parent.name)) && y.push(m)); }), y.length) { const m = d ? HT(f, t) : f; for (const b of y) e.replaceNode(t, b, N.createIdentifier(m)); e.insertNodeAfter(t, c, mze(c, f, o)); } } function mze(e, t, r) { const i = N.createIdentifier(t), o = N.createStringLiteral(r); switch (e.kind) { case 269: return N.createImportDeclaration(void 0, N.createImportClause(!1, void 0, N.createNamespaceImport(i)), o, void 0); case 268: return N.createImportEqualsDeclaration(void 0, !1, i, N.createExternalModuleReference(o)); case 257: return N.createVariableDeclaration(i, void 0, void 0, Jte(o)); default: return D.assertNever(e, `Unexpected node kind ${e.kind}`); } } function lxe(e) { return e.kind === 269 ? e.moduleSpecifier : e.kind === 268 ? e.moduleReference.expression : e.initializer.arguments[0]; } function qte(e, t) { if (Gc(e)) Go(e.moduleSpecifier) && t(e); else if (tu(e)) Um(e.moduleReference) && Ts(e.moduleReference.expression) && t(e); else if (sc(e)) for (const r of e.declarationList.declarations) r.initializer && vd(r.initializer, !0) && t(r); } function hze(e, t, r, i, o, s, c) { let f; const d = []; return t.forEach((y) => { y.escapedName === "default" ? f = N.createIdentifier(PF(y)) : d.push(y.name); }), cxe(e, f, d, r, i, o, s, c); } function cxe(e, t, r, i, o, s, c, f) { const d = mv(fi(e.path), i), y = y5(o.getCompilerOptions(), e, e.path, d, Bx(o, s)); if (c) { const m = r.map((b) => N.createImportSpecifier(!1, void 0, N.createIdentifier(b))); return Dye(t, m, y, f); } else { D.assert(!t, "No default import should exist"); const m = r.map((b) => N.createBindingElement(void 0, void 0, b)); return m.length ? uxe(N.createObjectBindingPattern(m), void 0, Jte(N.createStringLiteral(y))) : void 0; } } function uxe(e, t, r, i = 2) { return N.createVariableStatement(void 0, N.createVariableDeclarationList([N.createVariableDeclaration(e, void 0, t, r)], i)); } function Jte(e) { return N.createCallExpression(N.createIdentifier("require"), void 0, [e]); } function gze(e, t, r, i) { return Mo(t, (o) => { if (Lze(o) && !Exe(e, o, i) && yxe(o, (s) => { var c; return r.has(D.checkDefined((c = ri(s, Lm)) == null ? void 0 : c.symbol)); })) { const s = wze(o, i); if (s) return s; } return o; }); } function dxe(e, t, r, i) { switch (t.kind) { case 269: yze(e, t, r, i); break; case 268: i(t.name) && r.delete(e, t); break; case 257: vze(e, t, r, i); break; default: D.assertNever(t, `Unexpected import decl kind ${t.kind}`); } } function yze(e, t, r, i) { if (!t.importClause) return; const { name: o, namedBindings: s } = t.importClause, c = !o || i(o), f = !s || (s.kind === 271 ? i(s.name) : s.elements.length !== 0 && s.elements.every((d) => i(d.name))); if (c && f) r.delete(e, t); else if (o && c && r.delete(e, o), s) { if (f) r.replaceNode(e, t.importClause, N.updateImportClause(t.importClause, t.importClause.isTypeOnly, o, void 0)); else if (s.kind === 272) for (const d of s.elements) i(d.name) && r.delete(e, d); } } function vze(e, t, r, i) { const { name: o } = t; switch (o.kind) { case 79: i(o) && (t.initializer && vd(t.initializer, !0) ? r.delete(e, Ou(t.parent) && Ne(t.parent.declarations) === 1 ? t.parent.parent : t) : r.delete(e, o)); break; case 204: break; case 203: if (o.elements.every((s) => Ve(s.name) && i(s.name))) r.delete(e, Ou(t.parent) && t.parent.declarations.length === 1 ? t.parent.parent : t); else for (const s of o.elements) Ve(s.name) && i(s.name) && r.delete(e, s.name); break; } } function bze(e, t, r, i, o, s, c, f, d) { const y = []; for (const C of e.statements) qte(C, (I) => { Fn(y, pxe(I, lxe(I), (O) => t.has(o.getSymbolAtLocation(O)))); }); let m; const b = [], A = BC(); return r.forEach((C) => { if (C.declarations) for (const I of C.declarations) { if (!hxe(I)) continue; const O = Ize(I); if (!O) continue; const k = bxe(I); A(k) && kze(e, k, O, i, f), Jr(I, 1024) ? m = O : b.push(O.text); } }), Fn(y, cxe(e, m, b, cu(e.fileName), s, c, f, d)), y; } function Eze(e, t, r, i) { let o = e; for (let s = 1; ; s++) { const c = Oi(r, o + t); if (!i.fileExists(c)) return o; o = `${e}.${s}`; } } function Tze(e, t) { return e.forEachEntry(PF) || t.forEachEntry(PF) || "newFile"; } function Sze(e, t, r) { const i = new Cw(), o = new Cw(), s = new Cw(), c = un(t, (b) => !!(b.transformFlags & 2)), f = m(c); f && o.add(f); for (const b of t) yxe(b, (A) => { i.add(D.checkDefined(eu(A) ? r.getSymbolAtLocation(A.expression.left) : A.symbol, "Need a symbol here")); }); for (const b of t) mxe(b, r, (A) => { if (A.declarations) for (const C of A.declarations) fxe(C) ? o.add(A) : hxe(C) && Cze(C) === e && !i.has(A) && s.add(A); }); const d = o.clone(), y = new Cw(); for (const b of e.statements) Ii(t, b) || (f && b.transformFlags & 2 && d.delete(f), mxe(b, r, (A) => { i.has(A) && y.add(A), d.delete(A); })); return { movedSymbols: i, newFileImportsFromOldFile: s, oldFileImportsFromNewFile: y, oldImportsNeededByNewFile: o, unusedImportsFromOldFile: d }; function m(b) { if (b === void 0) return; const A = r.getJsxNamespace(b), C = r.resolveName(A, b, 1920, !0); return C && kt(C.declarations, fxe) ? C : void 0; } } function fxe(e) { switch (e.kind) { case 268: case 273: case 270: case 271: return !0; case 257: return _xe(e); case 205: return Wi(e.parent.parent) && _xe(e.parent.parent); default: return !1; } } function _xe(e) { return ji(e.parent.parent.parent) && !!e.initializer && vd(e.initializer, !0); } function pxe(e, t, r) { switch (e.kind) { case 269: { const i = e.importClause; if (!i) return; const o = i.name && r(i.name) ? i.name : void 0, s = i.namedBindings && xze(i.namedBindings, r); return o || s ? N.createImportDeclaration(void 0, N.createImportClause(i.isTypeOnly, o, s), t, void 0) : void 0; } case 268: return r(e.name) ? e : void 0; case 257: { const i = Aze(e.name, r); return i ? uxe(i, e.type, Jte(t), e.parent.flags) : void 0; } default: return D.assertNever(e, `Unexpected import kind ${e.kind}`); } } function xze(e, t) { if (e.kind === 271) return t(e.name) ? e : void 0; { const r = e.elements.filter((i) => t(i.name)); return r.length ? N.createNamedImports(r) : void 0; } } function Aze(e, t) { switch (e.kind) { case 79: return t(e) ? e : void 0; case 204: return e; case 203: { const r = e.elements.filter((i) => i.propertyName || !Ve(i.name) || t(i.name)); return r.length ? N.createObjectBindingPattern(r) : void 0; } } } function mxe(e, t, r) { e.forEachChild(function i(o) { if (Ve(o) && !sg(o)) { const s = t.getSymbolAtLocation(o); s && r(s); } else o.forEachChild(i); }); } function hxe(e) { return gxe(e) && ji(e.parent) || Wi(e) && ji(e.parent.parent.parent); } function Cze(e) { return Wi(e) ? e.parent.parent.parent : e.parent; } function Lze(e) { return D.assert(ji(e.parent), "Node parent should be a SourceFile"), gxe(e) || sc(e); } function gxe(e) { switch (e.kind) { case 259: case 260: case 264: case 263: case 262: case 261: case 268: return !0; default: return !1; } } function yxe(e, t) { switch (e.kind) { case 259: case 260: case 264: case 263: case 262: case 261: case 268: return t(e); case 240: return En(e.declarationList.declarations, (r) => vxe(r.name, t)); case 241: { const { expression: r } = e; return vr(r) && xl(r) === 1 ? t(e) : void 0; } } } function vxe(e, t) { switch (e.kind) { case 79: return t(ro(e.parent, (r) => Wi(r) || us(r))); case 204: case 203: return En(e.elements, (r) => Ic(r) ? void 0 : vxe(r.name, t)); default: return D.assertNever(e, `Unexpected name kind ${e.kind}`); } } function Ize(e) { return eu(e) ? ri(e.expression.left.name, Ve) : ri(e.name, Ve); } function bxe(e) { switch (e.kind) { case 257: return e.parent.parent; case 205: return bxe(ro(e.parent.parent, (t) => Wi(t) || us(t))); default: return e; } } function kze(e, t, r, i, o) { if (!Exe(e, t, o, r)) if (o) eu(t) || i.insertExportModifier(e, t); else { const s = Kte(t); s.length !== 0 && i.insertNodesAfter(e, t, s.map(Txe)); } } function Exe(e, t, r, i) { var o; return r ? !eu(t) && Jr(t, 1) || !!(i && ((o = e.symbol.exports) != null && o.has(i.escapedText))) : !!e.symbol && !!e.symbol.exports && Kte(t).some((s) => e.symbol.exports.has(al(s))); } function wze(e, t) { return t ? [Dze(e)] : Rze(e); } function Dze(e) { const t = H_(e) ? ha([N.createModifier(93)], XE(e)) : void 0; switch (e.kind) { case 259: return N.updateFunctionDeclaration(e, t, e.asteriskToken, e.name, e.typeParameters, e.parameters, e.type, e.body); case 260: const r = wx(e) ? yv(e) : void 0; return N.updateClassDeclaration(e, ha(r, t), e.name, e.typeParameters, e.heritageClauses, e.members); case 240: return N.updateVariableStatement(e, t, e.declarationList); case 264: return N.updateModuleDeclaration(e, t, e.name, e.body); case 263: return N.updateEnumDeclaration(e, t, e.name, e.members); case 262: return N.updateTypeAliasDeclaration(e, t, e.name, e.typeParameters, e.type); case 261: return N.updateInterfaceDeclaration(e, t, e.name, e.typeParameters, e.heritageClauses, e.members); case 268: return N.updateImportEqualsDeclaration(e, t, e.isTypeOnly, e.name, e.moduleReference); case 241: return D.fail(); default: return D.assertNever(e, `Unexpected declaration kind ${e.kind}`); } } function Rze(e) { return [e, ...Kte(e).map(Txe)]; } function Kte(e) { switch (e.kind) { case 259: case 260: return [e.name.text]; case 240: return _a(e.declarationList.declarations, (t) => Ve(t.name) ? t.name.text : void 0); case 264: case 263: case 262: case 261: case 268: return nt; case 241: return D.fail("Can't export an ExpressionStatement"); default: return D.assertNever(e, `Unexpected decl kind ${e.kind}`); } } function Txe(e) { return N.createExpressionStatement(N.createBinaryExpression(N.createPropertyAccessExpression(N.createIdentifier("exports"), N.createIdentifier(e)), 63, N.createIdentifier(e))); } var Aw, LG, IG, Cw, Nze = L({ "src/services/refactors/moveToNewFile.ts"() { gme(), Kr(), Lh(), Aw = "Move to a new file", LG = Do(_.Move_to_a_new_file), IG = { name: Aw, description: LG, kind: "refactor.move.newFile" }, hg(Aw, { kinds: [IG.kind], getAvailableActions: function(t) { const r = oxe(t); return t.preferences.allowTextChangesInNewFiles && r ? [{ name: Aw, description: LG, actions: [IG] }] : t.preferences.provideRefactorNotApplicableReason ? [{ name: Aw, description: LG, actions: [{ ...IG, notApplicableReason: Do(_.Selection_is_not_a_valid_statement_or_statements) }] }] : nt; }, getEditsForAction: function(t, r) { D.assert(r === Aw, "Wrong refactor invoked"); const i = D.checkDefined(oxe(t)); return { edits: hr.ChangeTracker.with(t, (s) => oze(t.file, t.program, i, s, t.host, t.preferences)), renameFilename: void 0, renameLocation: void 0 }; } }), Cw = class { constructor() { this.map = /* @__PURE__ */ new Map(); } add(e) { this.map.set(String(go(e)), e); } has(e) { return this.map.has(String(go(e))); } delete(e) { this.map.delete(String(go(e))); } forEach(e) { this.map.forEach(e); } forEachEntry(e) { return Zd(this.map, e); } clone() { const e = new Cw(); return WR(this.map, e.map), e; } size() { return this.map.size; } }; } }); function Oze(e) { const { file: t, startPosition: r, program: i } = e; return xxe(t, r, i) ? [{ name: kG, description: Xte, actions: [Yte] }] : nt; } function Pze(e) { const { file: t, startPosition: r, program: i } = e, o = xxe(t, r, i); if (!o) return; const s = i.getTypeChecker(), c = o[o.length - 1]; let f = c; switch (c.kind) { case 170: { f = N.updateMethodSignature(c, c.modifiers, c.name, c.questionToken, c.typeParameters, y(o), c.type); break; } case 171: { f = N.updateMethodDeclaration(c, c.modifiers, c.asteriskToken, c.name, c.questionToken, c.typeParameters, y(o), c.type, c.body); break; } case 176: { f = N.updateCallSignature(c, c.typeParameters, y(o), c.type); break; } case 173: { f = N.updateConstructorDeclaration(c, c.modifiers, y(o), c.body); break; } case 177: { f = N.updateConstructSignature(c, c.typeParameters, y(o), c.type); break; } case 259: { f = N.updateFunctionDeclaration(c, c.modifiers, c.asteriskToken, c.name, c.typeParameters, y(o), c.type, c.body); break; } default: return D.failBadSyntaxKind(c, "Unhandled signature kind in overload list conversion refactoring"); } if (f === c) return; return { renameFilename: void 0, renameLocation: void 0, edits: hr.ChangeTracker.with(e, (A) => { A.replaceNodeRange(t, o[0], o[o.length - 1], f); }) }; function y(A) { const C = A[A.length - 1]; return Ys(C) && C.body && (A = A.slice(0, A.length - 1)), N.createNodeArray([ N.createParameterDeclaration(void 0, N.createToken(25), "args", void 0, N.createUnionTypeNode(rn(A, m))) ]); } function m(A) { const C = rn(A.parameters, b); return or(N.createTupleTypeNode(C), kt(C, (I) => !!Ne(rC(I))) ? 0 : 1); } function b(A) { D.assert(Ve(A.name)); const C = mt(N.createNamedTupleMember(A.dotDotDotToken, A.name, A.questionToken, A.type || N.createKeywordTypeNode(131)), A), I = A.symbol && A.symbol.getDocumentationComment(s); if (I) { const O = A0e(I); O.length && L1(C, [{ text: `* ${O.split(` `).map((k) => ` * ${k}`).join(` `)} `, kind: 3, pos: -1, end: -1, hasTrailingNewLine: !0, hasLeadingNewline: !0 }]); } return C; } } function Sxe(e) { switch (e.kind) { case 170: case 171: case 176: case 173: case 177: case 259: return !0; } return !1; } function xxe(e, t, r) { const i = ra(e, t), o = nr(i, Sxe); if (!o || Ys(o) && o.body && G8(o.body, t)) return; const s = r.getTypeChecker(), c = o.symbol; if (!c) return; const f = c.declarations; if (Ne(f) <= 1 || !Vn(f, (A) => Zn(A) === e) || !Sxe(f[0])) return; const d = f[0].kind; if (!Vn(f, (A) => A.kind === d)) return; const y = f; if (kt(y, (A) => !!A.typeParameters || kt(A.parameters, (C) => !!C.modifiers || !Ve(C.name)))) return; const m = _a(y, (A) => s.getSignatureFromDeclaration(A)); if (Ne(m) !== Ne(f)) return; const b = s.getReturnTypeOfSignature(m[0]); if (Vn(m, (A) => s.getReturnTypeOfSignature(A) === b)) return y; } var kG, Xte, Yte, Mze = L({ "src/services/refactors/convertOverloadListToSingleSignature.ts"() { Kr(), Lh(), kG = "Convert overload list to single signature", Xte = _.Convert_overload_list_to_single_signature.message, Yte = { name: kG, description: Xte, kind: "refactor.rewrite.function.overloadList" }, hg(kG, { kinds: [Yte.kind], getEditsForAction: Pze, getAvailableActions: Oze }); } }); function Fze(e) { const { file: t, startPosition: r, triggerReason: i } = e, o = Axe(t, r, i === "invoked"); return o ? Ch(o) ? e.preferences.provideRefactorNotApplicableReason ? [{ name: wG, description: $te, actions: [ { ...U6, notApplicableReason: o.error }, { ...Lw, notApplicableReason: o.error } ] }] : nt : [{ name: wG, description: $te, actions: [ o.addBraces ? U6 : Lw ] }] : nt; } function Bze(e, t) { const { file: r, startPosition: i } = e, o = Axe(r, i); D.assert(o && !Ch(o), "Expected applicable refactor info"); const { expression: s, returnStatement: c, func: f } = o; let d; if (t === U6.name) { const m = N.createReturnStatement(s); d = N.createBlock([m], !0), jC(s, m, r, 3, !0); } else if (t === Lw.name && c) { const m = s || N.createVoidZero(); d = G$(m) ? N.createParenthesizedExpression(m) : m, n6(c, d, r, 3, !1), jC(c, d, r, 3, !1), ow(c, d, r, 3, !1); } else D.fail("invalid action"); return { renameFilename: void 0, renameLocation: void 0, edits: hr.ChangeTracker.with(e, (m) => { m.replaceNode(r, f.body, d); }) }; } function Axe(e, t, r = !0, i) { const o = ra(e, t), s = bf(o); if (!s) return { error: Do(_.Could_not_find_a_containing_arrow_function) }; if (!zs(s)) return { error: Do(_.Containing_function_is_not_an_arrow_function) }; if (!(!af(s, o) || af(s.body, o) && !r)) { if (qv(U6.kind, i) && yt(s.body)) return { func: s, addBraces: !0, expression: s.body }; if (qv(Lw.kind, i) && oo(s.body) && s.body.statements.length === 1) { const c = ss(s.body.statements); if (pp(c)) return { func: s, addBraces: !1, expression: c.expression, returnStatement: c }; } } } var wG, $te, U6, Lw, Gze = L({ "src/services/refactors/addOrRemoveBracesToArrowFunction.ts"() { Kr(), Lh(), wG = "Add or remove braces in an arrow function", $te = _.Add_or_remove_braces_in_an_arrow_function.message, U6 = { name: "Add braces to arrow function", description: _.Add_braces_to_arrow_function.message, kind: "refactor.rewrite.arrow.braces.add" }, Lw = { name: "Remove braces from arrow function", description: _.Remove_braces_from_arrow_function.message, kind: "refactor.rewrite.arrow.braces.remove" }, hg(wG, { kinds: [Lw.kind], getEditsForAction: Bze, getAvailableActions: Fze }); } }), Uze = {}, Vze = L({ "src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"() { Mze(), Gze(); } }); function jze(e) { const { file: t, startPosition: r, program: i, kind: o } = e, s = Lxe(t, r, i); if (!s) return nt; const { selectedVariableDeclaration: c, func: f } = s, d = [], y = []; if (qv(kw.kind, o)) { const m = c || zs(f) && Wi(f.parent) ? void 0 : Do(_.Could_not_convert_to_named_function); m ? y.push({ ...kw, notApplicableReason: m }) : d.push(kw); } if (qv(Iw.kind, o)) { const m = !c && zs(f) ? void 0 : Do(_.Could_not_convert_to_anonymous_function); m ? y.push({ ...Iw, notApplicableReason: m }) : d.push(Iw); } if (qv(ww.kind, o)) { const m = Ms(f) ? void 0 : Do(_.Could_not_convert_to_arrow_function); m ? y.push({ ...ww, notApplicableReason: m }) : d.push(ww); } return [{ name: Qte, description: wxe, actions: d.length === 0 && e.preferences.provideRefactorNotApplicableReason ? y : d }]; } function Hze(e, t) { const { file: r, startPosition: i, program: o } = e, s = Lxe(r, i, o); if (!s) return; const { func: c } = s, f = []; switch (t) { case Iw.name: f.push(...Jze(e, c)); break; case kw.name: const d = qze(c); if (!d) return; f.push(...Kze(e, c, d)); break; case ww.name: if (!Ms(c)) return; f.push(...Xze(e, c)); break; default: return D.fail("invalid action"); } return { renameFilename: void 0, renameLocation: void 0, edits: f }; } function Cxe(e) { let t = !1; return e.forEachChild(function r(i) { if (FC(i)) { t = !0; return; } !li(i) && !pc(i) && !Ms(i) && Oa(i, r); }), t; } function Lxe(e, t, r) { const i = ra(e, t), o = r.getTypeChecker(), s = zze(e, o, i.parent); if (s && !Cxe(s.body) && !o.containsArgumentsReference(s)) return { selectedVariableDeclaration: !0, func: s }; const c = bf(i); if (c && (Ms(c) || zs(c)) && !af(c.body, i) && !Cxe(c.body) && !o.containsArgumentsReference(c)) return Ms(c) && kxe(e, o, c) ? void 0 : { selectedVariableDeclaration: !1, func: c }; } function Wze(e) { return Wi(e) || Ou(e) && e.declarations.length === 1; } function zze(e, t, r) { if (!Wze(r)) return; const o = (Wi(r) ? r : ss(r.declarations)).initializer; if (o && (zs(o) || Ms(o) && !kxe(e, t, o))) return o; } function Ixe(e) { if (yt(e)) { const t = N.createReturnStatement(e), r = e.getSourceFile(); return mt(t, e), Gd(t), n6(e, t, r, void 0, !0), N.createBlock([t], !0); } else return e; } function qze(e) { const t = e.parent; if (!Wi(t) || !GM(t)) return; const r = t.parent, i = r.parent; if (!(!Ou(r) || !sc(i) || !Ve(t.name))) return { variableDeclaration: t, variableDeclarationList: r, statement: i, name: t.name }; } function Jze(e, t) { const { file: r } = e, i = Ixe(t.body), o = N.createFunctionExpression(t.modifiers, t.asteriskToken, void 0, t.typeParameters, t.parameters, t.type, i); return hr.ChangeTracker.with(e, (s) => s.replaceNode(r, t, o)); } function Kze(e, t, r) { const { file: i } = e, o = Ixe(t.body), { variableDeclaration: s, variableDeclarationList: c, statement: f, name: d } = r; VF(f); const y = cy(s) & 1 | wu(t), m = N.createModifiersFromModifierFlags(y), b = N.createFunctionDeclaration(Ne(m) ? m : void 0, t.asteriskToken, d, t.typeParameters, t.parameters, t.type, o); return c.declarations.length === 1 ? hr.ChangeTracker.with(e, (A) => A.replaceNode(i, f, b)) : hr.ChangeTracker.with(e, (A) => { A.delete(i, s), A.insertNodeAfter(i, f, b); }); } function Xze(e, t) { const { file: r } = e, o = t.body.statements[0]; let s; Yze(t.body, o) ? (s = o.expression, Gd(s), jT(o, s)) : s = t.body; const c = N.createArrowFunction(t.modifiers, t.typeParameters, t.parameters, t.type, N.createToken(38), s); return hr.ChangeTracker.with(e, (f) => f.replaceNode(r, t, c)); } function Yze(e, t) { return e.statements.length === 1 && pp(t) && !!t.expression; } function kxe(e, t, r) { return !!r.name && ll.Core.isSymbolReferencedInFile(r.name, t, e); } var Qte, wxe, Iw, kw, ww, $ze = L({ "src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"() { Kr(), Lh(), Qte = "Convert arrow function or function expression", wxe = Do(_.Convert_arrow_function_or_function_expression), Iw = { name: "Convert to anonymous function", description: Do(_.Convert_to_anonymous_function), kind: "refactor.rewrite.function.anonymous" }, kw = { name: "Convert to named function", description: Do(_.Convert_to_named_function), kind: "refactor.rewrite.function.named" }, ww = { name: "Convert to arrow function", description: Do(_.Convert_to_arrow_function), kind: "refactor.rewrite.function.arrow" }, hg(Qte, { kinds: [ Iw.kind, kw.kind, ww.kind ], getEditsForAction: Hze, getAvailableActions: jze }); } }), Qze = {}, Zze = L({ "src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"() { $ze(); } }); function eqe(e) { const { file: t, startPosition: r } = e; return Ju(t) || !Nxe(t, r, e.program.getTypeChecker()) ? nt : [{ name: j6, description: nne, actions: [rne] }]; } function tqe(e, t) { D.assert(t === j6, "Unexpected action name"); const { file: r, startPosition: i, program: o, cancellationToken: s, host: c } = e, f = Nxe(r, i, o.getTypeChecker()); if (!f || !s) return; const d = rqe(f, o, s); return d.valid ? { renameFilename: void 0, renameLocation: void 0, edits: hr.ChangeTracker.with(e, (m) => nqe(r, o, c, m, f, d)) } : { edits: [] }; } function nqe(e, t, r, i, o, s) { const c = s.signature, f = rn(Fxe(o, t, r), (m) => Il(m)); if (c) { const m = rn(Fxe(c, t, r), (b) => Il(b)); y(c, m); } y(o, f); const d = $D(s.functionCalls, (m, b) => js(m.pos, b.pos)); for (const m of d) if (m.arguments && m.arguments.length) { const b = Il(_qe(o, m.arguments), !0); i.replaceNodeRange(Zn(m), ss(m.arguments), Ho(m.arguments), b, { leadingTriviaOption: hr.LeadingTriviaOption.IncludeAll, trailingTriviaOption: hr.TrailingTriviaOption.Include }); } function y(m, b) { i.replaceNodeRangeWithNodes(e, ss(m.parameters), Ho(m.parameters), b, { joiner: ", ", indentation: 0, leadingTriviaOption: hr.LeadingTriviaOption.IncludeAll, trailingTriviaOption: hr.TrailingTriviaOption.Include }); } } function rqe(e, t, r) { const i = mqe(e), o = jl(e) ? pqe(e) : [], s = oA([...i, ...o], N0), c = t.getTypeChecker(), f = Mo(s, (b) => ll.getReferenceEntriesForNode(-1, b, t, t.getSourceFiles(), r)), d = y(f); return Vn(d.declarations, (b) => Ii(s, b)) || (d.valid = !1), d; function y(b) { const A = { accessExpressions: [], typeUsages: [] }, C = { functionCalls: [], declarations: [], classReferences: A, valid: !0 }, I = rn(i, m), O = rn(o, m), k = jl(e), B = rn(i, (U) => Zte(U, c)); for (const U of b) { if (U.kind === ll.EntryKind.Span) { C.valid = !1; continue; } if (Ii(B, m(U.node))) { if (sqe(U.node.parent)) { C.signature = U.node.parent; continue; } const te = Rxe(U); if (te) { C.functionCalls.push(te); continue; } } const j = Zte(U.node, c); if (j && Ii(B, j)) { const te = ene(U); if (te) { C.declarations.push(te); continue; } } if (Ii(I, m(U.node)) || Qk(U.node)) { if (Dxe(U)) continue; const X = ene(U); if (X) { C.declarations.push(X); continue; } const Y = Rxe(U); if (Y) { C.functionCalls.push(Y); continue; } } if (k && Ii(O, m(U.node))) { if (Dxe(U)) continue; const X = ene(U); if (X) { C.declarations.push(X); continue; } const Y = iqe(U); if (Y) { A.accessExpressions.push(Y); continue; } if (kc(e.parent)) { const P = aqe(U); if (P) { A.typeUsages.push(P); continue; } } } C.valid = !1; } return C; } function m(b) { const A = c.getSymbolAtLocation(b); return A && Hye(A, c); } } function Zte(e, t) { const r = u6(e); if (r) { const i = t.getContextualTypeForObjectLiteralElement(r), o = i == null ? void 0 : i.getSymbol(); if (o && !(Al(o) & 6)) return o; } } function Dxe(e) { const t = e.node; if (Td(t.parent) || Gm(t.parent) || tu(t.parent) || Ov(t.parent) || od(t.parent) || Pl(t.parent)) return t; } function ene(e) { if (_u(e.node.parent)) return e.node; } function Rxe(e) { if (e.node.parent) { const t = e.node, r = t.parent; switch (r.kind) { case 210: case 211: const i = ri(r, ng); if (i && i.expression === t) return i; break; case 208: const o = ri(r, Pr); if (o && o.parent && o.name === t) { const c = ri(o.parent, ng); if (c && c.expression === o) return c; } break; case 209: const s = ri(r, sl); if (s && s.parent && s.argumentExpression === t) { const c = ri(s.parent, ng); if (c && c.expression === s) return c; } break; } } } function iqe(e) { if (e.node.parent) { const t = e.node, r = t.parent; switch (r.kind) { case 208: const i = ri(r, Pr); if (i && i.expression === t) return i; break; case 209: const o = ri(r, sl); if (o && o.expression === t) return o; break; } } } function aqe(e) { const t = e.node; if (BT(t) === 2 || PN(t.parent)) return t; } function Nxe(e, t, r) { const i = tw(e, t), o = Jce(i); if (!oqe(i) && o && lqe(o, r) && af(o, i) && !(o.body && af(o.body, i))) return o; } function oqe(e) { const t = nr(e, EA); if (t) { const r = nr(t, (i) => !EA(i)); return !!r && Ys(r); } return !1; } function sqe(e) { return bh(e) && (Yu(e.parent) || rf(e.parent)); } function lqe(e, t) { var r; if (!cqe(e.parameters, t)) return !1; switch (e.kind) { case 259: return Oxe(e) && V6(e, t); case 171: if (As(e.parent)) { const i = Zte(e.name, t); return ((r = i == null ? void 0 : i.declarations) == null ? void 0 : r.length) === 1 && V6(e, t); } return V6(e, t); case 173: return kc(e.parent) ? Oxe(e.parent) && V6(e, t) : Pxe(e.parent.parent) && V6(e, t); case 215: case 216: return Pxe(e.parent); } return !1; } function V6(e, t) { return !!e.body && !t.isImplementationOfOverload(e); } function Oxe(e) { return e.name ? !0 : !!GC(e, 88); } function cqe(e, t) { return dqe(e) >= Bxe && Vn(e, (r) => uqe(r, t)); } function uqe(e, t) { if (fh(e)) { const r = t.getTypeAtLocation(e); if (!t.isArrayType(r) && !t.isTupleType(r)) return !1; } return !e.modifiers && Ve(e.name); } function Pxe(e) { return Wi(e) && ig(e) && Ve(e.name) && !e.type; } function tne(e) { return e.length > 0 && FC(e[0].name); } function dqe(e) { return tne(e) ? e.length - 1 : e.length; } function Mxe(e) { return tne(e) && (e = N.createNodeArray(e.slice(1), e.hasTrailingComma)), e; } function fqe(e, t) { return Ve(t) && P_(t) === e ? N.createShorthandPropertyAssignment(e) : N.createPropertyAssignment(e, t); } function _qe(e, t) { const r = Mxe(e.parameters), i = fh(Ho(r)), o = i ? t.slice(0, r.length - 1) : t, s = rn(o, (f, d) => { const y = DG(r[d]), m = fqe(y, f); return Gd(m.name), Uc(m) && Gd(m.initializer), jT(f, m), m; }); if (i && t.length >= r.length) { const f = t.slice(r.length - 1), d = N.createPropertyAssignment(DG(Ho(r)), N.createArrayLiteralExpression(f)); s.push(d); } return N.createObjectLiteralExpression(s, !1); } function Fxe(e, t, r) { const i = t.getTypeChecker(), o = Mxe(e.parameters), s = rn(o, m), c = N.createObjectBindingPattern(s), f = b(o); let d; Vn(o, I) && (d = N.createObjectLiteralExpression()); const y = N.createParameterDeclaration(void 0, void 0, c, void 0, f, d); if (tne(e.parameters)) { const O = e.parameters[0], k = N.createParameterDeclaration(void 0, void 0, O.name, void 0, O.type); return Gd(k.name), jT(O.name, k.name), O.type && (Gd(k.type), jT(O.type, k.type)), N.createNodeArray([k, y]); } return N.createNodeArray([y]); function m(O) { const k = N.createBindingElement(void 0, void 0, DG(O), fh(O) && I(O) ? N.createArrayLiteralExpression() : O.initializer); return Gd(k), O.initializer && k.initializer && jT(O.initializer, k.initializer), k; } function b(O) { const k = rn(O, A); return Kp(N.createTypeLiteralNode(k), 1); } function A(O) { let k = O.type; !k && (O.initializer || fh(O)) && (k = C(O)); const B = N.createPropertySignature(void 0, DG(O), I(O) ? N.createToken(57) : O.questionToken, k); return Gd(B), jT(O.name, B.name), O.type && B.type && jT(O.type, B.type), B; } function C(O) { const k = i.getTypeAtLocation(O); return lw(k, O, t, r); } function I(O) { if (fh(O)) { const k = i.getTypeAtLocation(O); return !i.isTupleType(k); } return i.isOptionalParameter(O); } } function DG(e) { return P_(e.name); } function pqe(e) { switch (e.parent.kind) { case 260: const t = e.parent; return t.name ? [t.name] : [D.checkDefined(GC(t, 88), "Nameless class declaration should be a default export")]; case 228: const i = e.parent, o = e.parent.parent, s = i.name; return s ? [s, o.name] : [o.name]; } } function mqe(e) { switch (e.kind) { case 259: return e.name ? [e.name] : [D.checkDefined(GC(e, 88), "Nameless function declaration should be a default export")]; case 171: return [e.name]; case 173: const r = D.checkDefined(ys(e, 135, e.getSourceFile()), "Constructor declaration should have constructor keyword"); return e.parent.kind === 228 ? [e.parent.parent.name, r] : [r]; case 216: return [e.parent.name]; case 215: return e.name ? [e.name, e.parent.name] : [e.parent.name]; default: return D.assertNever(e, `Unexpected function declaration kind ${e.kind}`); } } var j6, Bxe, nne, rne, hqe = L({ "src/services/refactors/convertParamsToDestructuredObject.ts"() { Kr(), Lh(), j6 = "Convert parameters to destructured object", Bxe = 1, nne = Do(_.Convert_parameters_to_destructured_object), rne = { name: j6, description: nne, kind: "refactor.rewrite.parameters.toDestructured" }, hg(j6, { kinds: [rne.kind], getEditsForAction: tqe, getAvailableActions: eqe }); } }), gqe = {}, yqe = L({ "src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"() { hqe(); } }); function vqe(e) { const { file: t, startPosition: r } = e, i = Gxe(t, r), o = ine(i), s = { name: RG, description: NG, actions: [] }; return vr(o) && ane(o).isValidConcatenation ? (s.actions.push(OG), [s]) : e.preferences.provideRefactorNotApplicableReason ? (s.actions.push({ ...OG, notApplicableReason: Do(_.Can_only_convert_string_concatenation) }), [s]) : nt; } function Gxe(e, t) { const r = ra(e, t), i = ine(r); return !ane(i).isValidConcatenation && Pd(i.parent) && vr(i.parent.parent) ? i.parent.parent : r; } function bqe(e, t) { const { file: r, startPosition: i } = e, o = Gxe(r, i); switch (t) { case NG: return { edits: Eqe(e, o) }; default: return D.fail("invalid action"); } } function Eqe(e, t) { const r = ine(t), i = e.file, o = xqe(ane(r), i), s = O0(i.text, r.end); if (s) { const c = s[s.length - 1], f = { pos: s[0].pos, end: c.end }; return hr.ChangeTracker.with(e, (d) => { d.deleteRange(i, f), d.replaceNode(i, r, o); }); } else return hr.ChangeTracker.with(e, (c) => c.replaceNode(i, r, o)); } function Tqe(e) { return e.operatorToken.kind !== 63; } function ine(e) { return nr(e.parent, (r) => { switch (r.kind) { case 208: case 209: return !1; case 225: case 223: return !(vr(r.parent) && Tqe(r.parent)); default: return "quit"; } }) || e; } function ane(e) { const t = (c) => { if (!vr(c)) return { nodes: [c], operators: [], validOperators: !0, hasString: Go(c) || px(c) }; const { nodes: f, operators: d, hasString: y, validOperators: m } = t(c.left); if (!(y || Go(c.right) || T7(c.right))) return { nodes: [c], operators: [], hasString: !1, validOperators: !0 }; const b = c.operatorToken.kind === 39, A = m && b; return f.push(c.right), d.push(c.operatorToken), { nodes: f, operators: d, hasString: !0, validOperators: A }; }, { nodes: r, operators: i, validOperators: o, hasString: s } = t(e); return { nodes: r, operators: i, isValidConcatenation: o && s }; } function Sqe(e) { return e.replace(/\\.|[$`]/g, (t) => t[0] === "\\" ? t : "\\" + t); } function Uxe(e) { const t = oC(e) || pfe(e) ? -2 : -1; return bc(e).slice(1, t); } function Vxe(e, t) { const r = []; let i = "", o = ""; for (; e < t.length; ) { const s = t[e]; if (Ts(s)) i += s.text, o += Sqe(bc(s).slice(1, -1)), r.push(e), e++; else if (T7(s)) { i += s.head.text, o += Uxe(s.head); break; } else break; } return [e, i, o, r]; } function xqe({ nodes: e, operators: t }, r) { const i = Hxe(t, r), o = Wxe(e, r, i), [s, c, f, d] = Vxe(0, e); if (s === e.length) { const b = N.createNoSubstitutionTemplateLiteral(c, f); return o(d, b), b; } const y = [], m = N.createTemplateHead(c, f); o(d, m); for (let b = s; b < e.length; b++) { const A = Aqe(e[b]); i(b, A); const [C, I, O, k] = Vxe(b + 1, e); b = C - 1; const B = b === e.length - 1; if (T7(A)) { const U = rn(A.templateSpans, (j, te) => { jxe(j); const X = te === A.templateSpans.length - 1, Y = j.literal.text + (X ? I : ""), P = Uxe(j.literal) + (X ? O : ""); return N.createTemplateSpan(j.expression, B && X ? N.createTemplateTail(Y, P) : N.createTemplateMiddle(Y, P)); }); y.push(...U); } else { const U = B ? N.createTemplateTail(I, O) : N.createTemplateMiddle(I, O); o(k, U), y.push(N.createTemplateSpan(A, U)); } } return N.createTemplateExpression(m, y); } function jxe(e) { const t = e.getSourceFile(); ow(e, e.expression, t, 3, !1), n6(e.expression, e.expression, t, 3, !1); } function Aqe(e) { return Pd(e) && (jxe(e), e = e.expression), e; } var RG, NG, OG, Hxe, Wxe, Cqe = L({ "src/services/refactors/convertStringOrTemplateLiteral.ts"() { Kr(), Lh(), RG = "Convert to template string", NG = Do(_.Convert_to_template_string), OG = { name: RG, description: NG, kind: "refactor.rewrite.string" }, hg(RG, { kinds: [OG.kind], getEditsForAction: bqe, getAvailableActions: vqe }), Hxe = (e, t) => (r, i) => { r < e.length && ow(e[r], i, t, 3, !1); }, Wxe = (e, t, r) => (i, o) => { for (; i.length > 0; ) { const s = i.shift(); ow(e[s], o, t, 3, !1), r(s, o); } }; } }), Lqe = {}, Iqe = L({ "src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"() { Cqe(); } }); function kqe(e) { const t = zxe(e, e.triggerReason === "invoked"); return t ? Ch(t) ? e.preferences.provideRefactorNotApplicableReason ? [{ name: H6, description: FG, actions: [{ ...BG, notApplicableReason: t.error }] }] : nt : [{ name: H6, description: FG, actions: [BG] }] : nt; } function wqe(e, t) { const r = zxe(e); return D.assert(r && !Ch(r), "Expected applicable refactor info"), { edits: hr.ChangeTracker.with(e, (o) => Bqe(e.file, e.program.getTypeChecker(), o, r)), renameFilename: void 0, renameLocation: void 0 }; } function PG(e) { return vr(e) || pC(e); } function Dqe(e) { return eu(e) || pp(e) || sc(e); } function MG(e) { return PG(e) || Dqe(e); } function zxe(e, t = !0) { const { file: r, program: i } = e, o = Gx(e), s = o.length === 0; if (s && !t) return; const c = ra(r, o.start), f = AF(r, o.start + o.length), d = fc(c.pos, f && f.end >= c.pos ? f.getEnd() : c.getEnd()), y = s ? Mqe(c) : Pqe(c, d), m = y && MG(y) ? Fqe(y) : void 0; if (!m) return { error: Do(_.Could_not_find_convertible_access_expression) }; const b = i.getTypeChecker(); return pC(m) ? Rqe(m, b) : Nqe(m); } function Rqe(e, t) { const r = e.condition, i = sne(e.whenTrue); if (!i || t.isNullableType(t.getTypeAtLocation(i))) return { error: Do(_.Could_not_find_convertible_access_expression) }; if ((Pr(r) || Ve(r)) && one(r, i.expression)) return { finalExpression: i, occurrences: [r], expression: e }; if (vr(r)) { const o = qxe(i.expression, r); return o ? { finalExpression: i, occurrences: o, expression: e } : { error: Do(_.Could_not_find_matching_access_expressions) }; } } function Nqe(e) { if (e.operatorToken.kind !== 55) return { error: Do(_.Can_only_convert_logical_AND_access_chains) }; const t = sne(e.right); if (!t) return { error: Do(_.Could_not_find_convertible_access_expression) }; const r = qxe(t.expression, e.left); return r ? { finalExpression: t, occurrences: r, expression: e } : { error: Do(_.Could_not_find_matching_access_expressions) }; } function qxe(e, t) { const r = []; for (; vr(t) && t.operatorToken.kind === 55; ) { const o = one(Us(e), Us(t.right)); if (!o) break; r.push(o), e = o, t = t.left; } const i = one(e, t); return i && r.push(i), r.length > 0 ? r : void 0; } function one(e, t) { if (!(!Ve(t) && !Pr(t) && !sl(t))) return Oqe(e, t) ? t : void 0; } function Oqe(e, t) { for (; (eo(e) || Pr(e) || sl(e)) && Dw(e) !== Dw(t); ) e = e.expression; for (; Pr(e) && Pr(t) || sl(e) && sl(t); ) { if (Dw(e) !== Dw(t)) return !1; e = e.expression, t = t.expression; } return Ve(e) && Ve(t) && e.getText() === t.getText(); } function Dw(e) { if (Ve(e) || Hf(e)) return e.getText(); if (Pr(e)) return Dw(e.name); if (sl(e)) return Dw(e.argumentExpression); } function Pqe(e, t) { for (; e.parent; ) { if (MG(e) && t.length !== 0 && e.end >= t.start + t.length) return e; e = e.parent; } } function Mqe(e) { for (; e.parent; ) { if (MG(e) && !MG(e.parent)) return e; e = e.parent; } } function Fqe(e) { if (PG(e)) return e; if (sc(e)) { const t = FA(e), r = t == null ? void 0 : t.initializer; return r && PG(r) ? r : void 0; } return e.expression && PG(e.expression) ? e.expression : void 0; } function sne(e) { if (e = Us(e), vr(e)) return sne(e.left); if ((Pr(e) || sl(e) || eo(e)) && !fu(e)) return e; } function Jxe(e, t, r) { if (Pr(t) || sl(t) || eo(t)) { const i = Jxe(e, t.expression, r), o = r.length > 0 ? r[r.length - 1] : void 0, s = (o == null ? void 0 : o.getText()) === t.expression.getText(); if (s && r.pop(), eo(t)) return s ? N.createCallChain(i, N.createToken(28), t.typeArguments, t.arguments) : N.createCallChain(i, t.questionDotToken, t.typeArguments, t.arguments); if (Pr(t)) return s ? N.createPropertyAccessChain(i, N.createToken(28), t.name) : N.createPropertyAccessChain(i, t.questionDotToken, t.name); if (sl(t)) return s ? N.createElementAccessChain(i, N.createToken(28), t.argumentExpression) : N.createElementAccessChain(i, t.questionDotToken, t.argumentExpression); } return t; } function Bqe(e, t, r, i, o) { const { finalExpression: s, occurrences: c, expression: f } = i, d = c[c.length - 1], y = Jxe(t, s, c); y && (Pr(y) || sl(y) || eo(y)) && (vr(f) ? r.replaceNodeRange(e, d, s, y) : pC(f) && r.replaceNode(e, f, N.createBinaryExpression(y, N.createToken(60), f.whenFalse))); } var H6, FG, BG, Gqe = L({ "src/services/refactors/convertToOptionalChainExpression.ts"() { Kr(), Lh(), H6 = "Convert to optional chain expression", FG = Do(_.Convert_to_optional_chain_expression), BG = { name: H6, description: FG, kind: "refactor.rewrite.expression.optionalChain" }, hg(H6, { kinds: [BG.kind], getEditsForAction: wqe, getAvailableActions: kqe }); } }), Uqe = {}, Vqe = L({ "src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"() { Gqe(); } }); function Kxe(e) { const t = e.kind, r = lne(e.file, Gx(e), e.triggerReason === "invoked"), i = r.targetRange; if (i === void 0) { if (!r.errors || r.errors.length === 0 || !e.preferences.provideRefactorNotApplicableReason) return nt; const I = []; return qv(t2.kind, t) && I.push({ name: Zx, description: t2.description, actions: [{ ...t2, notApplicableReason: C(r.errors) }] }), qv(e2.kind, t) && I.push({ name: Zx, description: e2.description, actions: [{ ...e2, notApplicableReason: C(r.errors) }] }), I; } const o = Jqe(i, e); if (o === void 0) return nt; const s = [], c = /* @__PURE__ */ new Map(); let f; const d = [], y = /* @__PURE__ */ new Map(); let m, b = 0; for (const { functionExtraction: I, constantExtraction: O } of o) { if (qv(t2.kind, t)) { const k = I.description; I.errors.length === 0 ? c.has(k) || (c.set(k, !0), s.push({ description: k, name: `function_scope_${b}`, kind: t2.kind })) : f || (f = { description: k, name: `function_scope_${b}`, notApplicableReason: C(I.errors), kind: t2.kind }); } if (qv(e2.kind, t)) { const k = O.description; O.errors.length === 0 ? y.has(k) || (y.set(k, !0), d.push({ description: k, name: `constant_scope_${b}`, kind: e2.kind })) : m || (m = { description: k, name: `constant_scope_${b}`, notApplicableReason: C(O.errors), kind: e2.kind }); } b++; } const A = []; return s.length ? A.push({ name: Zx, description: Do(_.Extract_function), actions: s }) : e.preferences.provideRefactorNotApplicableReason && f && A.push({ name: Zx, description: Do(_.Extract_function), actions: [f] }), d.length ? A.push({ name: Zx, description: Do(_.Extract_constant), actions: d }) : e.preferences.provideRefactorNotApplicableReason && m && A.push({ name: Zx, description: Do(_.Extract_constant), actions: [m] }), A.length ? A : nt; function C(I) { let O = I[0].messageText; return typeof O != "string" && (O = O.messageText), O; } } function Xxe(e, t) { const i = lne(e.file, Gx(e)).targetRange, o = /^function_scope_(\d+)$/.exec(t); if (o) { const c = +o[1]; return D.assert(isFinite(c), "Expected to parse a finite number from the function scope index"), zqe(i, e, c); } const s = /^constant_scope_(\d+)$/.exec(t); if (s) { const c = +s[1]; return D.assert(isFinite(c), "Expected to parse a finite number from the constant scope index"), qqe(i, e, c); } D.fail("Unrecognized action name"); } function lne(e, t, r = !0) { const { length: i } = t; if (i === 0 && !r) return { errors: [Lc(e, t.start, i, Vc.cannotExtractEmpty)] }; const o = i === 0 && r, s = hye(e, t.start), c = AF(e, Qc(t)), f = s && c && r ? jqe(s, c, e) : t, d = o ? _Je(s) : $8(s, e, f), y = o ? d : $8(c, e, f); let m = 0, b; if (!d || !y) return { errors: [Lc(e, t.start, i, Vc.cannotExtractRange)] }; if (d.flags & 8388608) return { errors: [Lc(e, t.start, i, Vc.cannotExtractJSDoc)] }; if (d.parent !== y.parent) return { errors: [Lc(e, t.start, i, Vc.cannotExtractRange)] }; if (d !== y) { if (!$xe(d.parent)) return { errors: [Lc(e, t.start, i, Vc.cannotExtractRange)] }; const U = []; for (const j of d.parent.statements) { if (j === d || U.length) { const te = B(j); if (te) return { errors: te }; U.push(j); } if (j === y) break; } return U.length ? { targetRange: { range: U, facts: m, thisNode: b } } : { errors: [Lc(e, t.start, i, Vc.cannotExtractRange)] }; } if (pp(d) && !d.expression) return { errors: [Lc(e, t.start, i, Vc.cannotExtractRange)] }; const A = I(d), C = O(A) || B(A); if (C) return { errors: C }; return { targetRange: { range: Hqe(A), facts: m, thisNode: b } }; function I(U) { if (pp(U)) { if (U.expression) return U.expression; } else if (sc(U) || Ou(U)) { const j = sc(U) ? U.declarationList.declarations : U.declarations; let te = 0, X; for (const Y of j) Y.initializer && (te++, X = Y.initializer); if (te === 1) return X; } else if (Wi(U) && U.initializer) return U.initializer; return U; } function O(U) { if (Ve(eu(U) ? U.expression : U)) return [Dr(U, Vc.cannotExtractIdentifier)]; } function k(U, j) { let te = U; for (; te !== j; ) { if (te.kind === 169) { za(te) && (m |= 32); break; } else if (te.kind === 166) { bf(te).kind === 173 && (m |= 32); break; } else te.kind === 171 && za(te) && (m |= 32); te = te.parent; } } function B(U) { let j; if (((ne) => { ne[ne.None = 0] = "None", ne[ne.Break = 1] = "Break", ne[ne.Continue = 2] = "Continue", ne[ne.Return = 4] = "Return"; })(j || (j = {})), D.assert(U.pos <= U.end, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"), D.assert(!Jp(U.pos), "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"), !Ia(U) && !(ag(U) && Yxe(U)) && !_ne(U)) return [Dr(U, Vc.statementOrExpressionExpected)]; if (U.flags & 16777216) return [Dr(U, Vc.cannotExtractAmbientBlock)]; const te = Ec(U); te && k(U, te); let X, Y = 4, P; if (ue(U), m & 8) { const ne = yd(U, !1, !1); (ne.kind === 259 || ne.kind === 171 && ne.parent.kind === 207 || ne.kind === 215) && (m |= 16); } return X; function ue(ne) { if (X) return !0; if (_u(ne)) { const ie = ne.kind === 257 ? ne.parent.parent : ne; if (Jr(ie, 1)) return (X || (X = [])).push(Dr(ne, Vc.cannotExtractExportedEntity)), !0; } switch (ne.kind) { case 269: return (X || (X = [])).push(Dr(ne, Vc.cannotExtractImport)), !0; case 274: return (X || (X = [])).push(Dr(ne, Vc.cannotExtractExportedEntity)), !0; case 106: if (ne.parent.kind === 210) { const ie = Ec(ne); if (ie === void 0 || ie.pos < t.start || ie.end >= t.start + t.length) return (X || (X = [])).push(Dr(ne, Vc.cannotExtractSuper)), !0; } else m |= 8, b = ne; break; case 216: Oa(ne, function ie(H) { if (FC(H)) m |= 8, b = ne; else { if (li(H) || qa(H) && !zs(H)) return !1; Oa(H, ie); } }); case 260: case 259: ji(ne.parent) && ne.parent.externalModuleIndicator === void 0 && (X || (X = [])).push(Dr(ne, Vc.functionWillNotBeVisibleInTheNewScope)); case 228: case 215: case 171: case 173: case 174: case 175: return !1; } const ge = Y; switch (ne.kind) { case 242: Y &= -5; break; case 255: Y = 0; break; case 238: ne.parent && ne.parent.kind === 255 && ne.parent.finallyBlock === ne && (Y = 4); break; case 293: case 292: Y |= 1; break; default: Tv(ne, !1) && (Y |= 3); break; } switch (ne.kind) { case 194: case 108: m |= 8, b = ne; break; case 253: { const ie = ne.label; (P || (P = [])).push(ie.escapedText), Oa(ne, ue), P.pop(); break; } case 249: case 248: { const ie = ne.label; ie ? Ii(P, ie.escapedText) || (X || (X = [])).push(Dr(ne, Vc.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)) : Y & (ne.kind === 249 ? 1 : 2) || (X || (X = [])).push(Dr(ne, Vc.cannotExtractRangeContainingConditionalBreakOrContinueStatements)); break; } case 220: m |= 4; break; case 226: m |= 2; break; case 250: Y & 4 ? m |= 1 : (X || (X = [])).push(Dr(ne, Vc.cannotExtractRangeContainingConditionalReturnStatement)); break; default: Oa(ne, ue); break; } Y = ge; } } } function jqe(e, t, r) { const i = e.getStart(r); let o = t.getEnd(); return r.text.charCodeAt(o) === 59 && o++, { start: i, length: o - i }; } function Hqe(e) { if (Ia(e)) return [e]; if (ag(e)) return eu(e.parent) ? [e.parent] : e; if (_ne(e)) return e; } function cne(e) { return zs(e) ? lW(e.body) : Ys(e) || ji(e) || Yp(e) || li(e); } function Wqe(e) { let t = gg(e.range) ? ss(e.range) : e.range; if (e.facts & 8 && !(e.facts & 16)) { const i = Ec(t); if (i) { const o = nr(t, Ys); return o ? [o, i] : [i]; } } const r = []; for (; ; ) if (t = t.parent, t.kind === 166 && (t = nr(t, (i) => Ys(i)).parent), cne(t) && (r.push(t), t.kind === 308)) return r; } function zqe(e, t, r) { const { scopes: i, readsAndWrites: { target: o, usagesPerScope: s, functionErrorsPerScope: c, exposedVariableDeclarations: f } } = une(e, t); return D.assert(!c[r].length, "The extraction went missing? How?"), t.cancellationToken.throwIfCancellationRequested(), Zqe(o, i[r], s[r], f, e, t); } function qqe(e, t, r) { const { scopes: i, readsAndWrites: { target: o, usagesPerScope: s, constantErrorsPerScope: c, exposedVariableDeclarations: f } } = une(e, t); D.assert(!c[r].length, "The extraction went missing? How?"), D.assert(f.length === 0, "Extract constant accepted a range containing a variable declaration?"), t.cancellationToken.throwIfCancellationRequested(); const d = yt(o) ? o : o.statements[0].expression; return eJe(d, i[r], s[r], e.facts, t); } function Jqe(e, t) { const { scopes: r, readsAndWrites: { functionErrorsPerScope: i, constantErrorsPerScope: o } } = une(e, t); return r.map((c, f) => { const d = Kqe(c), y = Xqe(c), m = Ys(c) ? Yqe(c) : li(c) ? $qe(c) : Qqe(c); let b, A; return m === 1 ? (b = gh(Do(_.Extract_to_0_in_1_scope), [d, "global"]), A = gh(Do(_.Extract_to_0_in_1_scope), [y, "global"])) : m === 0 ? (b = gh(Do(_.Extract_to_0_in_1_scope), [d, "module"]), A = gh(Do(_.Extract_to_0_in_1_scope), [y, "module"])) : (b = gh(Do(_.Extract_to_0_in_1), [d, m]), A = gh(Do(_.Extract_to_0_in_1), [y, m])), f === 0 && !li(c) && (A = gh(Do(_.Extract_to_0_in_enclosing_scope), [y])), { functionExtraction: { description: b, errors: i[f] }, constantExtraction: { description: A, errors: o[f] } }; }); } function une(e, t) { const { file: r } = t, i = Wqe(e), o = dJe(e, r), s = fJe(e, i, o, r, t.program.getTypeChecker(), t.cancellationToken); return { scopes: i, readsAndWrites: s }; } function Kqe(e) { return Ys(e) ? "inner function" : li(e) ? "method" : "function"; } function Xqe(e) { return li(e) ? "readonly field" : "constant"; } function Yqe(e) { switch (e.kind) { case 173: return "constructor"; case 215: case 259: return e.name ? `function '${e.name.text}'` : o9; case 216: return "arrow function"; case 171: return `method '${e.name.getText()}'`; case 174: return `'get ${e.name.getText()}'`; case 175: return `'set ${e.name.getText()}'`; default: throw D.assertNever(e, `Unexpected scope kind ${e.kind}`); } } function $qe(e) { return e.kind === 260 ? e.name ? `class '${e.name.text}'` : "anonymous class declaration" : e.name ? `class expression '${e.name.text}'` : "anonymous class expression"; } function Qqe(e) { return e.kind === 265 ? `namespace '${e.parent.name.getText()}'` : e.externalModuleIndicator ? 0 : 1; } function Zqe(e, t, { usages: r, typeParameterUsages: i, substitutions: o }, s, c, f) { const d = f.program.getTypeChecker(), y = $o(f.program.getCompilerOptions()), m = Fu.createImportAdder(f.file, f.program, f.preferences, f.host), b = t.getSourceFile(), A = HT(li(t) ? "newMethod" : "newFunction", b), C = dr(t), I = N.createIdentifier(A); let O; const k = [], B = []; let U; r.forEach((Re, Pe) => { let Ke; if (!C) { let Me = d.getTypeOfSymbolAtLocation(Re.symbol, Re.node); Me = d.getBaseTypeOfLiteralType(Me), Ke = Fu.typeToAutoImportableTypeNode(d, m, Me, t, y, 1); } const He = N.createParameterDeclaration(void 0, void 0, Pe, void 0, Ke); k.push(He), Re.usage === 2 && (U || (U = [])).push(Re), B.push(N.createIdentifier(Pe)); }); const te = ko(i.values(), (Re) => ({ type: Re, declaration: nJe(Re) })).sort(rJe), X = te.length === 0 ? void 0 : te.map((Re) => Re.declaration), Y = X !== void 0 ? X.map((Re) => N.createTypeReferenceNode(Re.name, void 0)) : void 0; if (yt(e) && !C) { const Re = d.getContextualType(e); O = d.typeToTypeNode(Re, t, 1); } const { body: P, returnValueProperty: ue } = aJe(e, s, U, o, !!(c.facts & 1)); Gd(P); let ne; const ge = !!(c.facts & 16); if (li(t)) { const Re = C ? [] : [N.createModifier(121)]; c.facts & 32 && Re.push(N.createModifier(124)), c.facts & 4 && Re.push(N.createModifier(132)), ne = N.createMethodDeclaration(Re.length ? Re : void 0, c.facts & 2 ? N.createToken(41) : void 0, I, void 0, X, k, O, P); } else ge && k.unshift(N.createParameterDeclaration(void 0, void 0, "this", void 0, d.typeToTypeNode(d.getTypeAtLocation(c.thisNode), t, 1), void 0)), ne = N.createFunctionDeclaration(c.facts & 4 ? [N.createToken(132)] : void 0, c.facts & 2 ? N.createToken(41) : void 0, I, X, k, O, P); const ie = hr.ChangeTracker.fromContext(f), H = (gg(c.range) ? Ho(c.range) : c.range).end, le = lJe(H, t); le ? ie.insertNodeBefore(f.file, le, ne, !0) : ie.insertNodeAtEndOfScope(f.file, t, ne), m.writeFixes(ie); const pe = [], ye = iJe(t, c, A); ge && B.unshift(N.createIdentifier("this")); let Te = N.createCallExpression(ge ? N.createPropertyAccessExpression(ye, "call") : ye, Y, B); if (c.facts & 2 && (Te = N.createYieldExpression(N.createToken(41), Te)), c.facts & 4 && (Te = N.createAwaitExpression(Te)), fne(e) && (Te = N.createJsxExpression(void 0, Te)), s.length && !U) if (D.assert(!ue, "Expected no returnValueProperty"), D.assert(!(c.facts & 1), "Expected RangeFacts.HasReturn flag to be unset"), s.length === 1) { const Re = s[0]; pe.push(N.createVariableStatement(void 0, N.createVariableDeclarationList([N.createVariableDeclaration(Il(Re.name), void 0, Il(Re.type), Te)], Re.parent.flags))); } else { const Re = [], Pe = []; let Ke = s[0].parent.flags, He = !1; for (const ot of s) { Re.push(N.createBindingElement(void 0, void 0, Il(ot.name))); const At = d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(ot)), t, 1); Pe.push(N.createPropertySignature(void 0, ot.symbol.name, void 0, At)), He = He || ot.type !== void 0, Ke = Ke & ot.parent.flags; } const Me = He ? N.createTypeLiteralNode(Pe) : void 0; Me && or(Me, 1), pe.push(N.createVariableStatement(void 0, N.createVariableDeclarationList([N.createVariableDeclaration(N.createObjectBindingPattern(Re), void 0, Me, Te)], Ke))); } else if (s.length || U) { if (s.length) for (const Pe of s) { let Ke = Pe.parent.flags; Ke & 2 && (Ke = Ke & -3 | 1), pe.push(N.createVariableStatement(void 0, N.createVariableDeclarationList([N.createVariableDeclaration(Pe.symbol.name, void 0, We(Pe.type))], Ke))); } ue && pe.push(N.createVariableStatement(void 0, N.createVariableDeclarationList([N.createVariableDeclaration(ue, void 0, We(O))], 1))); const Re = dne(s, U); ue && Re.unshift(N.createShorthandPropertyAssignment(ue)), Re.length === 1 ? (D.assert(!ue, "Shouldn't have returnValueProperty here"), pe.push(N.createExpressionStatement(N.createAssignment(Re[0].name, Te))), c.facts & 1 && pe.push(N.createReturnStatement())) : (pe.push(N.createExpressionStatement(N.createAssignment(N.createObjectLiteralExpression(Re), Te))), ue && pe.push(N.createReturnStatement(N.createIdentifier(ue)))); } else c.facts & 1 ? pe.push(N.createReturnStatement(Te)) : gg(c.range) ? pe.push(N.createExpressionStatement(Te)) : pe.push(Te); gg(c.range) ? ie.replaceNodeRangeWithNodes(f.file, ss(c.range), Ho(c.range), pe) : ie.replaceNodeWithNodes(f.file, c.range, pe); const ee = ie.getChanges(), Ge = (gg(c.range) ? ss(c.range) : c.range).getSourceFile().fileName, Fe = t6(ee, Ge, A, !1); return { renameFilename: Ge, renameLocation: Fe, edits: ee }; function We(Re) { if (Re === void 0) return; const Pe = Il(Re); let Ke = Pe; for (; yx(Ke); ) Ke = Ke.type; return gx(Ke) && un(Ke.types, (He) => He.kind === 155) ? Pe : N.createUnionTypeNode([Pe, N.createKeywordTypeNode(155)]); } } function eJe(e, t, { substitutions: r }, i, o) { const s = o.program.getTypeChecker(), c = t.getSourceFile(), f = Pr(e) && !li(t) && !s.resolveName(e.name.text, e, 111551, !1) && !ki(e.name) && !M0(e.name) ? e.name.text : HT(li(t) ? "newProperty" : "newLocal", c), d = dr(t); let y = d || !s.isContextSensitive(e) ? void 0 : s.typeToTypeNode(s.getContextualType(e), t, 1), m = oJe(Us(e), r); ({ variableType: y, initializer: m } = O(y, m)), Gd(m); const b = hr.ChangeTracker.fromContext(o); if (li(t)) { D.assert(!d, "Cannot extract to a JS class"); const k = []; k.push(N.createModifier(121)), i & 32 && k.push(N.createModifier(124)), k.push(N.createModifier(146)); const B = N.createPropertyDeclaration(k, f, void 0, y, m); let U = N.createPropertyAccessExpression(i & 32 ? N.createIdentifier(t.name.getText()) : N.createThis(), N.createIdentifier(f)); fne(e) && (U = N.createJsxExpression(void 0, U)); const j = e.pos, te = cJe(j, t); b.insertNodeBefore(o.file, te, B, !0), b.replaceNode(o.file, e, U); } else { const k = N.createVariableDeclaration(f, void 0, y, m), B = tJe(e, t); if (B) { b.insertNodeBefore(o.file, B, k); const U = N.createIdentifier(f); b.replaceNode(o.file, e, U); } else if (e.parent.kind === 241 && t === nr(e, cne)) { const U = N.createVariableStatement(void 0, N.createVariableDeclarationList([k], 2)); b.replaceNode(o.file, e.parent, U); } else { const U = N.createVariableStatement(void 0, N.createVariableDeclarationList([k], 2)), j = uJe(e, t); if (j.pos === 0 ? b.insertNodeAtTopOfFile(o.file, U, !1) : b.insertNodeBefore(o.file, j, U, !1), e.parent.kind === 241) b.delete(o.file, e.parent); else { let te = N.createIdentifier(f); fne(e) && (te = N.createJsxExpression(void 0, te)), b.replaceNode(o.file, e, te); } } } const A = b.getChanges(), C = e.getSourceFile().fileName, I = t6(A, C, f, !0); return { renameFilename: C, renameLocation: I, edits: A }; function O(k, B) { if (k === void 0) return { variableType: k, initializer: B }; if (!Ms(B) && !zs(B) || B.typeParameters) return { variableType: k, initializer: B }; const U = s.getTypeAtLocation(e), j = bm(s.getSignaturesOfType(U, 0)); if (!j) return { variableType: k, initializer: B }; if (j.getTypeParameters()) return { variableType: k, initializer: B }; const te = []; let X = !1; for (const Y of B.parameters) if (Y.type) te.push(Y); else { const P = s.getTypeAtLocation(Y); P === s.getAnyType() && (X = !0), te.push(N.updateParameterDeclaration(Y, Y.modifiers, Y.dotDotDotToken, Y.name, Y.questionToken, Y.type || s.typeToTypeNode(P, t, 1), Y.initializer)); } if (X) return { variableType: k, initializer: B }; if (k = void 0, zs(B)) B = N.updateArrowFunction(B, H_(e) ? XE(e) : void 0, B.typeParameters, te, B.type || s.typeToTypeNode(j.getReturnType(), t, 1), B.equalsGreaterThanToken, B.body); else { if (j && j.thisParameter) { const Y = Wc(te); if (!Y || Ve(Y.name) && Y.name.escapedText !== "this") { const P = s.getTypeOfSymbolAtLocation(j.thisParameter, e); te.splice(0, 0, N.createParameterDeclaration(void 0, void 0, "this", void 0, s.typeToTypeNode(P, t, 1))); } } B = N.updateFunctionExpression(B, H_(e) ? XE(e) : void 0, B.asteriskToken, B.name, B.typeParameters, te, B.type || s.typeToTypeNode(j.getReturnType(), t, 1), B.body); } return { variableType: k, initializer: B }; } } function tJe(e, t) { let r; for (; e !== void 0 && e !== t; ) { if (Wi(e) && e.initializer === r && Ou(e.parent) && e.parent.declarations.length > 1) return e; r = e, e = e.parent; } } function nJe(e) { let t; const r = e.symbol; if (r && r.declarations) for (const i of r.declarations) (t === void 0 || i.pos < t.pos) && (t = i); return t; } function rJe({ type: e, declaration: t }, { type: r, declaration: i }) { return mse(t, i, "pos", js) || Lu(e.symbol ? e.symbol.getName() : "", r.symbol ? r.symbol.getName() : "") || js(e.id, r.id); } function iJe(e, t, r) { const i = N.createIdentifier(r); if (li(e)) { const o = t.facts & 32 ? N.createIdentifier(e.name.text) : N.createThis(); return N.createPropertyAccessExpression(o, i); } else return i; } function aJe(e, t, r, i, o) { const s = r !== void 0 || t.length > 0; if (oo(e) && !s && i.size === 0) return { body: N.createBlock(e.statements, !0), returnValueProperty: void 0 }; let c, f = !1; const d = N.createNodeArray(oo(e) ? e.statements.slice(0) : [Ia(e) ? e : N.createReturnStatement(Us(e))]); if (s || i.size) { const m = Kn(d, y, Ia).slice(); if (s && !o && Ia(e)) { const b = dne(t, r); b.length === 1 ? m.push(N.createReturnStatement(b[0].name)) : m.push(N.createReturnStatement(N.createObjectLiteralExpression(b))); } return { body: N.createBlock(m, !0), returnValueProperty: c }; } else return { body: N.createBlock(d, !0), returnValueProperty: void 0 }; function y(m) { if (!f && pp(m) && s) { const b = dne(t, r); return m.expression && (c || (c = "__return"), b.unshift(N.createPropertyAssignment(c, st(m.expression, y, yt)))), b.length === 1 ? N.createReturnStatement(b[0].name) : N.createReturnStatement(N.createObjectLiteralExpression(b)); } else { const b = f; f = f || Ys(m) || li(m); const A = i.get(ds(m).toString()), C = A ? Il(A) : Bn(m, y, pg); return f = b, C; } } } function oJe(e, t) { return t.size ? r(e) : e; function r(i) { const o = t.get(ds(i).toString()); return o ? Il(o) : Bn(i, r, pg); } } function sJe(e) { if (Ys(e)) { const t = e.body; if (oo(t)) return t.statements; } else { if (Yp(e) || ji(e)) return e.statements; if (li(e)) return e.members; } return nt; } function lJe(e, t) { return un(sJe(t), (r) => r.pos >= e && Ys(r) && !jl(r)); } function cJe(e, t) { const r = t.members; D.assert(r.length > 0, "Found no members"); let i, o = !0; for (const s of r) { if (s.pos > e) return i || r[0]; if (o && !Za(s)) { if (i !== void 0) return s; o = !1; } i = s; } return i === void 0 ? D.fail() : i; } function uJe(e, t) { D.assert(!li(t)); let r; for (let i = e; i !== t; i = i.parent) cne(i) && (r = i); for (let i = (r || e).parent; ; i = i.parent) { if ($xe(i)) { let o; for (const s of i.statements) { if (s.pos > e.pos) break; o = s; } return !o && Ak(i) ? (D.assert(TO(i.parent.parent), "Grandparent isn't a switch statement"), i.parent.parent) : D.checkDefined(o, "prevStatement failed to get set"); } D.assert(i !== t, "Didn't encounter a block-like before encountering scope"); } } function dne(e, t) { const r = rn(e, (o) => N.createShorthandPropertyAssignment(o.symbol.name)), i = rn(t, (o) => N.createShorthandPropertyAssignment(o.symbol.name)); return r === void 0 ? i : i === void 0 ? r : r.concat(i); } function gg(e) { return Ga(e); } function dJe(e, t) { return gg(e.range) ? { pos: ss(e.range).getStart(t), end: Ho(e.range).getEnd() } : e.range; } function fJe(e, t, r, i, o, s) { const c = /* @__PURE__ */ new Map(), f = [], d = [], y = [], m = [], b = [], A = /* @__PURE__ */ new Map(), C = []; let I; const O = gg(e.range) ? e.range.length === 1 && eu(e.range[0]) ? e.range[0].expression : void 0 : e.range; let k; if (O === void 0) { const le = e.range, pe = ss(le).getStart(), ye = Ho(le).end; k = Lc(i, pe, ye - pe, Vc.expressionExpected); } else o.getTypeAtLocation(O).flags & 147456 && (k = Dr(O, Vc.uselessConstantType)); for (const le of t) { f.push({ usages: /* @__PURE__ */ new Map(), typeParameterUsages: /* @__PURE__ */ new Map(), substitutions: /* @__PURE__ */ new Map() }), d.push(/* @__PURE__ */ new Map()), y.push([]); const pe = []; k && pe.push(k), li(le) && dr(le) && pe.push(Dr(le, Vc.cannotExtractToJSClass)), zs(le) && !oo(le.body) && pe.push(Dr(le, Vc.cannotExtractToExpressionArrowFunction)), m.push(pe); } const B = /* @__PURE__ */ new Map(), U = gg(e.range) ? N.createBlock(e.range) : e.range, j = gg(e.range) ? ss(e.range) : e.range, te = X(j); if (P(U), te && !gg(e.range) && !$p(e.range)) { const le = o.getContextualType(e.range); Y(le); } if (c.size > 0) { const le = /* @__PURE__ */ new Map(); let pe = 0; for (let ye = j; ye !== void 0 && pe < t.length; ye = ye.parent) if (ye === t[pe] && (le.forEach((Te, ee) => { f[pe].typeParameterUsages.set(ee, Te); }), pe++), OW(ye)) for (const Te of bv(ye)) { const ee = o.getTypeAtLocation(Te); c.has(ee.id.toString()) && le.set(ee.id.toString(), ee); } D.assert(pe === t.length, "Should have iterated all scopes"); } if (b.length) { const le = NW(t[0], t[0].parent) ? t[0] : Dm(t[0]); Oa(le, ge); } for (let le = 0; le < t.length; le++) { const pe = f[le]; if (le > 0 && (pe.usages.size > 0 || pe.typeParameterUsages.size > 0)) { const ee = gg(e.range) ? e.range[0] : e.range; m[le].push(Dr(ee, Vc.cannotAccessVariablesFromNestedScopes)); } e.facts & 16 && li(t[le]) && y[le].push(Dr(e.thisNode, Vc.cannotExtractFunctionsContainingThisToMethod)); let ye = !1, Te; if (f[le].usages.forEach((ee) => { ee.usage === 2 && (ye = !0, ee.symbol.flags & 106500 && ee.symbol.valueDeclaration && Nd(ee.symbol.valueDeclaration, 64) && (Te = ee.symbol.valueDeclaration)); }), D.assert(gg(e.range) || C.length === 0, "No variable declarations expected if something was extracted"), ye && !gg(e.range)) { const ee = Dr(e.range, Vc.cannotWriteInExpression); y[le].push(ee), m[le].push(ee); } else if (Te && le > 0) { const ee = Dr(Te, Vc.cannotExtractReadonlyPropertyInitializerOutsideConstructor); y[le].push(ee), m[le].push(ee); } else if (I) { const ee = Dr(I, Vc.cannotExtractExportedEntity); y[le].push(ee), m[le].push(ee); } } return { target: U, usagesPerScope: f, functionErrorsPerScope: y, constantErrorsPerScope: m, exposedVariableDeclarations: C }; function X(le) { return !!nr(le, (pe) => OW(pe) && bv(pe).length !== 0); } function Y(le) { const pe = o.getSymbolWalker(() => (s.throwIfCancellationRequested(), !0)), { visitedTypes: ye } = pe.walkType(le); for (const Te of ye) Te.isTypeParameter() && c.set(Te.id.toString(), Te); } function P(le, pe = 1) { if (te) { const ye = o.getTypeAtLocation(le); Y(ye); } if (_u(le) && le.symbol && b.push(le), Ku(le)) P(le.left, 2), P(le.right); else if (ice(le)) P(le.operand, 2); else if (Pr(le) || sl(le)) Oa(le, P); else if (Ve(le)) { if (!le.parent || Ed(le.parent) && le !== le.parent.left || Pr(le.parent) && le !== le.parent.expression) return; ue(le, pe, _h(le)); } else Oa(le, P); } function ue(le, pe, ye) { const Te = ne(le, pe, ye); if (Te) for (let ee = 0; ee < t.length; ee++) { const $e = d[ee].get(Te); $e && f[ee].substitutions.set(ds(le).toString(), $e); } } function ne(le, pe, ye) { const Te = ie(le); if (!Te) return; const ee = go(Te).toString(), $e = B.get(ee); if ($e && $e >= pe) return ee; if (B.set(ee, pe), $e) { for (const We of f) We.usages.get(le.text) && We.usages.set(le.text, { usage: pe, symbol: Te, node: le }); return ee; } const Ge = Te.getDeclarations(), Fe = Ge && un(Ge, (We) => We.getSourceFile() === i); if (Fe && !V8(r, Fe.getStart(), Fe.end)) { if (e.facts & 2 && pe === 2) { const We = Dr(le, Vc.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators); for (const Re of y) Re.push(We); for (const Re of m) Re.push(We); } for (let We = 0; We < t.length; We++) { const Re = t[We]; if (o.resolveName(Te.name, Re, Te.flags, !1) !== Te && !d[We].has(ee)) { const Ke = H(Te.exportSymbol || Te, Re, ye); if (Ke) d[We].set(ee, Ke); else if (ye) { if (!(Te.flags & 262144)) { const He = Dr(le, Vc.typeWillNotBeVisibleInTheNewScope); y[We].push(He), m[We].push(He); } } else f[We].usages.set(le.text, { usage: pe, symbol: Te, node: le }); } } return ee; } } function ge(le) { if (le === e.range || gg(e.range) && e.range.indexOf(le) >= 0) return; const pe = Ve(le) ? ie(le) : o.getSymbolAtLocation(le); if (pe) { const ye = un(b, (Te) => Te.symbol === pe); if (ye) if (Wi(ye)) { const Te = ye.symbol.id.toString(); A.has(Te) || (C.push(ye), A.set(Te, !0)); } else I = I || ye; } Oa(le, ge); } function ie(le) { return le.parent && Xf(le.parent) && le.parent.name === le ? o.getShorthandAssignmentValueSymbol(le.parent) : o.getSymbolAtLocation(le); } function H(le, pe, ye) { if (!le) return; const Te = le.getDeclarations(); if (Te && Te.some(($e) => $e.parent === pe)) return N.createIdentifier(le.name); const ee = H(le.parent, pe, ye); if (ee !== void 0) return ye ? N.createQualifiedName(ee, N.createIdentifier(le.name)) : N.createPropertyAccessExpression(ee, le.name); } } function _Je(e) { return nr(e, (t) => t.parent && Yxe(t) && !vr(t.parent)); } function Yxe(e) { const { parent: t } = e; switch (t.kind) { case 302: return !1; } switch (e.kind) { case 10: return t.kind !== 269 && t.kind !== 273; case 227: case 203: case 205: return !1; case 79: return t.kind !== 205 && t.kind !== 273 && t.kind !== 278; } return !0; } function $xe(e) { switch (e.kind) { case 238: case 308: case 265: case 292: return !0; default: return !1; } } function fne(e) { return _ne(e) || (Ey(e) || xx(e) || Cx(e)) && (Ey(e.parent) || Cx(e.parent)); } function _ne(e) { return Go(e) && e.parent && $p(e.parent); } var Zx, e2, t2, Vc, pne, pJe = L({ "src/services/refactors/extractSymbol.ts"() { Kr(), Lh(), Zx = "Extract Symbol", e2 = { name: "Extract Constant", description: Do(_.Extract_constant), kind: "refactor.extract.constant" }, t2 = { name: "Extract Function", description: Do(_.Extract_function), kind: "refactor.extract.function" }, hg(Zx, { kinds: [ e2.kind, t2.kind ], getEditsForAction: Xxe, getAvailableActions: Kxe }), ((e) => { function t(r) { return { message: r, code: 0, category: 3, key: r }; } 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"); })(Vc || (Vc = {})), pne = /* @__PURE__ */ ((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))(pne || {}); } }), Qxe = {}; fe(Qxe, { Messages: () => Vc, RangeFacts: () => pne, getRangeToExtract: () => lne, getRefactorActionsToExtractSymbol: () => Kxe, getRefactorEditsToExtractSymbol: () => Xxe }); var mJe = L({ "src/services/_namespaces/ts.refactor.extractSymbol.ts"() { pJe(); } }), W6, GG, UG, hJe = L({ "src/services/refactors/generateGetAccessorAndSetAccessor.ts"() { Kr(), Lh(), W6 = "Generate 'get' and 'set' accessors", GG = _.Generate_get_and_set_accessors.message, UG = { name: W6, description: GG, kind: "refactor.rewrite.property.generateAccessors" }, hg(W6, { kinds: [UG.kind], getEditsForAction: function(t, r) { if (!t.endPosition) return; const i = Fu.getAccessorConvertiblePropertyAtPosition(t.file, t.program, t.startPosition, t.endPosition); D.assert(i && !Ch(i), "Expected applicable refactor info"); const o = Fu.generateAccessorFromProperty(t.file, t.program, t.startPosition, t.endPosition, t, r); if (!o) return; const s = t.file.fileName, c = i.renameAccessor ? i.accessorName : i.fieldName, d = (Ve(c) ? 0 : -1) + t6(o, s, c.text, Ma(i.declaration)); return { renameFilename: s, renameLocation: d, edits: o }; }, getAvailableActions(e) { if (!e.endPosition) return nt; const t = Fu.getAccessorConvertiblePropertyAtPosition(e.file, e.program, e.startPosition, e.endPosition, e.triggerReason === "invoked"); return t ? Ch(t) ? e.preferences.provideRefactorNotApplicableReason ? [{ name: W6, description: GG, actions: [{ ...UG, notApplicableReason: t.error }] }] : nt : [{ name: W6, description: GG, actions: [UG] }] : nt; } }); } }), gJe = {}, yJe = L({ "src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"() { hJe(); } }); function vJe(e) { const t = Zxe(e); if (t && !Ch(t)) return { renameFilename: void 0, renameLocation: void 0, edits: hr.ChangeTracker.with(e, (i) => EJe(e.file, i, t.declaration, t.returnTypeNode)) }; } function bJe(e) { const t = Zxe(e); return t ? Ch(t) ? e.preferences.provideRefactorNotApplicableReason ? [{ name: z6, description: VG, actions: [{ ...q6, notApplicableReason: t.error }] }] : nt : [{ name: z6, description: VG, actions: [q6] }] : nt; } function EJe(e, t, r, i) { const o = ys(r, 21, e), s = zs(r) && o === void 0, c = s ? ss(r.parameters) : o; c && (s && (t.insertNodeBefore(e, c, N.createToken(20)), t.insertNodeAfter(e, c, N.createToken(21))), t.insertNodeAt(e, c.end, i, { prefix: ": " })); } function Zxe(e) { if (dr(e.file) || !qv(q6.kind, e.kind)) return; const t = ra(e.file, e.startPosition), r = nr(t, (c) => oo(c) || c.parent && zs(c.parent) && (c.kind === 38 || c.parent.body === c) ? "quit" : TJe(c)); if (!r || !r.body || r.type) return { error: Do(_.Return_type_must_be_inferred_from_a_function) }; const i = e.program.getTypeChecker(), o = SJe(i, r); if (!o) return { error: Do(_.Could_not_determine_function_return_type) }; const s = i.typeToTypeNode(o, r, 1); if (s) return { declaration: r, returnTypeNode: s }; } function TJe(e) { switch (e.kind) { case 259: case 215: case 216: case 171: return !0; default: return !1; } } function SJe(e, t) { if (e.isImplementationOfOverload(t)) { const i = e.getTypeAtLocation(t).getCallSignatures(); if (i.length > 1) return e.getUnionType(_a(i, (o) => o.getReturnType())); } const r = e.getSignatureFromDeclaration(t); if (r) return e.getReturnTypeOfSignature(r); } var z6, VG, q6, xJe = L({ "src/services/refactors/inferFunctionReturnType.ts"() { Kr(), Lh(), z6 = "Infer function return type", VG = _.Infer_function_return_type.message, q6 = { name: z6, description: VG, kind: "refactor.rewrite.function.returnType" }, hg(z6, { kinds: [q6.kind], getEditsForAction: vJe, getAvailableActions: bJe }); } }), AJe = {}, CJe = L({ "src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"() { xJe(); } }), Rw = {}; fe(Rw, { addOrRemoveBracesToArrowFunction: () => Uze, convertArrowFunctionOrFunctionExpression: () => Qze, convertParamsToDestructuredObject: () => gqe, convertStringOrTemplateLiteral: () => Lqe, convertToOptionalChainExpression: () => Uqe, doChangeNamedToNamespaceOrDefault: () => ixe, extractSymbol: () => Qxe, generateGetAccessorAndSetAccessor: () => gJe, getApplicableRefactors: () => FWe, getEditsForRefactor: () => BWe, inferFunctionReturnType: () => AJe, isRefactorErrorInfo: () => Ch, refactorKindBeginsWith: () => qv, registerRefactor: () => hg }); var Lh = L({ "src/services/_namespaces/ts.refactor.ts"() { GWe(), qWe(), $We(), rze(), ize(), Nze(), Vze(), Zze(), yqe(), Iqe(), Vqe(), mJe(), yJe(), CJe(); } }); function LJe(e, t, r, i) { const o = xF(Af(t, r)); if (t2e(o)) { const s = IJe(o, e.getTypeChecker(), t, e, i); if (s) return s; } return jG(_.You_cannot_rename_this_element); } function IJe(e, t, r, i, o) { const s = t.getSymbolAtLocation(e); if (!s) { if (Ts(e)) { const A = SF(e, t); if (A && (A.flags & 128 || A.flags & 1048576 && Vn(A.types, (C) => !!(C.flags & 128)))) return mne(e.text, e.text, "string", "", e, r); } else if (n$(e)) { const A = bc(e); return mne(A, A, "label", "", e, r); } return; } const { declarations: c } = s; if (!c || c.length === 0) return; if (c.some((A) => kJe(i, A))) return jG(_.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library); if (Ve(e) && e.escapedText === "default" && s.parent && s.parent.flags & 1536) return; if (Ts(e) && pN(e)) return o.allowRenameOfImportPath ? DJe(e, r, s) : void 0; const f = wJe(r, s, t, o); if (f) return jG(f); const d = ky.getSymbolKind(t, s, e), y = jye(e) || Hf(e) && e.parent.kind === 164 ? M_(P_(e)) : void 0, m = y || t.symbolToString(s), b = y || t.getFullyQualifiedName(s); return mne(m, b, d, ky.getSymbolModifiers(t, s), e, r); } function kJe(e, t) { const r = t.getSourceFile(); return e.isSourceFileDefaultLibrary(r) && oc(r.fileName, ".d.ts"); } function wJe(e, t, r, i) { if (!i.providePrefixAndSuffixTextForRename && t.flags & 2097152) { const c = t.declarations && un(t.declarations, (f) => Td(f)); c && !c.propertyName && (t = r.getAliasedSymbol(t)); } const { declarations: o } = t; if (!o) return; const s = e2e(e.path); if (s === void 0) return kt(o, (c) => eve(c.getSourceFile().path)) ? _.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder : void 0; for (const c of o) { const f = e2e(c.getSourceFile().path); if (f) { const d = Math.min(s.length, f.length); for (let y = 0; y <= d; y++) if (Lu(s[y], f[y]) !== 0) return _.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder; } } } function e2e(e) { const t = rd(e), r = t.lastIndexOf("node_modules"); if (r !== -1) return t.slice(0, r + 2); } function DJe(e, t, r) { if (!Oc(e.text)) return jG(_.You_cannot_rename_a_module_via_a_global_import); const i = r.declarations && un(r.declarations, ji); if (!i) return; const o = tc(e.text, "/index") || tc(e.text, "/index.js") ? void 0 : hse(Od(i.fileName), "/index"), s = o === void 0 ? i.fileName : o, c = o === void 0 ? "module" : "directory", f = e.text.lastIndexOf("/") + 1, d = Cc(e.getStart(t) + 1 + f, e.text.length - f); return { canRename: !0, fileToRename: s, kind: c, displayName: s, fullDisplayName: s, kindModifiers: "", triggerSpan: d }; } function mne(e, t, r, i, o, s) { return { canRename: !0, fileToRename: void 0, kind: r, displayName: e, fullDisplayName: t, kindModifiers: i, triggerSpan: RJe(o, s) }; } function jG(e) { return { canRename: !1, localizedErrorMessage: Do(e) }; } function RJe(e, t) { let r = e.getStart(t), i = e.getWidth(t); return Ts(e) && (r += 1, i -= 2), Cc(r, i); } function t2e(e) { switch (e.kind) { case 79: case 80: case 10: case 14: case 108: return !0; case 8: return vF(e); default: return !1; } } var NJe = L({ "src/services/rename.ts"() { Kr(); } }), HG = {}; fe(HG, { getRenameInfo: () => LJe, nodeIsEligibleForRename: () => t2e }); var OJe = L({ "src/services/_namespaces/ts.Rename.ts"() { NJe(); } }); function PJe(e, t, r, i, o) { const s = e.getTypeChecker(), c = AF(t, r); if (!c) return; const f = !!i && i.kind === "characterTyped"; if (f && (VT(t, r, c) || Ay(t, r))) return; const d = !!i && i.kind === "invoked", y = YJe(c, r, t, s, d); if (!y) return; o.throwIfCancellationRequested(); const m = MJe(y, s, t, c, f); return o.throwIfCancellationRequested(), m ? s.runWithCancellationToken(o, (b) => m.kind === 0 ? l2e(m.candidates, m.resolvedSignature, y, t, b) : QJe(m.symbol, y, t, b)) : Ju(t) ? BJe(y, e, o) : void 0; } function MJe({ invocation: e, argumentCount: t }, r, i, o, s) { switch (e.kind) { case 0: { if (s && !FJe(o, e.node, i)) return; const c = [], f = r.getResolvedSignatureForSignatureHelp(e.node, c, t); return c.length === 0 ? void 0 : { kind: 0, candidates: c, resolvedSignature: f }; } case 1: { const { called: c } = e; if (s && !n2e(o, i, Ve(c) ? c.parent : c)) return; const f = p$(c, t, r); if (f.length !== 0) return { kind: 0, candidates: f, resolvedSignature: ss(f) }; const d = r.getSymbolAtLocation(c); return d && { kind: 1, symbol: d }; } case 2: return { kind: 0, candidates: [e.signature], resolvedSignature: e.signature }; default: return D.assertNever(e); } } function FJe(e, t, r) { if (!ng(t)) return !1; const i = t.getChildren(r); switch (e.kind) { case 20: return Ii(i, e); case 27: { const o = TF(e); return !!o && Ii(i, o); } case 29: return n2e(e, r, t.expression); default: return !1; } } function BJe(e, t, r) { if (e.invocation.kind === 2) return; const i = o2e(e.invocation), o = Pr(i) ? i.name.text : void 0, s = t.getTypeChecker(); return o === void 0 ? void 0 : En(t.getSourceFiles(), (c) => En(c.getNamedDeclarations().get(o), (f) => { const d = f.symbol && s.getTypeOfSymbolAtLocation(f.symbol, f), y = d && d.getCallSignatures(); if (y && y.length) return s.runWithCancellationToken(r, (m) => l2e(y, y[0], e, c, m, !0)); })); } function n2e(e, t, r) { const i = e.getFullStart(); let o = e.parent; for (; o; ) { const s = Tc(i, t, o, !0); if (s) return af(r, s); o = o.parent; } return D.fail("Could not find preceding token"); } function GJe(e, t, r) { const i = i2e(e, t, r); return !i || i.isTypeParameterList || i.invocation.kind !== 0 ? void 0 : { invocation: i.invocation.node, argumentCount: i.argumentCount, argumentIndex: i.argumentIndex }; } function r2e(e, t, r) { const i = UJe(e, r); if (!i) return; const { list: o, argumentIndex: s } = i, c = qJe(o, VT(r, t, e)); s !== 0 && D.assertLessThan(s, c); const f = KJe(o, r); return { list: o, argumentIndex: s, argumentCount: c, argumentsSpan: f }; } function UJe(e, t) { if (e.kind === 29 || e.kind === 20) return { list: $Je(e.parent, e, t), argumentIndex: 0 }; { const r = TF(e); return r && { list: r, argumentIndex: zJe(r, e) }; } } function i2e(e, t, r) { const { parent: i } = e; if (ng(i)) { const o = i, s = r2e(e, t, r); if (!s) return; const { list: c, argumentIndex: f, argumentCount: d, argumentsSpan: y } = s; return { isTypeParameterList: !!i.typeArguments && i.typeArguments.pos === c.pos, invocation: { kind: 0, node: o }, argumentsSpan: y, argumentIndex: f, argumentCount: d }; } else { if (px(e) && bT(i)) return z8(e, t, r) ? gne(i, 0, r) : void 0; if (oC(e) && i.parent.kind === 212) { const o = i, s = o.parent; D.assert(o.kind === 225); const c = z8(e, t, r) ? 0 : 1; return gne(s, c, r); } else if (Sk(i) && bT(i.parent.parent)) { const o = i, s = i.parent.parent; if (qq(e) && !z8(e, t, r)) return; const c = o.parent.templateSpans.indexOf(o), f = JJe(c, e, t, r); return gne(s, f, r); } else if (qu(i)) { const o = i.attributes.pos, s = zo(r.text, i.attributes.end, !1); return { isTypeParameterList: !1, invocation: { kind: 0, node: i }, argumentsSpan: Cc(o, s - o), argumentIndex: 0, argumentCount: 1 }; } else { const o = m$(e, r); if (o) { const { called: s, nTypeArguments: c } = o, f = { kind: 1, called: s }, d = fc(s.getStart(r), e.end); return { isTypeParameterList: !0, invocation: f, argumentsSpan: d, argumentIndex: c, argumentCount: c + 1 }; } return; } } } function VJe(e, t, r, i) { return jJe(e, t, r, i) || i2e(e, t, r); } function a2e(e) { return vr(e.parent) ? a2e(e.parent) : e; } function hne(e) { return vr(e.left) ? hne(e.left) + 1 : 2; } function jJe(e, t, r, i) { const o = HJe(e, r, t, i); if (!o) return; const { contextualType: s, argumentIndex: c, argumentCount: f, argumentsSpan: d } = o, y = s.getNonNullableType(), m = y.symbol; if (m === void 0) return; const b = Zs(y.getCallSignatures()); return b === void 0 ? void 0 : { isTypeParameterList: !1, invocation: { kind: 2, signature: b, node: e, symbol: WJe(m) }, argumentsSpan: d, argumentIndex: c, argumentCount: f }; } function HJe(e, t, r, i) { if (e.kind !== 20 && e.kind !== 27) return; const { parent: o } = e; switch (o.kind) { case 214: case 171: case 215: case 216: const s = r2e(e, r, t); if (!s) return; const { argumentIndex: c, argumentCount: f, argumentsSpan: d } = s, y = nc(o) ? i.getContextualTypeForObjectLiteralElement(o) : i.getContextualType(o); return y && { contextualType: y, argumentIndex: c, argumentCount: f, argumentsSpan: d }; case 223: { const m = a2e(o), b = i.getContextualType(m), A = e.kind === 20 ? 0 : hne(o) - 1, C = hne(m); return b && { contextualType: b, argumentIndex: A, argumentCount: C, argumentsSpan: $u(o) }; } default: return; } } function WJe(e) { return e.name === "__type" && En(e.declarations, (t) => { var r; return Eh(t) ? (r = ri(t.parent, Lm)) == null ? void 0 : r.symbol : void 0; }) || e; } function zJe(e, t) { let r = 0; for (const i of e.getChildren()) { if (i === t) break; i.kind !== 27 && r++; } return r; } function qJe(e, t) { const r = e.getChildren(); let i = xa(r, (o) => o.kind !== 27); return !t && r.length > 0 && Ho(r).kind === 27 && i++, i; } function JJe(e, t, r, i) { return D.assert(r >= t.getStart(), "Assumed 'position' could not occur before node."), qle(t) ? z8(t, r, i) ? 0 : e + 2 : e + 1; } function gne(e, t, r) { const i = px(e.template) ? 1 : e.template.templateSpans.length + 1; return t !== 0 && D.assertLessThan(t, i), { isTypeParameterList: !1, invocation: { kind: 0, node: e }, argumentsSpan: XJe(e, r), argumentIndex: t, argumentCount: i }; } function KJe(e, t) { const r = e.getFullStart(), i = zo(t.text, e.getEnd(), !1); return Cc(r, i - r); } function XJe(e, t) { const r = e.template, i = r.getStart(); let o = r.getEnd(); return r.kind === 225 && Ho(r.templateSpans).literal.getFullWidth() === 0 && (o = zo(t.text, o, !1)), Cc(i, o - i); } function YJe(e, t, r, i, o) { for (let s = e; !ji(s) && (o || !oo(s)); s = s.parent) { D.assert(af(s.parent, s), "Not a subspan", () => `Child: ${D.formatSyntaxKind(s.kind)}, parent: ${D.formatSyntaxKind(s.parent.kind)}`); const c = VJe(s, t, r, i); if (c) return c; } } function $Je(e, t, r) { const i = e.getChildren(r), o = i.indexOf(t); return D.assert(o >= 0 && i.length > o + 1), i[o + 1]; } function o2e(e) { return e.kind === 0 ? qM(e.node) : e.called; } function s2e(e) { return e.kind === 0 ? e.node : e.kind === 1 ? e.called : e.node; } function l2e(e, t, { isTypeParameterList: r, argumentCount: i, argumentsSpan: o, invocation: s, argumentIndex: c }, f, d, y) { var m; const b = s2e(s), A = s.kind === 2 ? s.symbol : d.getSymbolAtLocation(o2e(s)) || y && ((m = t.declaration) == null ? void 0 : m.symbol), C = A ? aw(d, A, y ? f : void 0, void 0) : nt, I = rn(e, (j) => eKe(j, C, r, d, b, f)); c !== 0 && D.assertLessThan(c, i); let O = 0, k = 0; for (let j = 0; j < I.length; j++) { const te = I[j]; if (e[j] === t && (O = k, te.length > 1)) { let X = 0; for (const Y of te) { if (Y.isVariadic || Y.parameters.length >= i) { O = k + X; break; } X++; } } k += te.length; } D.assert(O !== -1); const B = { items: ty(I, _l), applicableSpan: o, selectedItemIndex: O, argumentIndex: c, argumentCount: i }, U = B.items[O]; if (U.isVariadic) { const j = $i(U.parameters, (te) => !!te.isRest); -1 < j && j < U.parameters.length - 1 ? B.argumentIndex = U.parameters.length : B.argumentIndex = Math.min(B.argumentIndex, U.parameters.length - 1); } return B; } function QJe(e, { argumentCount: t, argumentsSpan: r, invocation: i, argumentIndex: o }, s, c) { const f = c.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e); return f ? { items: [ZJe(e, f, c, s2e(i), s)], applicableSpan: r, selectedItemIndex: 0, argumentIndex: o, argumentCount: t } : void 0; } function ZJe(e, t, r, i, o) { const s = aw(r, e), c = U1(), f = t.map((b) => c2e(b, r, i, o, c)), d = e.getDocumentationComment(r), y = e.getJsDocTags(r); return { isVariadic: !1, prefixDisplayParts: [...s, hu(29)], suffixDisplayParts: [hu(31)], separatorDisplayParts: yne, parameters: f, documentation: d, tags: y }; } function eKe(e, t, r, i, o, s) { const c = (r ? nKe : rKe)(e, i, o, s); return rn(c, ({ isVariadic: f, parameters: d, prefix: y, suffix: m }) => { const b = [...t, ...y], A = [...m, ...tKe(e, o, i)], C = e.getDocumentationComment(i), I = e.getJsDocTags(); return { isVariadic: f, prefixDisplayParts: b, suffixDisplayParts: A, separatorDisplayParts: yne, parameters: d, documentation: C, tags: I }; }); } function tKe(e, t, r) { return jv((i) => { i.writePunctuation(":"), i.writeSpace(" "); const o = r.getTypePredicateOfSignature(e); o ? r.writeTypePredicate(o, t, void 0, i) : r.writeType(r.getReturnTypeOfSignature(e), t, void 0, i); }); } function nKe(e, t, r, i) { const o = (e.target || e).typeParameters, s = U1(), c = (o || nt).map((d) => c2e(d, t, r, i, s)), f = e.thisParameter ? [t.symbolToParameterDeclaration(e.thisParameter, r, Nw)] : []; return t.getExpandedParameters(e).map((d) => { const y = N.createNodeArray([...f, ...rn(d, (b) => t.symbolToParameterDeclaration(b, r, Nw))]), m = jv((b) => { s.writeList(2576, y, i, b); }); return { isVariadic: !1, parameters: c, prefix: [hu(29)], suffix: [hu(31), ...m] }; }); } function rKe(e, t, r, i) { const o = U1(), s = jv((d) => { if (e.typeParameters && e.typeParameters.length) { const y = N.createNodeArray(e.typeParameters.map((m) => t.typeParameterToDeclaration(m, r, Nw))); o.writeList(53776, y, i, d); } }), c = t.getExpandedParameters(e), f = t.hasEffectiveRestParameter(e) ? c.length === 1 ? (d) => !0 : (d) => { var y; return !!(d.length && ((y = ri(d[d.length - 1], km)) == null ? void 0 : y.links.checkFlags) & 32768); } : (d) => !1; return c.map((d) => ({ isVariadic: f(d), parameters: d.map((y) => iKe(y, t, r, i, o)), prefix: [...s, hu(20)], suffix: [hu(21)] })); } function iKe(e, t, r, i, o) { const s = jv((d) => { const y = t.symbolToParameterDeclaration(e, r, Nw); o.writeNode(4, y, i, d); }), c = t.isOptionalParameter(e.valueDeclaration), f = km(e) && !!(e.links.checkFlags & 32768); return { name: e.name, documentation: e.getDocumentationComment(t), displayParts: s, isOptional: c, isRest: f }; } function c2e(e, t, r, i, o) { const s = jv((c) => { const f = t.typeParameterToDeclaration(e, r, Nw); o.writeNode(4, f, i, c); }); return { name: e.symbol.name, documentation: e.symbol.getDocumentationComment(t), displayParts: s, isOptional: !1, isRest: !1 }; } var Nw, yne, aKe = L({ "src/services/signatureHelp.ts"() { Kr(), Nw = 70246400, yne = [hu(27), yl()]; } }), J6 = {}; fe(J6, { getArgumentInfoForCompletions: () => GJe, getSignatureHelpItems: () => PJe }); var oKe = L({ "src/services/_namespaces/ts.SignatureHelp.ts"() { aKe(); } }); function sKe(e, t) { var r, i; let o = { textSpan: fc(t.getFullStart(), t.getEnd()) }, s = t; e: for (; ; ) { const d = cKe(s); if (!d.length) break; for (let y = 0; y < d.length; y++) { const m = d[y - 1], b = d[y], A = d[y + 1]; if (nT(b, t, !0) > e) break e; const C = bm(O0(t.text, b.end)); if (C && C.kind === 2 && f(C.pos, C.end), lKe(t, e, b)) { if (lW(b) && Ys(s) && !d_(b.getStart(t), b.getEnd(), t) && c(b.getStart(t), b.getEnd()), oo(b) || Sk(b) || oC(b) || qq(b) || m && oC(m) || Ou(b) && sc(s) || vC(b) && Ou(s) || Wi(b) && vC(s) && d.length === 1 || AT(b) || R1(b) || Lk(b)) { s = b; break; } if (Sk(s) && A && gM(A)) { const B = b.getFullStart() - 2, U = A.getStart() + 1; c(B, U); } const I = vC(b) && uKe(m) && dKe(A) && !d_(m.getStart(), A.getStart(), t); let O = I ? m.getEnd() : b.getStart(); const k = I ? A.getStart() : fKe(t, b); if (yf(b) && ((r = b.jsDoc) != null && r.length) && c(ss(b.jsDoc).getStart(), k), vC(b)) { const B = b.getChildren()[0]; B && yf(B) && ((i = B.jsDoc) != null && i.length) && B.getStart() !== b.pos && (O = Math.min(O, ss(B.jsDoc).getStart())); } c(O, k), (Go(b) || vA(b)) && c(O + 1, k - 1), s = b; break; } if (y === d.length - 1) break e; } } return o; function c(d, y) { if (d !== y) { const m = fc(d, y); (!o || !UC(m, o.textSpan) && Sle(m, e)) && (o = { textSpan: m, ...o && { parent: o } }); } } function f(d, y) { c(d, y); let m = d; for (; t.text.charCodeAt(m) === 47; ) m++; c(m, y); } } function lKe(e, t, r) { return D.assert(r.pos <= t), t < r.end ? !0 : r.getEnd() === t ? Af(e, t).pos < r.end : !1; } function cKe(e) { var t; if (ji(e)) return Ow(e.getChildAt(0).getChildren(), u2e); if (bk(e)) { const [r, ...i] = e.getChildren(), o = D.checkDefined(i.pop()); D.assertEqual(r.kind, 18), D.assertEqual(o.kind, 19); const s = Ow(i, (f) => f === e.readonlyToken || f.kind === 146 || f === e.questionToken || f.kind === 57), c = Ow(s, ({ kind: f }) => f === 22 || f === 165 || f === 23); return [ r, Pw(WG(c, ({ kind: f }) => f === 58)), o ]; } if (Tf(e)) { const r = Ow(e.getChildren(), (c) => c === e.name || Ii(e.modifiers, c)), i = ((t = r[0]) == null ? void 0 : t.kind) === 323 ? r[0] : void 0, o = i ? r.slice(1) : r, s = WG(o, ({ kind: c }) => c === 58); return i ? [i, Pw(s)] : s; } if (Ma(e)) { const r = Ow(e.getChildren(), (o) => o === e.dotDotDotToken || o === e.name), i = Ow(r, (o) => o === r[0] || o === e.questionToken); return WG(i, ({ kind: o }) => o === 63); } return us(e) ? WG(e.getChildren(), ({ kind: r }) => r === 63) : e.getChildren(); } function Ow(e, t) { const r = []; let i; for (const o of e) t(o) ? (i = i || [], i.push(o)) : (i && (r.push(Pw(i)), i = void 0), r.push(o)); return i && r.push(Pw(i)), r; } function WG(e, t, r = !0) { if (e.length < 2) return e; const i = $i(e, t); if (i === -1) return e; const o = e.slice(0, i), s = e[i], c = Ho(e), f = r && c.kind === 26, d = e.slice(i + 1, f ? e.length - 1 : void 0), y = QD([ o.length ? Pw(o) : void 0, s, d.length ? Pw(d) : void 0 ]); return f ? y.concat(c) : y; } function Pw(e) { return D.assertGreaterThanOrEqual(e.length, 1), Mm(jm.createSyntaxList(e), e[0].pos, Ho(e).end); } function uKe(e) { const t = e && e.kind; return t === 18 || t === 22 || t === 20 || t === 283; } function dKe(e) { const t = e && e.kind; return t === 19 || t === 23 || t === 21 || t === 284; } function fKe(e, t) { switch (t.kind) { case 344: case 341: case 351: case 349: case 346: return e.getLineEndOfPosition(t.getStart()); default: return t.getEnd(); } } var u2e, _Ke = L({ "src/services/smartSelection.ts"() { Kr(), u2e = Sm(Gc, tu); } }), vne = {}; fe(vne, { getSmartSelectionRange: () => sKe }); var pKe = L({ "src/services/_namespaces/ts.SmartSelectionRange.ts"() { _Ke(); } }); function d2e(e, t, r) { const i = f2e(e, t, r); if (i !== "") return i; const o = KI(t); return o & 32 ? Tl(t, 228) ? "local class" : "class" : o & 384 ? "enum" : o & 524288 ? "type" : o & 64 ? "interface" : o & 262144 ? "type parameter" : o & 8 ? "enum member" : o & 2097152 ? "alias" : o & 1536 ? "module" : i; } function f2e(e, t, r) { const i = e.getRootSymbols(t); if (i.length === 1 && ss(i).flags & 8192 && e.getTypeOfSymbolAtLocation(t, r).getNonNullableType().getCallSignatures().length !== 0) return "method"; if (e.isUndefinedSymbol(t)) return "var"; if (e.isArgumentsSymbol(t)) return "local var"; if (r.kind === 108 && yt(r) || nx(r)) return "parameter"; const o = KI(t); if (o & 3) return w$(t) ? "parameter" : t.valueDeclaration && ig(t.valueDeclaration) ? "const" : Ye(t.declarations, CI) ? "let" : m2e(t) ? "local var" : "var"; if (o & 16) return m2e(t) ? "local function" : "function"; if (o & 32768) return "getter"; if (o & 65536) return "setter"; if (o & 8192) return "method"; if (o & 16384) return "constructor"; if (o & 131072) return "index"; if (o & 4) { if (o & 33554432 && t.links.checkFlags & 6) { const s = Ye(e.getRootSymbols(t), (c) => { if (c.getFlags() & 98311) return "property"; }); return s || (e.getTypeOfSymbolAtLocation(t, r).getCallSignatures().length ? "method" : "property"); } return "property"; } return ""; } function _2e(e) { if (e.declarations && e.declarations.length) { const [t, ...r] = e.declarations, i = Ne(r) && e9(t) && kt(r, (s) => !e9(s)) ? 8192 : 0, o = nw(t, i); if (o) return o.split(","); } return []; } function mKe(e, t) { if (!t) return ""; const r = new Set(_2e(t)); if (t.flags & 2097152) { const i = e.getAliasedSymbol(t); i !== t && Ye(_2e(i), (o) => { r.add(o); }); } return t.flags & 16777216 && r.add("optional"), r.size > 0 ? ko(r.values()).join(",") : ""; } function p2e(e, t, r, i, o, s = BT(o), c) { var f; const d = []; let y = [], m = []; const b = KI(t); let A = s & 1 ? f2e(e, t, o) : "", C = !1; const I = o.kind === 108 && KM(o) || nx(o); let O, k, B, U = !1; if (o.kind === 108 && !I) return { displayParts: [Bd(108)], documentation: [], symbolKind: "primitive type", tags: void 0 }; if (A !== "" || b & 32 || b & 2097152) { if (A === "getter" || A === "setter") { const pe = un(t.declarations, (ye) => ye.name === o); if (pe) switch (pe.kind) { case 174: A = "getter"; break; case 175: A = "setter"; break; case 169: A = "accessor"; break; default: D.assertNever(pe); } else A = "property"; } let H; if (O = I ? e.getTypeAtLocation(o) : e.getTypeOfSymbolAtLocation(t, o), o.parent && o.parent.kind === 208) { const pe = o.parent.name; (pe === o || pe && pe.getFullWidth() === 0) && (o = o.parent); } let le; if (ng(o) ? le = o : (ZY(o) || Qk(o) || o.parent && (qu(o.parent) || bT(o.parent)) && qa(t.valueDeclaration)) && (le = o.parent), le) { H = e.getResolvedSignature(le); const pe = le.kind === 211 || eo(le) && le.expression.kind === 106, ye = pe ? O.getConstructSignatures() : O.getCallSignatures(); if (H && !Ii(ye, H.target) && !Ii(ye, H) && (H = ye.length ? ye[0] : void 0), H) { switch (pe && b & 32 ? (A = "constructor", ue(O.symbol, A)) : b & 2097152 ? (A = "alias", ne(A), d.push(yl()), pe && (H.flags & 4 && (d.push(Bd(126)), d.push(yl())), d.push(Bd(103)), d.push(yl())), P(t)) : ue(t, A), A) { case "JSX attribute": case "property": case "var": case "const": case "let": case "parameter": case "local var": d.push(hu(58)), d.push(yl()), !(Qr(O) & 16) && O.symbol && (yi(d, aw(e, O.symbol, i, void 0, 5)), d.push(VC())), pe && (H.flags & 4 && (d.push(Bd(126)), d.push(yl())), d.push(Bd(103)), d.push(yl())), ge(H, ye, 262144); break; default: ge(H, ye); } C = !0, U = ye.length > 1; } } else if (o$(o) && !(b & 98304) || o.kind === 135 && o.parent.kind === 173) { const pe = o.parent; if (t.declarations && un(t.declarations, (Te) => Te === (o.kind === 135 ? pe.parent : pe))) { const Te = pe.kind === 173 ? O.getNonNullableType().getConstructSignatures() : O.getNonNullableType().getCallSignatures(); e.isImplementationOfOverload(pe) ? H = Te[0] : H = e.getSignatureFromDeclaration(pe), pe.kind === 173 ? (A = "constructor", ue(O.symbol, A)) : ue(pe.kind === 176 && !(O.symbol.flags & 2048 || O.symbol.flags & 4096) ? O.symbol : t, A), H && ge(H, Te), C = !0, U = Te.length > 1; } } } if (b & 32 && !C && !I && (X(), Tl(t, 228) ? ne("local class") : d.push(Bd(84)), d.push(yl()), P(t), ie(t, r)), b & 64 && s & 2 && (te(), d.push(Bd(118)), d.push(yl()), P(t), ie(t, r)), b & 524288 && s & 2 && (te(), d.push(Bd(154)), d.push(yl()), P(t), ie(t, r), d.push(yl()), d.push(iw(63)), d.push(yl()), yi(d, Z8(e, tg(o.parent) ? e.getTypeAtLocation(o.parent) : e.getDeclaredTypeOfSymbol(t), i, 8388608))), b & 384 && (te(), kt(t.declarations, (H) => Y0(H) && m1(H)) && (d.push(Bd(85)), d.push(yl())), d.push(Bd(92)), d.push(yl()), P(t)), b & 1536 && !I) { te(); const H = Tl(t, 264), le = H && H.name && H.name.kind === 79; d.push(Bd(le ? 143 : 142)), d.push(yl()), P(t); } if (b & 262144 && s & 2) if (te(), d.push(hu(20)), d.push(Cf("type parameter")), d.push(hu(21)), d.push(yl()), P(t), t.parent) Y(), P(t.parent, i), ie(t.parent, i); else { const H = Tl(t, 165); if (H === void 0) return D.fail(); const le = H.parent; if (le) if (qa(le)) { Y(); const pe = e.getSignatureFromDeclaration(le); le.kind === 177 ? (d.push(Bd(103)), d.push(yl())) : le.kind !== 176 && le.name && P(le.symbol), yi(d, N$(e, pe, r, 32)); } else Xp(le) && (Y(), d.push(Bd(154)), d.push(yl()), P(le.symbol), ie(le.symbol, r)); } if (b & 8) { A = "enum member", ue(t, "enum member"); const H = (f = t.declarations) == null ? void 0 : f[0]; if ((H == null ? void 0 : H.kind) === 302) { const le = e.getConstantValue(H); le !== void 0 && (d.push(yl()), d.push(iw(63)), d.push(yl()), d.push(Sd(kce(le), typeof le == "number" ? 7 : 8))); } } if (t.flags & 2097152) { if (te(), !C) { const H = e.getAliasedSymbol(t); if (H !== t && H.declarations && H.declarations.length > 0) { const le = H.declarations[0], pe = La(le); if (pe) { const ye = DM(le) && Jr(le, 2), Te = t.name !== "default" && !ye, ee = p2e(e, H, Zn(le), le, pe, s, Te ? t : H); d.push(...ee.displayParts), d.push(VC()), k = ee.documentation, B = ee.tags; } else k = H.getContextualDocumentationComment(le, e), B = H.getJsDocTags(e); } } if (t.declarations) switch (t.declarations[0].kind) { case 267: d.push(Bd(93)), d.push(yl()), d.push(Bd(143)); break; case 274: d.push(Bd(93)), d.push(yl()), d.push(Bd(t.declarations[0].isExportEquals ? 63 : 88)); break; case 278: d.push(Bd(93)); break; default: d.push(Bd(100)); } d.push(yl()), P(t), Ye(t.declarations, (H) => { if (H.kind === 268) { const le = H; if (G0(le)) d.push(yl()), d.push(iw(63)), d.push(yl()), d.push(Bd(147)), d.push(hu(20)), d.push(Sd(bc(wI(le)), 8)), d.push(hu(21)); else { const pe = e.getSymbolAtLocation(le.moduleReference); pe && (d.push(yl()), d.push(iw(63)), d.push(yl()), P(pe, i)); } return !0; } }); } if (!C) if (A !== "") { if (O) { if (I ? (te(), d.push(Bd(108))) : ue(t, A), A === "property" || A === "accessor" || A === "getter" || A === "setter" || A === "JSX attribute" || b & 3 || A === "local var" || A === "index" || I) { if (d.push(hu(58)), d.push(yl()), O.symbol && O.symbol.flags & 262144 && A !== "index") { const H = jv((le) => { const pe = e.typeParameterToDeclaration(O, i, bne); j().writeNode(4, pe, Zn(ya(i)), le); }); yi(d, H); } else yi(d, Z8(e, O, i)); if (km(t) && t.links.target && km(t.links.target) && t.links.target.links.tupleLabelDeclaration) { const H = t.links.target.links.tupleLabelDeclaration; D.assertNode(H.name, Ve), d.push(yl()), d.push(hu(20)), d.push(Cf(Or(H.name))), d.push(hu(21)); } } else if (b & 16 || b & 8192 || b & 16384 || b & 131072 || b & 98304 || A === "method") { const H = O.getNonNullableType().getCallSignatures(); H.length && (ge(H[0], H), U = H.length > 1); } } } else A = d2e(e, t, o); if (y.length === 0 && !U && (y = t.getContextualDocumentationComment(i, e)), y.length === 0 && b & 4 && t.parent && t.declarations && Ye(t.parent.declarations, (H) => H.kind === 308)) for (const H of t.declarations) { if (!H.parent || H.parent.kind !== 223) continue; const le = e.getSymbolAtLocation(H.parent.right); if (le && (y = le.getDocumentationComment(e), m = le.getJsDocTags(e), y.length > 0)) break; } if (y.length === 0 && Ve(o) && t.valueDeclaration && us(t.valueDeclaration)) { const H = t.valueDeclaration, le = H.parent; if (Ve(H.name) && Bm(le)) { const pe = P_(H.name), ye = e.getTypeAtLocation(le); y = En(ye.isUnion() ? ye.types : [ye], (Te) => { const ee = Te.getProperty(pe); return ee ? ee.getDocumentationComment(e) : void 0; }) || nt; } } return m.length === 0 && !U && (m = t.getContextualJsDocTags(i, e)), y.length === 0 && k && (y = k), m.length === 0 && B && (m = B), { displayParts: d, documentation: y, symbolKind: A, tags: m.length === 0 ? void 0 : m }; function j() { return U1(); } function te() { d.length && d.push(VC()), X(); } function X() { c && (ne("alias"), d.push(yl())); } function Y() { d.push(yl()), d.push(Bd(101)), d.push(yl()); } function P(H, le) { let pe; c && H === t && (H = c), A === "index" && (pe = e.getIndexInfosOfIndexSymbol(H)); let ye = []; H.flags & 131072 && pe ? (H.parent && (ye = aw(e, H.parent)), ye.push(hu(22)), pe.forEach((Te, ee) => { ye.push(...Z8(e, Te.keyType)), ee !== pe.length - 1 && (ye.push(yl()), ye.push(hu(51)), ye.push(yl())); }), ye.push(hu(23))) : ye = aw(e, H, le || r, void 0, 7), yi(d, ye), t.flags & 16777216 && d.push(hu(57)); } function ue(H, le) { te(), le && (ne(le), H && !kt(H.declarations, (pe) => zs(pe) || (Ms(pe) || Nu(pe)) && !pe.name) && (d.push(yl()), P(H))); } function ne(H) { switch (H) { case "var": case "function": case "let": case "const": case "constructor": d.push(D$(H)); return; default: d.push(hu(20)), d.push(D$(H)), d.push(hu(21)); return; } } function ge(H, le, pe = 0) { yi(d, N$(e, H, i, pe | 32)), le.length > 1 && (d.push(yl()), d.push(hu(20)), d.push(iw(39)), d.push(Sd((le.length - 1).toString(), 7)), d.push(yl()), d.push(Cf(le.length === 2 ? "overload" : "overloads")), d.push(hu(21))), y = H.getDocumentationComment(e), m = H.getJsDocTags(), le.length > 1 && y.length === 0 && m.length === 0 && (y = le[0].getDocumentationComment(e), m = le[0].getJsDocTags().filter((ye) => ye.name !== "deprecated")); } function ie(H, le) { const pe = jv((ye) => { const Te = e.symbolToTypeParameterDeclarations(H, le, bne); j().writeList(53776, Te, Zn(ya(le)), ye); }); yi(d, pe); } } function m2e(e) { return e.parent ? !1 : Ye(e.declarations, (t) => { if (t.kind === 215) return !0; if (t.kind !== 257 && t.kind !== 259) return !1; for (let r = t.parent; !aT(r); r = r.parent) if (r.kind === 308 || r.kind === 265) return !1; return !0; }); } var bne, hKe = L({ "src/services/symbolDisplay.ts"() { Kr(), bne = 70246400; } }), ky = {}; fe(ky, { getSymbolDisplayPartsDocumentationAndSymbolKind: () => p2e, getSymbolKind: () => d2e, getSymbolModifiers: () => mKe }); var gKe = L({ "src/services/_namespaces/ts.SymbolDisplay.ts"() { hKe(); } }); function h2e(e) { const t = e.__pos; return D.assert(typeof t == "number"), t; } function Ene(e, t) { D.assert(typeof t == "number"), e.__pos = t; } function g2e(e) { const t = e.__end; return D.assert(typeof t == "number"), t; } function Tne(e, t) { D.assert(typeof t == "number"), e.__end = t; } function y2e(e, t) { return zo(e, t, !1, !0); } function yKe(e, t) { let r = t; for (; r < e.length; ) { const i = e.charCodeAt(r); if (Cm(i)) { r++; continue; } return i === 47; } return !1; } function Mw(e, t, r, i) { return { pos: $T(e, t, i), end: n2(e, r, i) }; } function $T(e, t, r, i = !1) { var o, s; const { leadingTriviaOption: c } = r; if (c === 0) return t.getStart(e); if (c === 3) { const C = t.getStart(e), I = h_(C, e); return G8(t, I) ? I : C; } if (c === 2) { const C = UW(t, e.text); if (C != null && C.length) return h_(C[0].pos, e); } const f = t.getFullStart(), d = t.getStart(e); if (f === d) return d; const y = h_(f, e); if (h_(d, e) === y) return c === 1 ? f : d; if (i) { const C = ((o = ch(e.text, f)) == null ? void 0 : o[0]) || ((s = O0(e.text, f)) == null ? void 0 : s[0]); if (C) return zo(e.text, C.end, !0, !0); } const b = f > 0 ? 1 : 0; let A = Av(GI(e, y) + b, e); return A = y2e(e.text, A), Av(GI(e, A), e); } function Sne(e, t, r) { const { end: i } = t, { trailingTriviaOption: o } = r; if (o === 2) { const s = O0(e.text, i); if (s) { const c = GI(e, t.end); for (const f of s) { if (f.kind === 2 || GI(e, f.pos) > c) break; if (GI(e, f.end) > c) return zo(e.text, f.end, !0, !0); } } } } function n2(e, t, r) { var i; const { end: o } = t, { trailingTriviaOption: s } = r; if (s === 0) return o; if (s === 1) { const d = ha(O0(e.text, o), ch(e.text, o)), y = (i = d == null ? void 0 : d[d.length - 1]) == null ? void 0 : i.end; return y || o; } const c = Sne(e, t, r); if (c) return c; const f = zo(e.text, o, !0); return f !== o && (s === 2 || uu(e.text.charCodeAt(f - 1))) ? f : o; } function zG(e, t) { return !!t && !!e.parent && (t.kind === 27 || t.kind === 26 && e.parent.kind === 207); } function vKe(e) { return Ms(e) || pc(e); } function bKe(e) { if (e.kind !== 216) return e; const t = e.parent.kind === 169 ? e.parent : e.parent.parent; return t.jsDoc = e.jsDoc, t; } function EKe(e, t) { if (e.kind === t.kind) switch (e.kind) { case 344: { const r = e, i = t; return Ve(r.name) && Ve(i.name) && r.name.escapedText === i.name.escapedText ? N.createJSDocParameterTag(void 0, i.name, !1, i.typeExpression, i.isNameFirst, r.comment) : void 0; } case 345: return N.createJSDocReturnTag(void 0, t.typeExpression, e.comment); case 347: return N.createJSDocTypeTag(void 0, t.typeExpression, e.comment); } } function xne(e, t) { return zo(e.text, $T(e, t, { leadingTriviaOption: 1 }), !1, !0); } function TKe(e, t, r, i) { const o = xne(e, i); if (r === void 0 || d_(n2(e, t, {}), o, e)) return o; const s = Tc(i.getStart(e), e); if (zG(t, s)) { const c = Tc(t.getStart(e), e); if (zG(r, c)) { const f = zo(e.text, s.getEnd(), !0, !0); if (d_(c.getStart(e), s.getStart(e), e)) return uu(e.text.charCodeAt(f - 1)) ? f - 1 : f; if (uu(e.text.charCodeAt(f))) return f; } } return o; } function SKe(e, t) { const r = ys(e, 18, t), i = ys(e, 19, t); return [r == null ? void 0 : r.end, i == null ? void 0 : i.end]; } function qG(e) { return As(e) ? e.properties : e.members; } function xKe(e, t, r, i) { return K6.newFileChangesWorker(void 0, t, e, r, i); } function Ane(e, t) { for (let r = t.length - 1; r >= 0; r--) { const { span: i, newText: o } = t[r]; e = `${e.substring(0, i.start)}${o}${e.substring(Qc(i))}`; } return e; } function AKe(e) { return zo(e, 0) === e.length; } function JG(e) { const t = Bn(e, JG, E2e, CKe, JG), r = $s(t) ? t : Object.create(t); return Mm(r, h2e(e), g2e(e)), r; } function CKe(e, t, r, i, o) { const s = Kn(e, t, r, i, o); if (!s) return s; D.assert(e); const c = s === e ? N.createNodeArray(s.slice(0)) : s; return Mm(c, h2e(e), g2e(e)), c; } function v2e(e) { let t = 0; const r = DN(e), i = (ee) => { ee && Ene(ee, t); }, o = (ee) => { ee && Tne(ee, t); }, s = (ee) => { ee && Ene(ee, t); }, c = (ee) => { ee && Tne(ee, t); }, f = (ee) => { ee && Ene(ee, t); }, d = (ee) => { ee && Tne(ee, t); }; function y(ee, $e) { if ($e || !AKe(ee)) { t = r.getTextPos(); let Ge = 0; for (; Zh(ee.charCodeAt(ee.length - Ge - 1)); ) Ge++; t -= Ge; } } function m(ee) { r.write(ee), y(ee, !1); } function b(ee) { r.writeComment(ee); } function A(ee) { r.writeKeyword(ee), y(ee, !1); } function C(ee) { r.writeOperator(ee), y(ee, !1); } function I(ee) { r.writePunctuation(ee), y(ee, !1); } function O(ee) { r.writeTrailingSemicolon(ee), y(ee, !1); } function k(ee) { r.writeParameter(ee), y(ee, !1); } function B(ee) { r.writeProperty(ee), y(ee, !1); } function U(ee) { r.writeSpace(ee), y(ee, !1); } function j(ee) { r.writeStringLiteral(ee), y(ee, !1); } function te(ee, $e) { r.writeSymbol(ee, $e), y(ee, !1); } function X(ee) { r.writeLine(ee); } function Y() { r.increaseIndent(); } function P() { r.decreaseIndent(); } function ue() { return r.getText(); } function ne(ee) { r.rawWrite(ee), y(ee, !1); } function ge(ee) { r.writeLiteral(ee), y(ee, !0); } function ie() { return r.getTextPos(); } function H() { return r.getLine(); } function le() { return r.getColumn(); } function pe() { return r.getIndent(); } function ye() { return r.isAtStartOfLine(); } function Te() { r.clear(), t = 0; } return { onBeforeEmitNode: i, onAfterEmitNode: o, onBeforeEmitNodeArray: s, onAfterEmitNodeArray: c, onBeforeEmitToken: f, onAfterEmitToken: d, write: m, writeComment: b, writeKeyword: A, writeOperator: C, writePunctuation: I, writeTrailingSemicolon: O, writeParameter: k, writeProperty: B, writeSpace: U, writeStringLiteral: j, writeSymbol: te, writeLine: X, increaseIndent: Y, decreaseIndent: P, getText: ue, rawWrite: ne, writeLiteral: ge, getTextPos: ie, getLine: H, getColumn: le, getIndent: pe, isAtStartOfLine: ye, hasTrailingComment: () => r.hasTrailingComment(), hasTrailingWhitespace: () => r.hasTrailingWhitespace(), clear: Te }; } function LKe(e) { let t; for (const y of e.statements) if (dp(y)) t = y; else break; let r = 0; const i = e.text; if (t) return r = t.end, d(), r; const o = iM(i); o !== void 0 && (r = o.length, d()); const s = ch(i, r); if (!s) return r; let c, f; for (const y of s) { if (y.kind === 3) { if (kM(i, y.pos)) { c = { range: y, pinnedOrTripleSlash: !0 }; continue; } } else if (SW(i, y.pos, y.end)) { c = { range: y, pinnedOrTripleSlash: !0 }; continue; } if (c) { if (c.pinnedOrTripleSlash) break; const m = e.getLineAndCharacterOfPosition(y.pos).line, b = e.getLineAndCharacterOfPosition(c.range.end).line; if (m >= b + 2) break; } if (e.statements.length) { f === void 0 && (f = e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line); const m = e.getLineAndCharacterOfPosition(y.end).line; if (f < m + 2) break; } c = { range: y, pinnedOrTripleSlash: !1 }; } return c && (r = c.range.end, d()), r; function d() { if (r < i.length) { const y = i.charCodeAt(r); uu(y) && (r++, r < i.length && y === 13 && i.charCodeAt(r) === 10 && r++); } } } function b2e(e, t) { return !Ay(e, t) && !VT(e, t) && !_$(e, t) && !vye(e, t); } function IKe(e, t) { return (Tf(e) || Za(e)) && yM(t) && t.name.kind === 164 || jR(e) && jR(t); } function Ih(e, t, r, i = { leadingTriviaOption: 1 }) { const o = $T(t, r, i), s = n2(t, r, i); e.deleteRange(t, { pos: o, end: s }); } function Fw(e, t, r, i) { const o = D.checkDefined(Sc.SmartIndenter.getContainingList(i, r)), s = xA(o, i); if (D.assert(s !== -1), o.length === 1) { Ih(e, r, i); return; } D.assert(!t.has(i), "Deleting a node twice"), t.add(i), e.deleteRange(r, { pos: xne(r, i), end: s === o.length - 1 ? n2(r, i, {}) : TKe(r, i, o[s - 1], o[s + 1]) }); } var Cne, Lne, QC, KG, K6, E2e, Ine, kKe = L({ "src/services/textChanges.ts"() { Kr(), Cne = /* @__PURE__ */ ((e) => (e[e.Exclude = 0] = "Exclude", e[e.IncludeAll = 1] = "IncludeAll", e[e.JSDoc = 2] = "JSDoc", e[e.StartLine = 3] = "StartLine", e))(Cne || {}), Lne = /* @__PURE__ */ ((e) => (e[e.Exclude = 0] = "Exclude", e[e.ExcludeWhitespace = 1] = "ExcludeWhitespace", e[e.Include = 2] = "Include", e))(Lne || {}), QC = { leadingTriviaOption: 0, trailingTriviaOption: 0 }, KG = class { constructor(e, t) { this.newLineCharacter = e, this.formatContext = t, this.changes = [], this.newFiles = [], this.classesWithNodesInsertedAtStart = /* @__PURE__ */ new Map(), this.deletedNodes = []; } static fromContext(e) { return new KG(eb(e.host, e.formatContext.options), e.formatContext); } static with(e, t) { const r = KG.fromContext(e); return t(r), r.getChanges(); } pushRaw(e, t) { D.assertEqual(e.fileName, t.fileName); for (const r of t.textChanges) this.changes.push({ kind: 3, sourceFile: e, text: r.newText, range: kF(r.span) }); } deleteRange(e, t) { this.changes.push({ kind: 0, sourceFile: e, range: t }); } delete(e, t) { this.deletedNodes.push({ sourceFile: e, node: t }); } deleteNode(e, t, r = { leadingTriviaOption: 1 }) { this.deleteRange(e, Mw(e, t, t, r)); } deleteNodes(e, t, r = { leadingTriviaOption: 1 }, i) { for (const o of t) { const s = $T(e, o, r, i), c = n2(e, o, r); this.deleteRange(e, { pos: s, end: c }), i = !!Sne(e, o, r); } } deleteModifier(e, t) { this.deleteRange(e, { pos: t.getStart(e), end: zo(e.text, t.end, !0) }); } deleteNodeRange(e, t, r, i = { leadingTriviaOption: 1 }) { const o = $T(e, t, i), s = n2(e, r, i); this.deleteRange(e, { pos: o, end: s }); } deleteNodeRangeExcludingEnd(e, t, r, i = { leadingTriviaOption: 1 }) { const o = $T(e, t, i), s = r === void 0 ? e.text.length : $T(e, r, i); this.deleteRange(e, { pos: o, end: s }); } replaceRange(e, t, r, i = {}) { this.changes.push({ kind: 1, sourceFile: e, range: t, options: i, node: r }); } replaceNode(e, t, r, i = QC) { this.replaceRange(e, Mw(e, t, t, i), r, i); } replaceNodeRange(e, t, r, i, o = QC) { this.replaceRange(e, Mw(e, t, r, o), i, o); } replaceRangeWithNodes(e, t, r, i = {}) { this.changes.push({ kind: 2, sourceFile: e, range: t, options: i, nodes: r }); } replaceNodeWithNodes(e, t, r, i = QC) { this.replaceRangeWithNodes(e, Mw(e, t, t, i), r, i); } replaceNodeWithText(e, t, r) { this.replaceRangeWithText(e, Mw(e, t, t, QC), r); } replaceNodeRangeWithNodes(e, t, r, i, o = QC) { this.replaceRangeWithNodes(e, Mw(e, t, r, o), i, o); } nodeHasTrailingComment(e, t, r = QC) { return !!Sne(e, t, r); } nextCommaToken(e, t) { const r = UT(t, t.parent, e); return r && r.kind === 27 ? r : void 0; } replacePropertyAssignment(e, t, r) { const i = this.nextCommaToken(e, t) ? "" : "," + this.newLineCharacter; this.replaceNode(e, t, r, { suffix: i }); } insertNodeAt(e, t, r, i = {}) { this.replaceRange(e, u_(t), r, i); } insertNodesAt(e, t, r, i = {}) { this.replaceRangeWithNodes(e, u_(t), r, i); } insertNodeAtTopOfFile(e, t, r) { this.insertAtTopOfFile(e, t, r); } insertNodesAtTopOfFile(e, t, r) { this.insertAtTopOfFile(e, t, r); } insertAtTopOfFile(e, t, r) { const i = LKe(e), o = { prefix: i === 0 ? void 0 : this.newLineCharacter, suffix: (uu(e.text.charCodeAt(i)) ? "" : this.newLineCharacter) + (r ? this.newLineCharacter : "") }; Ga(t) ? this.insertNodesAt(e, i, t, o) : this.insertNodeAt(e, i, t, o); } insertFirstParameter(e, t, r) { const i = Wc(t); i ? this.insertNodeBefore(e, i, r) : this.insertNodeAt(e, t.pos, r); } insertNodeBefore(e, t, r, i = !1, o = {}) { this.insertNodeAt(e, $T(e, t, o), r, this.getOptionsForInsertNodeBefore(t, r, i)); } insertModifierAt(e, t, r, i = {}) { this.insertNodeAt(e, t, N.createToken(r), i); } insertModifierBefore(e, t, r) { return this.insertModifierAt(e, r.getStart(e), t, { suffix: " " }); } insertCommentBeforeLine(e, t, r, i) { const o = Av(t, e), s = zye(e.text, o), c = b2e(e, s), f = tw(e, c ? s : r), d = e.text.slice(o, s), y = `${c ? "" : this.newLineCharacter}//${i}${this.newLineCharacter}${d}`; this.insertText(e, f.getStart(e), y); } insertJsdocCommentBefore(e, t, r) { const i = t.getStart(e); if (t.jsDoc) for (const c of t.jsDoc) this.deleteRange(e, { pos: h_(c.getStart(e), e), end: n2(e, c, {}) }); const o = P$(e.text, i - 1), s = e.text.slice(o, i); this.insertNodeAt(e, i, r, { suffix: this.newLineCharacter + s }); } createJSDocText(e, t) { const r = Mo(t.jsDoc, (o) => Va(o.comment) ? N.createJSDocText(o.comment) : o.comment), i = bm(t.jsDoc); return i && d_(i.pos, i.end, e) && Ne(r) === 0 ? void 0 : N.createNodeArray(wo(r, N.createJSDocText(` `))); } replaceJSDocComment(e, t, r) { this.insertJsdocCommentBefore(e, bKe(t), N.createJSDocComment(this.createJSDocText(e, t), N.createNodeArray(r))); } addJSDocTags(e, t, r) { const i = ty(t.jsDoc, (s) => s.tags), o = r.filter((s) => !i.some((c, f) => { const d = EKe(c, s); return d && (i[f] = d), !!d; })); this.replaceJSDocComment(e, t, [...i, ...o]); } filterJSDocTags(e, t, r) { this.replaceJSDocComment(e, t, yn(ty(t.jsDoc, (i) => i.tags), r)); } replaceRangeWithText(e, t, r) { this.changes.push({ kind: 3, sourceFile: e, range: t, text: r }); } insertText(e, t, r) { this.replaceRangeWithText(e, u_(t), r); } tryInsertTypeAnnotation(e, t, r) { var i; let o; if (qa(t)) { if (o = ys(t, 21, e), !o) { if (!zs(t)) return !1; o = ss(t.parameters); } } else o = (i = t.kind === 257 ? t.exclamationToken : t.questionToken) != null ? i : t.name; return this.insertNodeAt(e, o.end, r, { prefix: ": " }), !0; } tryInsertThisTypeAnnotation(e, t, r) { const i = ys(t, 20, e).getStart(e) + 1, o = t.parameters.length ? ", " : ""; this.insertNodeAt(e, i, r, { prefix: "this: ", suffix: o }); } insertTypeParameters(e, t, r) { const i = (ys(t, 20, e) || ss(t.parameters)).getStart(e); this.insertNodesAt(e, i, r, { prefix: "<", suffix: ">", joiner: ", " }); } getOptionsForInsertNodeBefore(e, t, r) { return Ia(e) || Pc(e) ? { suffix: r ? this.newLineCharacter + this.newLineCharacter : this.newLineCharacter } : Wi(e) ? { suffix: ", " } : Ma(e) ? Ma(t) ? { suffix: ", " } : {} : Go(e) && Gc(e.parent) || by(e) ? { suffix: ", " } : Td(e) ? { suffix: "," + (r ? this.newLineCharacter : " ") } : D.failBadSyntaxKind(e); } insertNodeAtConstructorStart(e, t, r) { const i = Wc(t.body.statements); !i || !t.body.multiLine ? this.replaceConstructorBody(e, t, [r, ...t.body.statements]) : this.insertNodeBefore(e, i, r); } insertNodeAtConstructorStartAfterSuperCall(e, t, r) { const i = un(t.body.statements, (o) => eu(o) && LA(o.expression)); !i || !t.body.multiLine ? this.replaceConstructorBody(e, t, [...t.body.statements, r]) : this.insertNodeAfter(e, i, r); } insertNodeAtConstructorEnd(e, t, r) { const i = Zs(t.body.statements); !i || !t.body.multiLine ? this.replaceConstructorBody(e, t, [...t.body.statements, r]) : this.insertNodeAfter(e, i, r); } replaceConstructorBody(e, t, r) { this.replaceNode(e, t.body, N.createBlock(r, !0)); } insertNodeAtEndOfScope(e, t, r) { const i = $T(e, t.getLastToken(), {}); this.insertNodeAt(e, i, r, { prefix: uu(e.text.charCodeAt(t.getLastToken().pos)) ? this.newLineCharacter : this.newLineCharacter + this.newLineCharacter, suffix: this.newLineCharacter }); } insertMemberAtStart(e, t, r) { this.insertNodeAtStartWorker(e, t, r); } insertNodeAtObjectStart(e, t, r) { this.insertNodeAtStartWorker(e, t, r); } insertNodeAtStartWorker(e, t, r) { var i; const o = (i = this.guessIndentationFromExistingMembers(e, t)) != null ? i : this.computeIndentationForNewMember(e, t); this.insertNodeAt(e, qG(t).pos, r, this.getInsertNodeAtStartInsertOptions(e, t, o)); } guessIndentationFromExistingMembers(e, t) { let r, i = t; for (const o of qG(t)) { if (h3(i, o, e)) return; const s = o.getStart(e), c = Sc.SmartIndenter.findFirstNonWhitespaceColumn(h_(s, e), s, e, this.formatContext.options); if (r === void 0) r = c; else if (c !== r) return; i = o; } return r; } computeIndentationForNewMember(e, t) { var r; const i = t.getStart(e); return Sc.SmartIndenter.findFirstNonWhitespaceColumn(h_(i, e), i, e, this.formatContext.options) + ((r = this.formatContext.options.indentSize) != null ? r : 4); } getInsertNodeAtStartInsertOptions(e, t, r) { const o = qG(t).length === 0, s = _p(this.classesWithNodesInsertedAtStart, ds(t), { node: t, sourceFile: e }), c = As(t) && (!l_(e) || !o), f = As(t) && l_(e) && o && !s; return { indentation: r, prefix: (f ? "," : "") + this.newLineCharacter, suffix: c ? "," : Yu(t) && o ? ";" : "" }; } insertNodeAfterComma(e, t, r) { const i = this.insertNodeAfterWorker(e, this.nextCommaToken(e, t) || t, r); this.insertNodeAt(e, i, r, this.getInsertNodeAfterOptions(e, t)); } insertNodeAfter(e, t, r) { const i = this.insertNodeAfterWorker(e, t, r); this.insertNodeAt(e, i, r, this.getInsertNodeAfterOptions(e, t)); } insertNodeAtEndOfList(e, t, r) { this.insertNodeAt(e, t.end, r, { prefix: ", " }); } insertNodesAfter(e, t, r) { const i = this.insertNodeAfterWorker(e, t, ss(r)); this.insertNodesAt(e, i, r, this.getInsertNodeAfterOptions(e, t)); } insertNodeAfterWorker(e, t, r) { return IKe(t, r) && e.text.charCodeAt(t.end - 1) !== 59 && this.replaceRange(e, u_(t.end), N.createToken(26)), n2(e, t, {}); } getInsertNodeAfterOptions(e, t) { const r = this.getInsertNodeAfterOptionsWorker(t); return { ...r, prefix: t.end === e.end && Ia(t) ? r.prefix ? ` ${r.prefix}` : ` ` : r.prefix }; } getInsertNodeAfterOptionsWorker(e) { switch (e.kind) { case 260: case 264: return { prefix: this.newLineCharacter, suffix: this.newLineCharacter }; case 257: case 10: case 79: return { prefix: ", " }; case 299: return { suffix: "," + this.newLineCharacter }; case 93: return { prefix: " " }; case 166: return {}; default: return D.assert(Ia(e) || yM(e)), { suffix: this.newLineCharacter }; } } insertName(e, t, r) { if (D.assert(!t.name), t.kind === 216) { const i = ys(t, 38, e), o = ys(t, 20, e); o ? (this.insertNodesAt(e, o.getStart(e), [N.createToken(98), N.createIdentifier(r)], { joiner: " " }), Ih(this, e, i)) : (this.insertText(e, ss(t.parameters).getStart(e), `function ${r}(`), this.replaceRange(e, i, N.createToken(21))), t.body.kind !== 238 && (this.insertNodesAt(e, t.body.getStart(e), [N.createToken(18), N.createToken(105)], { joiner: " ", suffix: " " }), this.insertNodesAt(e, t.body.end, [N.createToken(26), N.createToken(19)], { joiner: " " })); } else { const i = ys(t, t.kind === 215 ? 98 : 84, e).end; this.insertNodeAt(e, i, N.createIdentifier(r), { prefix: " " }); } } insertExportModifier(e, t) { this.insertText(e, t.getStart(e), "export "); } insertImportSpecifierAtIndex(e, t, r, i) { const o = r.elements[i - 1]; o ? this.insertNodeInListAfter(e, o, t) : this.insertNodeBefore(e, r.elements[0], t, !d_(r.elements[0].getStart(), r.parent.parent.getStart(), e)); } insertNodeInListAfter(e, t, r, i = Sc.SmartIndenter.getContainingList(t, e)) { if (!i) { D.fail("node is not a list element"); return; } const o = xA(i, t); if (o < 0) return; const s = t.getEnd(); if (o !== i.length - 1) { const c = ra(e, t.end); if (c && zG(t, c)) { const f = i[o + 1], d = y2e(e.text, f.getFullStart()), y = `${mo(c.kind)}${e.text.substring(c.end, d)}`; this.insertNodesAt(e, d, [r], { suffix: y }); } } else { const c = t.getStart(e), f = h_(c, e); let d, y = !1; if (i.length === 1) d = 27; else { const m = Tc(t.pos, e); d = zG(t, m) ? m.kind : 27, y = h_(i[o - 1].getStart(e), e) !== f; } if (yKe(e.text, t.end) && (y = !0), y) { this.replaceRange(e, u_(s), N.createToken(d)); const m = Sc.SmartIndenter.findFirstNonWhitespaceColumn(f, c, e, this.formatContext.options); let b = zo(e.text, s, !0, !1); for (; b !== s && uu(e.text.charCodeAt(b - 1)); ) b--; this.replaceRange(e, u_(b), r, { indentation: m, prefix: this.newLineCharacter }); } else this.replaceRange(e, u_(s), r, { prefix: `${mo(d)} ` }); } } parenthesizeExpression(e, t) { this.replaceRange(e, tq(t), N.createParenthesizedExpression(t)); } finishClassesWithNodesInsertedAtStart() { this.classesWithNodesInsertedAtStart.forEach(({ node: e, sourceFile: t }) => { const [r, i] = SKe(e, t); if (r !== void 0 && i !== void 0) { const o = qG(e).length === 0, s = d_(r, i, t); o && s && r !== i - 1 && this.deleteRange(t, u_(r, i - 1)), s && this.insertText(t, i - 1, this.newLineCharacter); } }); } finishDeleteDeclarations() { const e = /* @__PURE__ */ new Set(); for (const { sourceFile: t, node: r } of this.deletedNodes) this.deletedNodes.some((i) => i.sourceFile === t && cye(i.node, r)) || (Ga(r) ? this.deleteRange(t, nq(t, r)) : Ine.deleteDeclaration(this, e, t, r)); e.forEach((t) => { const r = t.getSourceFile(), i = Sc.SmartIndenter.getContainingList(t, r); if (t !== Ho(i)) return; const o = ts(i, (s) => !e.has(s), i.length - 2); o !== -1 && this.deleteRange(r, { pos: i[o].end, end: xne(r, i[o + 1]) }); }); } getChanges(e) { this.finishDeleteDeclarations(), this.finishClassesWithNodesInsertedAtStart(); const t = K6.getTextChangesFromChanges(this.changes, this.newLineCharacter, this.formatContext, e); for (const { oldFile: r, fileName: i, statements: o } of this.newFiles) t.push(K6.newFileChanges(r, i, o, this.newLineCharacter, this.formatContext)); return t; } createNewFile(e, t, r) { this.newFiles.push({ oldFile: e, fileName: t, statements: r }); } }, ((e) => { function t(f, d, y, m) { return _a(XL(f, (b) => b.sourceFile.path), (b) => { const A = b[0].sourceFile, C = ry(b, (O, k) => O.range.pos - k.range.pos || O.range.end - k.range.end); for (let O = 0; O < C.length - 1; O++) D.assert(C[O].range.end <= C[O + 1].range.pos, "Changes overlap", () => `${JSON.stringify(C[O].range)} and ${JSON.stringify(C[O + 1].range)}`); const I = _a(C, (O) => { const k = Vv(O.range), B = o(O, A, d, y, m); if (!(k.length === B.length && sve(A.text, B, k.start))) return q8(k, B); }); return I.length > 0 ? { fileName: A.fileName, textChanges: I } : void 0; }); } e.getTextChangesFromChanges = t; function r(f, d, y, m, b) { const A = i(f, $z(d), y, m, b); return { fileName: d, textChanges: [q8(Cc(0, 0), A)], isNewFile: !0 }; } e.newFileChanges = r; function i(f, d, y, m, b) { const A = y.map((O) => O === 4 ? "" : c(O, f, m).text).join(m), C = BO("any file name", A, 99, !0, d), I = Sc.formatDocument(C, b); return Ane(A, I) + m; } e.newFileChangesWorker = i; function o(f, d, y, m, b) { var A; if (f.kind === 0) return ""; if (f.kind === 3) return f.text; const { options: C = {}, range: { pos: I } } = f, O = (U) => s(U, d, I, C, y, m, b), k = f.kind === 2 ? f.nodes.map((U) => lA(O(U), y)).join(((A = f.options) == null ? void 0 : A.joiner) || y) : O(f.node), B = C.indentation !== void 0 || h_(I, d) === I ? k : k.replace(/^\s+/, ""); return (C.prefix || "") + B + (!C.suffix || tc(B, C.suffix) ? "" : C.suffix); } function s(f, d, y, { indentation: m, prefix: b, delta: A }, C, I, O) { const { node: k, text: B } = c(f, d, C); O && O(k, B); const U = n9(I, d), j = m !== void 0 ? m : Sc.SmartIndenter.getIndentation(y, d, U, b === C || h_(y, d) === y); A === void 0 && (A = Sc.SmartIndenter.shouldIndentChildNode(U, f) && U.indentSize || 0); const te = { text: B, getLineAndCharacterOfPosition(Y) { return il(this, Y); } }, X = Sc.formatNodeGivenIndentation(k, te, d.languageVariant, j, A, { ...I, options: U }); return Ane(B, X); } function c(f, d, y) { const m = v2e(y), b = r6(y); return G1({ newLine: b, neverAsciiEscape: !0, preserveSourceNewlines: !0, terminateUnterminatedLiterals: !0 }, m).writeNode(4, f, d, m), { text: m.getText(), node: JG(f) }; } e.getNonformattedText = c; })(K6 || (K6 = {})), E2e = { ...pg, factory: iO(pg.factory.flags | 1, pg.factory.baseFactory) }, ((e) => { function t(s, c, f, d) { switch (d.kind) { case 166: { const C = d.parent; zs(C) && C.parameters.length === 1 && !ys(C, 20, f) ? s.replaceNodeWithText(f, d, "()") : Fw(s, c, f, d); break; } case 269: case 268: const y = f.imports.length && d === ss(f.imports).parent || d === un(f.statements, rT); Ih(s, f, d, { leadingTriviaOption: y ? 0 : yf(d) ? 2 : 3 }); break; case 205: const m = d.parent; m.kind === 204 && d !== Ho(m.elements) ? Ih(s, f, d) : Fw(s, c, f, d); break; case 257: o(s, c, f, d); break; case 165: Fw(s, c, f, d); break; case 273: const A = d.parent; A.elements.length === 1 ? i(s, f, A) : Fw(s, c, f, d); break; case 271: i(s, f, d); break; case 26: Ih(s, f, d, { trailingTriviaOption: 0 }); break; case 98: Ih(s, f, d, { leadingTriviaOption: 0 }); break; case 260: case 259: Ih(s, f, d, { leadingTriviaOption: yf(d) ? 2 : 3 }); break; default: d.parent ? Gm(d.parent) && d.parent.name === d ? r(s, f, d.parent) : eo(d.parent) && Ii(d.parent.arguments, d) ? Fw(s, c, f, d) : Ih(s, f, d) : Ih(s, f, d); } } e.deleteDeclaration = t; function r(s, c, f) { if (!f.namedBindings) Ih(s, c, f.parent); else { const d = f.name.getStart(c), y = ra(c, f.name.end); if (y && y.kind === 27) { const m = zo(c.text, y.end, !1, !0); s.deleteRange(c, { pos: d, end: m }); } else Ih(s, c, f.name); } } function i(s, c, f) { if (f.parent.name) { const d = D.checkDefined(ra(c, f.pos - 1)); s.deleteRange(c, { pos: d.getStart(c), end: f.end }); } else { const d = j0(f, 269); Ih(s, c, d); } } function o(s, c, f, d) { const { parent: y } = d; if (y.kind === 295) { s.deleteNodeRange(f, ys(y, 20, f), ys(y, 21, f)); return; } if (y.declarations.length !== 1) { Fw(s, c, f, d); return; } const m = y.parent; switch (m.kind) { case 247: case 246: s.replaceNode(f, d, N.createObjectLiteralExpression()); break; case 245: Ih(s, f, y); break; case 240: Ih(s, f, m, { leadingTriviaOption: yf(m) ? 2 : 3 }); break; default: D.assertNever(m); } } })(Ine || (Ine = {})); } }), hr = {}; fe(hr, { ChangeTracker: () => KG, LeadingTriviaOption: () => Cne, TrailingTriviaOption: () => Lne, applyChanges: () => Ane, assignPositionsToNode: () => JG, createWriter: () => v2e, deleteNode: () => Ih, getNewFileText: () => xKe, isThisTypeAnnotatable: () => vKe, isValidLocationToAddComment: () => b2e }); var wKe = L({ "src/services/_namespaces/ts.textChanges.ts"() { kKe(); } }), kne, wne, DKe = L({ "src/services/formatting/formattingContext.ts"() { Kr(), kne = /* @__PURE__ */ ((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))(kne || {}), wne = class { constructor(e, t, r) { this.sourceFile = e, this.formattingRequestKind = t, this.options = r; } updateContext(e, t, r, i, o) { this.currentTokenSpan = D.checkDefined(e), this.currentTokenParent = D.checkDefined(t), this.nextTokenSpan = D.checkDefined(r), this.nextTokenParent = D.checkDefined(i), this.contextNode = D.checkDefined(o), 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) { const 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) { const t = this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line, r = this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line; return t === r; } BlockIsOnOneLine(e) { const t = ys(e, 18, this.sourceFile), r = ys(e, 19, this.sourceFile); if (t && r) { const i = this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line, o = this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line; return i === o; } return !1; } }; } }); function Dne(e, t, r, i, o) { const s = t === 1 ? S2e : T2e; s.setText(e), s.setTextPos(r); let c = !0, f, d, y, m, b; const A = o({ advance: C, readTokenInfo: X, readEOFTokenRange: P, isOnToken: ue, isOnEOF: ne, getCurrentLeadingTrivia: () => f, lastTrailingTriviaWasNewLine: () => c, skipToEndOf: ie, skipToStartOf: H, getStartPos: () => { var le; return (le = b == null ? void 0 : b.token.pos) != null ? le : s.getTokenPos(); } }); return b = void 0, s.setText(void 0), A; function C() { b = void 0, s.getStartPos() !== r ? c = !!d && Ho(d).kind === 4 : s.scan(), f = void 0, d = void 0; let pe = s.getStartPos(); for (; pe < i; ) { const ye = s.getToken(); if (!VA(ye)) break; s.scan(); const Te = { pos: pe, end: s.getStartPos(), kind: ye }; pe = s.getStartPos(), f = Fn(f, Te); } y = s.getStartPos(); } function I(le) { switch (le.kind) { case 33: case 71: case 72: case 49: case 48: return !0; } return !1; } function O(le) { if (le.parent) switch (le.parent.kind) { case 288: case 283: case 284: case 282: return bd(le.kind) || le.kind === 79; } return !1; } function k(le) { return _x(le) || Ey(le) && (b == null ? void 0 : b.token.kind) === 11; } function B(le) { return le.kind === 13; } function U(le) { return le.kind === 16 || le.kind === 17; } function j(le) { return le.parent && $p(le.parent) && le.parent.initializer === le; } function te(le) { return le === 43 || le === 68; } function X(le) { D.assert(ue()); const pe = I(le) ? 1 : B(le) ? 2 : U(le) ? 3 : O(le) ? 4 : k(le) ? 5 : j(le) ? 6 : 0; if (b && pe === m) return ge(b, le); s.getStartPos() !== y && (D.assert(b !== void 0), s.setTextPos(y), s.scan()); let ye = Y(le, pe); const Te = QG(s.getStartPos(), s.getTextPos(), ye); for (d && (d = void 0); s.getStartPos() < i && (ye = s.scan(), !!VA(ye)); ) { const ee = QG(s.getStartPos(), s.getTextPos(), ye); if (d || (d = []), d.push(ee), ye === 4) { s.scan(); break; } } return b = { leadingTrivia: f, trailingTrivia: d, token: Te }, ge(b, le); } function Y(le, pe) { const ye = s.getToken(); switch (m = 0, pe) { case 1: if (ye === 31) { m = 1; const Te = s.reScanGreaterToken(); return D.assert(le.kind === Te), Te; } break; case 2: if (te(ye)) { m = 2; const Te = s.reScanSlashToken(); return D.assert(le.kind === Te), Te; } break; case 3: if (ye === 19) return m = 3, s.reScanTemplateToken(!1); break; case 4: return m = 4, s.scanJsxIdentifier(); case 5: return m = 5, s.reScanJsxToken(!1); case 6: return m = 6, s.reScanJsxAttributeValue(); case 0: break; default: D.assertNever(pe); } return ye; } function P() { return D.assert(ne()), QG(s.getStartPos(), s.getTextPos(), 1); } function ue() { const le = b ? b.token.kind : s.getToken(); return le !== 1 && !VA(le); } function ne() { return (b ? b.token.kind : s.getToken()) === 1; } function ge(le, pe) { return US(pe) && le.token.kind !== pe.kind && (le.token.kind = pe.kind), le; } function ie(le) { s.setTextPos(le.end), y = s.getStartPos(), m = void 0, b = void 0, c = !1, f = void 0, d = void 0; } function H(le) { s.setTextPos(le.pos), y = s.getStartPos(), m = void 0, b = void 0, c = !1, f = void 0, d = void 0; } } var T2e, S2e, RKe = L({ "src/services/formatting/formattingScanner.ts"() { Kr(), Uw(), T2e = sy(99, !1, 0), S2e = sy(99, !1, 1); } }), X6, Rne, Nne, NKe = L({ "src/services/formatting/rule.ts"() { Kr(), X6 = nt, Rne = /* @__PURE__ */ ((e) => (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))(Rne || {}), Nne = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.CanDeleteNewLines = 1] = "CanDeleteNewLines", e))(Nne || {}); } }); function x2e() { const e = []; for (let Y = 0; Y <= 162; Y++) Y !== 1 && e.push(Y); function t(...Y) { return { tokens: e.filter((P) => !Y.some((ue) => ue === P)), isSpecific: !1 }; } const r = { tokens: e, isSpecific: !1 }, i = ZC([...e, 3]), o = ZC([...e, 1]), s = C2e(81, 162), c = C2e(29, 78), f = [ 101, 102, 162, 128, 140, 150 ], d = [45, 46, 54, 53], y = [ 8, 9, 79, 20, 22, 18, 108, 103 ], m = [79, 20, 108, 103], b = [79, 21, 23, 103], A = [79, 20, 108, 103], C = [79, 21, 23, 103], I = [2, 3], O = [79, ...i9], k = i, B = ZC([79, 3, 84, 93, 100]), U = ZC([21, 3, 90, 111, 96, 91]), j = [ jr("IgnoreBeforeComment", r, I, X6, 1), jr("IgnoreAfterLineComment", 2, r, X6, 1), jr("NotSpaceBeforeColon", r, 58, [wi, Y6, k2e], 16), jr("SpaceAfterColon", 58, r, [wi, Y6], 4), jr("NoSpaceBeforeQuestionMark", r, 57, [wi, Y6, k2e], 16), jr("SpaceAfterQuestionMarkInConditionalOperator", 57, r, [wi, PKe], 4), jr("NoSpaceAfterQuestionMark", 57, r, [wi], 16), jr("NoSpaceBeforeDot", r, [24, 28], [wi, oXe], 16), jr("NoSpaceAfterDot", [24, 28], r, [wi], 16), jr("NoSpaceBetweenImportParenInImportType", 100, 20, [wi, qKe], 16), jr("NoSpaceAfterUnaryPrefixOperator", d, y, [wi, Y6], 16), jr("NoSpaceAfterUnaryPreincrementOperator", 45, m, [wi], 16), jr("NoSpaceAfterUnaryPredecrementOperator", 46, A, [wi], 16), jr("NoSpaceBeforeUnaryPostincrementOperator", b, 45, [wi, W2e], 16), jr("NoSpaceBeforeUnaryPostdecrementOperator", C, 46, [wi, W2e], 16), jr("SpaceAfterPostincrementWhenFollowedByAdd", 45, 39, [wi, wy], 4), jr("SpaceAfterAddWhenFollowedByUnaryPlus", 39, 39, [wi, wy], 4), jr("SpaceAfterAddWhenFollowedByPreincrement", 39, 45, [wi, wy], 4), jr("SpaceAfterPostdecrementWhenFollowedBySubtract", 46, 40, [wi, wy], 4), jr("SpaceAfterSubtractWhenFollowedByUnaryMinus", 40, 40, [wi, wy], 4), jr("SpaceAfterSubtractWhenFollowedByPredecrement", 40, 46, [wi, wy], 4), jr("NoSpaceAfterCloseBrace", 19, [27, 26], [wi], 16), jr("NewLineBeforeCloseBraceInBlockContext", i, 19, [D2e], 8), jr("SpaceAfterCloseBrace", 19, t(21), [wi, BKe], 4), jr("SpaceBetweenCloseBraceAndElse", 19, 91, [wi], 4), jr("SpaceBetweenCloseBraceAndWhile", 19, 115, [wi], 4), jr("NoSpaceBetweenEmptyBraceBrackets", 18, 19, [wi, F2e], 16), jr("SpaceAfterConditionalClosingParen", 21, 22, [$6], 4), jr("NoSpaceBetweenFunctionKeywordAndStar", 98, 41, [O2e], 16), jr("SpaceAfterStarInGeneratorDeclaration", 41, 79, [O2e], 4), jr("SpaceAfterFunctionInFuncDecl", 98, r, [z1], 4), jr("NewLineAfterOpenBraceInBlockContext", 18, r, [D2e], 8), jr("SpaceAfterGetSetInMember", [137, 151], 79, [z1], 4), jr("NoSpaceBetweenYieldKeywordAndStar", 125, 41, [wi, H2e], 16), jr("SpaceBetweenYieldOrYieldStarAndOperand", [125, 41], r, [wi, H2e], 4), jr("NoSpaceBetweenReturnAndSemicolon", 105, 26, [wi], 16), jr("SpaceAfterCertainKeywords", [113, 109, 103, 89, 105, 112, 133], r, [wi], 4), jr("SpaceAfterLetConstInVariableDeclaration", [119, 85], r, [wi, YKe], 4), jr("NoSpaceBeforeOpenParenInFuncCall", r, 20, [wi, VKe, jKe], 16), jr("SpaceBeforeBinaryKeywordOperator", r, f, [wi, wy], 4), jr("SpaceAfterBinaryKeywordOperator", f, r, [wi, wy], 4), jr("SpaceAfterVoidOperator", 114, r, [wi, tXe], 4), jr("SpaceBetweenAsyncAndOpenParen", 132, 20, [zKe, wi], 4), jr("SpaceBetweenAsyncAndFunctionKeyword", 132, [98, 79], [wi], 4), jr("NoSpaceBetweenTagAndTemplateString", [79, 21], [14, 15], [wi], 16), jr("SpaceBeforeJsxAttribute", r, 79, [JKe, wi], 4), jr("SpaceBeforeSlashInJsxOpeningElement", r, 43, [U2e, wi], 4), jr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement", 43, 31, [U2e, wi], 16), jr("NoSpaceBeforeEqualInJsxAttribute", r, 63, [G2e, wi], 16), jr("NoSpaceAfterEqualInJsxAttribute", 63, r, [G2e, wi], 16), jr("NoSpaceAfterModuleImport", [142, 147], 20, [wi], 16), jr("SpaceAfterCertainTypeScriptKeywords", [ 126, 127, 84, 136, 88, 92, 93, 94, 137, 117, 100, 118, 142, 143, 121, 123, 122, 146, 151, 124, 154, 158, 141, 138 ], r, [wi], 4), jr("SpaceBeforeCertainTypeScriptKeywords", r, [94, 117, 158], [wi], 4), jr("SpaceAfterModuleName", 10, 18, [$Ke], 4), jr("SpaceBeforeArrow", r, 38, [wi], 4), jr("SpaceAfterArrow", 38, r, [wi], 4), jr("NoSpaceAfterEllipsis", 25, 79, [wi], 16), jr("NoSpaceAfterOptionalParameters", 57, [21, 27], [wi, Y6], 16), jr("NoSpaceBetweenEmptyInterfaceBraceBrackets", 18, 19, [wi, QKe], 16), jr("NoSpaceBeforeOpenAngularBracket", O, 29, [wi, Q6], 16), jr("NoSpaceBetweenCloseParenAndAngularBracket", 21, 29, [wi, Q6], 16), jr("NoSpaceAfterOpenAngularBracket", 29, r, [wi, Q6], 16), jr("NoSpaceBeforeCloseAngularBracket", r, 31, [wi, Q6], 16), jr("NoSpaceAfterCloseAngularBracket", 31, [20, 22, 31, 27], [ wi, Q6, FKe, eXe ], 16), jr("SpaceBeforeAt", [21, 79], 59, [wi], 4), jr("NoSpaceAfterAt", 59, r, [wi], 16), jr("SpaceAfterDecorator", r, [ 126, 79, 93, 88, 84, 124, 123, 121, 122, 137, 151, 22, 41 ], [XKe], 4), jr("NoSpaceBeforeNonNullAssertionOperator", r, 53, [wi, nXe], 16), jr("NoSpaceAfterNewKeywordOnConstructorSignature", 103, 20, [wi, ZKe], 16), jr("SpaceLessThanAndNonJSXTypeAnnotation", 29, 29, [wi], 4) ], te = [ jr("SpaceAfterConstructor", 135, 20, [of("insertSpaceAfterConstructor"), wi], 4), jr("NoSpaceAfterConstructor", 135, 20, [bp("insertSpaceAfterConstructor"), wi], 16), jr("SpaceAfterComma", 27, r, [of("insertSpaceAfterCommaDelimiter"), wi, Une, HKe, WKe], 4), jr("NoSpaceAfterComma", 27, r, [bp("insertSpaceAfterCommaDelimiter"), wi, Une], 16), jr("SpaceAfterAnonymousFunctionKeyword", [98, 41], 20, [of("insertSpaceAfterFunctionKeywordForAnonymousFunctions"), z1], 4), jr("NoSpaceAfterAnonymousFunctionKeyword", [98, 41], 20, [bp("insertSpaceAfterFunctionKeywordForAnonymousFunctions"), z1], 16), jr("SpaceAfterKeywordInControl", s, 20, [of("insertSpaceAfterKeywordsInControlFlowStatements"), $6], 4), jr("NoSpaceAfterKeywordInControl", s, 20, [bp("insertSpaceAfterKeywordsInControlFlowStatements"), $6], 16), jr("SpaceAfterOpenParen", 20, r, [of("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"), wi], 4), jr("SpaceBeforeCloseParen", r, 21, [of("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"), wi], 4), jr("SpaceBetweenOpenParens", 20, 20, [of("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"), wi], 4), jr("NoSpaceBetweenParens", 20, 21, [wi], 16), jr("NoSpaceAfterOpenParen", 20, r, [bp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"), wi], 16), jr("NoSpaceBeforeCloseParen", r, 21, [bp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"), wi], 16), jr("SpaceAfterOpenBracket", 22, r, [of("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), wi], 4), jr("SpaceBeforeCloseBracket", r, 23, [of("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), wi], 4), jr("NoSpaceBetweenBrackets", 22, 23, [wi], 16), jr("NoSpaceAfterOpenBracket", 22, r, [bp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), wi], 16), jr("NoSpaceBeforeCloseBracket", r, 23, [bp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), wi], 16), jr("SpaceAfterOpenBrace", 18, r, [I2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), w2e], 4), jr("SpaceBeforeCloseBrace", r, 19, [I2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), w2e], 4), jr("NoSpaceBetweenEmptyBraceBrackets", 18, 19, [wi, F2e], 16), jr("NoSpaceAfterOpenBrace", 18, r, [One("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), wi], 16), jr("NoSpaceBeforeCloseBrace", r, 19, [One("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), wi], 16), jr("SpaceBetweenEmptyBraceBrackets", 18, 19, [of("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")], 4), jr("NoSpaceBetweenEmptyBraceBrackets", 18, 19, [One("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"), wi], 16), jr("SpaceAfterTemplateHeadAndMiddle", [15, 16], r, [of("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"), B2e], 4, 1), jr("SpaceBeforeTemplateMiddleAndTail", r, [16, 17], [of("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"), wi], 4), jr("NoSpaceAfterTemplateHeadAndMiddle", [15, 16], r, [bp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"), B2e], 16, 1), jr("NoSpaceBeforeTemplateMiddleAndTail", r, [16, 17], [bp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"), wi], 16), jr("SpaceAfterOpenBraceInJsxExpression", 18, r, [of("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"), wi, YG], 4), jr("SpaceBeforeCloseBraceInJsxExpression", r, 19, [of("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"), wi, YG], 4), jr("NoSpaceAfterOpenBraceInJsxExpression", 18, r, [bp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"), wi, YG], 16), jr("NoSpaceBeforeCloseBraceInJsxExpression", r, 19, [bp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"), wi, YG], 16), jr("SpaceAfterSemicolonInFor", 26, r, [of("insertSpaceAfterSemicolonInForStatements"), wi, Mne], 4), jr("NoSpaceAfterSemicolonInFor", 26, r, [bp("insertSpaceAfterSemicolonInForStatements"), wi, Mne], 16), jr("SpaceBeforeBinaryOperator", r, c, [of("insertSpaceBeforeAndAfterBinaryOperators"), wi, wy], 4), jr("SpaceAfterBinaryOperator", c, r, [of("insertSpaceBeforeAndAfterBinaryOperators"), wi, wy], 4), jr("NoSpaceBeforeBinaryOperator", r, c, [bp("insertSpaceBeforeAndAfterBinaryOperators"), wi, wy], 16), jr("NoSpaceAfterBinaryOperator", c, r, [bp("insertSpaceBeforeAndAfterBinaryOperators"), wi, wy], 16), jr("SpaceBeforeOpenParenInFuncDecl", r, 20, [of("insertSpaceBeforeFunctionParenthesis"), wi, z1], 4), jr("NoSpaceBeforeOpenParenInFuncDecl", r, 20, [bp("insertSpaceBeforeFunctionParenthesis"), wi, z1], 16), jr("NewLineBeforeOpenBraceInControl", U, 18, [of("placeOpenBraceOnNewLineForControlBlocks"), $6, Gne], 8, 1), jr("NewLineBeforeOpenBraceInFunction", k, 18, [of("placeOpenBraceOnNewLineForFunctions"), z1, Gne], 8, 1), jr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock", B, 18, [of("placeOpenBraceOnNewLineForFunctions"), P2e, Gne], 8, 1), jr("SpaceAfterTypeAssertion", 31, r, [of("insertSpaceAfterTypeAssertion"), wi, jne], 4), jr("NoSpaceAfterTypeAssertion", 31, r, [bp("insertSpaceAfterTypeAssertion"), wi, jne], 16), jr("SpaceBeforeTypeAnnotation", r, [57, 58], [of("insertSpaceBeforeTypeAnnotation"), wi, Fne], 4), jr("NoSpaceBeforeTypeAnnotation", r, [57, 58], [bp("insertSpaceBeforeTypeAnnotation"), wi, Fne], 16), jr("NoOptionalSemicolon", 26, o, [L2e("semicolons", "remove"), iXe], 32), jr("OptionalSemicolon", r, o, [L2e("semicolons", "insert"), aXe], 64) ], X = [ jr("NoSpaceBeforeSemicolon", r, 26, [wi], 16), jr("SpaceBeforeOpenBraceInControl", U, 18, [Pne("placeOpenBraceOnNewLineForControlBlocks"), $6, Vne, Bne], 4, 1), jr("SpaceBeforeOpenBraceInFunction", k, 18, [Pne("placeOpenBraceOnNewLineForFunctions"), z1, XG, Vne, Bne], 4, 1), jr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock", B, 18, [Pne("placeOpenBraceOnNewLineForFunctions"), P2e, Vne, Bne], 4, 1), jr("NoSpaceBeforeComma", r, 27, [wi], 16), jr("NoSpaceBeforeOpenBracket", t(132, 82), 22, [wi], 16), jr("NoSpaceAfterCloseBracket", 23, r, [wi, KKe], 16), jr("SpaceAfterSemicolon", 26, r, [wi], 4), jr("SpaceBetweenForAndAwaitKeyword", 97, 133, [wi], 4), jr("SpaceBetweenStatements", [21, 90, 91, 82], r, [wi, Une, OKe], 4), jr("SpaceAfterTryCatchFinally", [111, 83, 96], 18, [wi], 4) ]; return [ ...j, ...te, ...X ]; } function jr(e, t, r, i, o, s = 0) { return { leftTokenRange: A2e(t), rightTokenRange: A2e(r), rule: { debugName: e, context: i, action: o, flags: s } }; } function ZC(e) { return { tokens: e, isSpecific: !0 }; } function A2e(e) { return typeof e == "number" ? ZC([e]) : Ga(e) ? ZC(e) : e; } function C2e(e, t, r = []) { const i = []; for (let o = e; o <= t; o++) Ii(r, o) || i.push(o); return ZC(i); } function L2e(e, t) { return (r) => r.options && r.options[e] === t; } function of(e) { return (t) => t.options && Ns(t.options, e) && !!t.options[e]; } function One(e) { return (t) => t.options && Ns(t.options, e) && !t.options[e]; } function bp(e) { return (t) => !t.options || !Ns(t.options, e) || !t.options[e]; } function Pne(e) { return (t) => !t.options || !Ns(t.options, e) || !t.options[e] || t.TokensAreOnSameLine(); } function I2e(e) { return (t) => !t.options || !Ns(t.options, e) || !!t.options[e]; } function Mne(e) { return e.contextNode.kind === 245; } function OKe(e) { return !Mne(e); } function wy(e) { switch (e.contextNode.kind) { case 223: return e.contextNode.operatorToken.kind !== 27; case 224: case 191: case 231: case 278: case 273: case 179: case 189: case 190: case 235: return !0; case 205: case 262: case 268: case 274: case 257: case 166: case 302: case 169: case 168: return e.currentTokenSpan.kind === 63 || e.nextTokenSpan.kind === 63; case 246: case 165: return e.currentTokenSpan.kind === 101 || e.nextTokenSpan.kind === 101 || e.currentTokenSpan.kind === 63 || e.nextTokenSpan.kind === 63; case 247: return e.currentTokenSpan.kind === 162 || e.nextTokenSpan.kind === 162; } return !1; } function Y6(e) { return !wy(e); } function k2e(e) { return !Fne(e); } function Fne(e) { const t = e.contextNode.kind; return t === 169 || t === 168 || t === 166 || t === 257 || HS(t); } function PKe(e) { return e.contextNode.kind === 224 || e.contextNode.kind === 191; } function Bne(e) { return e.TokensAreOnSameLine() || XG(e); } function w2e(e) { return e.contextNode.kind === 203 || e.contextNode.kind === 197 || MKe(e); } function Gne(e) { return XG(e) && !(e.NextNodeAllOnSameLine() || e.NextNodeBlockIsOnOneLine()); } function D2e(e) { return R2e(e) && !(e.ContextNodeAllOnSameLine() || e.ContextNodeBlockIsOnOneLine()); } function MKe(e) { return R2e(e) && (e.ContextNodeAllOnSameLine() || e.ContextNodeBlockIsOnOneLine()); } function R2e(e) { return N2e(e.contextNode); } function XG(e) { return N2e(e.nextTokenParent); } function N2e(e) { if (M2e(e)) return !0; switch (e.kind) { case 238: case 266: case 207: case 265: return !0; } return !1; } function z1(e) { switch (e.contextNode.kind) { case 259: case 171: case 170: case 174: case 175: case 176: case 215: case 173: case 216: case 261: return !0; } return !1; } function FKe(e) { return !z1(e); } function O2e(e) { return e.contextNode.kind === 259 || e.contextNode.kind === 215; } function P2e(e) { return M2e(e.contextNode); } function M2e(e) { switch (e.kind) { case 260: case 228: case 261: case 263: case 184: case 264: case 275: case 276: case 269: case 272: return !0; } return !1; } function BKe(e) { switch (e.currentTokenParent.kind) { case 260: case 264: case 263: case 295: case 265: case 252: return !0; case 238: { const t = e.currentTokenParent.parent; if (!t || t.kind !== 216 && t.kind !== 215) return !0; } } return !1; } function $6(e) { switch (e.contextNode.kind) { case 242: case 252: case 245: case 246: case 247: case 244: case 255: case 243: case 251: case 295: return !0; default: return !1; } } function F2e(e) { return e.contextNode.kind === 207; } function GKe(e) { return e.contextNode.kind === 210; } function UKe(e) { return e.contextNode.kind === 211; } function VKe(e) { return GKe(e) || UKe(e); } function jKe(e) { return e.currentTokenSpan.kind !== 27; } function HKe(e) { return e.nextTokenSpan.kind !== 23; } function WKe(e) { return e.nextTokenSpan.kind !== 21; } function zKe(e) { return e.contextNode.kind === 216; } function qKe(e) { return e.contextNode.kind === 202; } function wi(e) { return e.TokensAreOnSameLine() && e.contextNode.kind !== 11; } function B2e(e) { return e.contextNode.kind !== 11; } function Une(e) { return e.contextNode.kind !== 281 && e.contextNode.kind !== 285; } function YG(e) { return e.contextNode.kind === 291 || e.contextNode.kind === 290; } function JKe(e) { return e.nextTokenParent.kind === 288; } function G2e(e) { return e.contextNode.kind === 288; } function U2e(e) { return e.contextNode.kind === 282; } function KKe(e) { return !z1(e) && !XG(e); } function XKe(e) { return e.TokensAreOnSameLine() && zf(e.contextNode) && V2e(e.currentTokenParent) && !V2e(e.nextTokenParent); } function V2e(e) { for (; e && yt(e); ) e = e.parent; return e && e.kind === 167; } function YKe(e) { return e.currentTokenParent.kind === 258 && e.currentTokenParent.getStart(e.sourceFile) === e.currentTokenSpan.pos; } function Vne(e) { return e.formattingRequestKind !== 2; } function $Ke(e) { return e.contextNode.kind === 264; } function QKe(e) { return e.contextNode.kind === 184; } function ZKe(e) { return e.contextNode.kind === 177; } function j2e(e, t) { if (e.kind !== 29 && e.kind !== 31) return !1; switch (t.kind) { case 180: case 213: case 262: case 260: case 228: case 261: case 259: case 215: case 216: case 171: case 170: case 176: case 177: case 210: case 211: case 230: return !0; default: return !1; } } function Q6(e) { return j2e(e.currentTokenSpan, e.currentTokenParent) || j2e(e.nextTokenSpan, e.nextTokenParent); } function jne(e) { return e.contextNode.kind === 213; } function eXe(e) { return !jne(e); } function tXe(e) { return e.currentTokenSpan.kind === 114 && e.currentTokenParent.kind === 219; } function H2e(e) { return e.contextNode.kind === 226 && e.contextNode.expression !== void 0; } function nXe(e) { return e.contextNode.kind === 232; } function W2e(e) { return !rXe(e); } function rXe(e) { switch (e.contextNode.kind) { case 242: case 245: case 246: case 247: case 243: case 244: return !0; default: return !1; } } function iXe(e) { let t = e.nextTokenSpan.kind, r = e.nextTokenSpan.pos; if (VA(t)) { const s = e.nextTokenParent === e.currentTokenParent ? UT(e.currentTokenParent, nr(e.currentTokenParent, (c) => !c.parent), e.sourceFile) : e.nextTokenParent.getFirstToken(e.sourceFile); if (!s) return !0; t = s.kind, r = s.getStart(e.sourceFile); } const i = e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line, o = e.sourceFile.getLineAndCharacterOfPosition(r).line; return i === o ? t === 19 || t === 1 : t === 237 || t === 26 ? !1 : e.contextNode.kind === 261 || e.contextNode.kind === 262 ? !Tf(e.currentTokenParent) || !!e.currentTokenParent.type || t !== 20 : Za(e.currentTokenParent) ? !e.currentTokenParent.initializer : e.currentTokenParent.kind !== 245 && e.currentTokenParent.kind !== 239 && e.currentTokenParent.kind !== 237 && t !== 22 && t !== 20 && t !== 39 && t !== 40 && t !== 43 && t !== 13 && t !== 27 && t !== 225 && t !== 15 && t !== 14 && t !== 24; } function aXe(e) { return zF(e.currentTokenSpan.end, e.currentTokenParent, e.sourceFile); } function oXe(e) { return !Pr(e.contextNode) || !__(e.contextNode.expression) || e.contextNode.expression.getText().indexOf(".") !== -1; } var sXe = L({ "src/services/formatting/rules.ts"() { Kr(), Uw(); } }); function lXe(e, t) { return { options: e, getRules: cXe(), host: t }; } function cXe() { return Hne === void 0 && (Hne = dXe(x2e())), Hne; } function uXe(e) { let t = 0; return e & 1 && (t |= 28), e & 2 && (t |= 96), e & 28 && (t |= 28), e & 96 && (t |= 96), t; } function dXe(e) { const t = fXe(e); return (r) => { const i = t[z2e(r.currentTokenSpan.kind, r.nextTokenSpan.kind)]; if (i) { const o = []; let s = 0; for (const c of i) { const f = ~uXe(s); c.action & f && Vn(c.context, (d) => d(r)) && (o.push(c), s |= c.action); } if (o.length) return o; } }; } function fXe(e) { const t = new Array($G * $G), r = new Array(t.length); for (const i of e) { const o = i.leftTokenRange.isSpecific && i.rightTokenRange.isSpecific; for (const s of i.leftTokenRange.tokens) for (const c of i.rightTokenRange.tokens) { const f = z2e(s, c); let d = t[f]; d === void 0 && (d = t[f] = []), _Xe(d, i.rule, o, r, f); } } return t; } function z2e(e, t) { return D.assert(e <= 162 && t <= 162, "Must compute formatting context from tokens"), e * $G + t; } function _Xe(e, t, r, i, o) { const s = t.action & 3 ? r ? 0 : eL.StopRulesAny : t.context !== X6 ? r ? eL.ContextRulesSpecific : eL.ContextRulesAny : r ? eL.NoContextRulesSpecific : eL.NoContextRulesAny, c = i[o] || 0; e.splice(pXe(c, s), 0, t), i[o] = mXe(c, s); } function pXe(e, t) { let r = 0; for (let i = 0; i <= t; i += r2) r += e & Z6, e >>= r2; return r; } function mXe(e, t) { const r = (e >> t & Z6) + 1; return D.assert((r & Z6) === r, "Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."), e & ~(Z6 << t) | r << t; } var Hne, r2, Z6, $G, eL, hXe = L({ "src/services/formatting/rulesMap.ts"() { Kr(), Uw(), r2 = 5, Z6 = 31, $G = 162 + 1, eL = ((e) => (e[e.StopRulesSpecific = 0] = "StopRulesSpecific", e[e.StopRulesAny = r2 * 1] = "StopRulesAny", e[e.ContextRulesSpecific = r2 * 2] = "ContextRulesSpecific", e[e.ContextRulesAny = r2 * 3] = "ContextRulesAny", e[e.NoContextRulesSpecific = r2 * 4] = "NoContextRulesSpecific", e[e.NoContextRulesAny = r2 * 5] = "NoContextRulesAny", e))(eL || {}); } }); function QG(e, t, r) { const i = { pos: e, end: t, kind: r }; return D.isDebugging && Object.defineProperty(i, "__debugKind", { get: () => D.formatSyntaxKind(r) }), i; } function gXe(e, t, r) { const i = t.getLineAndCharacterOfPosition(e).line; if (i === 0) return []; let o = JR(i, t); for (; Cm(t.text.charCodeAt(o)); ) o--; uu(t.text.charCodeAt(o)) && o--; const s = { pos: Av(i - 1, t), end: o + 1 }; return e4(s, t, r, 2); } function yXe(e, t, r) { const i = Wne(e, 26, t); return q2e(zne(i), t, r, 3); } function vXe(e, t, r) { const i = Wne(e, 18, t); if (!i) return []; const o = i.parent, s = zne(o), c = { pos: h_(s.getStart(t), t), end: e }; return e4(c, t, r, 4); } function bXe(e, t, r) { const i = Wne(e, 19, t); return q2e(zne(i), t, r, 5); } function EXe(e, t) { const r = { pos: 0, end: e.text.length }; return e4(r, e, t, 0); } function TXe(e, t, r, i) { const o = { pos: h_(e, r), end: t }; return e4(o, r, i, 1); } function Wne(e, t, r) { const i = Tc(e, r); return i && i.kind === t && e === i.getEnd() ? i : void 0; } function zne(e) { let t = e; for (; t && t.parent && t.parent.end === e.end && !SXe(t.parent, t); ) t = t.parent; return t; } function SXe(e, t) { switch (e.kind) { case 260: case 261: return af(e.members, t); case 264: const r = e.body; return !!r && r.kind === 265 && af(r.statements, t); case 308: case 238: case 265: return af(e.statements, t); case 295: return af(e.block.statements, t); } return !1; } function xXe(e, t) { return r(t); function r(i) { const o = Oa(i, (s) => s$(s.getStart(t), s.end, e) && s); if (o) { const s = r(o); if (s) return s; } return i; } } function AXe(e, t) { if (!e.length) return o; const r = e.filter((s) => ew(t, s.start, s.start + s.length)).sort((s, c) => s.start - c.start); if (!r.length) return o; let i = 0; return (s) => { for (; ; ) { if (i >= r.length) return !1; const c = r[i]; if (s.end <= c.start) return !1; if (bF(s.pos, s.end, c.start, c.start + c.length)) return !0; i++; } }; function o() { return !1; } } function CXe(e, t, r) { const i = e.getStart(r); if (i === t.pos && e.end === t.end) return i; const o = Tc(t.pos, r); return !o || o.end >= t.pos ? e.pos : o.end; } function LXe(e, t, r) { let i = -1, o; for (; e; ) { const s = r.getLineAndCharacterOfPosition(e.getStart(r)).line; if (i !== -1 && s !== i) break; if (Ep.shouldIndentChildNode(t, e, o, r)) return t.indentSize; i = s, o = e, e = e.parent; } return 0; } function IXe(e, t, r, i, o, s) { const c = { pos: e.pos, end: e.end }; return Dne(t.text, r, c.pos, c.end, (f) => J2e(c, e, i, o, f, s, 1, (d) => !1, t)); } function q2e(e, t, r, i) { if (!e) return []; const o = { pos: h_(e.getStart(t), t), end: e.end }; return e4(o, t, r, i); } function e4(e, t, r, i) { const o = xXe(e, t); return Dne(t.text, t.languageVariant, CXe(o, e, t), e.end, (s) => J2e(e, o, Ep.getIndentationForNode(o, e, t, r.options), LXe(o, r.options, t), s, r, i, AXe(t.parseDiagnostics, e), t)); } function J2e(e, t, r, i, o, { options: s, getRules: c, host: f }, d, y, m) { var b; const A = new wne(m, d, s); let C, I, O, k, B, U = -1; const j = []; if (o.advance(), o.isOnToken()) { const He = m.getLineAndCharacterOfPosition(t.getStart(m)).line; let Me = He; zf(t) && (Me = m.getLineAndCharacterOfPosition(xW(t, m)).line), ue(t, t, He, Me, r, i); } if (!o.isOnToken()) { const He = Ep.nodeWillIndentChild(s, t, void 0, m, !1) ? r + s.indentSize : r, Me = o.getCurrentLeadingTrivia(); Me && (ne(Me, He, !1, (ot) => ie(ot, m.getLineAndCharacterOfPosition(ot.pos), t, t, void 0)), s.trimTrailingWhitespace !== !1 && Ge(Me)); } if (I && o.getStartPos() >= e.end) { const He = o.isOnEOF() ? o.readEOFTokenRange() : o.isOnToken() ? o.readTokenInfo(t).token : void 0; if (He && He.pos === C) { const Me = ((b = Tc(He.end, m, t)) == null ? void 0 : b.parent) || O; H(He, m.getLineAndCharacterOfPosition(He.pos).line, Me, I, k, O, Me, void 0); } } return j; function te(He, Me, ot, At, bt) { if (ew(At, He, Me) || V8(At, He, Me)) { if (bt !== -1) return bt; } else { const Vt = m.getLineAndCharacterOfPosition(He).line, et = h_(He, m), it = Ep.findFirstNonWhitespaceColumn(et, He, m, s); if (Vt !== ot || He === it) { const nn = Ep.getBaseIndentation(s); return nn > it ? nn : it; } } return -1; } function X(He, Me, ot, At, bt, Vt) { const et = Ep.shouldIndentChildNode(s, He) ? s.indentSize : 0; return Vt === Me ? { indentation: Me === B ? U : bt.getIndentation(), delta: Math.min(s.indentSize, bt.getDelta(He) + et) } : ot === -1 ? He.kind === 20 && Me === B ? { indentation: U, delta: bt.getDelta(He) } : Ep.childStartsOnTheSameLineWithElseInIfStatement(At, He, Me, m) || Ep.childIsUnindentedBranchOfConditionalExpression(At, He, Me, m) || Ep.argumentStartsOnSameLineAsPreviousArgument(At, He, Me, m) ? { indentation: bt.getIndentation(), delta: et } : { indentation: bt.getIndentation() + bt.getDelta(He), delta: et } : { indentation: ot, delta: et }; } function Y(He) { if (H_(He)) { const Me = un(He.modifiers, lo, $i(He.modifiers, Du)); if (Me) return Me.kind; } switch (He.kind) { case 260: return 84; case 261: return 118; case 259: return 98; case 263: return 263; case 174: return 137; case 175: return 151; case 171: if (He.asteriskToken) return 41; case 169: case 166: const Me = La(He); if (Me) return Me.kind; } } function P(He, Me, ot, At) { return { getIndentationForComment: (et, it, nn) => { switch (et) { case 19: case 23: case 21: return ot + Vt(nn); } return it !== -1 ? it : ot; }, getIndentationForToken: (et, it, nn, Xt) => !Xt && bt(et, it, nn) ? ot + Vt(nn) : ot, getIndentation: () => ot, getDelta: Vt, recomputeIndentation: (et, it) => { Ep.shouldIndentChildNode(s, it, He, m) && (ot += et ? s.indentSize : -s.indentSize, At = Ep.shouldIndentChildNode(s, He) ? s.indentSize : 0); } }; function bt(et, it, nn) { switch (it) { case 18: case 19: case 21: case 91: case 115: case 59: return !1; case 43: case 31: switch (nn.kind) { case 283: case 284: case 282: return !1; } break; case 22: case 23: if (nn.kind !== 197) return !1; break; } return Me !== et && !(zf(He) && it === Y(He)); } function Vt(et) { return Ep.nodeWillIndentChild(s, He, et, m, !0) ? At : 0; } } function ue(He, Me, ot, At, bt, Vt) { if (!ew(e, He.getStart(m), He.getEnd())) return; const et = P(He, ot, bt, Vt); let it = Me; for (Oa(He, (Hn) => { nn(Hn, -1, He, et, ot, At, !1); }, (Hn) => { Xt(Hn, He, ot, et); }); o.isOnToken() && o.getStartPos() < e.end; ) { const Hn = o.readTokenInfo(He); if (Hn.token.end > Math.min(He.end, e.end)) break; On(Hn, He, et, He); } function nn(Hn, In, Yt, fr, xi, Ji, Ki, Rr) { if (D.assert(!$s(Hn)), Sl(Hn) || Sce(Yt, Hn)) return In; const xt = Hn.getStart(m), gn = m.getLineAndCharacterOfPosition(xt).line; let Ht = gn; zf(Hn) && (Ht = m.getLineAndCharacterOfPosition(xW(Hn, m)).line); let ln = -1; if (Ki && af(e, Yt) && (ln = te(xt, Hn.end, xi, e, In), ln !== -1 && (In = ln)), !ew(e, Hn.pos, Hn.end)) return Hn.end < e.pos && o.skipToEndOf(Hn), In; if (Hn.getFullWidth() === 0) return In; for (; o.isOnToken() && o.getStartPos() < e.end; ) { const Di = o.readTokenInfo(He); if (Di.token.end > e.end) return In; if (Di.token.end > xt) { Di.token.pos > xt && o.skipToStartOf(Hn); break; } On(Di, He, fr, He); } if (!o.isOnToken() || o.getStartPos() >= e.end) return In; if (US(Hn)) { const Di = o.readTokenInfo(Hn); if (Hn.kind !== 11) return D.assert(Di.token.end === Hn.end, "Token end is child end"), On(Di, He, fr, Hn), In; } const rr = Hn.kind === 167 ? gn : Ji, lr = X(Hn, gn, ln, He, fr, rr); return ue(Hn, it, gn, Ht, lr.indentation, lr.delta), it = He, Rr && Yt.kind === 206 && In === -1 && (In = lr.indentation), In; } function Xt(Hn, In, Yt, fr) { D.assert(c1(Hn)), D.assert(!$s(Hn)); const xi = kXe(In, Hn); let Ji = fr, Ki = Yt; if (!ew(e, Hn.pos, Hn.end)) { Hn.end < e.pos && o.skipToEndOf(Hn); return; } if (xi !== 0) for (; o.isOnToken() && o.getStartPos() < e.end; ) { const gn = o.readTokenInfo(In); if (gn.token.end > Hn.pos) break; if (gn.token.kind === xi) { Ki = m.getLineAndCharacterOfPosition(gn.token.pos).line, On(gn, In, fr, In); let Ht; if (U !== -1) Ht = U; else { const ln = h_(gn.token.pos, m); Ht = Ep.findFirstNonWhitespaceColumn(ln, gn.token.pos, m, s); } Ji = P(In, Yt, Ht, s.indentSize); } else On(gn, In, fr, In); } let Rr = -1; for (let gn = 0; gn < Hn.length; gn++) { const Ht = Hn[gn]; Rr = nn(Ht, Rr, He, Ji, Ki, Ki, !0, gn === 0); } const xt = wXe(xi); if (xt !== 0 && o.isOnToken() && o.getStartPos() < e.end) { let gn = o.readTokenInfo(In); gn.token.kind === 27 && (On(gn, In, Ji, In), gn = o.isOnToken() ? o.readTokenInfo(In) : void 0), gn && gn.token.kind === xt && af(In, gn.token) && On(gn, In, Ji, In, !0); } } function On(Hn, In, Yt, fr, xi) { D.assert(af(In, Hn.token)); const Ji = o.lastTrailingTriviaWasNewLine(); let Ki = !1; Hn.leadingTrivia && ge(Hn.leadingTrivia, In, it, Yt); let Rr = 0; const xt = af(e, Hn.token), gn = m.getLineAndCharacterOfPosition(Hn.token.pos); if (xt) { const Ht = y(Hn.token), ln = I; if (Rr = ie(Hn.token, gn, In, it, Yt), !Ht) if (Rr === 0) { const rr = ln && m.getLineAndCharacterOfPosition(ln.end).line; Ki = Ji && gn.line !== rr; } else Ki = Rr === 1; } if (Hn.trailingTrivia && (C = Ho(Hn.trailingTrivia).end, ge(Hn.trailingTrivia, In, it, Yt)), Ki) { const Ht = xt && !y(Hn.token) ? Yt.getIndentationForToken(gn.line, Hn.token.kind, fr, !!xi) : -1; let ln = !0; if (Hn.leadingTrivia) { const rr = Yt.getIndentationForComment(Hn.token.kind, Ht, fr); ln = ne(Hn.leadingTrivia, rr, ln, (lr) => le(lr.pos, rr, !1)); } Ht !== -1 && ln && (le(Hn.token.pos, Ht, Rr === 1), B = gn.line, U = Ht); } o.advance(), it = In; } } function ne(He, Me, ot, At) { for (const bt of He) { const Vt = af(e, bt); switch (bt.kind) { case 3: Vt && Te(bt, Me, !ot), ot = !1; break; case 2: ot && Vt && At(bt), ot = !1; break; case 4: ot = !0; break; } } return ot; } function ge(He, Me, ot, At) { for (const bt of He) if (IF(bt.kind) && af(e, bt)) { const Vt = m.getLineAndCharacterOfPosition(bt.pos); ie(bt, Vt, Me, ot, At); } } function ie(He, Me, ot, At, bt) { const Vt = y(He); let et = 0; if (!Vt) if (I) et = H(He, Me.line, ot, I, k, O, At, bt); else { const it = m.getLineAndCharacterOfPosition(e.pos); ee(it.line, Me.line); } return I = He, C = He.end, O = ot, k = Me.line, et; } function H(He, Me, ot, At, bt, Vt, et, it) { A.updateContext(At, Vt, He, ot, et); const nn = c(A); let Xt = A.options.trimTrailingWhitespace !== !1, On = 0; return nn ? cn(nn, (Hn) => { if (On = Ke(Hn, At, bt, He, Me), it) switch (On) { case 2: ot.getStart(m) === He.pos && it.recomputeIndentation(!1, et); break; case 1: ot.getStart(m) === He.pos && it.recomputeIndentation(!0, et); break; default: D.assert(On === 0); } Xt = Xt && !(Hn.action & 16) && Hn.flags !== 1; }) : Xt = Xt && He.kind !== 1, Me !== bt && Xt && ee(bt, Me, At), On; } function le(He, Me, ot) { const At = qne(Me, s); if (ot) Re(He, 0, At); else { const bt = m.getLineAndCharacterOfPosition(He), Vt = Av(bt.line, m); (Me !== pe(Vt, bt.character) || ye(At, Vt)) && Re(Vt, bt.character, At); } } function pe(He, Me) { let ot = 0; for (let At = 0; At < Me; At++) m.text.charCodeAt(He + At) === 9 ? ot += s.tabSize - ot % s.tabSize : ot++; return ot; } function ye(He, Me) { return He !== m.text.substr(Me, He.length); } function Te(He, Me, ot, At = !0) { let bt = m.getLineAndCharacterOfPosition(He.pos).line; const Vt = m.getLineAndCharacterOfPosition(He.end).line; if (bt === Vt) { ot || le(He.pos, Me, !1); return; } const et = []; let it = He.pos; for (let In = bt; In < Vt; In++) { const Yt = JR(In, m); et.push({ pos: it, end: Yt }), it = Av(In + 1, m); } if (At && et.push({ pos: it, end: He.end }), et.length === 0) return; const nn = Av(bt, m), Xt = Ep.findFirstNonWhitespaceCharacterAndColumn(nn, et[0].pos, m, s); let On = 0; ot && (On = 1, bt++); const Hn = Me - Xt.column; for (let In = On; In < et.length; In++, bt++) { const Yt = Av(bt, m), fr = In === 0 ? Xt : Ep.findFirstNonWhitespaceCharacterAndColumn(et[In].pos, et[In].end, m, s), xi = fr.column + Hn; if (xi > 0) { const Ji = qne(xi, s); Re(Yt, fr.character, Ji); } else We(Yt, fr.character); } } function ee(He, Me, ot) { for (let At = He; At < Me; At++) { const bt = Av(At, m), Vt = JR(At, m); if (ot && (IF(ot.kind) || g$(ot.kind)) && ot.pos <= Vt && ot.end > Vt) continue; const et = $e(bt, Vt); et !== -1 && (D.assert(et === bt || !Cm(m.text.charCodeAt(et - 1))), We(et, Vt + 1 - et)); } } function $e(He, Me) { let ot = Me; for (; ot >= He && Cm(m.text.charCodeAt(ot)); ) ot--; return ot !== Me ? ot + 1 : -1; } function Ge(He) { let Me = I ? I.end : e.pos; for (const ot of He) IF(ot.kind) && (Me < ot.pos && Fe(Me, ot.pos - 1, I), Me = ot.end + 1); Me < e.end && Fe(Me, e.end, I); } function Fe(He, Me, ot) { const At = m.getLineAndCharacterOfPosition(He).line, bt = m.getLineAndCharacterOfPosition(Me).line; ee(At, bt + 1, ot); } function We(He, Me) { Me && j.push(wF(He, Me, "")); } function Re(He, Me, ot) { (Me || ot) && j.push(wF(He, Me, ot)); } function Pe(He, Me) { Me && j.push(wF(He, 0, Me)); } function Ke(He, Me, ot, At, bt) { const Vt = bt !== ot; switch (He.action) { case 1: return 0; case 16: if (Me.end !== At.pos) return We(Me.end, At.pos - Me.end), Vt ? 2 : 0; break; case 32: We(Me.pos, Me.end - Me.pos); break; case 8: if (He.flags !== 1 && ot !== bt) return 0; if (bt - ot !== 1) return Re(Me.end, At.pos - Me.end, eb(f, s)), Vt ? 0 : 1; break; case 4: if (He.flags !== 1 && ot !== bt) return 0; if (At.pos - Me.end !== 1 || m.text.charCodeAt(Me.end) !== 32) return Re(Me.end, At.pos - Me.end, " "), Vt ? 2 : 0; break; case 64: Pe(Me.end, ";"); } return 0; } } function K2e(e, t, r, i = ra(e, t)) { const o = nr(i, Vm); if (o && (i = o.parent), i.getStart(e) <= t && t < i.getEnd()) return; r = r === null ? void 0 : r === void 0 ? Tc(t, e) : r; const c = r && O0(e.text, r.end), f = GW(i, e), d = ha(c, f); return d && un(d, (y) => U8(y, t) || t === y.end && (y.kind === 2 || t === e.getFullWidth())); } function kXe(e, t) { switch (e.kind) { case 173: case 259: case 215: case 171: case 170: case 216: case 176: case 177: case 181: case 182: case 174: case 175: if (e.typeParameters === t) return 29; if (e.parameters === t) return 20; break; case 210: case 211: if (e.typeArguments === t) return 29; if (e.arguments === t) return 20; break; case 260: case 228: case 261: case 262: if (e.typeParameters === t) return 29; break; case 180: case 212: case 183: case 230: case 202: if (e.typeArguments === t) return 29; break; case 184: return 18; } return 0; } function wXe(e) { switch (e) { case 20: return 21; case 29: return 31; case 18: return 19; } return 0; } function qne(e, t) { if ((!ZG || ZG.tabSize !== t.tabSize || ZG.indentSize !== t.indentSize) && (ZG = { tabSize: t.tabSize, indentSize: t.indentSize }, Bw = Gw = void 0), t.convertTabsToSpaces) { let i; const o = Math.floor(e / t.indentSize), s = e % t.indentSize; return Gw || (Gw = []), Gw[o] === void 0 ? (i = K8(" ", t.indentSize * o), Gw[o] = i) : i = Gw[o], s ? i + K8(" ", s) : i; } else { const i = Math.floor(e / t.tabSize), o = e - i * t.tabSize; let s; return Bw || (Bw = []), Bw[i] === void 0 ? Bw[i] = s = K8(" ", i) : s = Bw[i], o ? s + K8(" ", o) : s; } } var ZG, Bw, Gw, DXe = L({ "src/services/formatting/formatting.ts"() { Kr(), Uw(); } }), Ep, RXe = L({ "src/services/formatting/smartIndenter.ts"() { Kr(), Uw(), ((e) => { let t; ((ee) => { ee[ee.Unknown = -1] = "Unknown"; })(t || (t = {})); function r(ee, $e, Ge, Fe = !1) { if (ee > $e.text.length) return f(Ge); if (Ge.indentStyle === 0) return 0; const We = Tc(ee, $e, void 0, !0), Re = K2e($e, ee, We || null); if (Re && Re.kind === 3) return i($e, ee, Ge, Re); if (!We) return f(Ge); if (g$(We.kind) && We.getStart($e) <= ee && ee < We.end) return 0; const Ke = $e.getLineAndCharacterOfPosition(ee).line, He = ra($e, ee), Me = He.kind === 18 && He.parent.kind === 207; if (Ge.indentStyle === 1 || Me) return o($e, ee, Ge); if (We.kind === 27 && We.parent.kind !== 223) { const At = m(We, $e, Ge); if (At !== -1) return At; } const ot = te(ee, We.parent, $e); if (ot && !af(ot, We)) { const bt = [215, 216].indexOf(He.parent.kind) !== -1 ? 0 : Ge.indentSize; return P(ot, $e, Ge) + bt; } return s($e, ee, We, Ke, Fe, Ge); } e.getIndentation = r; function i(ee, $e, Ge, Fe) { const We = il(ee, $e).line - 1, Re = il(ee, Fe.pos).line; if (D.assert(Re >= 0), We <= Re) return H(Av(Re, ee), $e, ee, Ge); const Pe = Av(We, ee), { column: Ke, character: He } = ie(Pe, $e, ee, Ge); return Ke === 0 ? Ke : ee.text.charCodeAt(Pe + He) === 42 ? Ke - 1 : Ke; } function o(ee, $e, Ge) { let Fe = $e; for (; Fe > 0; ) { const Re = ee.text.charCodeAt(Fe); if (!Zh(Re)) break; Fe--; } const We = h_(Fe, ee); return H(We, Fe, ee, Ge); } function s(ee, $e, Ge, Fe, We, Re) { let Pe, Ke = Ge; for (; Ke; ) { if (c$(Ke, $e, ee) && ye(Re, Ke, Pe, ee, !0)) { const Me = I(Ke, ee), ot = C(Ge, Ke, Fe, ee), At = ot !== 0 ? We && ot === 2 ? Re.indentSize : 0 : Fe !== Me.line ? Re.indentSize : 0; return d(Ke, Me, void 0, At, ee, !0, Re); } const He = ue(Ke, ee, Re, !0); if (He !== -1) return He; Pe = Ke, Ke = Ke.parent; } return f(Re); } function c(ee, $e, Ge, Fe) { const We = Ge.getLineAndCharacterOfPosition(ee.getStart(Ge)); return d(ee, We, $e, 0, Ge, !1, Fe); } e.getIndentationForNode = c; function f(ee) { return ee.baseIndentSize || 0; } e.getBaseIndentation = f; function d(ee, $e, Ge, Fe, We, Re, Pe) { var Ke; let He = ee.parent; for (; He; ) { let Me = !0; if (Ge) { const Vt = ee.getStart(We); Me = Vt < Ge.pos || Vt > Ge.end; } const ot = y(He, ee, We), At = ot.line === $e.line || k(He, ee, $e.line, We); if (Me) { const Vt = (Ke = j(ee, We)) == null ? void 0 : Ke[0], et = !!Vt && I(Vt, We).line > ot.line; let it = ue(ee, We, Pe, et); if (it !== -1 || (it = b(ee, He, $e, At, We, Pe), it !== -1)) return it + Fe; } ye(Pe, He, ee, We, Re) && !At && (Fe += Pe.indentSize); const bt = O(He, ee, $e.line, We); ee = He, He = ee.parent, $e = bt ? We.getLineAndCharacterOfPosition(ee.getStart(We)) : ot; } return Fe + f(Pe); } function y(ee, $e, Ge) { const Fe = j($e, Ge), We = Fe ? Fe.pos : ee.getStart(Ge); return Ge.getLineAndCharacterOfPosition(We); } function m(ee, $e, Ge) { const Fe = uye(ee); return Fe && Fe.listItemIndex > 0 ? ne(Fe.list.getChildren(), Fe.listItemIndex - 1, $e, Ge) : -1; } function b(ee, $e, Ge, Fe, We, Re) { return (_u(ee) || jR(ee)) && ($e.kind === 308 || !Fe) ? ge(Ge, We, Re) : -1; } let A; ((ee) => { ee[ee.Unknown = 0] = "Unknown", ee[ee.OpenBrace = 1] = "OpenBrace", ee[ee.CloseBrace = 2] = "CloseBrace"; })(A || (A = {})); function C(ee, $e, Ge, Fe) { const We = UT(ee, $e, Fe); if (!We) return 0; if (We.kind === 18) return 1; if (We.kind === 19) { const Re = I(We, Fe).line; return Ge === Re ? 2 : 0; } return 0; } function I(ee, $e) { return $e.getLineAndCharacterOfPosition(ee.getStart($e)); } function O(ee, $e, Ge, Fe) { if (!(eo(ee) && Ii(ee.arguments, $e))) return !1; const We = ee.expression.getEnd(); return il(Fe, We).line === Ge; } e.isArgumentAndStartLineOverlapsExpressionBeingCalled = O; function k(ee, $e, Ge, Fe) { if (ee.kind === 242 && ee.elseStatement === $e) { const We = ys(ee, 91, Fe); return D.assert(We !== void 0), I(We, Fe).line === Ge; } return !1; } e.childStartsOnTheSameLineWithElseInIfStatement = k; function B(ee, $e, Ge, Fe) { if (pC(ee) && ($e === ee.whenTrue || $e === ee.whenFalse)) { const We = il(Fe, ee.condition.end).line; if ($e === ee.whenTrue) return Ge === We; { const Re = I(ee.whenTrue, Fe).line, Pe = il(Fe, ee.whenTrue.end).line; return We === Re && Pe === Ge; } } return !1; } e.childIsUnindentedBranchOfConditionalExpression = B; function U(ee, $e, Ge, Fe) { if (ng(ee)) { if (!ee.arguments) return !1; const We = un(ee.arguments, (He) => He.pos === $e.pos); if (!We) return !1; const Re = ee.arguments.indexOf(We); if (Re === 0) return !1; const Pe = ee.arguments[Re - 1], Ke = il(Fe, Pe.getEnd()).line; if (Ge === Ke) return !0; } return !1; } e.argumentStartsOnSameLineAsPreviousArgument = U; function j(ee, $e) { return ee.parent && X(ee.getStart($e), ee.getEnd(), ee.parent, $e); } e.getContainingList = j; function te(ee, $e, Ge) { return $e && X(ee, ee, $e, Ge); } function X(ee, $e, Ge, Fe) { switch (Ge.kind) { case 180: return We(Ge.typeArguments); case 207: return We(Ge.properties); case 206: return We(Ge.elements); case 184: return We(Ge.members); case 259: case 215: case 216: case 171: case 170: case 176: case 173: case 182: case 177: return We(Ge.typeParameters) || We(Ge.parameters); case 174: return We(Ge.parameters); case 260: case 228: case 261: case 262: case 348: return We(Ge.typeParameters); case 211: case 210: return We(Ge.typeArguments) || We(Ge.arguments); case 258: return We(Ge.declarations); case 272: case 276: return We(Ge.elements); case 203: case 204: return We(Ge.elements); } function We(Re) { return Re && V8(Y(Ge, Re, Fe), ee, $e) ? Re : void 0; } } function Y(ee, $e, Ge) { const Fe = ee.getChildren(Ge); for (let We = 1; We < Fe.length - 1; We++) if (Fe[We].pos === $e.pos && Fe[We].end === $e.end) return { pos: Fe[We - 1].end, end: Fe[We + 1].getStart(Ge) }; return $e; } function P(ee, $e, Ge) { return ee ? ge($e.getLineAndCharacterOfPosition(ee.pos), $e, Ge) : -1; } function ue(ee, $e, Ge, Fe) { if (ee.parent && ee.parent.kind === 258) return -1; const We = j(ee, $e); if (We) { const Re = We.indexOf(ee); if (Re !== -1) { const Pe = ne(We, Re, $e, Ge); if (Pe !== -1) return Pe; } return P(We, $e, Ge) + (Fe ? Ge.indentSize : 0); } return -1; } function ne(ee, $e, Ge, Fe) { D.assert($e >= 0 && $e < ee.length); const We = ee[$e]; let Re = I(We, Ge); for (let Pe = $e - 1; Pe >= 0; Pe--) { if (ee[Pe].kind === 27) continue; if (Ge.getLineAndCharacterOfPosition(ee[Pe].end).line !== Re.line) return ge(Re, Ge, Fe); Re = I(ee[Pe], Ge); } return -1; } function ge(ee, $e, Ge) { const Fe = $e.getPositionOfLineAndCharacter(ee.line, 0); return H(Fe, Fe + ee.character, $e, Ge); } function ie(ee, $e, Ge, Fe) { let We = 0, Re = 0; for (let Pe = ee; Pe < $e; Pe++) { const Ke = Ge.text.charCodeAt(Pe); if (!Cm(Ke)) break; Ke === 9 ? Re += Fe.tabSize + Re % Fe.tabSize : Re++, We++; } return { column: Re, character: We }; } e.findFirstNonWhitespaceCharacterAndColumn = ie; function H(ee, $e, Ge, Fe) { return ie(ee, $e, Ge, Fe).column; } e.findFirstNonWhitespaceColumn = H; function le(ee, $e, Ge, Fe, We) { const Re = Ge ? Ge.kind : 0; switch ($e.kind) { case 241: case 260: case 228: case 261: case 263: case 262: case 206: case 238: case 265: case 207: case 184: case 197: case 186: case 266: case 293: case 292: case 214: case 208: case 210: case 211: case 240: case 274: case 250: case 224: case 204: case 203: case 283: case 286: case 282: case 291: case 170: case 176: case 177: case 166: case 181: case 182: case 193: case 212: case 220: case 276: case 272: case 278: case 273: case 169: return !0; case 257: case 299: case 223: if (!ee.indentMultiLineObjectLiteralBeginningOnBlankLine && Fe && Re === 207) return Te(Fe, Ge); if ($e.kind === 223 && Fe && Ge && Re === 281) { const Pe = Fe.getLineAndCharacterOfPosition(zo(Fe.text, $e.pos)).line, Ke = Fe.getLineAndCharacterOfPosition(zo(Fe.text, Ge.pos)).line; return Pe !== Ke; } if ($e.kind !== 223) return !0; break; case 243: case 244: case 246: case 247: case 245: case 242: case 259: case 215: case 171: case 173: case 174: case 175: return Re !== 238; case 216: return Fe && Re === 214 ? Te(Fe, Ge) : Re !== 238; case 275: return Re !== 276; case 269: return Re !== 270 || !!Ge.namedBindings && Ge.namedBindings.kind !== 272; case 281: return Re !== 284; case 285: return Re !== 287; case 190: case 189: if (Re === 184 || Re === 186) return !1; break; } return We; } e.nodeWillIndentChild = le; function pe(ee, $e) { switch (ee) { case 250: case 254: case 248: case 249: return $e.kind !== 238; default: return !1; } } function ye(ee, $e, Ge, Fe, We = !1) { return le(ee, $e, Ge, Fe, !1) && !(We && Ge && pe(Ge.kind, $e)); } e.shouldIndentChildNode = ye; function Te(ee, $e) { const Ge = zo(ee.text, $e.pos), Fe = ee.getLineAndCharacterOfPosition(Ge).line, We = ee.getLineAndCharacterOfPosition($e.end).line; return Fe === We; } })(Ep || (Ep = {})); } }), Sc = {}; fe(Sc, { FormattingContext: () => wne, FormattingRequestKind: () => kne, RuleAction: () => Rne, RuleFlags: () => Nne, SmartIndenter: () => Ep, anyContext: () => X6, createTextRangeWithKind: () => QG, formatDocument: () => EXe, formatNodeGivenIndentation: () => IXe, formatOnClosingCurly: () => bXe, formatOnEnter: () => gXe, formatOnOpeningCurly: () => vXe, formatOnSemicolon: () => yXe, formatSelection: () => TXe, getAllRules: () => x2e, getFormatContext: () => lXe, getFormattingScanner: () => Dne, getIndentationString: () => qne, getRangeOfEnclosingComment: () => K2e }); var Uw = L({ "src/services/_namespaces/ts.formatting.ts"() { DKe(), RKe(), NKe(), sXe(), hXe(), DXe(), RXe(); } }), Kr = L({ "src/services/_namespaces/ts.ts"() { Ra(), pF(), Y7e(), x5e(), I5e(), U5e(), V5e(), j5e(), X5e(), aFe(), oFe(), lFe(), hFe(), yFe(), WFe(), qFe(), XFe(), QFe(), y9e(), k9e(), yo(), gte(), MSe(), GHe(), WHe(), lWe(), Qve(), b0e(), IWe(), MWe(), Lh(), OJe(), oKe(), pKe(), gKe(), wKe(), Uw(); } }); function NXe() { return Kne ?? (Kne = new k_(Ue)); } function X2e(e, t, r, i, o) { let s = t ? "DeprecationError: " : "DeprecationWarning: "; return s += `'${e}' `, s += i ? `has been deprecated since v${i}` : "is deprecated", s += t ? " and can no longer be used." : r ? ` and will no longer be usable after v${r}.` : ".", s += o ? ` ${gh(o, [e], 0)}` : "", s; } function OXe(e, t, r, i) { const o = X2e(e, !0, t, r, i); return () => { throw new TypeError(o); }; } function PXe(e, t, r, i) { let o = !1; return () => { Y2e && !o && (D.log.warn(X2e(e, !1, t, r, i)), o = !0); }; } function MXe(e, t = {}) { var r, i; const o = typeof t.typeScriptVersion == "string" ? new k_(t.typeScriptVersion) : (r = t.typeScriptVersion) != null ? r : NXe(), s = typeof t.errorAfter == "string" ? new k_(t.errorAfter) : t.errorAfter, c = typeof t.warnAfter == "string" ? new k_(t.warnAfter) : t.warnAfter, f = typeof t.since == "string" ? new k_(t.since) : (i = t.since) != null ? i : c, d = t.error || s && o.compareTo(s) >= 0, y = !c || o.compareTo(c) >= 0; return d ? OXe(e, s, f, t.message) : y ? PXe(e, s, f, t.message) : io; } function FXe(e, t) { return function() { return e(), t.apply(this, arguments); }; } function Jne(e, t) { var r; const i = MXe((r = t == null ? void 0 : t.name) != null ? r : D.getFunctionName(e), t); return FXe(i, e); } var Y2e, Kne, $2e = L({ "src/deprecatedCompat/deprecate.ts"() { eU(), Y2e = !0; } }); function Xne(e, t, r, i) { if (Object.defineProperty(s, "name", { ...Object.getOwnPropertyDescriptor(s, "name"), value: e }), i) for (const c of Object.keys(i)) { const f = +c; !isNaN(f) && Ns(t, `${f}`) && (t[f] = Jne(t[f], { ...i[f], name: e })); } const o = BXe(t, r); return s; function s(...c) { const f = o(c), d = f !== void 0 ? t[f] : void 0; if (typeof d == "function") return d(...c); throw new TypeError("Invalid arguments"); } } function BXe(e, t) { return (r) => { for (let i = 0; Ns(e, `${i}`) && Ns(t, `${i}`); i++) { const o = t[i]; if (o(r)) return i; } }; } function GXe(e) { return { overload: (t) => ({ bind: (r) => ({ finish: () => Xne(e, t, r), deprecate: (i) => ({ finish: () => Xne(e, t, r, i) }) }) }) }; } var UXe = L({ "src/deprecatedCompat/deprecations.ts"() { eU(), $2e(); } }), VXe = L({ "src/deprecatedCompat/5.0/identifierProperties.ts"() { eU(), $2e(), tde((e) => { const t = e.getIdentifierConstructor(); Ns(t.prototype, "originalKeywordKind") || Object.defineProperty(t.prototype, "originalKeywordKind", { get: Jne(function() { return M0(this); }, { name: "originalKeywordKind", since: "5.0", warnAfter: "5.1", errorAfter: "5.2", message: "Use 'identifierToKeywordKind(identifier)' instead." }) }), Ns(t.prototype, "isInJSDocNamespace") || Object.defineProperty(t.prototype, "isInJSDocNamespace", { get: Jne(function() { return this.flags & 2048 ? !0 : void 0; }, { name: "isInJSDocNamespace", since: "5.0", warnAfter: "5.1", errorAfter: "5.2", message: "Use '.parent' or the surrounding context to determine this instead." }) }); }); } }), eU = L({ "src/deprecatedCompat/_namespaces/ts.ts"() { Ra(), UXe(), VXe(); } }), Q2e = {}; fe(Q2e, { ANONYMOUS: () => o9, AccessFlags: () => qj, AssertionLevel: () => hj, AssignmentDeclarationKind: () => eH, AssignmentKind: () => mq, Associativity: () => gq, BreakpointResolver: () => HQ, BuilderFileEmit: () => qX, BuilderProgramKind: () => JX, BuilderState: () => Wm, BundleFileSectionKind: () => vH, CallHierarchy: () => Wx, CharacterCodes: () => fH, CheckFlags: () => Vj, CheckMode: () => x5, ClassificationType: () => QY, ClassificationTypeNames: () => $Y, CommentDirectiveType: () => Aj, Comparison: () => ut, CompletionInfoFlags: () => WY, CompletionTriggerKind: () => GY, Completions: () => Yx, ConfigFileProgramReloadLevel: () => gX, ContextFlags: () => Rj, CoreServicesShimHostAdapter: () => jQ, Debug: () => D, DiagnosticCategory: () => uR, Diagnostics: () => _, DocumentHighlights: () => c9, ElementFlags: () => zj, EmitFlags: () => $P, EmitHint: () => hH, EmitOnly: () => Lj, EndOfLineState: () => JY, EnumKind: () => Uj, ExitStatus: () => kj, ExportKind: () => rQ, Extension: () => _H, ExternalEmitHelpers: () => mH, FileIncludeKind: () => HP, FilePreprocessingDiagnosticsKind: () => Cj, FileSystemEntryKind: () => AH, FileWatcherEventKind: () => SH, FindAllReferences: () => ll, FlattenLevel: () => $K, FlowFlags: () => cR, ForegroundColorEscapeSequences: () => NX, FunctionFlags: () => hq, GeneratedIdentifierFlags: () => jP, GetLiteralTextFlags: () => fq, GoToDefinition: () => Sw, HighlightSpanKind: () => VY, ImportKind: () => nQ, ImportsNotUsedAsValues: () => oH, IndentStyle: () => jY, IndexKind: () => Xj, InferenceFlags: () => Qj, InferencePriority: () => $j, InlayHintKind: () => UY, InlayHints: () => Dte, InternalEmitFlags: () => pH, InternalSymbolName: () => jj, InvalidatedProjectKind: () => xY, JsDoc: () => ib, JsTyping: () => FT, JsxEmit: () => aH, JsxFlags: () => Sj, JsxReferenceKind: () => Jj, LanguageServiceMode: () => MY, LanguageServiceShimHostAdapter: () => VQ, LanguageVariant: () => uH, LexicalEnvironmentFlags: () => yH, ListFormat: () => bH, LogLevel: () => yj, MemberOverrideStatus: () => wj, ModifierFlags: () => UP, ModuleDetectionKind: () => tH, ModuleInstanceState: () => CK, ModuleKind: () => KP, ModuleResolutionKind: () => dR, ModuleSpecifierEnding: () => Iq, NavigateTo: () => $ve, NavigationBar: () => v0e, NewLineKind: () => sH, NodeBuilderFlags: () => Nj, NodeCheckFlags: () => Hj, NodeFactoryFlags: () => Oq, NodeFlags: () => GP, NodeResolutionFeatures: () => xK, ObjectFlags: () => qP, OperationCanceledException: () => eI, OperatorPrecedence: () => yq, OrganizeImports: () => q_, OrganizeImportsMode: () => BY, OuterExpressionKinds: () => gH, OutliningElementsCollector: () => jte, OutliningSpanKind: () => zY, OutputFileType: () => qY, PackageJsonAutoImportPreference: () => PY, PackageJsonDependencyGroup: () => OY, PatternMatchKind: () => _9, PollingInterval: () => QP, PollingWatchKind: () => iH, PragmaKindFlags: () => EH, PrivateIdentifierKind: () => Wq, ProcessLevel: () => tX, QuotePreference: () => Q$, RelationComparisonResult: () => VP, Rename: () => HG, ScriptElementKind: () => XY, ScriptElementKindModifier: () => YY, ScriptKind: () => lH, ScriptSnapshot: () => NY, ScriptTarget: () => cH, SemanticClassificationFormat: () => FY, SemanticMeaning: () => $$, SemicolonPreference: () => HY, SignatureCheckMode: () => A5, SignatureFlags: () => JP, SignatureHelp: () => J6, SignatureKind: () => Kj, SmartSelectionRange: () => vne, SnippetKind: () => YP, SortKind: () => pj, StructureIsReused: () => Ij, SymbolAccessibility: () => Mj, SymbolDisplay: () => ky, SymbolDisplayPartKind: () => P8, SymbolFlags: () => WP, SymbolFormatFlags: () => Pj, SyntaxKind: () => BP, SyntheticSymbolKind: () => Fj, Ternary: () => Zj, ThrottledCancellationToken: () => MQ, TokenClass: () => KY, TokenFlags: () => xj, TransformFlags: () => XP, TypeFacts: () => T5, TypeFlags: () => zP, TypeFormatFlags: () => Oj, TypeMapKind: () => Yj, TypePredicateKind: () => Bj, TypeReferenceSerializationKind: () => Gj, TypeScriptServicesFactory: () => H0e, UnionReduction: () => Dj, UpToDateStatusType: () => cY, VarianceFlags: () => Wj, Version: () => k_, VersionRange: () => cA, WatchDirectoryFlags: () => dH, WatchDirectoryKind: () => rH, WatchFileKind: () => nH, WatchLogLevel: () => yX, WatchType: () => m_, accessPrivateIdentifier: () => Ume, addEmitFlags: () => Kp, addEmitHelper: () => dx, addEmitHelpers: () => gy, addInternalEmitFlags: () => ux, addNodeFactoryPatcher: () => n6e, addObjectAllocatorPatcher: () => tde, addRange: () => yi, addRelatedInfo: () => qo, addSyntheticLeadingComment: () => uO, addSyntheticTrailingComment: () => H3, addToSeen: () => _p, advancedAsyncSuperHelper: () => mO, affectsDeclarationPathOptionDeclarations: () => nK, affectsEmitOptionDeclarations: () => tK, allKeysStartWithDot: () => _5, altDirectorySeparator: () => TR, and: () => IP, append: () => Fn, appendIfUnique: () => ny, arrayFrom: () => ko, arrayIsEqualTo: () => Bp, arrayIsHomogeneous: () => Cde, arrayIsSorted: () => ese, arrayOf: () => ise, arrayReverseIterator: () => rNe, arrayToMap: () => $b, arrayToMultiMap: () => tR, arrayToNumericMap: () => ose, arraysEqual: () => oa, assertType: () => fNe, assign: () => eR, assignHelper: () => Y3, asyncDelegator: () => Q3, asyncGeneratorHelper: () => $3, asyncSuperHelper: () => pO, asyncValues: () => Z3, attachFileToDiagnostics: () => ox, awaitHelper: () => fx, awaiterHelper: () => t7, base64decode: () => zue, base64encode: () => Wue, binarySearch: () => _v, binarySearchKey: () => kS, bindSourceFile: () => $pe, breakIntoCharacterSpans: () => Rve, breakIntoWordSpans: () => Nve, buildLinkParts: () => Vye, buildOpts: () => Z7, buildOverload: () => GXe, bundlerModuleNameResolver: () => Npe, canBeConvertedToAsync: () => vQ, canHaveDecorators: () => wx, canHaveExportModifier: () => QN, canHaveFlowNode: () => hN, canHaveIllegalDecorators: () => xJ, canHaveIllegalModifiers: () => $fe, canHaveIllegalType: () => q6e, canHaveIllegalTypeParameters: () => Yfe, canHaveJSDoc: () => gN, canHaveLocals: () => Im, canHaveModifiers: () => H_, canHaveSymbol: () => Lm, canJsonReportNoInputFiles: () => zO, canProduceDiagnostics: () => P5, canUsePropertyAccess: () => lq, canWatchDirectoryOrFile: () => L8, cartesianProduct: () => Ese, cast: () => ro, chainBundle: () => W_, chainDiagnosticMessages: () => Da, changeAnyExtension: () => kH, changeCompilerHostLikeToUseCache: () => T8, changeExtension: () => x1, changesAffectModuleResolution: () => vW, changesAffectingProgramStructure: () => hce, childIsDecorated: () => II, classElementOrClassElementParameterIsDecorated: () => WW, classOrConstructorParameterIsDecorated: () => h1, classPrivateFieldGetHelper: () => _7, classPrivateFieldInHelper: () => m7, classPrivateFieldSetHelper: () => p7, classicNameResolver: () => Xpe, classifier: () => N9, cleanExtendedConfigCache: () => hX, clear: () => ms, clearMap: () => Jf, clearSharedExtendedConfigFileWatcher: () => Che, climbPastPropertyAccess: () => gF, climbPastPropertyOrElementAccess: () => oye, clone: () => oj, cloneCompilerOptions: () => Aye, closeFileWatcher: () => Pm, closeFileWatcherOf: () => Hm, codefix: () => Fu, collapseTextChangeRangesAcrossMultipleVersions: () => mOe, collectExternalModuleInfo: () => HK, combine: () => sA, combinePaths: () => Oi, commentPragmas: () => fR, commonOptionsWithBuild: () => QO, commonPackageFolders: () => Eq, compact: () => QD, compareBooleans: () => e1, compareDataObjects: () => Mz, compareDiagnostics: () => QI, compareDiagnosticsSkipRelatedInformation: () => v3, compareEmitHelpers: () => ffe, compareNumberOfDirectorySeparators: () => JN, comparePaths: () => JE, comparePathsCaseInsensitive: () => aOe, comparePathsCaseSensitive: () => iOe, comparePatternKeys: () => bK, compareProperties: () => mse, compareStringsCaseInsensitive: () => xP, compareStringsCaseInsensitiveEslintCompatible: () => fse, compareStringsCaseSensitive: () => Lu, compareStringsCaseSensitiveUI: () => rR, compareTextSpans: () => SP, compareValues: () => js, compileOnSaveCommandLineOption: () => KO, compilerOptionsAffectDeclarationPath: () => mde, compilerOptionsAffectEmit: () => pde, compilerOptionsAffectSemanticDiagnostics: () => _de, compilerOptionsDidYouMeanDiagnostics: () => e8, compilerOptionsIndicateEsModules: () => x$, compose: () => cNe, computeCommonSourceDirectoryOfFilenames: () => Dhe, computeLineAndCharacterOfPosition: () => CR, computeLineOfPosition: () => iI, computeLineStarts: () => xR, computePositionOfLineAndCharacter: () => OH, computeSignature: () => PT, computeSignatureWithDiagnostics: () => VX, computeSuggestionDiagnostics: () => hQ, concatenate: () => ha, concatenateDiagnosticMessageChains: () => ode, consumesNodeCoreModules: () => QF, contains: () => Ii, containsIgnoredPath: () => ok, containsObjectRestOrSpread: () => PO, containsParseError: () => qR, containsPath: () => hv, convertCompilerOptionsForTelemetry: () => Z4e, convertCompilerOptionsFromJson: () => q4e, convertJsonOption: () => qO, convertToBase64: () => Hue, convertToObject: () => q_e, convertToObjectWorker: () => HO, convertToOptionsWithAbsolutePaths: () => jJ, convertToRelativePath: () => nI, convertToTSConfig: () => R4e, convertTypeAcquisitionFromJson: () => J4e, copyComments: () => jT, copyEntries: () => WR, copyLeadingComments: () => jC, copyProperties: () => sj, copyTrailingAsLeadingComments: () => n6, copyTrailingComments: () => ow, couldStartTrivia: () => ale, countWhere: () => xa, createAbstractBuilder: () => e7e, createAccessorPropertyBackingField: () => CJ, createAccessorPropertyGetRedirector: () => o_e, createAccessorPropertySetRedirector: () => s_e, createBaseNodeFactory: () => Xde, createBinaryExpressionTrampoline: () => F7, createBindingHelper: () => aC, createBuildInfo: () => v8, createBuilderProgram: () => jX, createBuilderProgramUsingProgramBuildInfo: () => ege, createBuilderStatusReporter: () => pge, createCacheWithRedirects: () => fK, createCacheableExportInfoMap: () => dve, createCachedDirectoryStructureHost: () => Ahe, createClassifier: () => pve, createCommentDirectivesMap: () => Lce, createCompilerDiagnostic: () => Ps, createCompilerDiagnosticForInvalidCustomType: () => NJ, createCompilerDiagnosticFromMessageChain: () => y3, createCompilerHost: () => Rhe, createCompilerHostFromProgramHost: () => iY, createCompilerHostWorker: () => EX, createDetachedDiagnostic: () => XA, createDiagnosticCollection: () => HA, createDiagnosticForFileFromMessageChain: () => FW, createDiagnosticForNode: () => Dr, createDiagnosticForNodeArray: () => CA, createDiagnosticForNodeArrayFromMessageChain: () => YR, createDiagnosticForNodeFromMessageChain: () => rg, createDiagnosticForNodeInSourceFile: () => id, createDiagnosticForRange: () => BW, createDiagnosticMessageChainFromDiagnostic: () => Fce, createDiagnosticReporter: () => I8, createDocumentPositionMapper: () => Rme, createDocumentRegistry: () => oQ, createDocumentRegistryInternal: () => Eve, createEmitAndSemanticDiagnosticsBuilderProgram: () => KX, createEmitHelperFactory: () => dfe, createEmptyExports: () => IO, createExpressionForJsxElement: () => Vfe, createExpressionForJsxFragment: () => jfe, createExpressionForObjectLiteralElementLike: () => Hfe, createExpressionForPropertyName: () => yJ, createExpressionFromEntityName: () => kO, createExternalHelpersImportDeclarationIfNeeded: () => EJ, createFileDiagnostic: () => Lc, createFileDiagnosticFromMessageChain: () => OM, createForOfBindingStatement: () => gJ, createGetCanonicalFileName: () => $c, createGetSourceFile: () => vX, createGetSymbolAccessibilityDiagnosticForNode: () => Sy, createGetSymbolAccessibilityDiagnosticForNodeName: () => uhe, createGetSymbolWalker: () => tme, createIncrementalCompilerHost: () => sY, createIncrementalProgram: () => _ge, createInputFiles: () => c6e, createInputFilesWithFilePaths: () => Rq, createInputFilesWithFileTexts: () => Nq, createJsxFactoryExpression: () => hJ, createLanguageService: () => I0e, createLanguageServiceSourceFile: () => S9, createMemberAccessForPropertyName: () => CT, createModeAwareCache: () => kT, createModeAwareCacheKey: () => Pk, createModuleResolutionCache: () => s5, createModuleResolutionLoader: () => LX, createModuleSpecifierResolutionHost: () => Bx, createMultiMap: () => o_, createNodeConverters: () => $de, createNodeFactory: () => iO, createOptionNameMap: () => H7, createOverload: () => Xne, createPackageJsonImportFilter: () => cw, createPackageJsonInfo: () => Zye, createParenthesizerRules: () => Yde, createPatternMatcher: () => Cve, createPrependNodes: () => DX, createPrinter: () => G1, createPrinterWithDefaults: () => _X, createPrinterWithRemoveComments: () => U1, createPrinterWithRemoveCommentsNeverAsciiEscape: () => pX, createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => b8, createProgram: () => q5, createProgramHost: () => aY, createPropertyNameNodeForIdentifierOrLiteral: () => R3, createQueue: () => lj, createRange: () => u_, createRedirectedBuilderProgram: () => zX, createResolutionCache: () => tge, createRuntimeTypeSerializer: () => zme, createScanner: () => sy, createSemanticDiagnosticsBuilderProgram: () => Z3e, createSet: () => sNe, createSolutionBuilder: () => g7e, createSolutionBuilderHost: () => p7e, createSolutionBuilderWithWatch: () => y7e, createSolutionBuilderWithWatchHost: () => m7e, createSortedArray: () => tj, createSourceFile: () => BO, createSourceMapGenerator: () => Ame, createSourceMapSource: () => u6e, createSuperAccessVariableStatement: () => O5, createSymbolTable: () => ao, createSymlinkCache: () => hde, createSystemWatchFunctions: () => Qse, createTextChange: () => q8, createTextChangeFromStartLength: () => wF, createTextChangeRange: () => DR, createTextRangeFromNode: () => E$, createTextRangeFromSpan: () => kF, createTextSpan: () => Cc, createTextSpanFromBounds: () => fc, createTextSpanFromNode: () => $u, createTextSpanFromRange: () => Vv, createTextSpanFromStringLiteralLikeContent: () => b$, createTextWriter: () => DN, createTokenRange: () => Rz, createTypeChecker: () => yme, createTypeReferenceDirectiveResolutionCache: () => l5, createTypeReferenceResolutionLoader: () => W5, createUnderscoreEscapedMultiMap: () => lse, createUnparsedSourceFile: () => Dq, createWatchCompilerHost: () => c7e, createWatchCompilerHostOfConfigFile: () => dge, createWatchCompilerHostOfFilesAndCompilerOptions: () => fge, createWatchFactory: () => rY, createWatchHost: () => nY, createWatchProgram: () => u7e, createWatchStatusReporter: () => rge, createWriteFileMeasuringIO: () => bX, declarationNameToString: () => Is, decodeMappings: () => UK, decodedTextSpanIntersectsWith: () => cM, decorateHelper: () => z3, deduplicate: () => oA, defaultIncludeSpec: () => n5, defaultInitCompilerOptions: () => t5, defaultMaximumTruncationLength: () => tO, detectSortCaseSensitivity: () => bP, diagnosticCategoryName: () => FP, diagnosticToString: () => Ux, directoryProbablyExists: () => zp, directorySeparator: () => Os, displayPart: () => Sd, displayPartsToString: () => A0e, disposeEmitNodes: () => Fq, documentSpansEqual: () => f5e, dumpTracingLegend: () => Wse, elementAt: () => ay, elideNodes: () => a_e, emitComments: () => wue, emitDetachedComments: () => Due, emitFiles: () => F5, emitFilesAndReportErrors: () => aF, emitFilesAndReportErrorsAndGetExitStatus: () => lge, emitModuleKindIsNonNodeESM: () => jz, emitNewLineBeforeLeadingCommentOfPosition: () => kue, emitNewLineBeforeLeadingComments: () => Lue, emitNewLineBeforeLeadingCommentsOfPosition: () => Iue, emitSkippedWithNoDiagnostics: () => eF, emitUsingBuildInfo: () => xhe, emptyArray: () => nt, emptyFileSystemEntries: () => V3, emptyMap: () => DP, emptyOptions: () => em, emptySet: () => xse, endsWith: () => tc, ensurePathIsNonModuleName: () => o1, ensureScriptKind: () => L3, ensureTrailingDirectorySeparator: () => Iu, entityNameToString: () => vf, enumerateInsertsAndDeletes: () => bse, equalOwnProperties: () => ase, equateStringsCaseInsensitive: () => DS, equateStringsCaseSensitive: () => RS, equateValues: () => N0, esDecorateHelper: () => K3, escapeJsxAttributeString: () => _z, escapeLeadingUnderscores: () => al, escapeNonAsciiString: () => kN, escapeSnippetText: () => yT, escapeString: () => ex, every: () => Vn, expandPreOrPostfixIncrementOrDecrementExpression: () => D7, explainFiles: () => sge, explainIfFileIsRedirectAndImpliedFormat: () => QX, exportAssignmentIsAlias: () => GA, exportStarHelper: () => f7, expressionResultIsUnused: () => Ide, extend: () => TP, extendsHelper: () => n7, extensionFromPath: () => YN, extensionIsTS: () => k3, externalHelpersModuleNameText: () => J0, factory: () => N, fileExtensionIs: () => oc, fileExtensionIsOneOf: () => vc, fileIncludeReasonToDiagnostics: () => tY, filter: () => yn, filterMutate: () => ua, filterSemanticDiagnostics: () => J5, find: () => un, findAncestor: () => nr, findBestPatternMatch: () => dj, findChildOfKind: () => ys, findComputedPropertyNameCacheAssignment: () => G7, findConfigFile: () => whe, findContainingList: () => TF, findDiagnosticForNode: () => tve, findFirstNonJsxWhitespaceToken: () => hye, findIndex: () => $i, findLast: () => Yi, findLastIndex: () => ts, findListItemInfo: () => uye, findMap: () => td, findModifier: () => GC, findNextToken: () => UT, findPackageJson: () => $ye, findPackageJsons: () => W$, findPrecedingMatchingToken: () => LF, findPrecedingToken: () => Tc, findSuperStatementIndex: () => D5, findTokenOnLeftOfPosition: () => AF, findUseStrictPrologue: () => bJ, first: () => ss, firstDefined: () => En, firstDefinedIterator: () => ni, firstIterator: () => rse, firstOrOnly: () => J$, firstOrUndefined: () => Wc, firstOrUndefinedIterator: () => EP, fixupCompilerOptions: () => bQ, flatMap: () => Mo, flatMapIterator: () => qD, flatMapToMutable: () => ty, flatten: () => nd, flattenCommaList: () => l_e, flattenDestructuringAssignment: () => RT, flattenDestructuringBinding: () => F1, flattenDiagnosticMessageText: () => Gv, forEach: () => Ye, forEachAncestor: () => gce, forEachAncestorDirectory: () => $h, forEachChild: () => Oa, forEachChildRecursively: () => FO, forEachEmittedFile: () => cX, forEachEnclosingBlockScopeContainer: () => Pce, forEachEntry: () => Zd, forEachExternalModuleToImportFrom: () => tQ, forEachImportClauseDeclaration: () => n3, forEachKey: () => EI, forEachLeadingCommentRange: () => LR, forEachNameInAccessChainWalkingLeft: () => C8e, forEachResolvedProjectReference: () => Mhe, forEachReturnStatement: () => iT, forEachRight: () => cn, forEachTrailingCommentRange: () => IR, forEachUnique: () => I$, forEachYieldExpression: () => Gce, forSomeAncestorDirectory: () => A8e, formatColorAndReset: () => V1, formatDiagnostic: () => TX, formatDiagnostics: () => D3e, formatDiagnosticsWithColorAndContext: () => Phe, formatGeneratedName: () => LT, formatGeneratedNamePart: () => TC, formatLocation: () => SX, formatMessage: () => Vz, formatStringFromArgs: () => gh, formatting: () => Sc, fullTripleSlashAMDReferencePathRegEx: () => pq, fullTripleSlashReferencePathRegEx: () => _q, generateDjb2Hash: () => _R, generateTSConfig: () => F4e, generatorHelper: () => c7, getAdjustedReferenceLocation: () => u$, getAdjustedRenameLocation: () => xF, getAliasDeclarationFromName: () => iz, getAllAccessorDeclarations: () => pT, getAllDecoratorsOfClass: () => JK, getAllDecoratorsOfClassElement: () => N5, getAllJSDocTags: () => KH, getAllJSDocTagsOfKind: () => xOe, getAllKeys: () => iNe, getAllProjectOutputs: () => M5, getAllSuperTypeNodes: () => NI, getAllUnscopedEmitHelpers: () => Hq, getAllowJSCompilerOption: () => HN, getAllowSyntheticDefaultImports: () => hT, getAncestor: () => j0, getAnyExtensionFromPath: () => ZP, getAreDeclarationMapsEnabled: () => T3, getAssignedExpandoInitializer: () => JS, getAssignedName: () => HH, getAssignmentDeclarationKind: () => xl, getAssignmentDeclarationPropertyAccessKind: () => cN, getAssignmentTargetKind: () => cT, getAutomaticTypeDirectiveNames: () => o5, getBaseFileName: () => cu, getBinaryOperatorPrecedence: () => LN, getBuildInfo: () => B5, getBuildInfoFileVersionMap: () => WX, getBuildInfoText: () => She, getBuildOrderFromAnyBuildOrder: () => uF, getBuilderCreationParameters: () => nF, getBuilderFileEmit: () => Uv, getCheckFlags: () => Al, getClassExtendsHeritageElement: () => y1, getClassLikeDeclarationOfSymbol: () => cg, getCombinedLocalAndExportSymbolFlags: () => KI, getCombinedModifierFlags: () => cy, getCombinedNodeFlags: () => up, getCombinedNodeFlagsAlwaysIncludeJSDoc: () => VH, getCommentRange: () => Fm, getCommonSourceDirectory: () => y8, getCommonSourceDirectoryOfConfig: () => Kk, getCompilerOptionValue: () => S3, getCompilerOptionsDiffValue: () => M4e, getConditions: () => kC, getConfigFileParsingDiagnostics: () => OT, getConstantValue: () => ife, getContainerNode: () => GT, getContainingClass: () => Ec, getContainingClassStaticBlock: () => KOe, getContainingFunction: () => bf, getContainingFunctionDeclaration: () => Jce, getContainingFunctionOrClassStaticBlock: () => HM, getContainingNodeArray: () => kde, getContainingObjectLiteralElement: () => u6, getContextualTypeFromParent: () => jF, getContextualTypeFromParentOrAncestorTypeNode: () => SF, getCurrentTime: () => D8, getDeclarationDiagnostics: () => dhe, getDeclarationEmitExtensionForPath: () => gz, getDeclarationEmitOutputFilePath: () => Eue, getDeclarationEmitOutputFilePathWorker: () => hz, getDeclarationFromName: () => bN, getDeclarationModifierFlagsFromSymbol: () => qf, getDeclarationOfKind: () => Tl, getDeclarationsOfKind: () => pce, getDeclaredExpandoInitializer: () => aN, getDecorators: () => yv, getDefaultCompilerOptions: () => T9, getDefaultExportInfoWorker: () => l9, getDefaultFormatCodeSettings: () => tye, getDefaultLibFileName: () => oM, getDefaultLibFilePath: () => HFe, getDefaultLikeExportInfo: () => s9, getDiagnosticText: () => w4e, getDiagnosticsWithinSpan: () => nve, getDirectoryPath: () => fi, getDocumentPositionMapper: () => Gve, getESModuleInterop: () => B_, getEditsForFileRename: () => Sve, getEffectiveBaseTypeNode: () => Wp, getEffectiveConstraintOfTypeParameter: () => mA, getEffectiveContainerForJSDocTemplateTag: () => r3, getEffectiveImplementsTypeNodes: () => UA, getEffectiveInitializer: () => iN, getEffectiveJSDocHost: () => BA, getEffectiveModifierFlags: () => wu, getEffectiveModifierFlagsAlwaysIncludeJSDoc: () => Pue, getEffectiveModifierFlagsNoCache: () => Fue, getEffectiveReturnTypeNode: () => fp, getEffectiveSetAccessorTypeAnnotationNode: () => Cue, getEffectiveTypeAnnotationNode: () => Jc, getEffectiveTypeParameterDeclarations: () => bv, getEffectiveTypeRoots: () => r8, getElementOrPropertyAccessArgumentExpressionOrName: () => t3, getElementOrPropertyAccessName: () => og, getElementsOfBindingOrAssignmentPattern: () => EC, getEmitDeclarations: () => G_, getEmitFlags: () => ho, getEmitHelpers: () => W3, getEmitModuleDetectionKind: () => ude, getEmitModuleKind: () => Zc, getEmitModuleResolutionKind: () => gl, getEmitScriptTarget: () => $o, getEnclosingBlockScopeContainer: () => Dm, getEncodedSemanticClassifications: () => iQ, getEncodedSyntacticClassifications: () => aQ, getEndLinePosition: () => JR, getEntityNameFromTypeNode: () => eN, getEntrypointsFromPackageJsonInfo: () => TPe, getErrorCountForSummary: () => rF, getErrorSpanForNode: () => p1, getErrorSummaryText: () => age, getEscapedTextOfIdentifierOrLiteral: () => PI, getExpandoInitializer: () => U0, getExportAssignmentExpression: () => az, getExportInfoMap: () => i6, getExportNeedsImportStarHelper: () => Ome, getExpressionAssociativity: () => cz, getExpressionPrecedence: () => l3, getExternalHelpersModuleName: () => DO, getExternalModuleImportEqualsDeclarationExpression: () => wI, getExternalModuleName: () => OA, getExternalModuleNameFromDeclaration: () => vue, getExternalModuleNameFromPath: () => mz, getExternalModuleNameLiteral: () => kx, getExternalModuleRequireArgument: () => qW, getFallbackOptions: () => E8, getFileEmitOutput: () => Ghe, getFileMatcherPatterns: () => ek, getFileNamesFromConfigSpecs: () => JO, getFileWatcherEventKind: () => Kse, getFilesInErrorForSummary: () => iF, getFirstConstructorWithBody: () => hh, getFirstIdentifier: () => Ef, getFirstNonSpaceCharacterPosition: () => zye, getFirstProjectOutput: () => dX, getFixableErrorSpanExpression: () => q$, getFormatCodeSettingsForWriting: () => n9, getFullWidth: () => zR, getFunctionFlags: () => Mc, getHeritageClause: () => SN, getHostSignatureFromJSDoc: () => V0, getIdentifierAutoGenerate: () => h6e, getIdentifierGeneratedImportReference: () => ufe, getIdentifierTypeArguments: () => vT, getImmediatelyInvokedFunctionExpression: () => oT, getImpliedNodeFormatForFile: () => z5, getImpliedNodeFormatForFileWorker: () => kX, getImportNeedsImportDefaultHelper: () => jK, getImportNeedsImportStarHelper: () => w5, getIndentSize: () => WA, getIndentString: () => c3, getInitializedVariables: () => JI, getInitializerOfBinaryExpression: () => QW, getInitializerOfBindingOrAssignmentElement: () => NO, getInterfaceBaseTypeNodes: () => OI, getInternalEmitFlags: () => R_, getInvokedExpression: () => qM, getIsolatedModules: () => F_, getJSDocAugmentsTag: () => Mle, getJSDocClassTag: () => WH, getJSDocCommentRanges: () => UW, getJSDocCommentsAndTags: () => ez, getJSDocDeprecatedTag: () => zH, getJSDocDeprecatedTagNoCache: () => Hle, getJSDocEnumTag: () => qH, getJSDocHost: () => QS, getJSDocImplementsTags: () => Fle, getJSDocOverrideTagNoCache: () => jle, getJSDocParameterTags: () => dI, getJSDocParameterTagsNoCache: () => Dle, getJSDocPrivateTag: () => vOe, getJSDocPrivateTagNoCache: () => Gle, getJSDocProtectedTag: () => bOe, getJSDocProtectedTagNoCache: () => Ule, getJSDocPublicTag: () => yOe, getJSDocPublicTagNoCache: () => Ble, getJSDocReadonlyTag: () => EOe, getJSDocReadonlyTagNoCache: () => Vle, getJSDocReturnTag: () => Wle, getJSDocReturnType: () => NR, getJSDocRoot: () => RI, getJSDocSatisfiesExpressionType: () => dq, getJSDocSatisfiesTag: () => JH, getJSDocTags: () => l1, getJSDocTagsNoCache: () => SOe, getJSDocTemplateTag: () => TOe, getJSDocThisTag: () => dM, getJSDocType: () => vv, getJSDocTypeAliasName: () => SJ, getJSDocTypeAssertionType: () => N7, getJSDocTypeParameterDeclarations: () => f3, getJSDocTypeParameterTags: () => Nle, getJSDocTypeParameterTagsNoCache: () => Ole, getJSDocTypeTag: () => s1, getJSXImplicitImportBase: () => x3, getJSXRuntimeImport: () => A3, getJSXTransformEnabled: () => Wz, getKeyForCompilerOptions: () => dK, getLanguageVariant: () => UN, getLastChild: () => Fz, getLeadingCommentRanges: () => ch, getLeadingCommentRangesOfNode: () => GW, getLeftmostAccessExpression: () => YI, getLeftmostExpression: () => $I, getLineAndCharacterOfPosition: () => il, getLineInfo: () => Cme, getLineOfLocalPosition: () => GI, getLineOfLocalPositionFromLineMap: () => fT, getLineStartPositionForPosition: () => h_, getLineStarts: () => Qh, getLinesBetweenPositionAndNextNonWhitespaceCharacter: () => Yue, getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter: () => Xue, getLinesBetweenPositions: () => aI, getLinesBetweenRangeEndAndRangeStart: () => Nz, getLinesBetweenRangeEndPositions: () => E8e, getLiteralText: () => Ice, getLocalNameForExternalImport: () => bC, getLocalSymbolForExportDefault: () => qA, getLocaleSpecificMessage: () => Do, getLocaleTimeString: () => k8, getMappedContextSpan: () => Oye, getMappedDocumentSpan: () => k$, getMappedLocation: () => Q8, getMatchedFileSpec: () => ZX, getMatchedIncludeSpec: () => eY, getMeaningFromDeclaration: () => M8, getMeaningFromLocation: () => BT, getMembersOfDeclaration: () => Uce, getModeForFileReference: () => S8, getModeForResolutionAtIndex: () => xX, getModeForUsageLocation: () => hp, getModifiedTime: () => BS, getModifiers: () => XE, getModuleInstanceState: () => _g, getModuleNameStringLiteralAt: () => X5, getModuleSpecifierEndingPreference: () => Qz, getModuleSpecifierResolverHost: () => A$, getNameForExportedSymbol: () => ZF, getNameFromIndexInfo: () => Mce, getNameFromPropertyName: () => X8, getNameOfAccessExpression: () => Zue, getNameOfCompilerOptionValue: () => UJ, getNameOfDeclaration: () => La, getNameOfExpando: () => YW, getNameOfJSDocTypedef: () => kle, getNameOrArgument: () => lN, getNameTable: () => NQ, getNamesForExportedSymbol: () => ive, getNamespaceDeclarationNode: () => PA, getNewLineCharacter: () => z0, getNewLineKind: () => r6, getNewLineOrDefaultFromHost: () => eb, getNewTargetContainer: () => Xce, getNextJSDocCommentLocation: () => tz, getNodeForGeneratedName: () => B7, getNodeId: () => ds, getNodeKind: () => j1, getNodeModifiers: () => nw, getNodeModulePathParts: () => sq, getNonAssignedNameOfDeclaration: () => jH, getNonAssignmentOperatorForCompoundAssignment: () => Hk, getNonAugmentationDeclaration: () => wW, getNonDecoratorTokenPosOfNode: () => xW, getNormalizedAbsolutePath: () => Na, getNormalizedAbsolutePathWithoutRoot: () => IH, getNormalizedPathComponents: () => bR, getObjectFlags: () => Qr, getOperator: () => dz, getOperatorAssociativity: () => uz, getOperatorPrecedence: () => CN, getOptionFromName: () => MJ, getOptionsNameMap: () => AC, getOrCreateEmitNode: () => Xu, getOrCreateExternalHelpersModuleNameIfNeeded: () => Kfe, getOrUpdate: () => XD, getOriginalNode: () => bl, getOriginalNodeId: () => Ll, getOriginalSourceFile: () => l8e, getOutputDeclarationFileName: () => Jk, getOutputExtension: () => uX, getOutputFileNames: () => h3e, getOutputPathsFor: () => qk, getOutputPathsForBundle: () => zk, getOwnEmitOutputFilePath: () => bue, getOwnKeys: () => Xh, getOwnValues: () => wS, getPackageJsonInfo: () => Ox, getPackageJsonTypesVersionsPaths: () => a5, getPackageJsonsVisibleToFile: () => Qye, getPackageNameFromTypesPackageName: () => s8, getPackageScopeForPath: () => d5, getParameterSymbolFromJSDoc: () => yN, getParameterTypeNode: () => $8e, getParentNodeInSpan: () => $8, getParseTreeNode: () => ya, getParsedCommandLineOfConfigFile: () => UO, getPathComponents: () => rd, getPathComponentsRelativeTo: () => RH, getPathFromPathComponents: () => a1, getPathUpdater: () => sQ, getPathsBasePath: () => yz, getPatternFromSpec: () => Kz, getPendingEmitKind: () => RC, getPositionOfLineAndCharacter: () => AR, getPossibleGenericSignatures: () => p$, getPossibleOriginalInputExtensionForExtension: () => Tue, getPossibleTypeArgumentsInfo: () => m$, getPreEmitDiagnostics: () => w3e, getPrecedingNonSpaceCharacterPosition: () => P$, getPrivateIdentifier: () => KK, getProperties: () => zK, getProperty: () => ZD, getPropertyArrayElementValue: () => qce, getPropertyAssignment: () => wA, getPropertyAssignmentAliasLikeExpression: () => _ue, getPropertyNameForPropertyNameNode: () => v1, getPropertyNameForUniqueESSymbol: () => o8e, getPropertyNameOfBindingOrAssignmentElement: () => TJ, getPropertySymbolFromBindingElement: () => BF, getPropertySymbolsFromContextualType: () => x9, getQuoteFromPreference: () => Rye, getQuotePreference: () => yp, getRangesWhere: () => ej, getRefactorContextSpan: () => Gx, getReferencedFileLocation: () => Xk, getRegexFromPattern: () => wv, getRegularExpressionForWildcard: () => ZI, getRegularExpressionsForWildcards: () => C3, getRelativePathFromDirectory: () => Am, getRelativePathFromFile: () => ER, getRelativePathToDirectoryOrUrl: () => GS, getRenameLocation: () => t6, getReplacementSpanForContextToken: () => v$, getResolutionDiagnostic: () => RX, getResolutionModeOverrideForClause: () => Px, getResolveJsonModule: () => gT, getResolvePackageJsonExports: () => Hz, getResolvePackageJsonImports: () => F8e, getResolvedExternalModuleName: () => u3, getResolvedModule: () => SA, getResolvedTypeReferenceDirective: () => POe, getRestIndicatorOfBindingOrAssignmentElement: () => P7, getRestParameterElementType: () => jW, getRightMostAssignedExpression: () => oN, getRootDeclaration: () => Rm, getRootLength: () => Vp, getScriptKind: () => O$, getScriptKindFromFileName: () => $z, getScriptTargetFeatures: () => AW, getSelectedEffectiveModifierFlags: () => rx, getSelectedSyntacticModifierFlags: () => Oue, getSemanticClassifications: () => mve, getSemanticJsxChildren: () => IN, getSetAccessorTypeAnnotationNode: () => xue, getSetAccessorValueParameter: () => UI, getSetExternalModuleIndicator: () => VN, getShebang: () => iM, getSingleInitializerOfVariableStatementOrPropertyDeclaration: () => ZW, getSingleVariableOfVariableStatement: () => FA, getSnapshotText: () => RF, getSnippetElement: () => Gq, getSourceFileOfModule: () => CM, getSourceFileOfNode: () => Zn, getSourceFilePathInNewDir: () => d3, getSourceFilePathInNewDirWorker: () => bz, getSourceFileVersionAsHashFromText: () => oF, getSourceFilesToEmit: () => vz, getSourceMapRange: () => K0, getSourceMapper: () => Bve, getSourceTextOfNodeFromSourceFile: () => f1, getSpanOfTokenAtPosition: () => _y, getSpellingSuggestion: () => YL, getStartPositionOfLine: () => Av, getStartPositionOfRange: () => qI, getStartsOnNewLine: () => cO, getStaticPropertiesAndClassStaticBlock: () => R5, getStrictOptionValue: () => f_, getStringComparer: () => AP, getSuperCallFromStatement: () => WK, getSuperContainer: () => QR, getSupportedCodeFixes: () => C0e, getSupportedExtensions: () => tk, getSupportedExtensionsWithJsonIfResolveJsonModule: () => zN, getSwitchedType: () => V$, getSymbolId: () => go, getSymbolNameForPrivateIdentifier: () => xN, getSymbolTarget: () => Hye, getSyntacticClassifications: () => vve, getSyntacticModifierFlags: () => Iv, getSyntacticModifierFlagsNoCache: () => Cz, getSynthesizedDeepClone: () => Il, getSynthesizedDeepCloneWithReplacements: () => e6, getSynthesizedDeepClones: () => H1, getSynthesizedDeepClonesWithReplacements: () => M$, getSyntheticLeadingComments: () => rC, getSyntheticTrailingComments: () => dO, getTargetLabel: () => yF, getTargetOfBindingOrAssignmentElement: () => Mv, getTemporaryModuleResolutionState: () => u5, getTextOfConstantValue: () => kce, getTextOfIdentifierOrLiteral: () => P_, getTextOfJSDocComment: () => OR, getTextOfNode: () => bc, getTextOfNodeFromSourceText: () => xI, getTextOfPropertyName: () => AA, getThisContainer: () => yd, getThisParameter: () => b1, getTokenAtPosition: () => ra, getTokenPosOfNode: () => nT, getTokenSourceMapRange: () => p6e, getTouchingPropertyName: () => Af, getTouchingToken: () => tw, getTrailingCommentRanges: () => O0, getTrailingSemicolonDeferringWriter: () => pz, getTransformFlagsSubtreeExclusions: () => Zde, getTransformers: () => sX, getTsBuildInfoEmitOutputFilePath: () => xy, getTsConfigObjectLiteralExpression: () => LI, getTsConfigPropArray: () => $R, getTsConfigPropArrayElementValue: () => jM, getTypeAnnotationNode: () => Aue, getTypeArgumentOrTypeParameterList: () => Tye, getTypeKeywordOfTypeOnlyImport: () => L$, getTypeNode: () => lfe, getTypeNodeIfAccessible: () => lw, getTypeParameterFromJsDoc: () => sue, getTypeParameterOwner: () => hOe, getTypesPackageName: () => p5, getUILocale: () => _se, getUniqueName: () => HT, getUniqueSymbolId: () => Wye, getUseDefineForClassFields: () => WN, getWatchErrorSummaryDiagnosticMessage: () => YX, getWatchFactory: () => khe, group: () => XL, groupBy: () => sse, guessIndentation: () => _ce, handleNoEmitOptions: () => wX, hasAbstractModifier: () => T1, hasAccessorModifier: () => Nm, hasAmbientModifier: () => xz, hasChangesInResolutions: () => EW, hasChildOfKind: () => j8, hasContextSensitiveParameters: () => D3, hasDecorators: () => zf, hasDocComment: () => Eye, hasDynamicName: () => Lv, hasEffectiveModifier: () => Nd, hasEffectiveModifiers: () => _3, hasEffectiveReadonlyModifier: () => VI, hasExtension: () => dA, hasIndexSignature: () => U$, hasInitializer: () => xv, hasInvalidEscape: () => fz, hasJSDocNodes: () => yf, hasJSDocParameterTags: () => Ple, hasJSFileExtension: () => lx, hasJsonModuleEmitEnabled: () => b3, hasOnlyExpressionInitializer: () => eT, hasOverrideModifier: () => Sz, hasPossibleExternalModuleReference: () => Oce, hasProperty: () => Ns, hasPropertyAccessExpressionWithName: () => F8, hasQuestionToken: () => $S, hasRecordedExternalHelpers: () => Jfe, hasRestParameter: () => mW, hasScopeMarker: () => sce, hasStaticModifier: () => _c, hasSyntacticModifier: () => Jr, hasSyntacticModifiers: () => Nue, hasTSFileExtension: () => qN, hasTabstop: () => Dde, hasTrailingDirectorySeparator: () => pv, hasType: () => SM, hasTypeArguments: () => n8e, hasZeroOrOneAsteriskCharacter: () => zz, helperString: () => jq, hostGetCanonicalFileName: () => H0, hostUsesCaseSensitiveFileNames: () => RN, idText: () => Or, identifierIsThisKeyword: () => Tz, identifierToKeywordKind: () => M0, identity: () => _l, identitySourceMapConsumer: () => k5, ignoreSourceNewlines: () => Vq, ignoredPaths: () => yR, importDefaultHelper: () => d7, importFromModuleSpecifier: () => _N, importNameElisionDisabled: () => E3, importStarHelper: () => _O, indexOfAnyCharCode: () => na, indexOfNode: () => xA, indicesOf: () => YD, inferredTypesContainingFile: () => Q5, insertImports: () => GF, insertLeadingStatement: () => B6e, insertSorted: () => fv, insertStatementAfterCustomPrologue: () => d1, insertStatementAfterStandardPrologue: () => GOe, insertStatementsAfterCustomPrologue: () => TW, insertStatementsAfterStandardPrologue: () => wm, intersperse: () => wo, introducesArgumentsExoticObject: () => Wce, inverseJsxOptionMap: () => Nk, isAbstractConstructorSymbol: () => $ue, isAbstractModifier: () => Efe, isAccessExpression: () => ol, isAccessibilityModifier: () => y$, isAccessor: () => F0, isAccessorModifier: () => Sfe, isAliasSymbolDeclaration: () => r8e, isAliasableExpression: () => TN, isAmbientModule: () => ku, isAmbientPropertyDeclaration: () => RW, isAnonymousFunctionDefinition: () => MI, isAnyDirectorySeparator: () => CH, isAnyImportOrBareOrAccessedRequire: () => Nce, isAnyImportOrReExport: () => KR, isAnyImportSyntax: () => rT, isAnySupportedFileExtension: () => q8e, isApplicableVersionedTypesKey: () => o8, isArgumentExpressionOfElementAccess: () => i$, isArray: () => Ga, isArrayBindingElement: () => vM, isArrayBindingOrAssignmentElement: () => GR, isArrayBindingOrAssignmentPattern: () => oW, isArrayBindingPattern: () => dC, isArrayLiteralExpression: () => Ru, isArrayLiteralOrObjectLiteralDestructuringPattern: () => Cy, isArrayTypeNode: () => Yq, isArrowFunction: () => zs, isAsExpression: () => bO, isAssertClause: () => A7, isAssertEntry: () => Dfe, isAssertionExpression: () => ZE, isAssertionKey: () => Kle, isAssertsKeyword: () => vfe, isAssignmentDeclaration: () => DI, isAssignmentExpression: () => Ku, isAssignmentOperator: () => py, isAssignmentPattern: () => yI, isAssignmentTarget: () => mh, isAsteriskToken: () => hO, isAsyncFunction: () => jA, isAsyncModifier: () => pk, isAutoAccessorPropertyDeclaration: () => Qd, isAwaitExpression: () => _C, isAwaitKeyword: () => Xq, isBigIntLiteral: () => h7, isBinaryExpression: () => vr, isBinaryOperatorToken: () => r_e, isBindableObjectDefinePropertyCall: () => KS, isBindableStaticAccessExpression: () => lT, isBindableStaticElementAccessExpression: () => e3, isBindableStaticNameExpression: () => XS, isBindingElement: () => us, isBindingElementOfBareOrAccessedRequire: () => Qce, isBindingName: () => dh, isBindingOrAssignmentElement: () => Zle, isBindingOrAssignmentPattern: () => FR, isBindingPattern: () => Ja, isBlock: () => oo, isBlockOrCatchScoped: () => CW, isBlockScope: () => NW, isBlockScopedContainerTopLevel: () => Rce, isBooleanLiteral: () => Xle, isBreakOrContinueStatement: () => mI, isBreakStatement: () => A6e, isBuildInfoFile: () => hhe, isBuilderProgram: () => oge, isBundle: () => iJ, isBundleFileTextLike: () => ede, isCallChain: () => YE, isCallExpression: () => eo, isCallExpressionTarget: () => ZY, isCallLikeExpression: () => WS, isCallOrNewExpression: () => ng, isCallOrNewExpressionTarget: () => e$, isCallSignatureDeclaration: () => sC, isCallToHelper: () => _k, isCaseBlock: () => xO, isCaseClause: () => Ak, isCaseKeyword: () => xfe, isCaseOrDefaultClause: () => fW, isCatchClause: () => mC, isCatchClauseVariableDeclaration: () => wde, isCatchClauseVariableDeclarationOrBindingElement: () => LW, isCheckJsEnabledForFile: () => $N, isChildOfNodeWithKind: () => VW, isCircularBuildOrder: () => Fx, isClassDeclaration: () => kc, isClassElement: () => Pc, isClassExpression: () => Nu, isClassLike: () => li, isClassMemberModifier: () => rW, isClassOrTypeElement: () => yM, isClassStaticBlockDeclaration: () => Cl, isCollapsedRange: () => b8e, isColonToken: () => hfe, isCommaExpression: () => wO, isCommaListExpression: () => Tk, isCommaSequence: () => wk, isCommaToken: () => mfe, isComment: () => IF, isCommonJsExportPropertyAssignment: () => UM, isCommonJsExportedExpression: () => jce, isCompoundAssignment: () => p8, isComputedNonLiteralName: () => XR, isComputedPropertyName: () => Ss, isConciseBody: () => EM, isConditionalExpression: () => pC, isConditionalTypeNode: () => cC, isConstTypeReference: () => tg, isConstructSignatureDeclaration: () => yO, isConstructorDeclaration: () => jl, isConstructorTypeNode: () => gk, isContextualKeyword: () => i3, isContinueStatement: () => x6e, isCustomPrologue: () => MM, isDebuggerStatement: () => C6e, isDeclaration: () => _u, isDeclarationBindingElement: () => MR, isDeclarationFileName: () => sd, isDeclarationName: () => sg, isDeclarationNameOfEnumOrNamespace: () => GN, isDeclarationReadonly: () => PM, isDeclarationStatement: () => cce, isDeclarationWithTypeParameterChildren: () => PW, isDeclarationWithTypeParameters: () => OW, isDecorator: () => Du, isDecoratorTarget: () => iye, isDefaultClause: () => CO, isDefaultImport: () => YS, isDefaultModifier: () => yfe, isDefaultedExpandoInitializer: () => eue, isDeleteExpression: () => Lfe, isDeleteTarget: () => rz, isDeprecatedDeclaration: () => e9, isDestructuringAssignment: () => my, isDiagnosticWithLocation: () => z$, isDiskPathRoot: () => ZNe, isDoStatement: () => T6e, isDotDotDotToken: () => g7, isDottedName: () => HI, isDynamicName: () => s3, isESSymbolIdentifier: () => s8e, isEffectiveExternalModule: () => qS, isEffectiveModuleDeclaration: () => Dce, isEffectiveStrictModeSourceFile: () => DW, isElementAccessChain: () => XH, isElementAccessExpression: () => sl, isEmittedFileOfProgram: () => Ihe, isEmptyArrayLiteral: () => jue, isEmptyBindingElement: () => Lle, isEmptyBindingPattern: () => Cle, isEmptyObjectLiteral: () => wz, isEmptyStatement: () => eJ, isEmptyStringLiteral: () => zW, isEndOfDeclarationMarker: () => k6e, isEntityName: () => $d, isEntityNameExpression: () => Vl, isEnumConst: () => m1, isEnumDeclaration: () => Y0, isEnumMember: () => D1, isEqualityOperatorKind: () => HF, isEqualsGreaterThanToken: () => gfe, isExclamationToken: () => gO, isExcludedFile: () => ope, isExclusivelyTypeOnlyImportOrExport: () => AX, isExportAssignment: () => Pl, isExportDeclaration: () => Kc, isExportModifier: () => v7, isExportName: () => R7, isExportNamespaceAsDefaultDeclaration: () => wM, isExportOrDefaultModifier: () => AJ, isExportSpecifier: () => od, isExportsIdentifier: () => sT, isExportsOrModuleExportsOrAlias: () => O1, isExpression: () => yt, isExpressionNode: () => ag, isExpressionOfExternalModuleImportEqualsDeclaration: () => lye, isExpressionOfOptionalChainRoot: () => pM, isExpressionStatement: () => eu, isExpressionWithTypeArguments: () => vy, isExpressionWithTypeArgumentsInClassExtendsClause: () => PN, isExternalModule: () => Yl, isExternalModuleAugmentation: () => _1, isExternalModuleImportEqualsDeclaration: () => G0, isExternalModuleIndicator: () => UR, isExternalModuleNameRelative: () => Oc, isExternalModuleReference: () => Um, isExternalModuleSymbol: () => J8, isExternalOrCommonJsModule: () => ef, isFileLevelUniqueName: () => IM, isFileProbablyExternalModule: () => MO, isFirstDeclarationOfSymbolParameter: () => w$, isFixablePromiseHandler: () => yQ, isForInOrOfStatement: () => bA, isForInStatement: () => tJ, isForInitializer: () => jp, isForOfStatement: () => EO, isForStatement: () => TT, isFunctionBlock: () => aT, isFunctionBody: () => lW, isFunctionDeclaration: () => pc, isFunctionExpression: () => Ms, isFunctionExpressionOrArrowFunction: () => ZA, isFunctionLike: () => qa, isFunctionLikeDeclaration: () => Ys, isFunctionLikeKind: () => HS, isFunctionLikeOrClassStaticBlockDeclaration: () => gA, isFunctionOrConstructorTypeNode: () => Qle, isFunctionOrModuleBlock: () => iW, isFunctionSymbol: () => nue, isFunctionTypeNode: () => Eh, isFutureReservedKeyword: () => i8e, isGeneratedIdentifier: () => El, isGeneratedPrivateIdentifier: () => jS, isGetAccessor: () => Sv, isGetAccessorDeclaration: () => U_, isGetOrSetAccessorDeclaration: () => fM, isGlobalDeclaration: () => S5e, isGlobalScopeAugmentation: () => Hp, isGrammarError: () => Sce, isHeritageClause: () => Md, isHoistedFunction: () => FM, isHoistedVariableStatement: () => BM, isIdentifier: () => Ve, isIdentifierANonContextualKeyword: () => a3, isIdentifierName: () => fue, isIdentifierOrThisTypeNode: () => Zfe, isIdentifierPart: () => P0, isIdentifierStart: () => uh, isIdentifierText: () => w_, isIdentifierTypePredicate: () => zce, isIdentifierTypeReference: () => Ade, isIfStatement: () => ET, isIgnoredFileFromWildCardWatching: () => V5, isImplicitGlob: () => Jz, isImportCall: () => tf, isImportClause: () => Gm, isImportDeclaration: () => Gc, isImportEqualsDeclaration: () => tu, isImportKeyword: () => hk, isImportMeta: () => IA, isImportOrExportSpecifier: () => VS, isImportOrExportSpecifierName: () => jye, isImportSpecifier: () => Td, isImportTypeAssertionContainer: () => wfe, isImportTypeNode: () => dg, isImportableFile: () => eQ, isInComment: () => Ay, isInExpressionContext: () => KM, isInJSDoc: () => nN, isInJSFile: () => dr, isInJSXText: () => vye, isInJsonFile: () => YM, isInNonReferenceComment: () => Lye, isInReferenceComment: () => Cye, isInRightSideOfInternalImportEqualsDeclaration: () => mF, isInString: () => VT, isInTemplateString: () => _$, isInTopLevelContext: () => WM, isIncrementalCompilation: () => jN, isIndexSignatureDeclaration: () => hx, isIndexedAccessTypeNode: () => bx, isInferTypeNode: () => uC, isInfinityOrNaNString: () => sk, isInitializedProperty: () => m8, isInitializedVariable: () => Oz, isInsideJsxElement: () => CF, isInsideJsxElementOrAttribute: () => yye, isInsideNodeModules: () => eve, isInsideTemplateLiteral: () => z8, isInstantiatedModule: () => DK, isInterfaceDeclaration: () => Yu, isInternalDeclaration: () => iX, isInternalModuleImportEqualsDeclaration: () => RA, isInternalName: () => vJ, isIntersectionTypeNode: () => vO, isIntrinsicJsxName: () => FI, isIterationStatement: () => Tv, isJSDoc: () => Vm, isJSDocAllType: () => Mfe, isJSDocAugmentsTag: () => yC, isJSDocAuthorTag: () => R6e, isJSDocCallbackTag: () => oJ, isJSDocClassTag: () => Bfe, isJSDocCommentContainingNode: () => _W, isJSDocConstructSignature: () => MA, isJSDocDeprecatedTag: () => dJ, isJSDocEnumTag: () => LO, isJSDocFunctionType: () => gC, isJSDocImplementsTag: () => _J, isJSDocIndexSignature: () => $M, isJSDocLikeText: () => LJ, isJSDocLink: () => Ofe, isJSDocLinkCode: () => Pfe, isJSDocLinkLike: () => zS, isJSDocLinkPlain: () => w6e, isJSDocMemberName: () => $0, isJSDocNameReference: () => Ck, isJSDocNamepathType: () => D6e, isJSDocNamespaceBody: () => wOe, isJSDocNode: () => EA, isJSDocNonNullableType: () => C7, isJSDocNullableType: () => hC, isJSDocOptionalParameter: () => eO, isJSDocOptionalType: () => aJ, isJSDocOverloadTag: () => Ik, isJSDocOverrideTag: () => I7, isJSDocParameterTag: () => Qp, isJSDocPrivateTag: () => lJ, isJSDocPropertyLikeTag: () => hM, isJSDocPropertyTag: () => Ufe, isJSDocProtectedTag: () => cJ, isJSDocPublicTag: () => sJ, isJSDocReadonlyTag: () => uJ, isJSDocReturnTag: () => k7, isJSDocSatisfiesExpression: () => uq, isJSDocSatisfiesTag: () => w7, isJSDocSeeTag: () => N6e, isJSDocSignature: () => R1, isJSDocTag: () => bI, isJSDocTemplateTag: () => mp, isJSDocThisTag: () => Gfe, isJSDocThrowsTag: () => P6e, isJSDocTypeAlias: () => c_, isJSDocTypeAssertion: () => Dk, isJSDocTypeExpression: () => AT, isJSDocTypeLiteral: () => Lk, isJSDocTypeTag: () => kk, isJSDocTypedefTag: () => fJ, isJSDocUnknownTag: () => O6e, isJSDocUnknownType: () => Ffe, isJSDocVariadicType: () => L7, isJSXTagName: () => kI, isJsonEqual: () => rq, isJsonSourceFile: () => l_, isJsxAttribute: () => $p, isJsxAttributeLike: () => TM, isJsxAttributes: () => w1, isJsxChild: () => HR, isJsxClosingElement: () => Ax, isJsxClosingFragment: () => Rfe, isJsxElement: () => Ey, isJsxExpression: () => xk, isJsxFragment: () => Cx, isJsxOpeningElement: () => xh, isJsxOpeningFragment: () => Lx, isJsxOpeningLikeElement: () => qu, isJsxOpeningLikeElementTagName: () => aye, isJsxSelfClosingElement: () => xx, isJsxSpreadAttribute: () => ST, isJsxTagNameExpression: () => vI, isJsxText: () => _x, isJumpStatementTarget: () => B8, isKeyword: () => bd, isKnownSymbol: () => AN, isLabelName: () => n$, isLabelOfLabeledStatement: () => t$, isLabeledStatement: () => k1, isLateVisibilityPaintedStatement: () => RM, isLeftHandSideExpression: () => gd, isLeftHandSideOfAssignment: () => h8e, isLet: () => CI, isLineBreak: () => uu, isLiteralComputedPropertyDeclarationName: () => EN, isLiteralExpression: () => $E, isLiteralExpressionOfObject: () => eW, isLiteralImportTypeNode: () => B0, isLiteralKind: () => hI, isLiteralLikeAccess: () => ZM, isLiteralLikeElementAccess: () => sN, isLiteralNameOfPropertyDeclarationOrIndexAccess: () => vF, isLiteralTypeLikeExpression: () => J6e, isLiteralTypeLiteral: () => ace, isLiteralTypeNode: () => X0, isLocalName: () => Pv, isLogicalOperator: () => Gue, isLogicalOrCoalescingAssignmentExpression: () => Lz, isLogicalOrCoalescingAssignmentOperator: () => jI, isLogicalOrCoalescingBinaryExpression: () => ON, isLogicalOrCoalescingBinaryOperator: () => NN, isMappedTypeNode: () => bk, isMemberName: () => eg, isMergeDeclarationMarker: () => I6e, isMetaProperty: () => Ek, isMethodDeclaration: () => nc, isMethodOrAccessor: () => yA, isMethodSignature: () => bh, isMinusToken: () => Kq, isMissingDeclaration: () => L6e, isModifier: () => lo, isModifierKind: () => uy, isModifierLike: () => el, isModuleAugmentationExternal: () => kW, isModuleBlock: () => Yp, isModuleBody: () => lce, isModuleDeclaration: () => Hl, isModuleExportsAccessExpression: () => ph, isModuleIdentifier: () => $W, isModuleName: () => n_e, isModuleOrEnumDeclaration: () => VR, isModuleReference: () => dce, isModuleSpecifierLike: () => FF, isModuleWithStringLiteralName: () => DM, isNameOfFunctionDeclaration: () => o$, isNameOfModuleDeclaration: () => a$, isNamedClassElement: () => $le, isNamedDeclaration: () => du, isNamedEvaluation: () => Wf, isNamedEvaluationSource: () => oz, isNamedExportBindings: () => $H, isNamedExports: () => j_, isNamedImportBindings: () => cW, isNamedImports: () => by, isNamedImportsOrExports: () => Gz, isNamedTupleMember: () => vk, isNamespaceBody: () => kOe, isNamespaceExport: () => Sh, isNamespaceExportDeclaration: () => AO, isNamespaceImport: () => Ov, isNamespaceReexportDeclaration: () => $ce, isNewExpression: () => I1, isNewExpressionTarget: () => Qk, isNightly: () => wN, isNoSubstitutionTemplateLiteral: () => px, isNode: () => COe, isNodeArray: () => c1, isNodeArrayMultiLine: () => Kue, isNodeDescendantOf: () => uT, isNodeKind: () => PR, isNodeLikeSystem: () => _j, isNodeModulesDirectory: () => eM, isNodeWithPossibleHoistedDeclaration: () => lue, isNonContextualKeyword: () => pue, isNonExportDefaultModifier: () => d4e, isNonGlobalAmbientModule: () => IW, isNonGlobalDeclaration: () => lve, isNonNullAccess: () => Rde, isNonNullChain: () => mM, isNonNullExpression: () => Tx, isNonStaticMethodOrAccessorWithPrivateName: () => Mme, isNotEmittedOrPartiallyEmittedNode: () => IOe, isNotEmittedStatement: () => rJ, isNullishCoalesce: () => YH, isNumber: () => iy, isNumericLiteral: () => __, isNumericLiteralName: () => vh, isObjectBindingElementWithoutPropertyName: () => Y8, isObjectBindingOrAssignmentElement: () => BR, isObjectBindingOrAssignmentPattern: () => aW, isObjectBindingPattern: () => Bm, isObjectLiteralElement: () => pW, isObjectLiteralElementLike: () => dy, isObjectLiteralExpression: () => As, isObjectLiteralMethod: () => N_, isObjectLiteralOrClassExpressionMethodOrAccessor: () => VM, isObjectTypeDeclaration: () => ax, isOctalDigit: () => PH, isOmittedExpression: () => Ic, isOptionalChain: () => fu, isOptionalChainRoot: () => _I, isOptionalDeclaration: () => cq, isOptionalJSDocPropertyLikeTag: () => ZN, isOptionalTypeNode: () => $q, isOuterExpression: () => O7, isOutermostOptionalChain: () => pI, isOverrideModifier: () => Tfe, isPackedArrayLiteral: () => aq, isParameter: () => Ma, isParameterDeclaration: () => dT, isParameterOrCatchClauseVariable: () => oq, isParameterPropertyDeclaration: () => Yd, isParameterPropertyModifier: () => gI, isParenthesizedExpression: () => Pd, isParenthesizedTypeNode: () => yx, isParseTreeNode: () => uI, isPartOfTypeNode: () => _h, isPartOfTypeQuery: () => XM, isPartiallyEmittedExpression: () => x7, isPatternMatch: () => LP, isPinnedComment: () => kM, isPlainJsFile: () => LM, isPlusToken: () => Jq, isPossiblyTypeArgumentPosition: () => W8, isPostfixUnaryExpression: () => Zq, isPrefixUnaryExpression: () => Nv, isPrivateIdentifier: () => ki, isPrivateIdentifierClassElementDeclaration: () => zu, isPrivateIdentifierPropertyAccessExpression: () => hA, isPrivateIdentifierSymbol: () => mue, isProgramBundleEmitBuildInfo: () => Khe, isProgramUptoDate: () => IX, isPrologueDirective: () => dp, isPropertyAccessChain: () => _M, isPropertyAccessEntityNameExpression: () => MN, isPropertyAccessExpression: () => Pr, isPropertyAccessOrQualifiedName: () => tce, isPropertyAccessOrQualifiedNameOrImportTypeNode: () => ece, isPropertyAssignment: () => Uc, isPropertyDeclaration: () => Za, isPropertyName: () => hl, isPropertyNameLiteral: () => O_, isPropertySignature: () => Tf, isProtoSetter: () => hue, isPrototypeAccess: () => W0, isPrototypePropertyAssignment: () => uN, isPunctuation: () => xye, isPushOrUnshiftIdentifier: () => sz, isQualifiedName: () => Ed, isQuestionDotToken: () => y7, isQuestionOrExclamationToken: () => Qfe, isQuestionOrPlusOrMinusToken: () => t_e, isQuestionToken: () => Rv, isRawSourceMap: () => Ime, isReadonlyKeyword: () => bfe, isReadonlyKeywordOrPlusOrMinusToken: () => e_e, isRecognizedTripleSlashComment: () => SW, isReferenceFileLocation: () => DC, isReferencedFile: () => Z0, isRegularExpressionLiteral: () => zq, isRequireCall: () => vd, isRequireVariableStatement: () => XW, isRestParameter: () => fh, isRestTypeNode: () => Qq, isReturnStatement: () => pp, isReturnStatementWithFixablePromiseHandler: () => p9, isRightSideOfAccessExpression: () => Uue, isRightSideOfPropertyAccess: () => MC, isRightSideOfQualifiedName: () => sye, isRightSideOfQualifiedNameOrPropertyAccess: () => WI, isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName: () => Vue, isRootedDiskPath: () => xm, isSameEntityName: () => NA, isSatisfiesExpression: () => b6e, isScopeMarker: () => oce, isSemicolonClassElement: () => Ife, isSetAccessor: () => fy, isSetAccessorDeclaration: () => Kf, isShebangTrivia: () => MH, isShorthandAmbientModuleSymbol: () => AI, isShorthandPropertyAssignment: () => Xf, isSignedNumericLiteral: () => o3, isSimpleCopiableExpression: () => M1, isSimpleInlineableExpression: () => Zp, isSingleOrDoubleQuote: () => rN, isSourceFile: () => ji, isSourceFileFromLibrary: () => uw, isSourceFileJS: () => Ju, isSourceFileNotJS: () => YOe, isSourceFileNotJson: () => JW, isSourceMapping: () => kme, isSpecialPropertyDeclaration: () => tue, isSpreadAssignment: () => Ix, isSpreadElement: () => Th, isStatement: () => Ia, isStatementButNotDeclaration: () => jR, isStatementOrBlock: () => uce, isStatementWithLocals: () => Tce, isStatic: () => za, isStaticModifier: () => mx, isString: () => Va, isStringAKeyword: () => a8e, isStringANonContextualKeyword: () => ZS, isStringAndEmptyAnonymousObjectIntersection: () => Sye, isStringDoubleQuoted: () => QM, isStringLiteral: () => Go, isStringLiteralLike: () => Ts, isStringLiteralOrJsxExpression: () => fce, isStringLiteralOrTemplate: () => Kye, isStringOrNumericLiteralLike: () => Hf, isStringOrRegularExpressionOrTemplateLiteral: () => g$, isStringTextContainingNode: () => nW, isSuperCall: () => LA, isSuperKeyword: () => mk, isSuperOrSuperProperty: () => XOe, isSuperProperty: () => ad, isSupportedSourceFileName: () => bde, isSwitchStatement: () => TO, isSyntaxList: () => vC, isSyntheticExpression: () => E6e, isSyntheticReference: () => Sx, isTagName: () => r$, isTaggedTemplateExpression: () => bT, isTaggedTemplateTag: () => rye, isTemplateExpression: () => T7, isTemplateHead: () => oC, isTemplateLiteral: () => vA, isTemplateLiteralKind: () => Ev, isTemplateLiteralToken: () => qle, isTemplateLiteralTypeNode: () => v6e, isTemplateLiteralTypeSpan: () => Afe, isTemplateMiddle: () => pfe, isTemplateMiddleOrTemplateTail: () => gM, isTemplateSpan: () => Sk, isTemplateTail: () => qq, isTextWhiteSpaceLike: () => Nye, isThis: () => FC, isThisContainerOrFunctionBlock: () => Kce, isThisIdentifier: () => _T, isThisInTypeQuery: () => nx, isThisInitializedDeclaration: () => zM, isThisInitializedObjectBindingExpression: () => Yce, isThisProperty: () => ZR, isThisTypeNode: () => E7, isThisTypeParameter: () => lk, isThisTypePredicate: () => JOe, isThrowStatement: () => nJ, isToken: () => US, isTokenKind: () => ZH, isTraceEnabled: () => Bv, isTransientSymbol: () => km, isTrivia: () => VA, isTryStatement: () => SO, isTupleTypeNode: () => lC, isTypeAlias: () => mN, isTypeAliasDeclaration: () => Xp, isTypeAssertionExpression: () => Cfe, isTypeDeclaration: () => eC, isTypeElement: () => QE, isTypeKeyword: () => rw, isTypeKeywordToken: () => T$, isTypeKeywordTokenOrIdentifier: () => DF, isTypeLiteralNode: () => rf, isTypeNode: () => Pi, isTypeNodeKind: () => Bz, isTypeOfExpression: () => fC, isTypeOnlyExportDeclaration: () => Jle, isTypeOnlyImportDeclaration: () => tW, isTypeOnlyImportOrExportDeclaration: () => u1, isTypeOperatorNode: () => vx, isTypeParameterDeclaration: () => Ol, isTypePredicateNode: () => b7, isTypeQueryNode: () => yk, isTypeReferenceNode: () => V_, isTypeReferenceType: () => xM, isUMDExportSymbol: () => g3, isUnaryExpression: () => sW, isUnaryExpressionWithWrite: () => ice, isUnicodeIdentifierStart: () => tM, isUnionTypeNode: () => gx, isUnparsedNode: () => QH, isUnparsedPrepend: () => Nfe, isUnparsedSource: () => xT, isUnparsedTextLike: () => zle, isUrl: () => ele, isValidBigIntString: () => w3, isValidESSymbolDeclaration: () => Hce, isValidTypeOnlyAliasUseSite: () => cx, isValueSignatureDeclaration: () => cue, isVarConst: () => ig, isVariableDeclaration: () => Wi, isVariableDeclarationInVariableStatement: () => GM, isVariableDeclarationInitializedToBareOrAccessedRequire: () => g1, isVariableDeclarationInitializedToRequire: () => KW, isVariableDeclarationList: () => Ou, isVariableLike: () => kA, isVariableLikeOrAccessor: () => Vce, isVariableStatement: () => sc, isVoidExpression: () => Ex, isWatchSet: () => S8e, isWhileStatement: () => S6e, isWhiteSpaceLike: () => Zh, isWhiteSpaceSingleLine: () => Cm, isWithStatement: () => kfe, isWriteAccess: () => XI, isWriteOnlyAccess: () => Pz, isYieldExpression: () => S7, jsxModeNeedsExplicitImport: () => Y$, keywordPart: () => Bd, last: () => Ho, lastOrUndefined: () => Zs, length: () => Ne, libMap: () => YO, libs: () => XO, lineBreakPart: () => VC, linkNamePart: () => Uye, linkPart: () => R$, linkTextPart: () => UF, listFiles: () => $X, loadModuleFromGlobalCache: () => Ype, loadWithModeAwareCache: () => x8, makeIdentifierFromModuleName: () => wce, makeImport: () => Ly, makeImportIfNecessary: () => Dye, makeStringLiteral: () => OF, mangleScopedPackageName: () => Gk, map: () => rn, mapAllOrFail: () => JD, mapDefined: () => _a, mapDefinedEntries: () => $Re, mapDefinedIterator: () => KD, mapEntries: () => Zoe, mapIterator: () => Fp, mapOneOrMany: () => rve, mapToDisplayParts: () => jv, matchFiles: () => Yz, matchPatternOrExact: () => Zz, matchedText: () => vse, matchesExclude: () => X7, maybeBind: () => Fo, maybeSetLocalizedDiagnosticMessages: () => ide, memoize: () => hd, memoizeCached: () => use, memoizeOne: () => Tm, memoizeWeak: () => lNe, metadataHelper: () => q3, min: () => cj, minAndMax: () => Sde, missingFileModifiedTime: () => Yh, modifierToFlag: () => ix, modifiersToFlags: () => Om, moduleOptionDeclaration: () => ZJ, moduleResolutionIsEqualTo: () => bce, moduleResolutionNameAndModeGetter: () => $k, moduleResolutionOptionDeclarations: () => $7, moduleResolutionSupportsPackageJsonExportsAndImports: () => sx, moduleResolutionUsesNodeModules: () => NF, moduleSpecifiers: () => P1, moveEmitHelpers: () => ofe, moveRangeEnd: () => m3, moveRangePastDecorators: () => kv, moveRangePastModifiers: () => qp, moveRangePos: () => q0, moveSyntheticComments: () => rfe, mutateMap: () => KA, mutateMapSkippingNewValues: () => lg, needsParentheses: () => G$, needsScopeMarker: () => bM, newCaseClauseTracker: () => r9, newPrivateEnvironment: () => Gme, noEmitNotification: () => h8, noEmitSubstitution: () => Wk, noTransformers: () => lX, noTruncationMaximumTruncationLength: () => P3, nodeCanBeDecorated: () => JM, nodeHasName: () => RR, nodeIsDecorated: () => DA, nodeIsMissing: () => Sl, nodeIsPresent: () => s_, nodeIsSynthesized: () => $s, nodeModuleNameResolver: () => Ope, nodeModulesPathPart: () => Ty, nodeNextJsonConfigResolver: () => Ppe, nodeOrChildIsDecorated: () => tN, nodeOverlapsWithStartEnd: () => l$, nodePosToString: () => BOe, nodeSeenTracker: () => BC, nodeStartsNewLexicalEnvironment: () => lz, nodeToDisplayParts: () => h5e, noop: () => io, noopFileWatcher: () => NC, noopPush: () => RP, normalizePath: () => Wo, normalizeSlashes: () => qc, not: () => kP, notImplemented: () => ja, notImplementedResolver: () => G5, nullNodeConverters: () => wq, nullParenthesizerRules: () => kq, nullTransformationContext: () => pg, objectAllocator: () => Fc, operatorPart: () => iw, optionDeclarations: () => fg, optionMapToObject: () => GJ, optionsAffectingProgramStructure: () => rK, optionsForBuild: () => aK, optionsForWatch: () => $O, optionsHaveChanges: () => TA, optionsHaveModuleResolutionChanges: () => mce, or: () => Sm, orderedRemoveItem: () => CP, orderedRemoveItemAt: () => t1, outFile: () => Ws, packageIdToPackageName: () => AM, packageIdToString: () => tT, padLeft: () => NS, padRight: () => _Ne, paramHelper: () => J3, parameterIsThisKeyword: () => E1, parameterNamePart: () => Mye, parseBaseNodeFactory: () => RJ, parseBigInt: () => xde, parseBuildCommand: () => k4e, parseCommandLine: () => I4e, parseCommandLineWorker: () => PJ, parseConfigFileTextToJson: () => BJ, parseConfigFileWithSystem: () => a7e, parseConfigHostFromCompilerHostLike: () => K5, parseCustomTypeOption: () => W7, parseIsolatedEntityName: () => Rx, parseIsolatedJSDocComment: () => A_e, parseJSDocTypeExpressionForTests: () => T4e, parseJsonConfigFileContent: () => G4e, parseJsonSourceFileConfigFileContent: () => WO, parseJsonText: () => GO, parseListTypeOption: () => M_e, parseNodeFactory: () => jm, parseNodeModuleFromPath: () => pK, parsePackageName: () => yK, parsePseudoBigInt: () => rk, parseValidBigInt: () => iq, patchWriteFileEnsuringDirectory: () => Zse, pathContainsNodeModules: () => Nx, pathIsAbsolute: () => tI, pathIsBareSpecifier: () => LH, pathIsRelative: () => gf, patternText: () => yse, perfLogger: () => Up, performIncrementalCompilation: () => s7e, performance: () => sR, plainJSErrors: () => Z5, positionBelongsToNode: () => c$, positionIsASICandidate: () => zF, positionIsSynthesized: () => Jp, positionsAreOnSameLine: () => d_, preProcessFile: () => Fve, probablyUsesSemicolons: () => qF, processCommentPragmas: () => wJ, processPragmasIntoFields: () => DJ, processTaggedTemplateExpression: () => QK, programContainsEsModules: () => wye, programContainsModules: () => kye, projectReferenceIsEqualTo: () => bW, propKeyHelper: () => o7, propertyNamePart: () => Fye, pseudoBigIntToString: () => A1, punctuationPart: () => hu, pushIfUnique: () => a_, quote: () => sw, quotePreferenceFromString: () => C$, rangeContainsPosition: () => G8, rangeContainsPositionExclusive: () => U8, rangeContainsRange: () => af, rangeContainsRangeExclusive: () => cye, rangeContainsStartEnd: () => V8, rangeEndIsOnSameLineAsRangeStart: () => BN, rangeEndPositionsAreOnSameLine: () => que, rangeEquals: () => rj, rangeIsOnSingleLine: () => mT, rangeOfNode: () => tq, rangeOfTypeParameters: () => nq, rangeOverlapsWithStartEnd: () => ew, rangeStartIsOnSameLineAsRangeEnd: () => Jue, rangeStartPositionsAreOnSameLine: () => h3, readBuilderProgram: () => cF, readConfigFile: () => VO, readHelper: () => i7, readJson: () => zI, readJsonConfigFile: () => U_e, readJsonOrUndefined: () => Dz, realizeDiagnostics: () => GQ, reduceEachLeadingCommentRange: () => ole, reduceEachTrailingCommentRange: () => sle, reduceLeft: () => Cu, reduceLeftIterator: () => Ei, reducePathComponents: () => zE, refactor: () => Rw, regExpEscape: () => U8e, relativeComplement: () => tse, removeAllComments: () => sO, removeEmitHelper: () => m6e, removeExtension: () => KN, removeFileExtension: () => Od, removeIgnoredPath: () => XX, removeMinAndVersionNumbers: () => gse, removeOptionality: () => bye, removePrefix: () => $L, removeSuffix: () => lA, removeTrailingDirectorySeparator: () => qE, repeatString: () => K8, replaceElement: () => aj, resolutionExtensionIsTSOrJson: () => XN, resolveConfigFileProjectName: () => lY, resolveJSModule: () => Dpe, resolveModuleName: () => Mk, resolveModuleNameFromCache: () => pPe, resolvePackageNameToPackageJson: () => lPe, resolvePath: () => mv, resolveProjectReferencePath: () => Yk, resolveTripleslashReference: () => j5, resolveTypeReferenceDirective: () => lK, resolvingEmptyArray: () => O3, restHelper: () => e7, returnFalse: () => Qb, returnNoopFileWatcher: () => w8, returnTrue: () => Zb, returnUndefined: () => R0, returnsPromise: () => gQ, runInitializersHelper: () => X3, sameFlatMap: () => aA, sameMap: () => Xl, sameMapping: () => nMe, scanShebangTrivia: () => FH, scanTokenAtPosition: () => Bce, scanner: () => gu, screenStartingMessageCodes: () => lF, semanticDiagnosticsOptionDeclarations: () => eK, serializeCompilerOptions: () => VJ, server: () => eye, servicesVersion: () => OQ, setCommentRange: () => Bc, setConfigFileInOptions: () => HJ, setConstantValue: () => afe, setEachParent: () => QA, setEmitFlags: () => or, setFunctionNameHelper: () => s7, setGetSourceFileAsHashVersioned: () => sF, setIdentifierAutoGenerate: () => fO, setIdentifierGeneratedImportReference: () => cfe, setIdentifierTypeArguments: () => yy, setInternalEmitFlags: () => lO, setLocalizedDiagnosticMessages: () => rde, setModuleDefaultHelper: () => u7, setNodeFlags: () => Lde, setObjectAllocator: () => nde, setOriginalNode: () => Vr, setParent: () => Bo, setParentRecursive: () => Dv, setPrivateIdentifier: () => DT, setResolvedModule: () => yce, setResolvedTypeReferenceDirective: () => vce, setSnippetElement: () => Uq, setSourceMapRange: () => cs, setStackTraceLimit: () => jNe, setStartsOnNewLine: () => Bq, setSyntheticLeadingComments: () => L1, setSyntheticTrailingComments: () => iC, setSys: () => $Ne, setSysLog: () => Xse, setTextRange: () => mt, setTextRangeEnd: () => $A, setTextRangePos: () => ik, setTextRangePosEnd: () => Mm, setTextRangePosWidth: () => ak, setTokenSourceMapRange: () => nfe, setTypeNode: () => sfe, setUILocale: () => pse, setValueDeclaration: () => dN, shouldAllowImportingTsExtension: () => Uk, shouldPreserveConstEnums: () => S1, shouldUseUriStyleNodeCoreModules: () => t9, showModuleSpecifier: () => Que, signatureHasLiteralTypes: () => RK, signatureHasRestParameter: () => mu, signatureToDisplayParts: () => N$, single: () => ij, singleElementArray: () => WE, singleIterator: () => QRe, singleOrMany: () => Em, singleOrUndefined: () => bm, skipAlias: () => nf, skipAssertions: () => H6e, skipConstraint: () => S$, skipOuterExpressions: () => pu, skipParentheses: () => Us, skipPartiallyEmittedExpressions: () => D_, skipTrivia: () => zo, skipTypeChecking: () => nk, skipTypeParentheses: () => nz, skipWhile: () => Sse, sliceAfter: () => eq, some: () => kt, sort: () => KL, sortAndDeduplicate: () => $D, sortAndDeduplicateDiagnostics: () => _A, sourceFileAffectingCompilerOptions: () => Q7, sourceFileMayBeEmitted: () => tx, sourceMapCommentRegExp: () => L5, sourceMapCommentRegExpDontCareLineStart: () => VK, spacePart: () => yl, spanMap: () => vP, spreadArrayHelper: () => a7, stableSort: () => ry, startEndContainsRange: () => s$, startEndOverlapsWithStartEnd: () => bF, startOnNewLine: () => Pu, startTracing: () => Hse, startsWith: () => Ea, startsWithDirectory: () => DH, startsWithUnderscore: () => X$, startsWithUseStrict: () => zfe, stringContains: () => lu, stringContainsAt: () => sve, stringToToken: () => KE, stripQuotes: () => M_, supportedDeclarationExtensions: () => B3, supportedJSExtensions: () => Lq, supportedJSExtensionsFlat: () => uk, supportedLocaleDirectories: () => gW, supportedTSExtensions: () => nC, supportedTSExtensionsFlat: () => Cq, supportedTSImplementationExtensions: () => G3, suppressLeadingAndTrailingTrivia: () => Gd, suppressLeadingTrivia: () => VF, suppressTrailingTrivia: () => Jye, symbolEscapedNameNoDefault: () => MF, symbolName: () => Nl, symbolNameNoDefault: () => PF, symbolPart: () => Pye, symbolToDisplayParts: () => aw, syntaxMayBeASICandidate: () => Z$, syntaxRequiresTrailingSemicolonOrASI: () => WF, sys: () => zc, sysLog: () => pR, tagNamesAreEquivalent: () => Q0, takeWhile: () => wP, targetOptionDeclaration: () => ZO, templateObjectHelper: () => r7, testFormatSettings: () => nye, textChangeRangeIsUnchanged: () => Ale, textChangeRangeNewSpan: () => cI, textChanges: () => hr, textOrKeywordPart: () => D$, textPart: () => Cf, textRangeContainsPositionInclusive: () => sM, textSpanContainsPosition: () => GH, textSpanContainsTextSpan: () => Ele, textSpanEnd: () => Qc, textSpanIntersection: () => xle, textSpanIntersectsWith: () => lM, textSpanIntersectsWithPosition: () => Sle, textSpanIntersectsWithTextSpan: () => pOe, textSpanIsEmpty: () => ble, textSpanOverlap: () => Tle, textSpanOverlapsWith: () => _Oe, textSpansEqual: () => UC, textToKeywordObj: () => kR, timestamp: () => nl, toArray: () => nR, toBuilderFileEmit: () => Qhe, toBuilderStateFileInfoForMultiEmit: () => $he, toEditorSettings: () => c6, toFileNameLowerCase: () => I_, toLowerCase: () => cse, toPath: () => Hs, toProgramEmitPending: () => Zhe, tokenIsIdentifierOrKeyword: () => Wu, tokenIsIdentifierOrKeywordOrGreaterThan: () => ile, tokenToString: () => mo, trace: () => pa, tracing: () => hi, tracingEnabled: () => lR, transform: () => zFe, transformClassFields: () => Wme, transformDeclarations: () => aX, transformECMAScriptModule: () => rX, transformES2015: () => ihe, transformES2016: () => nhe, transformES2017: () => Kme, transformES2018: () => Xme, transformES2019: () => Yme, transformES2020: () => $me, transformES2021: () => Qme, transformES5: () => ahe, transformESDecorators: () => Jme, transformESNext: () => Zme, transformGenerators: () => ohe, transformJsx: () => ehe, transformLegacyDecorators: () => qme, transformModule: () => nX, transformNodeModule: () => che, transformNodes: () => g8, transformSystemModule: () => lhe, transformTypeScript: () => jme, transpile: () => gFe, transpileModule: () => Jve, transpileOptionValueCompilerOptions: () => iK, trimString: () => n1, trimStringEnd: () => aR, trimStringStart: () => QL, tryAddToSet: () => Yb, tryAndIgnoreErrors: () => YF, tryCast: () => ri, tryDirectoryExists: () => XF, tryExtractTSExtension: () => p3, tryFileExists: () => KF, tryGetClassExtendingExpressionWithTypeArguments: () => Iz, tryGetClassImplementingOrExtendingExpressionWithTypeArguments: () => kz, tryGetDirectories: () => JF, tryGetExtensionFromPath: () => yh, tryGetImportFromModuleSpecifier: () => pN, tryGetJSDocSatisfiesTypeNode: () => N3, tryGetModuleNameFromFile: () => RO, tryGetModuleSpecifierFromDeclaration: () => fN, tryGetNativePerformanceHooks: () => Gse, tryGetPropertyAccessOrIdentifierToString: () => FN, tryGetPropertyNameOfBindingOrAssignmentElement: () => M7, tryGetSourceMappingURL: () => Lme, tryGetTextOfPropertyName: () => NM, tryIOAndConsumeErrors: () => $F, tryParsePattern: () => YA, tryParsePatterns: () => I3, tryParseRawSourceMap: () => GK, tryReadDirectory: () => H$, tryReadFile: () => jO, tryRemoveDirectoryPrefix: () => qz, tryRemoveExtension: () => Tde, tryRemovePrefix: () => fj, tryRemoveSuffix: () => hse, typeAcquisitionDeclarations: () => e5, typeAliasNamePart: () => Bye, typeDirectiveIsEqualTo: () => Ece, typeKeywords: () => i9, typeParameterNamePart: () => Gye, typeReferenceResolutionNameAndModeGetter: () => C8, typeToDisplayParts: () => Z8, unchangedPollThresholds: () => gR, unchangedTextChangeRange: () => hW, unescapeLeadingUnderscores: () => Zi, unmangleScopedPackageName: () => m5, unorderedRemoveItem: () => iR, unorderedRemoveItemAt: () => uj, unreachableCodeIsError: () => dde, unusedLabelIsError: () => fde, unwrapInnermostStatementOfLabel: () => HW, updateErrorForNoInputFiles: () => zJ, updateLanguageServiceSourceFile: () => RQ, updateMissingFilePathsWatch: () => Lhe, updatePackageJsonWatch: () => L3e, updateResolutionField: () => IC, updateSharedExtendedConfigFileWatcher: () => mX, updateSourceFile: () => kJ, updateWatchingWildcardDirectories: () => U5, usesExtensionsOnImports: () => vde, usingSingleLineStringWriter: () => TI, utf16EncodeAsString: () => lI, validateLocaleAndSetLanguage: () => gOe, valuesHelper: () => l7, version: () => Ue, versionMajorMinor: () => ve, visitArray: () => BK, visitCommaListElements: () => _8, visitEachChild: () => Bn, visitFunctionBody: () => xf, visitIterationBody: () => p_, visitLexicalEnvironment: () => C5, visitNode: () => st, visitNodes: () => Kn, visitParameterList: () => Wl, walkUpBindingElementsAndPatterns: () => pA, walkUpLexicalEnvironments: () => Bme, walkUpOuterExpressions: () => qfe, walkUpParenthesizedExpressions: () => Cv, walkUpParenthesizedTypes: () => vN, walkUpParenthesizedTypesAndGetParentAndChild: () => due, whitespaceOrMapCommentRegExp: () => I5, writeCommentRange: () => zA, writeFile: () => BI, writeFileEnsuringDirectories: () => Ez, zipToModeAwareCache: () => _K, zipWith: () => Ni }); var Z2e = L({ "src/typescript/_namespaces/ts.ts"() { Ra(), pF(), Kr(), eU(); } }), jXe = W({ "src/typescript/typescript.ts"(e, t) { Z2e(), Z2e(), typeof console < "u" && (D.loggingHost = { log(r, i) { switch (r) { case 1: return console.error(i); case 2: return console.warn(i); case 3: return console.log(i); case 4: return console.log(i); } } }), t.exports = Q2e; } }); return jXe(); })(); typeof HV < "u" && HV.exports && (HV.exports = Xb); var eut = Xb.createClassifier, XRe = Xb.createLanguageService, tut = Xb.displayPartsToString, nut = Xb.EndOfLineState, rut = Xb.flattenDiagnosticMessageText, iut = Xb.IndentStyle, HL = Xb.ScriptKind, aut = Xb.ScriptTarget, out = Xb.TokenClass, YRe = Xb, ga = {}; ga["lib.d.ts"] = `/*! ***************************************************************************** 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. ***************************************************************************** */ /// /// /// /// /// `; ga["lib.decorators.d.ts"] = `/*! ***************************************************************************** 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. ***************************************************************************** */ /// /** * The decorator context types provided to class element decorators. */ type ClassMemberDecoratorContext = | ClassMethodDecoratorContext | ClassGetterDecoratorContext | ClassSetterDecoratorContext | ClassFieldDecoratorContext | ClassAccessorDecoratorContext ; /** * The decorator context types provided to any decorator. */ type DecoratorContext = | ClassDecoratorContext | ClassMemberDecoratorContext ; /** * Context provided to a class decorator. * @template Class The type of the decorated class associated with this context. */ interface ClassDecoratorContext< Class extends abstract new (...args: any) => any = abstract new (...args: any) => any, > { /** The kind of element that was decorated. */ readonly kind: "class"; /** The name of the decorated class. */ readonly name: string | undefined; /** * Adds a callback to be invoked after the class definition has been finalized. * * @example * \`\`\`ts * function customElement(name: string): ClassDecoratorFunction { * return (target, context) => { * context.addInitializer(function () { * customElements.define(name, this); * }); * } * } * * @customElement("my-element") * class MyElement {} * \`\`\` */ addInitializer(initializer: (this: Class) => void): void; } /** * Context provided to a class method decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class method. */ interface ClassMethodDecoratorContext< This = unknown, Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any, > { /** The kind of class element that was decorated. */ readonly kind: "method"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Gets the current value of the method from the provided object. * * @example * let fn = context.access.get(instance); */ get(object: This): Value; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). * * @example * \`\`\`ts * const bound: ClassMethodDecoratorFunction = (value, context) { * if (context.private) throw new TypeError("Not supported on private methods."); * context.addInitializer(function () { * this[context.name] = this[context.name].bind(this); * }); * } * * class C { * message = "Hello"; * * @bound * m() { * console.log(this.message); * } * } * \`\`\` */ addInitializer(initializer: (this: This) => void): void; } /** * Context provided to a class getter decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The property type of the decorated class getter. */ interface ClassGetterDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "getter"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the getter on the provided object. * * @example * let value = context.access.get(instance); */ get(object: This): Value; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; } /** * Context provided to a class setter decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class setter. */ interface ClassSetterDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "setter"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the setter on the provided object. * * @example * context.access.set(instance, value); */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; } /** * Context provided to a class \`accessor\` field decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of decorated class field. */ interface ClassAccessorDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "accessor"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the getter on the provided object. * * @example * let value = context.access.get(instance); */ get(object: This): Value; /** * Invokes the setter on the provided object. * * @example * context.access.set(instance, value); */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; } /** * Describes the target provided to class \`accessor\` field decorators. * @template This The \`this\` type to which the target applies. * @template Value The property type for the class \`accessor\` field. */ interface ClassAccessorDecoratorTarget { /** * Invokes the getter that was defined prior to decorator application. * * @example * let value = target.get.call(instance); */ get(this: This): Value; /** * Invokes the setter that was defined prior to decorator application. * * @example * target.set.call(instance, value); */ set(this: This, value: Value): void; } /** * Describes the allowed return value from a class \`accessor\` field decorator. * @template This The \`this\` type to which the target applies. * @template Value The property type for the class \`accessor\` field. */ interface ClassAccessorDecoratorResult { /** * An optional replacement getter function. If not provided, the existing getter function is used instead. */ get?(this: This): Value; /** * An optional replacement setter function. If not provided, the existing setter function is used instead. */ set?(this: This, value: Value): void; /** * An optional initializer mutator that is invoked when the underlying field initializer is evaluated. * @param value The incoming initializer value. * @returns The replacement initializer value. */ init?(this: This, value: Value): Value; } /** * Context provided to a class field decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class field. */ interface ClassFieldDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "field"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Gets the value of the field on the provided object. */ get(object: This): Value; /** * Sets the value of the field on the provided object. */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; } `; ga["lib.decorators.legacy.d.ts"] = `/*! ***************************************************************************** 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. ***************************************************************************** */ /// declare type ClassDecorator = (target: TFunction) => TFunction | void; declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void; `; ga["lib.dom.d.ts"] = `/*! ***************************************************************************** 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. ***************************************************************************** */ /// ///////////////////////////// /// Window APIs ///////////////////////////// interface AddEventListenerOptions extends EventListenerOptions { once?: boolean; passive?: boolean; signal?: AbortSignal; } interface AesCbcParams extends Algorithm { iv: BufferSource; } interface AesCtrParams extends Algorithm { counter: BufferSource; length: number; } interface AesDerivedKeyParams extends Algorithm { length: number; } interface AesGcmParams extends Algorithm { additionalData?: BufferSource; iv: BufferSource; tagLength?: number; } interface AesKeyAlgorithm extends KeyAlgorithm { length: number; } interface AesKeyGenParams extends Algorithm { length: number; } interface Algorithm { name: string; } interface AnalyserOptions extends AudioNodeOptions { fftSize?: number; maxDecibels?: number; minDecibels?: number; smoothingTimeConstant?: number; } interface AnimationEventInit extends EventInit { animationName?: string; elapsedTime?: number; pseudoElement?: string; } interface AnimationPlaybackEventInit extends EventInit { currentTime?: CSSNumberish | null; timelineTime?: CSSNumberish | null; } interface AssignedNodesOptions { flatten?: boolean; } interface AudioBufferOptions { length: number; numberOfChannels?: number; sampleRate: number; } interface AudioBufferSourceOptions { buffer?: AudioBuffer | null; detune?: number; loop?: boolean; loopEnd?: number; loopStart?: number; playbackRate?: number; } interface AudioConfiguration { bitrate?: number; channels?: string; contentType: string; samplerate?: number; spatialRendering?: boolean; } interface AudioContextOptions { latencyHint?: AudioContextLatencyCategory | number; sampleRate?: number; } interface AudioNodeOptions { channelCount?: number; channelCountMode?: ChannelCountMode; channelInterpretation?: ChannelInterpretation; } interface AudioProcessingEventInit extends EventInit { inputBuffer: AudioBuffer; outputBuffer: AudioBuffer; playbackTime: number; } interface AudioTimestamp { contextTime?: number; performanceTime?: DOMHighResTimeStamp; } interface AudioWorkletNodeOptions extends AudioNodeOptions { numberOfInputs?: number; numberOfOutputs?: number; outputChannelCount?: number[]; parameterData?: Record; processorOptions?: any; } interface AuthenticationExtensionsClientInputs { appid?: string; credProps?: boolean; hmacCreateSecret?: boolean; } interface AuthenticationExtensionsClientOutputs { appid?: boolean; credProps?: CredentialPropertiesOutput; hmacCreateSecret?: boolean; } interface AuthenticatorSelectionCriteria { authenticatorAttachment?: AuthenticatorAttachment; requireResidentKey?: boolean; residentKey?: ResidentKeyRequirement; userVerification?: UserVerificationRequirement; } interface BiquadFilterOptions extends AudioNodeOptions { Q?: number; detune?: number; frequency?: number; gain?: number; type?: BiquadFilterType; } interface BlobEventInit { data: Blob; timecode?: DOMHighResTimeStamp; } interface BlobPropertyBag { endings?: EndingType; type?: string; } interface CSSStyleSheetInit { baseURL?: string; disabled?: boolean; media?: MediaList | string; } interface CacheQueryOptions { ignoreMethod?: boolean; ignoreSearch?: boolean; ignoreVary?: boolean; } interface CanvasRenderingContext2DSettings { alpha?: boolean; colorSpace?: PredefinedColorSpace; desynchronized?: boolean; willReadFrequently?: boolean; } interface ChannelMergerOptions extends AudioNodeOptions { numberOfInputs?: number; } interface ChannelSplitterOptions extends AudioNodeOptions { numberOfOutputs?: number; } interface CheckVisibilityOptions { checkOpacity?: boolean; checkVisibilityCSS?: boolean; } interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; } interface ClipboardEventInit extends EventInit { clipboardData?: DataTransfer | null; } interface ClipboardItemOptions { presentationStyle?: PresentationStyle; } interface CloseEventInit extends EventInit { code?: number; reason?: string; wasClean?: boolean; } interface CompositionEventInit extends UIEventInit { data?: string; } interface ComputedEffectTiming extends EffectTiming { activeDuration?: CSSNumberish; currentIteration?: number | null; endTime?: CSSNumberish; localTime?: CSSNumberish | null; progress?: number | null; startTime?: CSSNumberish; } interface ComputedKeyframe { composite: CompositeOperationOrAuto; computedOffset: number; easing: string; offset: number | null; [property: string]: string | number | null | undefined; } interface ConstantSourceOptions { offset?: number; } interface ConstrainBooleanParameters { exact?: boolean; ideal?: boolean; } interface ConstrainDOMStringParameters { exact?: string | string[]; ideal?: string | string[]; } interface ConstrainDoubleRange extends DoubleRange { exact?: number; ideal?: number; } interface ConstrainULongRange extends ULongRange { exact?: number; ideal?: number; } interface ConvolverOptions extends AudioNodeOptions { buffer?: AudioBuffer | null; disableNormalization?: boolean; } interface CredentialCreationOptions { publicKey?: PublicKeyCredentialCreationOptions; signal?: AbortSignal; } interface CredentialPropertiesOutput { rk?: boolean; } interface CredentialRequestOptions { mediation?: CredentialMediationRequirement; publicKey?: PublicKeyCredentialRequestOptions; signal?: AbortSignal; } interface CryptoKeyPair { privateKey: CryptoKey; publicKey: CryptoKey; } interface CustomEventInit extends EventInit { detail?: T; } interface DOMMatrix2DInit { a?: number; b?: number; c?: number; d?: number; e?: number; f?: number; m11?: number; m12?: number; m21?: number; m22?: number; m41?: number; m42?: number; } interface DOMMatrixInit extends DOMMatrix2DInit { is2D?: boolean; m13?: number; m14?: number; m23?: number; m24?: number; m31?: number; m32?: number; m33?: number; m34?: number; m43?: number; m44?: number; } interface DOMPointInit { w?: number; x?: number; y?: number; z?: number; } interface DOMQuadInit { p1?: DOMPointInit; p2?: DOMPointInit; p3?: DOMPointInit; p4?: DOMPointInit; } interface DOMRectInit { height?: number; width?: number; x?: number; y?: number; } interface DelayOptions extends AudioNodeOptions { delayTime?: number; maxDelayTime?: number; } interface DeviceMotionEventAccelerationInit { x?: number | null; y?: number | null; z?: number | null; } interface DeviceMotionEventInit extends EventInit { acceleration?: DeviceMotionEventAccelerationInit; accelerationIncludingGravity?: DeviceMotionEventAccelerationInit; interval?: number; rotationRate?: DeviceMotionEventRotationRateInit; } interface DeviceMotionEventRotationRateInit { alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DeviceOrientationEventInit extends EventInit { absolute?: boolean; alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DisplayMediaStreamOptions { audio?: boolean | MediaTrackConstraints; video?: boolean | MediaTrackConstraints; } interface DocumentTimelineOptions { originTime?: DOMHighResTimeStamp; } interface DoubleRange { max?: number; min?: number; } interface DragEventInit extends MouseEventInit { dataTransfer?: DataTransfer | null; } interface DynamicsCompressorOptions extends AudioNodeOptions { attack?: number; knee?: number; ratio?: number; release?: number; threshold?: number; } interface EcKeyAlgorithm extends KeyAlgorithm { namedCurve: NamedCurve; } interface EcKeyGenParams extends Algorithm { namedCurve: NamedCurve; } interface EcKeyImportParams extends Algorithm { namedCurve: NamedCurve; } interface EcdhKeyDeriveParams extends Algorithm { public: CryptoKey; } interface EcdsaParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface EffectTiming { delay?: number; direction?: PlaybackDirection; duration?: number | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface ElementCreationOptions { is?: string; } interface ElementDefinitionOptions { extends?: string; } interface ErrorEventInit extends EventInit { colno?: number; error?: any; filename?: string; lineno?: number; message?: string; } interface EventInit { bubbles?: boolean; cancelable?: boolean; composed?: boolean; } interface EventListenerOptions { capture?: boolean; } interface EventModifierInit extends UIEventInit { altKey?: boolean; ctrlKey?: boolean; metaKey?: boolean; modifierAltGraph?: boolean; modifierCapsLock?: boolean; modifierFn?: boolean; modifierFnLock?: boolean; modifierHyper?: boolean; modifierNumLock?: boolean; modifierScrollLock?: boolean; modifierSuper?: boolean; modifierSymbol?: boolean; modifierSymbolLock?: boolean; shiftKey?: boolean; } interface EventSourceInit { withCredentials?: boolean; } interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } interface FileSystemFlags { create?: boolean; exclusive?: boolean; } interface FileSystemGetDirectoryOptions { create?: boolean; } interface FileSystemGetFileOptions { create?: boolean; } interface FileSystemRemoveOptions { recursive?: boolean; } interface FocusEventInit extends UIEventInit { relatedTarget?: EventTarget | null; } interface FocusOptions { preventScroll?: boolean; } interface FontFaceDescriptors { ascentOverride?: string; descentOverride?: string; display?: FontDisplay; featureSettings?: string; lineGapOverride?: string; stretch?: string; style?: string; unicodeRange?: string; variant?: string; weight?: string; } interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } interface FormDataEventInit extends EventInit { formData: FormData; } interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } interface GainOptions extends AudioNodeOptions { gain?: number; } interface GamepadEventInit extends EventInit { gamepad: Gamepad; } interface GetAnimationsOptions { subtree?: boolean; } interface GetNotificationOptions { tag?: string; } interface GetRootNodeOptions { composed?: boolean; } interface HashChangeEventInit extends EventInit { newURL?: string; oldURL?: string; } interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; salt: BufferSource; } interface HmacImportParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface HmacKeyAlgorithm extends KeyAlgorithm { hash: KeyAlgorithm; length: number; } interface HmacKeyGenParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface IDBDatabaseInfo { name?: string; version?: number; } interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; } interface IDBObjectStoreParameters { autoIncrement?: boolean; keyPath?: string | string[] | null; } interface IDBTransactionOptions { durability?: IDBTransactionDurability; } interface IDBVersionChangeEventInit extends EventInit { newVersion?: number | null; oldVersion?: number; } interface IIRFilterOptions extends AudioNodeOptions { feedback: number[]; feedforward: number[]; } interface IdleRequestOptions { timeout?: number; } interface ImageBitmapOptions { colorSpaceConversion?: ColorSpaceConversion; imageOrientation?: ImageOrientation; premultiplyAlpha?: PremultiplyAlpha; resizeHeight?: number; resizeQuality?: ResizeQuality; resizeWidth?: number; } interface ImageBitmapRenderingContextSettings { alpha?: boolean; } interface ImageDataSettings { colorSpace?: PredefinedColorSpace; } interface ImageEncodeOptions { quality?: number; type?: string; } interface ImportMeta { url: string; } interface InputEventInit extends UIEventInit { data?: string | null; dataTransfer?: DataTransfer | null; inputType?: string; isComposing?: boolean; targetRanges?: StaticRange[]; } interface IntersectionObserverEntryInit { boundingClientRect: DOMRectInit; intersectionRatio: number; intersectionRect: DOMRectInit; isIntersecting: boolean; rootBounds: DOMRectInit | null; target: Element; time: DOMHighResTimeStamp; } interface IntersectionObserverInit { root?: Element | Document | null; rootMargin?: string; threshold?: number | number[]; } interface JsonWebKey { alg?: string; crv?: string; d?: string; dp?: string; dq?: string; e?: string; ext?: boolean; k?: string; key_ops?: string[]; kty?: string; n?: string; oth?: RsaOtherPrimesInfo[]; p?: string; q?: string; qi?: string; use?: string; x?: string; y?: string; } interface KeyAlgorithm { name: string; } interface KeyboardEventInit extends EventModifierInit { /** @deprecated */ charCode?: number; code?: string; isComposing?: boolean; key?: string; /** @deprecated */ keyCode?: number; location?: number; repeat?: boolean; } interface Keyframe { composite?: CompositeOperationOrAuto; easing?: string; offset?: number | null; [property: string]: string | number | null | undefined; } interface KeyframeAnimationOptions extends KeyframeEffectOptions { id?: string; } interface KeyframeEffectOptions extends EffectTiming { composite?: CompositeOperation; iterationComposite?: IterationCompositeOperation; pseudoElement?: string | null; } interface LockInfo { clientId?: string; mode?: LockMode; name?: string; } interface LockManagerSnapshot { held?: LockInfo[]; pending?: LockInfo[]; } interface LockOptions { ifAvailable?: boolean; mode?: LockMode; signal?: AbortSignal; steal?: boolean; } interface MIDIConnectionEventInit extends EventInit { port?: MIDIPort; } interface MIDIMessageEventInit extends EventInit { data?: Uint8Array; } interface MIDIOptions { software?: boolean; sysex?: boolean; } interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo { configuration?: MediaDecodingConfiguration; } interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { configuration?: MediaEncodingConfiguration; } interface MediaCapabilitiesInfo { powerEfficient: boolean; smooth: boolean; supported: boolean; } interface MediaConfiguration { audio?: AudioConfiguration; video?: VideoConfiguration; } interface MediaDecodingConfiguration extends MediaConfiguration { type: MediaDecodingType; } interface MediaElementAudioSourceOptions { mediaElement: HTMLMediaElement; } interface MediaEncodingConfiguration extends MediaConfiguration { type: MediaEncodingType; } interface MediaEncryptedEventInit extends EventInit { initData?: ArrayBuffer | null; initDataType?: string; } interface MediaImage { sizes?: string; src: string; type?: string; } interface MediaKeyMessageEventInit extends EventInit { message: ArrayBuffer; messageType: MediaKeyMessageType; } interface MediaKeySystemConfiguration { audioCapabilities?: MediaKeySystemMediaCapability[]; distinctiveIdentifier?: MediaKeysRequirement; initDataTypes?: string[]; label?: string; persistentState?: MediaKeysRequirement; sessionTypes?: string[]; videoCapabilities?: MediaKeySystemMediaCapability[]; } interface MediaKeySystemMediaCapability { contentType?: string; encryptionScheme?: string | null; robustness?: string; } interface MediaMetadataInit { album?: string; artist?: string; artwork?: MediaImage[]; title?: string; } interface MediaPositionState { duration?: number; playbackRate?: number; position?: number; } interface MediaQueryListEventInit extends EventInit { matches?: boolean; media?: string; } interface MediaRecorderOptions { audioBitsPerSecond?: number; bitsPerSecond?: number; mimeType?: string; videoBitsPerSecond?: number; } interface MediaSessionActionDetails { action: MediaSessionAction; fastSeek?: boolean; seekOffset?: number; seekTime?: number; } interface MediaStreamAudioSourceOptions { mediaStream: MediaStream; } interface MediaStreamConstraints { audio?: boolean | MediaTrackConstraints; peerIdentity?: string; preferCurrentTab?: boolean; video?: boolean | MediaTrackConstraints; } interface MediaStreamTrackEventInit extends EventInit { track: MediaStreamTrack; } interface MediaTrackCapabilities { aspectRatio?: DoubleRange; autoGainControl?: boolean[]; channelCount?: ULongRange; deviceId?: string; displaySurface?: string; echoCancellation?: boolean[]; facingMode?: string[]; frameRate?: DoubleRange; groupId?: string; height?: ULongRange; noiseSuppression?: boolean[]; sampleRate?: ULongRange; sampleSize?: ULongRange; width?: ULongRange; } interface MediaTrackConstraintSet { aspectRatio?: ConstrainDouble; autoGainControl?: ConstrainBoolean; channelCount?: ConstrainULong; deviceId?: ConstrainDOMString; displaySurface?: ConstrainDOMString; echoCancellation?: ConstrainBoolean; facingMode?: ConstrainDOMString; frameRate?: ConstrainDouble; groupId?: ConstrainDOMString; height?: ConstrainULong; noiseSuppression?: ConstrainBoolean; sampleRate?: ConstrainULong; sampleSize?: ConstrainULong; width?: ConstrainULong; } interface MediaTrackConstraints extends MediaTrackConstraintSet { advanced?: MediaTrackConstraintSet[]; } interface MediaTrackSettings { aspectRatio?: number; autoGainControl?: boolean; channelCount?: number; deviceId?: string; displaySurface?: string; echoCancellation?: boolean; facingMode?: string; frameRate?: number; groupId?: string; height?: number; noiseSuppression?: boolean; sampleRate?: number; sampleSize?: number; width?: number; } interface MediaTrackSupportedConstraints { aspectRatio?: boolean; autoGainControl?: boolean; channelCount?: boolean; deviceId?: boolean; displaySurface?: boolean; echoCancellation?: boolean; facingMode?: boolean; frameRate?: boolean; groupId?: boolean; height?: boolean; noiseSuppression?: boolean; sampleRate?: boolean; sampleSize?: boolean; width?: boolean; } interface MessageEventInit extends EventInit { data?: T; lastEventId?: string; origin?: string; ports?: MessagePort[]; source?: MessageEventSource | null; } interface MouseEventInit extends EventModifierInit { button?: number; buttons?: number; clientX?: number; clientY?: number; movementX?: number; movementY?: number; relatedTarget?: EventTarget | null; screenX?: number; screenY?: number; } interface MultiCacheQueryOptions extends CacheQueryOptions { cacheName?: string; } interface MutationObserverInit { /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ attributeFilter?: string[]; /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ attributeOldValue?: boolean; /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ attributes?: boolean; /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ characterData?: boolean; /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ characterDataOldValue?: boolean; /** Set to true if mutations to target's children are to be observed. */ childList?: boolean; /** Set to true if mutations to not just target, but also target's descendants are to be observed. */ subtree?: boolean; } interface NavigationPreloadState { enabled?: boolean; headerValue?: string; } interface NotificationAction { action: string; icon?: string; title: string; } interface NotificationOptions { actions?: NotificationAction[]; badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; image?: string; lang?: string; renotify?: boolean; requireInteraction?: boolean; silent?: boolean; tag?: string; timestamp?: EpochTimeStamp; vibrate?: VibratePattern; } interface OfflineAudioCompletionEventInit extends EventInit { renderedBuffer: AudioBuffer; } interface OfflineAudioContextOptions { length: number; numberOfChannels?: number; sampleRate: number; } interface OptionalEffectTiming { delay?: number; direction?: PlaybackDirection; duration?: number | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface OscillatorOptions extends AudioNodeOptions { detune?: number; frequency?: number; periodicWave?: PeriodicWave; type?: OscillatorType; } interface PageTransitionEventInit extends EventInit { persisted?: boolean; } interface PannerOptions extends AudioNodeOptions { coneInnerAngle?: number; coneOuterAngle?: number; coneOuterGain?: number; distanceModel?: DistanceModelType; maxDistance?: number; orientationX?: number; orientationY?: number; orientationZ?: number; panningModel?: PanningModelType; positionX?: number; positionY?: number; positionZ?: number; refDistance?: number; rolloffFactor?: number; } interface PaymentCurrencyAmount { currency: string; value: string; } interface PaymentDetailsBase { displayItems?: PaymentItem[]; modifiers?: PaymentDetailsModifier[]; } interface PaymentDetailsInit extends PaymentDetailsBase { id?: string; total: PaymentItem; } interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; data?: any; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { paymentMethodErrors?: any; total?: PaymentItem; } interface PaymentItem { amount: PaymentCurrencyAmount; label: string; pending?: boolean; } interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { methodDetails?: any; methodName?: string; } interface PaymentMethodData { data?: any; supportedMethods: string; } interface PaymentRequestUpdateEventInit extends EventInit { } interface PaymentValidationErrors { error?: string; paymentMethod?: any; } interface Pbkdf2Params extends Algorithm { hash: HashAlgorithmIdentifier; iterations: number; salt: BufferSource; } interface PerformanceMarkOptions { detail?: any; startTime?: DOMHighResTimeStamp; } interface PerformanceMeasureOptions { detail?: any; duration?: DOMHighResTimeStamp; end?: string | DOMHighResTimeStamp; start?: string | DOMHighResTimeStamp; } interface PerformanceObserverInit { buffered?: boolean; entryTypes?: string[]; type?: string; } interface PeriodicWaveConstraints { disableNormalization?: boolean; } interface PeriodicWaveOptions extends PeriodicWaveConstraints { imag?: number[] | Float32Array; real?: number[] | Float32Array; } interface PermissionDescriptor { name: PermissionName; } interface PictureInPictureEventInit extends EventInit { pictureInPictureWindow: PictureInPictureWindow; } interface PointerEventInit extends MouseEventInit { coalescedEvents?: PointerEvent[]; height?: number; isPrimary?: boolean; pointerId?: number; pointerType?: string; predictedEvents?: PointerEvent[]; pressure?: number; tangentialPressure?: number; tiltX?: number; tiltY?: number; twist?: number; width?: number; } interface PopStateEventInit extends EventInit { state?: any; } interface PositionOptions { enableHighAccuracy?: boolean; maximumAge?: number; timeout?: number; } interface ProgressEventInit extends EventInit { lengthComputable?: boolean; loaded?: number; total?: number; } interface PromiseRejectionEventInit extends EventInit { promise: Promise; reason?: any; } interface PropertyIndexedKeyframes { composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[]; easing?: string | string[]; offset?: number | (number | null)[]; [property: string]: string | string[] | number | null | (number | null)[] | undefined; } interface PublicKeyCredentialCreationOptions { attestation?: AttestationConveyancePreference; authenticatorSelection?: AuthenticatorSelectionCriteria; challenge: BufferSource; excludeCredentials?: PublicKeyCredentialDescriptor[]; extensions?: AuthenticationExtensionsClientInputs; pubKeyCredParams: PublicKeyCredentialParameters[]; rp: PublicKeyCredentialRpEntity; timeout?: number; user: PublicKeyCredentialUserEntity; } interface PublicKeyCredentialDescriptor { id: BufferSource; transports?: AuthenticatorTransport[]; type: PublicKeyCredentialType; } interface PublicKeyCredentialEntity { name: string; } interface PublicKeyCredentialParameters { alg: COSEAlgorithmIdentifier; type: PublicKeyCredentialType; } interface PublicKeyCredentialRequestOptions { allowCredentials?: PublicKeyCredentialDescriptor[]; challenge: BufferSource; extensions?: AuthenticationExtensionsClientInputs; rpId?: string; timeout?: number; userVerification?: UserVerificationRequirement; } interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { id?: string; } interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { displayName: string; id: BufferSource; } interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; keys?: Record; } interface PushSubscriptionOptionsInit { applicationServerKey?: BufferSource | string | null; userVisibleOnly?: boolean; } interface QueuingStrategy { highWaterMark?: number; size?: QueuingStrategySize; } interface QueuingStrategyInit { /** * Creates a new ByteLengthQueuingStrategy with the provided high water mark. * * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. */ highWaterMark: number; } interface RTCAnswerOptions extends RTCOfferAnswerOptions { } interface RTCCertificateExpiration { expires?: number; } interface RTCConfiguration { bundlePolicy?: RTCBundlePolicy; certificates?: RTCCertificate[]; iceCandidatePoolSize?: number; iceServers?: RTCIceServer[]; iceTransportPolicy?: RTCIceTransportPolicy; rtcpMuxPolicy?: RTCRtcpMuxPolicy; } interface RTCDTMFToneChangeEventInit extends EventInit { tone?: string; } interface RTCDataChannelEventInit extends EventInit { channel: RTCDataChannel; } interface RTCDataChannelInit { id?: number; maxPacketLifeTime?: number; maxRetransmits?: number; negotiated?: boolean; ordered?: boolean; protocol?: string; } interface RTCDtlsFingerprint { algorithm?: string; value?: string; } interface RTCEncodedAudioFrameMetadata { contributingSources?: number[]; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata { contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; spatialIndex?: number; synchronizationSource?: number; temporalIndex?: number; width?: number; } interface RTCErrorEventInit extends EventInit { error: RTCError; } interface RTCErrorInit { errorDetail: RTCErrorDetailType; httpRequestStatusCode?: number; receivedAlert?: number; sctpCauseCode?: number; sdpLineNumber?: number; sentAlert?: number; } interface RTCIceCandidateInit { candidate?: string; sdpMLineIndex?: number | null; sdpMid?: string | null; usernameFragment?: string | null; } interface RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; bytesReceived?: number; bytesSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; remoteCandidateId: string; requestsReceived?: number; requestsSent?: number; responsesReceived?: number; responsesSent?: number; state: RTCStatsIceCandidatePairState; totalRoundTripTime?: number; transportId: string; } interface RTCIceServer { credential?: string; urls: string | string[]; username?: string; } interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { audioLevel?: number; bytesReceived?: number; concealedSamples?: number; concealmentEvents?: number; decoderImplementation?: string; estimatedPlayoutTimestamp?: DOMHighResTimeStamp; fecPacketsDiscarded?: number; fecPacketsReceived?: number; firCount?: number; frameHeight?: number; frameWidth?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; keyFramesDecoded?: number; kind: string; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; nackCount?: number; packetsDiscarded?: number; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; silentConcealedSamples?: number; totalAudioEnergy?: number; totalDecodeTime?: number; totalInterFrameDelay?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; totalSquaredInterFrameDelay?: number; } interface RTCLocalSessionDescriptionInit { sdp?: string; type?: RTCSdpType; } interface RTCOfferAnswerOptions { } interface RTCOfferOptions extends RTCOfferAnswerOptions { iceRestart?: boolean; offerToReceiveAudio?: boolean; offerToReceiveVideo?: boolean; } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { firCount?: number; frameHeight?: number; frameWidth?: number; framesEncoded?: number; framesPerSecond?: number; framesSent?: number; headerBytesSent?: number; hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; nackCount?: number; pliCount?: number; qpSum?: number; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; targetBitrate?: number; totalEncodeTime?: number; totalEncodedBytesTarget?: number; totalPacketSendDelay?: number; } interface RTCPeerConnectionIceErrorEventInit extends EventInit { address?: string | null; errorCode: number; errorText?: string; port?: number | null; url?: string; } interface RTCPeerConnectionIceEventInit extends EventInit { candidate?: RTCIceCandidate | null; url?: string | null; } interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { jitter?: number; packetsLost?: number; packetsReceived?: number; } interface RTCRtcpParameters { cname?: string; reducedSize?: boolean; } interface RTCRtpCapabilities { codecs: RTCRtpCodecCapability[]; headerExtensions: RTCRtpHeaderExtensionCapability[]; } interface RTCRtpCodecCapability { channels?: number; clockRate: number; mimeType: string; sdpFmtpLine?: string; } interface RTCRtpCodecParameters { channels?: number; clockRate: number; mimeType: string; payloadType: number; sdpFmtpLine?: string; } interface RTCRtpCodingParameters { rid?: string; } interface RTCRtpContributingSource { audioLevel?: number; rtpTimestamp: number; source: number; timestamp: DOMHighResTimeStamp; } interface RTCRtpEncodingParameters extends RTCRtpCodingParameters { active?: boolean; maxBitrate?: number; maxFramerate?: number; networkPriority?: RTCPriorityType; priority?: RTCPriorityType; scaleResolutionDownBy?: number; } interface RTCRtpHeaderExtensionCapability { uri?: string; } interface RTCRtpHeaderExtensionParameters { encrypted?: boolean; id: number; uri: string; } interface RTCRtpParameters { codecs: RTCRtpCodecParameters[]; headerExtensions: RTCRtpHeaderExtensionParameters[]; rtcp: RTCRtcpParameters; } interface RTCRtpReceiveParameters extends RTCRtpParameters { } interface RTCRtpSendParameters extends RTCRtpParameters { degradationPreference?: RTCDegradationPreference; encodings: RTCRtpEncodingParameters[]; transactionId: string; } interface RTCRtpStreamStats extends RTCStats { codecId?: string; kind: string; ssrc: number; transportId?: string; } interface RTCRtpSynchronizationSource extends RTCRtpContributingSource { } interface RTCRtpTransceiverInit { direction?: RTCRtpTransceiverDirection; sendEncodings?: RTCRtpEncodingParameters[]; streams?: MediaStream[]; } interface RTCSentRtpStreamStats extends RTCRtpStreamStats { bytesSent?: number; packetsSent?: number; } interface RTCSessionDescriptionInit { sdp?: string; type: RTCSdpType; } interface RTCStats { id: string; timestamp: DOMHighResTimeStamp; type: RTCStatsType; } interface RTCTrackEventInit extends EventInit { receiver: RTCRtpReceiver; streams?: MediaStream[]; track: MediaStreamTrack; transceiver: RTCRtpTransceiver; } interface RTCTransportStats extends RTCStats { bytesReceived?: number; bytesSent?: number; dtlsCipher?: string; dtlsState: RTCDtlsTransportState; localCertificateId?: string; remoteCertificateId?: string; selectedCandidatePairId?: string; srtpCipher?: string; tlsVersion?: string; } interface ReadableStreamGetReaderOptions { /** * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. * * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. */ mode?: ReadableStreamReaderMode; } interface ReadableStreamReadDoneResult { done: true; value?: T; } interface ReadableStreamReadValueResult { done: false; value: T; } interface ReadableWritablePair { readable: ReadableStream; /** * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. */ writable: WritableStream; } interface RegistrationOptions { scope?: string; type?: WorkerType; updateViaCache?: ServiceWorkerUpdateViaCache; } interface RequestInit { /** A BodyInit object or null to set request's body. */ body?: BodyInit | null; /** A string indicating how the request will interact with the browser's cache to set request's cache. */ cache?: RequestCache; /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ credentials?: RequestCredentials; /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ headers?: HeadersInit; /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ integrity?: string; /** A boolean to set request's keepalive. */ keepalive?: boolean; /** A string to set request's method. */ method?: string; /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ mode?: RequestMode; /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ redirect?: RequestRedirect; /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ referrer?: string; /** A referrer policy to set request's referrerPolicy. */ referrerPolicy?: ReferrerPolicy; /** An AbortSignal to set request's signal. */ signal?: AbortSignal | null; /** Can only be null. Used to disassociate request from any Window. */ window?: null; } interface ResizeObserverOptions { box?: ResizeObserverBoxOptions; } interface ResponseInit { headers?: HeadersInit; status?: number; statusText?: string; } interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { hash: KeyAlgorithm; } interface RsaHashedKeyGenParams extends RsaKeyGenParams { hash: HashAlgorithmIdentifier; } interface RsaKeyAlgorithm extends KeyAlgorithm { modulusLength: number; publicExponent: BigInteger; } interface RsaKeyGenParams extends Algorithm { modulusLength: number; publicExponent: BigInteger; } interface RsaOaepParams extends Algorithm { label?: BufferSource; } interface RsaOtherPrimesInfo { d?: string; r?: string; t?: string; } interface RsaPssParams extends Algorithm { saltLength: number; } interface SVGBoundingBoxOptions { clipped?: boolean; fill?: boolean; markers?: boolean; stroke?: boolean; } interface ScrollIntoViewOptions extends ScrollOptions { block?: ScrollLogicalPosition; inline?: ScrollLogicalPosition; } interface ScrollOptions { behavior?: ScrollBehavior; } interface ScrollToOptions extends ScrollOptions { left?: number; top?: number; } interface SecurityPolicyViolationEventInit extends EventInit { blockedURI?: string; columnNumber?: number; disposition: SecurityPolicyViolationEventDisposition; documentURI: string; effectiveDirective: string; lineNumber?: number; originalPolicy: string; referrer?: string; sample?: string; sourceFile?: string; statusCode: number; violatedDirective: string; } interface ShadowRootInit { delegatesFocus?: boolean; mode: ShadowRootMode; slotAssignment?: SlotAssignmentMode; } interface ShareData { files?: File[]; text?: string; title?: string; url?: string; } interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { error: SpeechSynthesisErrorCode; } interface SpeechSynthesisEventInit extends EventInit { charIndex?: number; charLength?: number; elapsedTime?: number; name?: string; utterance: SpeechSynthesisUtterance; } interface StaticRangeInit { endContainer: Node; endOffset: number; startContainer: Node; startOffset: number; } interface StereoPannerOptions extends AudioNodeOptions { pan?: number; } interface StorageEstimate { quota?: number; usage?: number; } interface StorageEventInit extends EventInit { key?: string | null; newValue?: string | null; oldValue?: string | null; storageArea?: Storage | null; url?: string; } interface StreamPipeOptions { preventAbort?: boolean; preventCancel?: boolean; /** * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. * * Errors and closures of the source and destination streams propagate as follows: * * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. * * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. * * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. * * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. * * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. */ preventClose?: boolean; signal?: AbortSignal; } interface StructuredSerializeOptions { transfer?: Transferable[]; } interface SubmitEventInit extends EventInit { submitter?: HTMLElement | null; } interface TextDecodeOptions { stream?: boolean; } interface TextDecoderOptions { fatal?: boolean; ignoreBOM?: boolean; } interface TextEncoderEncodeIntoResult { read?: number; written?: number; } interface TouchEventInit extends EventModifierInit { changedTouches?: Touch[]; targetTouches?: Touch[]; touches?: Touch[]; } interface TouchInit { altitudeAngle?: number; azimuthAngle?: number; clientX?: number; clientY?: number; force?: number; identifier: number; pageX?: number; pageY?: number; radiusX?: number; radiusY?: number; rotationAngle?: number; screenX?: number; screenY?: number; target: EventTarget; touchType?: TouchType; } interface TrackEventInit extends EventInit { track?: TextTrack | null; } interface Transformer { flush?: TransformerFlushCallback; readableType?: undefined; start?: TransformerStartCallback; transform?: TransformerTransformCallback; writableType?: undefined; } interface TransitionEventInit extends EventInit { elapsedTime?: number; propertyName?: string; pseudoElement?: string; } interface UIEventInit extends EventInit { detail?: number; view?: Window | null; /** @deprecated */ which?: number; } interface ULongRange { max?: number; min?: number; } interface UnderlyingByteSource { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableByteStreamController) => void | PromiseLike; start?: (controller: ReadableByteStreamController) => any; type: "bytes"; } interface UnderlyingDefaultSource { cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableStreamDefaultController) => void | PromiseLike; start?: (controller: ReadableStreamDefaultController) => any; type?: undefined; } interface UnderlyingSink { abort?: UnderlyingSinkAbortCallback; close?: UnderlyingSinkCloseCallback; start?: UnderlyingSinkStartCallback; type?: undefined; write?: UnderlyingSinkWriteCallback; } interface UnderlyingSource { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: UnderlyingSourcePullCallback; start?: UnderlyingSourceStartCallback; type?: ReadableStreamType; } interface ValidityStateFlags { badInput?: boolean; customError?: boolean; patternMismatch?: boolean; rangeOverflow?: boolean; rangeUnderflow?: boolean; stepMismatch?: boolean; tooLong?: boolean; tooShort?: boolean; typeMismatch?: boolean; valueMissing?: boolean; } interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; primaries?: VideoColorPrimaries | null; transfer?: VideoTransferCharacteristics | null; } interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; contentType: string; framerate: number; hdrMetadataType?: HdrMetadataType; height: number; scalabilityMode?: string; transferFunction?: TransferFunction; width: number; } interface VideoFrameCallbackMetadata { captureTime?: DOMHighResTimeStamp; expectedDisplayTime: DOMHighResTimeStamp; height: number; mediaTime: number; presentationTime: DOMHighResTimeStamp; presentedFrames: number; processingDuration?: number; receiveTime?: DOMHighResTimeStamp; rtpTimestamp?: number; width: number; } interface WaveShaperOptions extends AudioNodeOptions { curve?: number[] | Float32Array; oversample?: OverSampleType; } interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; depth?: boolean; desynchronized?: boolean; failIfMajorPerformanceCaveat?: boolean; powerPreference?: WebGLPowerPreference; premultipliedAlpha?: boolean; preserveDrawingBuffer?: boolean; stencil?: boolean; } interface WebGLContextEventInit extends EventInit { statusMessage?: string; } interface WheelEventInit extends MouseEventInit { deltaMode?: number; deltaX?: number; deltaY?: number; deltaZ?: number; } interface WindowPostMessageOptions extends StructuredSerializeOptions { targetOrigin?: string; } interface WorkerOptions { credentials?: RequestCredentials; name?: string; type?: WorkerType; } interface WorkletOptions { credentials?: RequestCredentials; } type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; }; declare var NodeFilter: { readonly FILTER_ACCEPT: 1; readonly FILTER_REJECT: 2; readonly FILTER_SKIP: 3; readonly SHOW_ALL: 0xFFFFFFFF; readonly SHOW_ELEMENT: 0x1; readonly SHOW_ATTRIBUTE: 0x2; readonly SHOW_TEXT: 0x4; readonly SHOW_CDATA_SECTION: 0x8; readonly SHOW_ENTITY_REFERENCE: 0x10; readonly SHOW_ENTITY: 0x20; readonly SHOW_PROCESSING_INSTRUCTION: 0x40; readonly SHOW_COMMENT: 0x80; readonly SHOW_DOCUMENT: 0x100; readonly SHOW_DOCUMENT_TYPE: 0x200; readonly SHOW_DOCUMENT_FRAGMENT: 0x400; readonly SHOW_NOTATION: 0x800; }; type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; }; /** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */ interface ANGLE_instanced_arrays { drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; } interface ARIAMixin { ariaAtomic: string | null; ariaAutoComplete: string | null; ariaBusy: string | null; ariaChecked: string | null; ariaColCount: string | null; ariaColIndex: string | null; ariaColSpan: string | null; ariaCurrent: string | null; ariaDisabled: string | null; ariaExpanded: string | null; ariaHasPopup: string | null; ariaHidden: string | null; ariaInvalid: string | null; ariaKeyShortcuts: string | null; ariaLabel: string | null; ariaLevel: string | null; ariaLive: string | null; ariaModal: string | null; ariaMultiLine: string | null; ariaMultiSelectable: string | null; ariaOrientation: string | null; ariaPlaceholder: string | null; ariaPosInSet: string | null; ariaPressed: string | null; ariaReadOnly: string | null; ariaRequired: string | null; ariaRoleDescription: string | null; ariaRowCount: string | null; ariaRowIndex: string | null; ariaRowSpan: string | null; ariaSelected: string | null; ariaSetSize: string | null; ariaSort: string | null; ariaValueMax: string | null; ariaValueMin: string | null; ariaValueNow: string | null; ariaValueText: string | null; role: string | null; } /** A controller object that allows you to abort one or more DOM requests as and when desired. */ interface AbortController { /** Returns the AbortSignal object associated with this object. */ readonly signal: AbortSignal; /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */ abort(reason?: any): void; } declare var AbortController: { prototype: AbortController; new(): AbortController; }; interface AbortSignalEventMap { "abort": Event; } /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */ interface AbortSignal extends EventTarget { /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */ readonly aborted: boolean; onabort: ((this: AbortSignal, ev: Event) => any) | null; readonly reason: any; throwIfAborted(): void; addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AbortSignal: { prototype: AbortSignal; new(): AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }; interface AbstractRange { /** Returns true if range is collapsed, and false otherwise. */ readonly collapsed: boolean; /** Returns range's end node. */ readonly endContainer: Node; /** Returns range's end offset. */ readonly endOffset: number; /** Returns range's start node. */ readonly startContainer: Node; /** Returns range's start offset. */ readonly startOffset: number; } declare var AbstractRange: { prototype: AbstractRange; new(): AbstractRange; }; interface AbstractWorkerEventMap { "error": ErrorEvent; } interface AbstractWorker { onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */ interface AnalyserNode extends AudioNode { fftSize: number; readonly frequencyBinCount: number; maxDecibels: number; minDecibels: number; smoothingTimeConstant: number; getByteFrequencyData(array: Uint8Array): void; getByteTimeDomainData(array: Uint8Array): void; getFloatFrequencyData(array: Float32Array): void; getFloatTimeDomainData(array: Float32Array): void; } declare var AnalyserNode: { prototype: AnalyserNode; new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; }; interface Animatable { animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; getAnimations(options?: GetAnimationsOptions): Animation[]; } interface AnimationEventMap { "cancel": AnimationPlaybackEvent; "finish": AnimationPlaybackEvent; "remove": Event; } interface Animation extends EventTarget { currentTime: CSSNumberish | null; effect: AnimationEffect | null; readonly finished: Promise; id: string; oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; onremove: ((this: Animation, ev: Event) => any) | null; readonly pending: boolean; readonly playState: AnimationPlayState; playbackRate: number; readonly ready: Promise; readonly replaceState: AnimationReplaceState; startTime: CSSNumberish | null; timeline: AnimationTimeline | null; cancel(): void; commitStyles(): void; finish(): void; pause(): void; persist(): void; play(): void; reverse(): void; updatePlaybackRate(playbackRate: number): void; addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Animation: { prototype: Animation; new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; }; interface AnimationEffect { getComputedTiming(): ComputedEffectTiming; getTiming(): EffectTiming; updateTiming(timing?: OptionalEffectTiming): void; } declare var AnimationEffect: { prototype: AnimationEffect; new(): AnimationEffect; }; /** Events providing information related to animations. */ interface AnimationEvent extends Event { readonly animationName: string; readonly elapsedTime: number; readonly pseudoElement: string; } declare var AnimationEvent: { prototype: AnimationEvent; new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; }; interface AnimationFrameProvider { cancelAnimationFrame(handle: number): void; requestAnimationFrame(callback: FrameRequestCallback): number; } interface AnimationPlaybackEvent extends Event { readonly currentTime: CSSNumberish | null; readonly timelineTime: CSSNumberish | null; } declare var AnimationPlaybackEvent: { prototype: AnimationPlaybackEvent; new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; }; interface AnimationTimeline { readonly currentTime: number | null; } declare var AnimationTimeline: { prototype: AnimationTimeline; new(): AnimationTimeline; }; /** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */ interface Attr extends Node { readonly localName: string; readonly name: string; readonly namespaceURI: string | null; readonly ownerDocument: Document; readonly ownerElement: Element | null; readonly prefix: string | null; /** @deprecated */ readonly specified: boolean; value: string; } declare var Attr: { prototype: Attr; new(): Attr; }; /** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */ interface AudioBuffer { readonly duration: number; readonly length: number; readonly numberOfChannels: number; readonly sampleRate: number; copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; getChannelData(channel: number): Float32Array; } declare var AudioBuffer: { prototype: AudioBuffer; new(options: AudioBufferOptions): AudioBuffer; }; /** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */ interface AudioBufferSourceNode extends AudioScheduledSourceNode { buffer: AudioBuffer | null; readonly detune: AudioParam; loop: boolean; loopEnd: number; loopStart: number; readonly playbackRate: AudioParam; start(when?: number, offset?: number, duration?: number): void; addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioBufferSourceNode: { prototype: AudioBufferSourceNode; new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; }; /** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */ interface AudioContext extends BaseAudioContext { readonly baseLatency: number; readonly outputLatency: number; close(): Promise; createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; createMediaStreamDestination(): MediaStreamAudioDestinationNode; createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; getOutputTimestamp(): AudioTimestamp; resume(): Promise; suspend(): Promise; addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioContext: { prototype: AudioContext; new(contextOptions?: AudioContextOptions): AudioContext; }; /** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */ interface AudioDestinationNode extends AudioNode { readonly maxChannelCount: number; } declare var AudioDestinationNode: { prototype: AudioDestinationNode; new(): AudioDestinationNode; }; /** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */ interface AudioListener { readonly forwardX: AudioParam; readonly forwardY: AudioParam; readonly forwardZ: AudioParam; readonly positionX: AudioParam; readonly positionY: AudioParam; readonly positionZ: AudioParam; readonly upX: AudioParam; readonly upY: AudioParam; readonly upZ: AudioParam; /** @deprecated */ setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; /** @deprecated */ setPosition(x: number, y: number, z: number): void; } declare var AudioListener: { prototype: AudioListener; new(): AudioListener; }; /** A generic interface for representing an audio processing module. Examples include: */ interface AudioNode extends EventTarget { channelCount: number; channelCountMode: ChannelCountMode; channelInterpretation: ChannelInterpretation; readonly context: BaseAudioContext; readonly numberOfInputs: number; readonly numberOfOutputs: number; connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode; connect(destinationParam: AudioParam, output?: number): void; disconnect(): void; disconnect(output: number): void; disconnect(destinationNode: AudioNode): void; disconnect(destinationNode: AudioNode, output: number): void; disconnect(destinationNode: AudioNode, output: number, input: number): void; disconnect(destinationParam: AudioParam): void; disconnect(destinationParam: AudioParam, output: number): void; } declare var AudioNode: { prototype: AudioNode; new(): AudioNode; }; /** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */ interface AudioParam { automationRate: AutomationRate; readonly defaultValue: number; readonly maxValue: number; readonly minValue: number; value: number; cancelAndHoldAtTime(cancelTime: number): AudioParam; cancelScheduledValues(cancelTime: number): AudioParam; exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; linearRampToValueAtTime(value: number, endTime: number): AudioParam; setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; setValueAtTime(value: number, startTime: number): AudioParam; setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; } declare var AudioParam: { prototype: AudioParam; new(): AudioParam; }; interface AudioParamMap { forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; } declare var AudioParamMap: { prototype: AudioParamMap; new(): AudioParamMap; }; /** * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet. */ interface AudioProcessingEvent extends Event { /** @deprecated */ readonly inputBuffer: AudioBuffer; /** @deprecated */ readonly outputBuffer: AudioBuffer; /** @deprecated */ readonly playbackTime: number; } /** @deprecated */ declare var AudioProcessingEvent: { prototype: AudioProcessingEvent; new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; }; interface AudioScheduledSourceNodeEventMap { "ended": Event; } interface AudioScheduledSourceNode extends AudioNode { onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; start(when?: number): void; stop(when?: number): void; addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioScheduledSourceNode: { prototype: AudioScheduledSourceNode; new(): AudioScheduledSourceNode; }; /** Available only in secure contexts. */ interface AudioWorklet extends Worklet { } declare var AudioWorklet: { prototype: AudioWorklet; new(): AudioWorklet; }; interface AudioWorkletNodeEventMap { "processorerror": Event; } /** Available only in secure contexts. */ interface AudioWorkletNode extends AudioNode { onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null; readonly parameters: AudioParamMap; readonly port: MessagePort; addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioWorkletNode: { prototype: AudioWorkletNode; new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode; }; /** Available only in secure contexts. */ interface AuthenticatorAssertionResponse extends AuthenticatorResponse { readonly authenticatorData: ArrayBuffer; readonly signature: ArrayBuffer; readonly userHandle: ArrayBuffer | null; } declare var AuthenticatorAssertionResponse: { prototype: AuthenticatorAssertionResponse; new(): AuthenticatorAssertionResponse; }; /** Available only in secure contexts. */ interface AuthenticatorAttestationResponse extends AuthenticatorResponse { readonly attestationObject: ArrayBuffer; getAuthenticatorData(): ArrayBuffer; getPublicKey(): ArrayBuffer | null; getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; getTransports(): string[]; } declare var AuthenticatorAttestationResponse: { prototype: AuthenticatorAttestationResponse; new(): AuthenticatorAttestationResponse; }; /** Available only in secure contexts. */ interface AuthenticatorResponse { readonly clientDataJSON: ArrayBuffer; } declare var AuthenticatorResponse: { prototype: AuthenticatorResponse; new(): AuthenticatorResponse; }; interface BarProp { readonly visible: boolean; } declare var BarProp: { prototype: BarProp; new(): BarProp; }; interface BaseAudioContextEventMap { "statechange": Event; } interface BaseAudioContext extends EventTarget { /** Available only in secure contexts. */ readonly audioWorklet: AudioWorklet; readonly currentTime: number; readonly destination: AudioDestinationNode; readonly listener: AudioListener; onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; readonly sampleRate: number; readonly state: AudioContextState; createAnalyser(): AnalyserNode; createBiquadFilter(): BiquadFilterNode; createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; createBufferSource(): AudioBufferSourceNode; createChannelMerger(numberOfInputs?: number): ChannelMergerNode; createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; createConstantSource(): ConstantSourceNode; createConvolver(): ConvolverNode; createDelay(maxDelayTime?: number): DelayNode; createDynamicsCompressor(): DynamicsCompressorNode; createGain(): GainNode; createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; createOscillator(): OscillatorNode; createPanner(): PannerNode; createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; /** @deprecated */ createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; createStereoPanner(): StereoPannerNode; createWaveShaper(): WaveShaperNode; decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise; addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BaseAudioContext: { prototype: BaseAudioContext; new(): BaseAudioContext; }; /** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */ interface BeforeUnloadEvent extends Event { returnValue: any; } declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; }; /** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */ interface BiquadFilterNode extends AudioNode { readonly Q: AudioParam; readonly detune: AudioParam; readonly frequency: AudioParam; readonly gain: AudioParam; type: BiquadFilterType; getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; } declare var BiquadFilterNode: { prototype: BiquadFilterNode; new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode; }; /** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */ interface Blob { readonly size: number; readonly type: string; arrayBuffer(): Promise; slice(start?: number, end?: number, contentType?: string): Blob; stream(): ReadableStream; text(): Promise; } declare var Blob: { prototype: Blob; new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }; interface BlobEvent extends Event { readonly data: Blob; readonly timecode: DOMHighResTimeStamp; } declare var BlobEvent: { prototype: BlobEvent; new(type: string, eventInitDict: BlobEventInit): BlobEvent; }; interface Body { readonly body: ReadableStream | null; readonly bodyUsed: boolean; arrayBuffer(): Promise; blob(): Promise; formData(): Promise; json(): Promise; text(): Promise; } interface BroadcastChannelEventMap { "message": MessageEvent; "messageerror": MessageEvent; } interface BroadcastChannel extends EventTarget { /** Returns the channel name (as passed to the constructor). */ readonly name: string; onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** Closes the BroadcastChannel object, opening it up to garbage collection. */ close(): void; /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */ postMessage(message: any): void; addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BroadcastChannel: { prototype: BroadcastChannel; new(name: string): BroadcastChannel; }; /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */ interface ByteLengthQueuingStrategy extends QueuingStrategy { readonly highWaterMark: number; readonly size: QueuingStrategySize; } declare var ByteLengthQueuingStrategy: { prototype: ByteLengthQueuingStrategy; new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; }; /** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. */ interface CDATASection extends Text { } declare var CDATASection: { prototype: CDATASection; new(): CDATASection; }; interface CSSAnimation extends Animation { readonly animationName: string; addEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CSSAnimation: { prototype: CSSAnimation; new(): CSSAnimation; }; /** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */ interface CSSConditionRule extends CSSGroupingRule { readonly conditionText: string; } declare var CSSConditionRule: { prototype: CSSConditionRule; new(): CSSConditionRule; }; interface CSSContainerRule extends CSSConditionRule { } declare var CSSContainerRule: { prototype: CSSContainerRule; new(): CSSContainerRule; }; interface CSSCounterStyleRule extends CSSRule { additiveSymbols: string; fallback: string; name: string; negative: string; pad: string; prefix: string; range: string; speakAs: string; suffix: string; symbols: string; system: string; } declare var CSSCounterStyleRule: { prototype: CSSCounterStyleRule; new(): CSSCounterStyleRule; }; interface CSSFontFaceRule extends CSSRule { readonly style: CSSStyleDeclaration; } declare var CSSFontFaceRule: { prototype: CSSFontFaceRule; new(): CSSFontFaceRule; }; interface CSSFontFeatureValuesRule extends CSSRule { fontFamily: string; } declare var CSSFontFeatureValuesRule: { prototype: CSSFontFeatureValuesRule; new(): CSSFontFeatureValuesRule; }; interface CSSFontPaletteValuesRule extends CSSRule { readonly basePalette: string; readonly fontFamily: string; readonly name: string; readonly overrideColors: string; } declare var CSSFontPaletteValuesRule: { prototype: CSSFontPaletteValuesRule; new(): CSSFontPaletteValuesRule; }; /** Any CSS at-rule that contains other rules nested within it. */ interface CSSGroupingRule extends CSSRule { readonly cssRules: CSSRuleList; deleteRule(index: number): void; insertRule(rule: string, index?: number): number; } declare var CSSGroupingRule: { prototype: CSSGroupingRule; new(): CSSGroupingRule; }; interface CSSImportRule extends CSSRule { readonly href: string; readonly layerName: string | null; readonly media: MediaList; readonly styleSheet: CSSStyleSheet; } declare var CSSImportRule: { prototype: CSSImportRule; new(): CSSImportRule; }; /** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */ interface CSSKeyframeRule extends CSSRule { keyText: string; readonly style: CSSStyleDeclaration; } declare var CSSKeyframeRule: { prototype: CSSKeyframeRule; new(): CSSKeyframeRule; }; /** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */ interface CSSKeyframesRule extends CSSRule { readonly cssRules: CSSRuleList; name: string; appendRule(rule: string): void; deleteRule(select: string): void; findRule(select: string): CSSKeyframeRule | null; [index: number]: CSSKeyframeRule; } declare var CSSKeyframesRule: { prototype: CSSKeyframesRule; new(): CSSKeyframesRule; }; interface CSSLayerBlockRule extends CSSGroupingRule { readonly name: string; } declare var CSSLayerBlockRule: { prototype: CSSLayerBlockRule; new(): CSSLayerBlockRule; }; interface CSSLayerStatementRule extends CSSRule { readonly nameList: ReadonlyArray; } declare var CSSLayerStatementRule: { prototype: CSSLayerStatementRule; new(): CSSLayerStatementRule; }; /** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */ interface CSSMediaRule extends CSSConditionRule { readonly media: MediaList; } declare var CSSMediaRule: { prototype: CSSMediaRule; new(): CSSMediaRule; }; /** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */ interface CSSNamespaceRule extends CSSRule { readonly namespaceURI: string; readonly prefix: string; } declare var CSSNamespaceRule: { prototype: CSSNamespaceRule; new(): CSSNamespaceRule; }; /** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */ interface CSSPageRule extends CSSGroupingRule { selectorText: string; readonly style: CSSStyleDeclaration; } declare var CSSPageRule: { prototype: CSSPageRule; new(): CSSPageRule; }; /** A single CSS rule. There are several types of rules, listed in the Type constants section below. */ interface CSSRule { cssText: string; readonly parentRule: CSSRule | null; readonly parentStyleSheet: CSSStyleSheet | null; /** @deprecated */ readonly type: number; readonly STYLE_RULE: 1; readonly CHARSET_RULE: 2; readonly IMPORT_RULE: 3; readonly MEDIA_RULE: 4; readonly FONT_FACE_RULE: 5; readonly PAGE_RULE: 6; readonly NAMESPACE_RULE: 10; readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; } declare var CSSRule: { prototype: CSSRule; new(): CSSRule; readonly STYLE_RULE: 1; readonly CHARSET_RULE: 2; readonly IMPORT_RULE: 3; readonly MEDIA_RULE: 4; readonly FONT_FACE_RULE: 5; readonly PAGE_RULE: 6; readonly NAMESPACE_RULE: 10; readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; }; /** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */ interface CSSRuleList { readonly length: number; item(index: number): CSSRule | null; [index: number]: CSSRule; } declare var CSSRuleList: { prototype: CSSRuleList; new(): CSSRuleList; }; /** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */ interface CSSStyleDeclaration { accentColor: string; alignContent: string; alignItems: string; alignSelf: string; alignmentBaseline: string; all: string; animation: string; animationDelay: string; animationDirection: string; animationDuration: string; animationFillMode: string; animationIterationCount: string; animationName: string; animationPlayState: string; animationTimingFunction: string; appearance: string; aspectRatio: string; backdropFilter: string; backfaceVisibility: string; background: string; backgroundAttachment: string; backgroundBlendMode: string; backgroundClip: string; backgroundColor: string; backgroundImage: string; backgroundOrigin: string; backgroundPosition: string; backgroundPositionX: string; backgroundPositionY: string; backgroundRepeat: string; backgroundSize: string; baselineShift: string; blockSize: string; border: string; borderBlock: string; borderBlockColor: string; borderBlockEnd: string; borderBlockEndColor: string; borderBlockEndStyle: string; borderBlockEndWidth: string; borderBlockStart: string; borderBlockStartColor: string; borderBlockStartStyle: string; borderBlockStartWidth: string; borderBlockStyle: string; borderBlockWidth: string; borderBottom: string; borderBottomColor: string; borderBottomLeftRadius: string; borderBottomRightRadius: string; borderBottomStyle: string; borderBottomWidth: string; borderCollapse: string; borderColor: string; borderEndEndRadius: string; borderEndStartRadius: string; borderImage: string; borderImageOutset: string; borderImageRepeat: string; borderImageSlice: string; borderImageSource: string; borderImageWidth: string; borderInline: string; borderInlineColor: string; borderInlineEnd: string; borderInlineEndColor: string; borderInlineEndStyle: string; borderInlineEndWidth: string; borderInlineStart: string; borderInlineStartColor: string; borderInlineStartStyle: string; borderInlineStartWidth: string; borderInlineStyle: string; borderInlineWidth: string; borderLeft: string; borderLeftColor: string; borderLeftStyle: string; borderLeftWidth: string; borderRadius: string; borderRight: string; borderRightColor: string; borderRightStyle: string; borderRightWidth: string; borderSpacing: string; borderStartEndRadius: string; borderStartStartRadius: string; borderStyle: string; borderTop: string; borderTopColor: string; borderTopLeftRadius: string; borderTopRightRadius: string; borderTopStyle: string; borderTopWidth: string; borderWidth: string; bottom: string; boxShadow: string; boxSizing: string; breakAfter: string; breakBefore: string; breakInside: string; captionSide: string; caretColor: string; clear: string; /** @deprecated */ clip: string; clipPath: string; clipRule: string; color: string; colorInterpolation: string; colorInterpolationFilters: string; colorScheme: string; columnCount: string; columnFill: string; columnGap: string; columnRule: string; columnRuleColor: string; columnRuleStyle: string; columnRuleWidth: string; columnSpan: string; columnWidth: string; columns: string; contain: string; containIntrinsicBlockSize: string; containIntrinsicHeight: string; containIntrinsicInlineSize: string; containIntrinsicSize: string; containIntrinsicWidth: string; container: string; containerName: string; containerType: string; content: string; contentVisibility: string; counterIncrement: string; counterReset: string; counterSet: string; cssFloat: string; cssText: string; cursor: string; direction: string; display: string; dominantBaseline: string; emptyCells: string; fill: string; fillOpacity: string; fillRule: string; filter: string; flex: string; flexBasis: string; flexDirection: string; flexFlow: string; flexGrow: string; flexShrink: string; flexWrap: string; float: string; floodColor: string; floodOpacity: string; font: string; fontFamily: string; fontFeatureSettings: string; fontKerning: string; fontOpticalSizing: string; fontPalette: string; fontSize: string; fontSizeAdjust: string; fontStretch: string; fontStyle: string; fontSynthesis: string; fontVariant: string; fontVariantAlternates: string; fontVariantCaps: string; fontVariantEastAsian: string; fontVariantLigatures: string; fontVariantNumeric: string; fontVariantPosition: string; fontVariationSettings: string; fontWeight: string; gap: string; grid: string; gridArea: string; gridAutoColumns: string; gridAutoFlow: string; gridAutoRows: string; gridColumn: string; gridColumnEnd: string; /** @deprecated This is a legacy alias of \`columnGap\`. */ gridColumnGap: string; gridColumnStart: string; /** @deprecated This is a legacy alias of \`gap\`. */ gridGap: string; gridRow: string; gridRowEnd: string; /** @deprecated This is a legacy alias of \`rowGap\`. */ gridRowGap: string; gridRowStart: string; gridTemplate: string; gridTemplateAreas: string; gridTemplateColumns: string; gridTemplateRows: string; height: string; hyphenateCharacter: string; hyphens: string; /** @deprecated */ imageOrientation: string; imageRendering: string; inlineSize: string; inset: string; insetBlock: string; insetBlockEnd: string; insetBlockStart: string; insetInline: string; insetInlineEnd: string; insetInlineStart: string; isolation: string; justifyContent: string; justifyItems: string; justifySelf: string; left: string; readonly length: number; letterSpacing: string; lightingColor: string; lineBreak: string; lineHeight: string; listStyle: string; listStyleImage: string; listStylePosition: string; listStyleType: string; margin: string; marginBlock: string; marginBlockEnd: string; marginBlockStart: string; marginBottom: string; marginInline: string; marginInlineEnd: string; marginInlineStart: string; marginLeft: string; marginRight: string; marginTop: string; marker: string; markerEnd: string; markerMid: string; markerStart: string; mask: string; maskClip: string; maskComposite: string; maskImage: string; maskMode: string; maskOrigin: string; maskPosition: string; maskRepeat: string; maskSize: string; maskType: string; mathStyle: string; maxBlockSize: string; maxHeight: string; maxInlineSize: string; maxWidth: string; minBlockSize: string; minHeight: string; minInlineSize: string; minWidth: string; mixBlendMode: string; objectFit: string; objectPosition: string; offset: string; offsetDistance: string; offsetPath: string; offsetRotate: string; opacity: string; order: string; orphans: string; outline: string; outlineColor: string; outlineOffset: string; outlineStyle: string; outlineWidth: string; overflow: string; overflowAnchor: string; overflowClipMargin: string; overflowWrap: string; overflowX: string; overflowY: string; overscrollBehavior: string; overscrollBehaviorBlock: string; overscrollBehaviorInline: string; overscrollBehaviorX: string; overscrollBehaviorY: string; padding: string; paddingBlock: string; paddingBlockEnd: string; paddingBlockStart: string; paddingBottom: string; paddingInline: string; paddingInlineEnd: string; paddingInlineStart: string; paddingLeft: string; paddingRight: string; paddingTop: string; pageBreakAfter: string; pageBreakBefore: string; pageBreakInside: string; paintOrder: string; readonly parentRule: CSSRule | null; perspective: string; perspectiveOrigin: string; placeContent: string; placeItems: string; placeSelf: string; pointerEvents: string; position: string; printColorAdjust: string; quotes: string; resize: string; right: string; rotate: string; rowGap: string; rubyPosition: string; scale: string; scrollBehavior: string; scrollMargin: string; scrollMarginBlock: string; scrollMarginBlockEnd: string; scrollMarginBlockStart: string; scrollMarginBottom: string; scrollMarginInline: string; scrollMarginInlineEnd: string; scrollMarginInlineStart: string; scrollMarginLeft: string; scrollMarginRight: string; scrollMarginTop: string; scrollPadding: string; scrollPaddingBlock: string; scrollPaddingBlockEnd: string; scrollPaddingBlockStart: string; scrollPaddingBottom: string; scrollPaddingInline: string; scrollPaddingInlineEnd: string; scrollPaddingInlineStart: string; scrollPaddingLeft: string; scrollPaddingRight: string; scrollPaddingTop: string; scrollSnapAlign: string; scrollSnapStop: string; scrollSnapType: string; scrollbarGutter: string; shapeImageThreshold: string; shapeMargin: string; shapeOutside: string; shapeRendering: string; stopColor: string; stopOpacity: string; stroke: string; strokeDasharray: string; strokeDashoffset: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeOpacity: string; strokeWidth: string; tabSize: string; tableLayout: string; textAlign: string; textAlignLast: string; textAnchor: string; textCombineUpright: string; textDecoration: string; textDecorationColor: string; textDecorationLine: string; textDecorationSkipInk: string; textDecorationStyle: string; textDecorationThickness: string; textEmphasis: string; textEmphasisColor: string; textEmphasisPosition: string; textEmphasisStyle: string; textIndent: string; textOrientation: string; textOverflow: string; textRendering: string; textShadow: string; textTransform: string; textUnderlineOffset: string; textUnderlinePosition: string; top: string; touchAction: string; transform: string; transformBox: string; transformOrigin: string; transformStyle: string; transition: string; transitionDelay: string; transitionDuration: string; transitionProperty: string; transitionTimingFunction: string; translate: string; unicodeBidi: string; userSelect: string; verticalAlign: string; visibility: string; /** @deprecated This is a legacy alias of \`alignContent\`. */ webkitAlignContent: string; /** @deprecated This is a legacy alias of \`alignItems\`. */ webkitAlignItems: string; /** @deprecated This is a legacy alias of \`alignSelf\`. */ webkitAlignSelf: string; /** @deprecated This is a legacy alias of \`animation\`. */ webkitAnimation: string; /** @deprecated This is a legacy alias of \`animationDelay\`. */ webkitAnimationDelay: string; /** @deprecated This is a legacy alias of \`animationDirection\`. */ webkitAnimationDirection: string; /** @deprecated This is a legacy alias of \`animationDuration\`. */ webkitAnimationDuration: string; /** @deprecated This is a legacy alias of \`animationFillMode\`. */ webkitAnimationFillMode: string; /** @deprecated This is a legacy alias of \`animationIterationCount\`. */ webkitAnimationIterationCount: string; /** @deprecated This is a legacy alias of \`animationName\`. */ webkitAnimationName: string; /** @deprecated This is a legacy alias of \`animationPlayState\`. */ webkitAnimationPlayState: string; /** @deprecated This is a legacy alias of \`animationTimingFunction\`. */ webkitAnimationTimingFunction: string; /** @deprecated This is a legacy alias of \`appearance\`. */ webkitAppearance: string; /** @deprecated This is a legacy alias of \`backfaceVisibility\`. */ webkitBackfaceVisibility: string; /** @deprecated This is a legacy alias of \`backgroundClip\`. */ webkitBackgroundClip: string; /** @deprecated This is a legacy alias of \`backgroundOrigin\`. */ webkitBackgroundOrigin: string; /** @deprecated This is a legacy alias of \`backgroundSize\`. */ webkitBackgroundSize: string; /** @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. */ webkitBorderBottomLeftRadius: string; /** @deprecated This is a legacy alias of \`borderBottomRightRadius\`. */ webkitBorderBottomRightRadius: string; /** @deprecated This is a legacy alias of \`borderRadius\`. */ webkitBorderRadius: string; /** @deprecated This is a legacy alias of \`borderTopLeftRadius\`. */ webkitBorderTopLeftRadius: string; /** @deprecated This is a legacy alias of \`borderTopRightRadius\`. */ webkitBorderTopRightRadius: string; /** @deprecated This is a legacy alias of \`boxAlign\`. */ webkitBoxAlign: string; /** @deprecated This is a legacy alias of \`boxFlex\`. */ webkitBoxFlex: string; /** @deprecated This is a legacy alias of \`boxOrdinalGroup\`. */ webkitBoxOrdinalGroup: string; /** @deprecated This is a legacy alias of \`boxOrient\`. */ webkitBoxOrient: string; /** @deprecated This is a legacy alias of \`boxPack\`. */ webkitBoxPack: string; /** @deprecated This is a legacy alias of \`boxShadow\`. */ webkitBoxShadow: string; /** @deprecated This is a legacy alias of \`boxSizing\`. */ webkitBoxSizing: string; /** @deprecated This is a legacy alias of \`filter\`. */ webkitFilter: string; /** @deprecated This is a legacy alias of \`flex\`. */ webkitFlex: string; /** @deprecated This is a legacy alias of \`flexBasis\`. */ webkitFlexBasis: string; /** @deprecated This is a legacy alias of \`flexDirection\`. */ webkitFlexDirection: string; /** @deprecated This is a legacy alias of \`flexFlow\`. */ webkitFlexFlow: string; /** @deprecated This is a legacy alias of \`flexGrow\`. */ webkitFlexGrow: string; /** @deprecated This is a legacy alias of \`flexShrink\`. */ webkitFlexShrink: string; /** @deprecated This is a legacy alias of \`flexWrap\`. */ webkitFlexWrap: string; /** @deprecated This is a legacy alias of \`justifyContent\`. */ webkitJustifyContent: string; webkitLineClamp: string; /** @deprecated This is a legacy alias of \`mask\`. */ webkitMask: string; /** @deprecated This is a legacy alias of \`maskBorder\`. */ webkitMaskBoxImage: string; /** @deprecated This is a legacy alias of \`maskBorderOutset\`. */ webkitMaskBoxImageOutset: string; /** @deprecated This is a legacy alias of \`maskBorderRepeat\`. */ webkitMaskBoxImageRepeat: string; /** @deprecated This is a legacy alias of \`maskBorderSlice\`. */ webkitMaskBoxImageSlice: string; /** @deprecated This is a legacy alias of \`maskBorderSource\`. */ webkitMaskBoxImageSource: string; /** @deprecated This is a legacy alias of \`maskBorderWidth\`. */ webkitMaskBoxImageWidth: string; /** @deprecated This is a legacy alias of \`maskClip\`. */ webkitMaskClip: string; webkitMaskComposite: string; /** @deprecated This is a legacy alias of \`maskImage\`. */ webkitMaskImage: string; /** @deprecated This is a legacy alias of \`maskOrigin\`. */ webkitMaskOrigin: string; /** @deprecated This is a legacy alias of \`maskPosition\`. */ webkitMaskPosition: string; /** @deprecated This is a legacy alias of \`maskRepeat\`. */ webkitMaskRepeat: string; /** @deprecated This is a legacy alias of \`maskSize\`. */ webkitMaskSize: string; /** @deprecated This is a legacy alias of \`order\`. */ webkitOrder: string; /** @deprecated This is a legacy alias of \`perspective\`. */ webkitPerspective: string; /** @deprecated This is a legacy alias of \`perspectiveOrigin\`. */ webkitPerspectiveOrigin: string; webkitTextFillColor: string; /** @deprecated This is a legacy alias of \`textSizeAdjust\`. */ webkitTextSizeAdjust: string; webkitTextStroke: string; webkitTextStrokeColor: string; webkitTextStrokeWidth: string; /** @deprecated This is a legacy alias of \`transform\`. */ webkitTransform: string; /** @deprecated This is a legacy alias of \`transformOrigin\`. */ webkitTransformOrigin: string; /** @deprecated This is a legacy alias of \`transformStyle\`. */ webkitTransformStyle: string; /** @deprecated This is a legacy alias of \`transition\`. */ webkitTransition: string; /** @deprecated This is a legacy alias of \`transitionDelay\`. */ webkitTransitionDelay: string; /** @deprecated This is a legacy alias of \`transitionDuration\`. */ webkitTransitionDuration: string; /** @deprecated This is a legacy alias of \`transitionProperty\`. */ webkitTransitionProperty: string; /** @deprecated This is a legacy alias of \`transitionTimingFunction\`. */ webkitTransitionTimingFunction: string; /** @deprecated This is a legacy alias of \`userSelect\`. */ webkitUserSelect: string; whiteSpace: string; widows: string; width: string; willChange: string; wordBreak: string; wordSpacing: string; /** @deprecated */ wordWrap: string; writingMode: string; zIndex: string; getPropertyPriority(property: string): string; getPropertyValue(property: string): string; item(index: number): string; removeProperty(property: string): string; setProperty(property: string, value: string | null, priority?: string): void; [index: number]: string; } declare var CSSStyleDeclaration: { prototype: CSSStyleDeclaration; new(): CSSStyleDeclaration; }; /** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */ interface CSSStyleRule extends CSSRule { selectorText: string; readonly style: CSSStyleDeclaration; } declare var CSSStyleRule: { prototype: CSSStyleRule; new(): CSSStyleRule; }; /** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */ interface CSSStyleSheet extends StyleSheet { readonly cssRules: CSSRuleList; readonly ownerRule: CSSRule | null; /** @deprecated */ readonly rules: CSSRuleList; /** @deprecated */ addRule(selector?: string, style?: string, index?: number): number; deleteRule(index: number): void; insertRule(rule: string, index?: number): number; /** @deprecated */ removeRule(index?: number): void; replace(text: string): Promise; replaceSync(text: string): void; } declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(options?: CSSStyleSheetInit): CSSStyleSheet; }; /** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */ interface CSSSupportsRule extends CSSConditionRule { } declare var CSSSupportsRule: { prototype: CSSSupportsRule; new(): CSSSupportsRule; }; interface CSSTransition extends Animation { readonly transitionProperty: string; addEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CSSTransition: { prototype: CSSTransition; new(): CSSTransition; }; /** * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. * Available only in secure contexts. */ interface Cache { add(request: RequestInfo | URL): Promise; addAll(requests: RequestInfo[]): Promise; delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; put(request: RequestInfo | URL, response: Response): Promise; } declare var Cache: { prototype: Cache; new(): Cache; }; /** * The storage for Cache objects. * Available only in secure contexts. */ interface CacheStorage { delete(cacheName: string): Promise; has(cacheName: string): Promise; keys(): Promise; match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise; open(cacheName: string): Promise; } declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; }; interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { readonly canvas: HTMLCanvasElement; requestFrame(): void; addEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CanvasCaptureMediaStreamTrack: { prototype: CanvasCaptureMediaStreamTrack; new(): CanvasCaptureMediaStreamTrack; }; interface CanvasCompositing { globalAlpha: number; globalCompositeOperation: GlobalCompositeOperation; } interface CanvasDrawImage { drawImage(image: CanvasImageSource, dx: number, dy: number): void; drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void; drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void; } interface CanvasDrawPath { beginPath(): void; clip(fillRule?: CanvasFillRule): void; clip(path: Path2D, fillRule?: CanvasFillRule): void; fill(fillRule?: CanvasFillRule): void; fill(path: Path2D, fillRule?: CanvasFillRule): void; isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; isPointInStroke(x: number, y: number): boolean; isPointInStroke(path: Path2D, x: number, y: number): boolean; stroke(): void; stroke(path: Path2D): void; } interface CanvasFillStrokeStyles { fillStyle: string | CanvasGradient | CanvasPattern; strokeStyle: string | CanvasGradient | CanvasPattern; createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; } interface CanvasFilters { filter: string; } /** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */ interface CanvasGradient { /** * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. * * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. */ addColorStop(offset: number, color: string): void; } declare var CanvasGradient: { prototype: CanvasGradient; new(): CanvasGradient; }; interface CanvasImageData { createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; createImageData(imagedata: ImageData): ImageData; getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; putImageData(imagedata: ImageData, dx: number, dy: number): void; putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void; } interface CanvasImageSmoothing { imageSmoothingEnabled: boolean; imageSmoothingQuality: ImageSmoothingQuality; } interface CanvasPath { arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; closePath(): void; ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; lineTo(x: number, y: number): void; moveTo(x: number, y: number): void; quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; rect(x: number, y: number, w: number, h: number): void; roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; } interface CanvasPathDrawingStyles { lineCap: CanvasLineCap; lineDashOffset: number; lineJoin: CanvasLineJoin; lineWidth: number; miterLimit: number; getLineDash(): number[]; setLineDash(segments: number[]): void; } /** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */ interface CanvasPattern { /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */ setTransform(transform?: DOMMatrix2DInit): void; } declare var CanvasPattern: { prototype: CanvasPattern; new(): CanvasPattern; }; interface CanvasRect { clearRect(x: number, y: number, w: number, h: number): void; fillRect(x: number, y: number, w: number, h: number): void; strokeRect(x: number, y: number, w: number, h: number): void; } /** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects. */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { readonly canvas: HTMLCanvasElement; getContextAttributes(): CanvasRenderingContext2DSettings; } declare var CanvasRenderingContext2D: { prototype: CanvasRenderingContext2D; new(): CanvasRenderingContext2D; }; interface CanvasShadowStyles { shadowBlur: number; shadowColor: string; shadowOffsetX: number; shadowOffsetY: number; } interface CanvasState { restore(): void; save(): void; } interface CanvasText { fillText(text: string, x: number, y: number, maxWidth?: number): void; measureText(text: string): TextMetrics; strokeText(text: string, x: number, y: number, maxWidth?: number): void; } interface CanvasTextDrawingStyles { direction: CanvasDirection; font: string; fontKerning: CanvasFontKerning; textAlign: CanvasTextAlign; textBaseline: CanvasTextBaseline; } interface CanvasTransform { getTransform(): DOMMatrix; resetTransform(): void; rotate(angle: number): void; scale(x: number, y: number): void; setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; setTransform(transform?: DOMMatrix2DInit): void; transform(a: number, b: number, c: number, d: number, e: number, f: number): void; translate(x: number, y: number): void; } interface CanvasUserInterface { drawFocusIfNeeded(element: Element): void; drawFocusIfNeeded(path: Path2D, element: Element): void; } /** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */ interface ChannelMergerNode extends AudioNode { } declare var ChannelMergerNode: { prototype: ChannelMergerNode; new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode; }; /** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */ interface ChannelSplitterNode extends AudioNode { } declare var ChannelSplitterNode: { prototype: ChannelSplitterNode; new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode; }; /** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. */ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { data: string; readonly length: number; readonly ownerDocument: Document; appendData(data: string): void; deleteData(offset: number, count: number): void; insertData(offset: number, data: string): void; replaceData(offset: number, count: number, data: string): void; substringData(offset: number, count: number): string; } declare var CharacterData: { prototype: CharacterData; new(): CharacterData; }; interface ChildNode extends Node { /** * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. */ after(...nodes: (Node | string)[]): void; /** * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. */ before(...nodes: (Node | string)[]): void; /** Removes node. */ remove(): void; /** * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. */ replaceWith(...nodes: (Node | string)[]): void; } /** @deprecated */ interface ClientRect extends DOMRect { } /** Available only in secure contexts. */ interface Clipboard extends EventTarget { read(): Promise; readText(): Promise; write(data: ClipboardItems): Promise; writeText(data: string): Promise; } declare var Clipboard: { prototype: Clipboard; new(): Clipboard; }; /** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */ interface ClipboardEvent extends Event { readonly clipboardData: DataTransfer | null; } declare var ClipboardEvent: { prototype: ClipboardEvent; new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; }; /** Available only in secure contexts. */ interface ClipboardItem { readonly presentationStyle: PresentationStyle; readonly types: ReadonlyArray; getType(type: string): Promise; } declare var ClipboardItem: { prototype: ClipboardItem; new(items: Record>, options?: ClipboardItemOptions): ClipboardItem; }; /** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */ interface CloseEvent extends Event { /** Returns the WebSocket connection close code provided by the server. */ readonly code: number; /** Returns the WebSocket connection close reason provided by the server. */ readonly reason: string; /** Returns true if the connection closed cleanly; false otherwise. */ readonly wasClean: boolean; } declare var CloseEvent: { prototype: CloseEvent; new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; /** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */ interface Comment extends CharacterData { } declare var Comment: { prototype: Comment; new(data?: string): Comment; }; /** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */ interface CompositionEvent extends UIEvent { readonly data: string; /** @deprecated */ initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void; } declare var CompositionEvent: { prototype: CompositionEvent; new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; }; interface ConstantSourceNode extends AudioScheduledSourceNode { readonly offset: AudioParam; addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ConstantSourceNode: { prototype: ConstantSourceNode; new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode; }; /** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */ interface ConvolverNode extends AudioNode { buffer: AudioBuffer | null; normalize: boolean; } declare var ConvolverNode: { prototype: ConvolverNode; new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; }; /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */ interface CountQueuingStrategy extends QueuingStrategy { readonly highWaterMark: number; readonly size: QueuingStrategySize; } declare var CountQueuingStrategy: { prototype: CountQueuingStrategy; new(init: QueuingStrategyInit): CountQueuingStrategy; }; /** Available only in secure contexts. */ interface Credential { readonly id: string; readonly type: string; } declare var Credential: { prototype: Credential; new(): Credential; }; /** Available only in secure contexts. */ interface CredentialsContainer { create(options?: CredentialCreationOptions): Promise; get(options?: CredentialRequestOptions): Promise; preventSilentAccess(): Promise; store(credential: Credential): Promise; } declare var CredentialsContainer: { prototype: CredentialsContainer; new(): CredentialsContainer; }; /** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */ interface Crypto { /** Available only in secure contexts. */ readonly subtle: SubtleCrypto; getRandomValues(array: T): T; /** Available only in secure contexts. */ randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`; } declare var Crypto: { prototype: Crypto; new(): Crypto; }; /** * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. * Available only in secure contexts. */ interface CryptoKey { readonly algorithm: KeyAlgorithm; readonly extractable: boolean; readonly type: KeyType; readonly usages: KeyUsage[]; } declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; }; interface CustomElementRegistry { define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; get(name: string): CustomElementConstructor | undefined; upgrade(root: Node): void; whenDefined(name: string): Promise; } declare var CustomElementRegistry: { prototype: CustomElementRegistry; new(): CustomElementRegistry; }; interface CustomEvent extends Event { /** Returns any custom data event was created with. Typically used for synthetic events. */ readonly detail: T; /** @deprecated */ initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; } declare var CustomEvent: { prototype: CustomEvent; new(type: string, eventInitDict?: CustomEventInit): CustomEvent; }; /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */ interface DOMException extends Error { /** @deprecated */ readonly code: number; readonly message: string; readonly name: string; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; } declare var DOMException: { prototype: DOMException; new(message?: string, name?: string): DOMException; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; }; /** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */ interface DOMImplementation { createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; createHTMLDocument(title?: string): Document; /** @deprecated */ hasFeature(...args: any[]): true; } declare var DOMImplementation: { prototype: DOMImplementation; new(): DOMImplementation; }; interface DOMMatrix extends DOMMatrixReadOnly { a: number; b: number; c: number; d: number; e: number; f: number; m11: number; m12: number; m13: number; m14: number; m21: number; m22: number; m23: number; m24: number; m31: number; m32: number; m33: number; m34: number; m41: number; m42: number; m43: number; m44: number; invertSelf(): DOMMatrix; multiplySelf(other?: DOMMatrixInit): DOMMatrix; preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; setMatrixValue(transformList: string): DOMMatrix; skewXSelf(sx?: number): DOMMatrix; skewYSelf(sy?: number): DOMMatrix; translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; } declare var DOMMatrix: { prototype: DOMMatrix; new(init?: string | number[]): DOMMatrix; fromFloat32Array(array32: Float32Array): DOMMatrix; fromFloat64Array(array64: Float64Array): DOMMatrix; fromMatrix(other?: DOMMatrixInit): DOMMatrix; }; type SVGMatrix = DOMMatrix; declare var SVGMatrix: typeof DOMMatrix; type WebKitCSSMatrix = DOMMatrix; declare var WebKitCSSMatrix: typeof DOMMatrix; interface DOMMatrixReadOnly { readonly a: number; readonly b: number; readonly c: number; readonly d: number; readonly e: number; readonly f: number; readonly is2D: boolean; readonly isIdentity: boolean; readonly m11: number; readonly m12: number; readonly m13: number; readonly m14: number; readonly m21: number; readonly m22: number; readonly m23: number; readonly m24: number; readonly m31: number; readonly m32: number; readonly m33: number; readonly m34: number; readonly m41: number; readonly m42: number; readonly m43: number; readonly m44: number; flipX(): DOMMatrix; flipY(): DOMMatrix; inverse(): DOMMatrix; multiply(other?: DOMMatrixInit): DOMMatrix; rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; rotateFromVector(x?: number, y?: number): DOMMatrix; scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** @deprecated */ scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; skewX(sx?: number): DOMMatrix; skewY(sy?: number): DOMMatrix; toFloat32Array(): Float32Array; toFloat64Array(): Float64Array; toJSON(): any; transformPoint(point?: DOMPointInit): DOMPoint; translate(tx?: number, ty?: number, tz?: number): DOMMatrix; toString(): string; } declare var DOMMatrixReadOnly: { prototype: DOMMatrixReadOnly; new(init?: string | number[]): DOMMatrixReadOnly; fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; toString(): string; }; /** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */ interface DOMParser { /** * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser). * * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error. * * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8. * * Values other than the above for type will cause a TypeError exception to be thrown. */ parseFromString(string: string, type: DOMParserSupportedType): Document; } declare var DOMParser: { prototype: DOMParser; new(): DOMParser; }; interface DOMPoint extends DOMPointReadOnly { w: number; x: number; y: number; z: number; } declare var DOMPoint: { prototype: DOMPoint; new(x?: number, y?: number, z?: number, w?: number): DOMPoint; fromPoint(other?: DOMPointInit): DOMPoint; }; type SVGPoint = DOMPoint; declare var SVGPoint: typeof DOMPoint; interface DOMPointReadOnly { readonly w: number; readonly x: number; readonly y: number; readonly z: number; matrixTransform(matrix?: DOMMatrixInit): DOMPoint; toJSON(): any; } declare var DOMPointReadOnly: { prototype: DOMPointReadOnly; new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; interface DOMQuad { readonly p1: DOMPoint; readonly p2: DOMPoint; readonly p3: DOMPoint; readonly p4: DOMPoint; getBounds(): DOMRect; toJSON(): any; } declare var DOMQuad: { prototype: DOMQuad; new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad; fromQuad(other?: DOMQuadInit): DOMQuad; fromRect(other?: DOMRectInit): DOMQuad; }; interface DOMRect extends DOMRectReadOnly { height: number; width: number; x: number; y: number; } declare var DOMRect: { prototype: DOMRect; new(x?: number, y?: number, width?: number, height?: number): DOMRect; fromRect(other?: DOMRectInit): DOMRect; }; type SVGRect = DOMRect; declare var SVGRect: typeof DOMRect; interface DOMRectList { readonly length: number; item(index: number): DOMRect | null; [index: number]: DOMRect; } declare var DOMRectList: { prototype: DOMRectList; new(): DOMRectList; }; interface DOMRectReadOnly { readonly bottom: number; readonly height: number; readonly left: number; readonly right: number; readonly top: number; readonly width: number; readonly x: number; readonly y: number; toJSON(): any; } declare var DOMRectReadOnly: { prototype: DOMRectReadOnly; new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; fromRect(other?: DOMRectInit): DOMRectReadOnly; }; /** A type returned by some APIs which contains a list of DOMString (strings). */ interface DOMStringList { /** Returns the number of strings in strings. */ readonly length: number; /** Returns true if strings contains string, and false otherwise. */ contains(string: string): boolean; /** Returns the string with index index from strings. */ item(index: number): string | null; [index: number]: string; } declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; }; /** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */ interface DOMStringMap { [name: string]: string | undefined; } declare var DOMStringMap: { prototype: DOMStringMap; new(): DOMStringMap; }; /** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */ interface DOMTokenList { /** Returns the number of tokens. */ readonly length: number; /** * Returns the associated set as string. * * Can be set, to change the associated attribute. */ value: string; toString(): string; /** * Adds all arguments passed, except those already present. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. */ add(...tokens: string[]): void; /** Returns true if token is present, and false otherwise. */ contains(token: string): boolean; /** Returns the token with index index. */ item(index: number): string | null; /** * Removes arguments passed, if they are present. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. */ remove(...tokens: string[]): void; /** * Replaces token with newToken. * * Returns true if token was replaced with newToken, and false otherwise. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. */ replace(token: string, newToken: string): boolean; /** * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. * * Throws a TypeError if the associated attribute has no supported tokens defined. */ supports(token: string): boolean; /** * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()). * * Returns true if token is now present, and false otherwise. * * Throws a "SyntaxError" DOMException if token is empty. * * Throws an "InvalidCharacterError" DOMException if token contains any spaces. */ toggle(token: string, force?: boolean): boolean; forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void; [index: number]: string; } declare var DOMTokenList: { prototype: DOMTokenList; new(): DOMTokenList; }; /** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */ interface DataTransfer { /** * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail. * * Can be set, to change the selected operation. * * The possible values are "none", "copy", "link", and "move". */ dropEffect: "none" | "copy" | "link" | "move"; /** * Returns the kinds of operations that are to be allowed. * * Can be set (during the dragstart event), to change the allowed operations. * * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized", */ effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; /** Returns a FileList of the files being dragged, if any. */ readonly files: FileList; /** Returns a DataTransferItemList object, with the drag data. */ readonly items: DataTransferItemList; /** Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". */ readonly types: ReadonlyArray; /** Removes the data of the specified formats. Removes all data if the argument is omitted. */ clearData(format?: string): void; /** Returns the specified data. If there is no such data, returns the empty string. */ getData(format: string): string; /** Adds the specified data. */ setData(format: string, data: string): void; /** Uses the given element to update the drag feedback, replacing any previously specified feedback. */ setDragImage(image: Element, x: number, y: number): void; } declare var DataTransfer: { prototype: DataTransfer; new(): DataTransfer; }; /** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */ interface DataTransferItem { /** Returns the drag data item kind, one of: "string", "file". */ readonly kind: string; /** Returns the drag data item type string. */ readonly type: string; /** Returns a File object, if the drag data item kind is File. */ getAsFile(): File | null; /** Invokes the callback with the string data as the argument, if the drag data item kind is text. */ getAsString(callback: FunctionStringCallback | null): void; webkitGetAsEntry(): FileSystemEntry | null; } declare var DataTransferItem: { prototype: DataTransferItem; new(): DataTransferItem; }; /** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */ interface DataTransferItemList { /** Returns the number of items in the drag data store. */ readonly length: number; /** Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. */ add(data: string, type: string): DataTransferItem | null; add(data: File): DataTransferItem | null; /** Removes all the entries in the drag data store. */ clear(): void; /** Removes the indexth entry in the drag data store. */ remove(index: number): void; [index: number]: DataTransferItem; } declare var DataTransferItemList: { prototype: DataTransferItemList; new(): DataTransferItemList; }; /** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */ interface DelayNode extends AudioNode { readonly delayTime: AudioParam; } declare var DelayNode: { prototype: DelayNode; new(context: BaseAudioContext, options?: DelayOptions): DelayNode; }; /** * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. * Available only in secure contexts. */ interface DeviceMotionEvent extends Event { readonly acceleration: DeviceMotionEventAcceleration | null; readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; readonly interval: number; readonly rotationRate: DeviceMotionEventRotationRate | null; } declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; }; /** Available only in secure contexts. */ interface DeviceMotionEventAcceleration { readonly x: number | null; readonly y: number | null; readonly z: number | null; } /** Available only in secure contexts. */ interface DeviceMotionEventRotationRate { readonly alpha: number | null; readonly beta: number | null; readonly gamma: number | null; } /** * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. * Available only in secure contexts. */ interface DeviceOrientationEvent extends Event { readonly absolute: boolean; readonly alpha: number | null; readonly beta: number | null; readonly gamma: number | null; } declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; }; interface DocumentEventMap extends GlobalEventHandlersEventMap { "DOMContentLoaded": Event; "fullscreenchange": Event; "fullscreenerror": Event; "pointerlockchange": Event; "pointerlockerror": Event; "readystatechange": Event; "visibilitychange": Event; } /** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { /** Sets or gets the URL for the current document. */ readonly URL: string; /** * Sets or gets the color of all active links in the document. * @deprecated */ alinkColor: string; /** * Returns a reference to the collection of elements contained by the object. * @deprecated */ readonly all: HTMLAllCollection; /** * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. * @deprecated */ readonly anchors: HTMLCollectionOf; /** * Retrieves a collection of all applet objects in the document. * @deprecated */ readonly applets: HTMLCollection; /** * Deprecated. Sets or retrieves a value that indicates the background color behind the object. * @deprecated */ bgColor: string; /** Specifies the beginning and end of the document body. */ body: HTMLElement; /** Returns document's encoding. */ readonly characterSet: string; /** * Gets or sets the character set used to encode the object. * @deprecated This is a legacy alias of \`characterSet\`. */ readonly charset: string; /** Gets a value that indicates whether standards-compliant mode is switched on for the object. */ readonly compatMode: string; /** Returns document's content type. */ readonly contentType: string; /** * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned. * * Can be set, to add a new cookie to the element's set of HTTP cookies. * * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. */ cookie: string; /** * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing. * * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. */ readonly currentScript: HTMLOrSVGScriptElement | null; /** Returns the Window object of the active document. */ readonly defaultView: (WindowProxy & typeof globalThis) | null; /** Sets or gets a value that indicates whether the document can be edited. */ designMode: string; /** Sets or retrieves a value that indicates the reading order of the object. */ dir: string; /** Gets an object representing the document type declaration associated with the current document. */ readonly doctype: DocumentType | null; /** Gets a reference to the root node of the document. */ readonly documentElement: HTMLElement; /** Returns document's URL. */ readonly documentURI: string; /** * Sets or gets the security domain of the document. * @deprecated */ domain: string; /** Retrieves a collection of all embed objects in the document. */ readonly embeds: HTMLCollectionOf; /** * Sets or gets the foreground (text) color of the document. * @deprecated */ fgColor: string; /** Retrieves a collection, in source order, of all form objects in the document. */ readonly forms: HTMLCollectionOf; /** @deprecated */ readonly fullscreen: boolean; /** Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. */ readonly fullscreenEnabled: boolean; /** Returns the head element. */ readonly head: HTMLHeadElement; readonly hidden: boolean; /** Retrieves a collection, in source order, of img objects in the document. */ readonly images: HTMLCollectionOf; /** Gets the implementation object of the current document. */ readonly implementation: DOMImplementation; /** * Returns the character encoding used to create the webpage that is loaded into the document object. * @deprecated This is a legacy alias of \`characterSet\`. */ readonly inputEncoding: string; /** Gets the date that the page was last modified, if the page supplies one. */ readonly lastModified: string; /** * Sets or gets the color of the document links. * @deprecated */ linkColor: string; /** Retrieves a collection of all a objects that specify the href property and all area objects in the document. */ readonly links: HTMLCollectionOf; /** Contains information about the current URL. */ get location(): Location; set location(href: string | Location); onfullscreenchange: ((this: Document, ev: Event) => any) | null; onfullscreenerror: ((this: Document, ev: Event) => any) | null; onpointerlockchange: ((this: Document, ev: Event) => any) | null; onpointerlockerror: ((this: Document, ev: Event) => any) | null; /** * Fires when the state of the object has changed. * @param ev The event */ onreadystatechange: ((this: Document, ev: Event) => any) | null; onvisibilitychange: ((this: Document, ev: Event) => any) | null; readonly ownerDocument: null; readonly pictureInPictureEnabled: boolean; /** Return an HTMLCollection of the embed elements in the Document. */ readonly plugins: HTMLCollectionOf; /** Retrieves a value that indicates the current state of the object. */ readonly readyState: DocumentReadyState; /** Gets the URL of the location that referred the user to the current page. */ readonly referrer: string; /** @deprecated */ readonly rootElement: SVGSVGElement | null; /** Retrieves a collection of all script objects in the document. */ readonly scripts: HTMLCollectionOf; readonly scrollingElement: Element | null; readonly timeline: DocumentTimeline; /** Contains the title of the document. */ title: string; readonly visibilityState: DocumentVisibilityState; /** * Sets or gets the color of the links that the user has visited. * @deprecated */ vlinkColor: string; /** * Moves node from another document and returns it. * * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException. */ adoptNode(node: T): T; /** @deprecated */ captureEvents(): void; /** @deprecated */ caretRangeFromPoint(x: number, y: number): Range | null; /** @deprecated */ clear(): void; /** Closes an output stream and forces the sent data to display. */ close(): void; /** * Creates an attribute object with a specified name. * @param name String that sets the attribute object's name. */ createAttribute(localName: string): Attr; createAttributeNS(namespace: string | null, qualifiedName: string): Attr; /** Returns a CDATASection node whose data is data. */ createCDATASection(data: string): CDATASection; /** * Creates a comment object with the specified data. * @param data Sets the comment object's data. */ createComment(data: string): Comment; /** Creates a new document. */ createDocumentFragment(): DocumentFragment; /** * Creates an instance of the element for the specified tag. * @param tagName The name of an element. */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; /** @deprecated */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName. * * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown. * * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: * * localName does not match the QName production. * Namespace prefix is not null and namespace is the empty string. * Namespace prefix is "xml" and namespace is not the XML namespace. * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns". * * When supplied, options's is can be used to create a customized built-in element. */ createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement; createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element; createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element; createEvent(eventInterface: "AnimationEvent"): AnimationEvent; createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; createEvent(eventInterface: "BlobEvent"): BlobEvent; createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; createEvent(eventInterface: "CloseEvent"): CloseEvent; createEvent(eventInterface: "CompositionEvent"): CompositionEvent; createEvent(eventInterface: "CustomEvent"): CustomEvent; createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; createEvent(eventInterface: "DragEvent"): DragEvent; createEvent(eventInterface: "ErrorEvent"): ErrorEvent; createEvent(eventInterface: "Event"): Event; createEvent(eventInterface: "Events"): Event; createEvent(eventInterface: "FocusEvent"): FocusEvent; createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; createEvent(eventInterface: "FormDataEvent"): FormDataEvent; createEvent(eventInterface: "GamepadEvent"): GamepadEvent; createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; createEvent(eventInterface: "InputEvent"): InputEvent; createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent; createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent; createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; createEvent(eventInterface: "MessageEvent"): MessageEvent; createEvent(eventInterface: "MouseEvent"): MouseEvent; createEvent(eventInterface: "MouseEvents"): MouseEvent; createEvent(eventInterface: "MutationEvent"): MutationEvent; createEvent(eventInterface: "MutationEvents"): MutationEvent; createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent; createEvent(eventInterface: "PointerEvent"): PointerEvent; createEvent(eventInterface: "PopStateEvent"): PopStateEvent; createEvent(eventInterface: "ProgressEvent"): ProgressEvent; createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; createEvent(eventInterface: "SubmitEvent"): SubmitEvent; createEvent(eventInterface: "TouchEvent"): TouchEvent; createEvent(eventInterface: "TrackEvent"): TrackEvent; createEvent(eventInterface: "TransitionEvent"): TransitionEvent; createEvent(eventInterface: "UIEvent"): UIEvent; createEvent(eventInterface: "UIEvents"): UIEvent; createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; createEvent(eventInterface: "WheelEvent"): WheelEvent; createEvent(eventInterface: string): Event; /** * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. */ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; /** Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. */ createProcessingInstruction(target: string, data: string): ProcessingInstruction; /** Returns an empty range object that has both of its boundary points positioned at the beginning of the document. */ createRange(): Range; /** * Creates a text string from the specified value. * @param data String that specifies the nodeValue property of the text node. */ createTextNode(data: string): Text; /** * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. * @param filter A custom NodeFilter function to use. */ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; /** * Executes a command on the current document, current selection, or the given range. * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. * @param showUI Display the user interface, defaults to false. * @param value Value to assign. * @deprecated */ execCommand(commandId: string, showUI?: boolean, value?: string): boolean; /** Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. */ exitFullscreen(): Promise; exitPictureInPicture(): Promise; exitPointerLock(): void; /** * Returns a reference to the first object with the specified value of the ID attribute. * @param elementId String that specifies the ID value. */ getElementById(elementId: string): HTMLElement | null; /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** * Gets a collection of objects based on the value of the NAME or ID attribute. * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. */ getElementsByName(elementName: string): NodeListOf; /** * Retrieves a collection of objects based on the specified element name. * @param name Specifies the name of an element. */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** * If namespace and localName are "*" returns a HTMLCollection of all descendant elements. * * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. * * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. * * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. */ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; /** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */ getSelection(): Selection | null; /** Gets a value indicating whether the object currently has focus. */ hasFocus(): boolean; hasStorageAccess(): Promise; /** * Returns a copy of node. If deep is true, the copy also includes the node's descendants. * * If node is a document or a shadow root, throws a "NotSupportedError" DOMException. */ importNode(node: T, deep?: boolean): T; /** * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. * @param url Specifies a MIME type for the document. * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. * @param replace Specifies whether the existing entry for the document is replaced in the history list. */ open(unused1?: string, unused2?: string): Document; open(url: string | URL, name: string, features: string): WindowProxy | null; /** * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. * @param commandId Specifies a command identifier. * @deprecated */ queryCommandEnabled(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. * @param commandId String that specifies a command identifier. * @deprecated */ queryCommandIndeterm(commandId: string): boolean; /** * Returns a Boolean value that indicates the current state of the command. * @param commandId String that specifies a command identifier. * @deprecated */ queryCommandState(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the current command is supported on the current range. * @param commandId Specifies a command identifier. * @deprecated */ queryCommandSupported(commandId: string): boolean; /** * Returns the current value of the document, range, or current selection for the given command. * @param commandId String that specifies a command identifier. * @deprecated */ queryCommandValue(commandId: string): string; /** @deprecated */ releaseEvents(): void; requestStorageAccess(): Promise; /** * Writes one or more HTML expressions to a document in the specified window. * @param content Specifies the text and HTML tags to write. */ write(...text: string[]): void; /** * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. * @param content The text and HTML tags to write. */ writeln(...text: string[]): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Document: { prototype: Document; new(): Document; }; /** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */ interface DocumentFragment extends Node, NonElementParentNode, ParentNode { readonly ownerDocument: Document; getElementById(elementId: string): HTMLElement | null; } declare var DocumentFragment: { prototype: DocumentFragment; new(): DocumentFragment; }; interface DocumentOrShadowRoot { /** * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document. * * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document. * * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. */ readonly activeElement: Element | null; adoptedStyleSheets: CSSStyleSheet[]; /** Returns document's fullscreen element. */ readonly fullscreenElement: Element | null; readonly pictureInPictureElement: Element | null; readonly pointerLockElement: Element | null; /** Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */ readonly styleSheets: StyleSheetList; /** * Returns the element for the specified x coordinate and the specified y coordinate. * @param x The x-offset * @param y The y-offset */ elementFromPoint(x: number, y: number): Element | null; elementsFromPoint(x: number, y: number): Element[]; getAnimations(): Animation[]; } interface DocumentTimeline extends AnimationTimeline { } declare var DocumentTimeline: { prototype: DocumentTimeline; new(options?: DocumentTimelineOptions): DocumentTimeline; }; /** A Node containing a doctype. */ interface DocumentType extends Node, ChildNode { readonly name: string; readonly ownerDocument: Document; readonly publicId: string; readonly systemId: string; } declare var DocumentType: { prototype: DocumentType; new(): DocumentType; }; /** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */ interface DragEvent extends MouseEvent { /** Returns the DataTransfer object for the event. */ readonly dataTransfer: DataTransfer | null; } declare var DragEvent: { prototype: DragEvent; new(type: string, eventInitDict?: DragEventInit): DragEvent; }; /** Inherits properties from its parent, AudioNode. */ interface DynamicsCompressorNode extends AudioNode { readonly attack: AudioParam; readonly knee: AudioParam; readonly ratio: AudioParam; readonly reduction: number; readonly release: AudioParam; readonly threshold: AudioParam; } declare var DynamicsCompressorNode: { prototype: DynamicsCompressorNode; new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode; }; interface EXT_blend_minmax { readonly MIN_EXT: 0x8007; readonly MAX_EXT: 0x8008; } interface EXT_color_buffer_float { } interface EXT_color_buffer_half_float { readonly RGBA16F_EXT: 0x881A; readonly RGB16F_EXT: 0x881B; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } interface EXT_float_blend { } /** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */ interface EXT_frag_depth { } interface EXT_sRGB { readonly SRGB_EXT: 0x8C40; readonly SRGB_ALPHA_EXT: 0x8C42; readonly SRGB8_ALPHA8_EXT: 0x8C43; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; } interface EXT_shader_texture_lod { } interface EXT_texture_compression_bptc { readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C; readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D; readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E; readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F; } interface EXT_texture_compression_rgtc { readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB; readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC; readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD; readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE; } /** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */ interface EXT_texture_filter_anisotropic { readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; } interface EXT_texture_norm16 { readonly R16_EXT: 0x822A; readonly RG16_EXT: 0x822C; readonly RGB16_EXT: 0x8054; readonly RGBA16_EXT: 0x805B; readonly R16_SNORM_EXT: 0x8F98; readonly RG16_SNORM_EXT: 0x8F99; readonly RGB16_SNORM_EXT: 0x8F9A; readonly RGBA16_SNORM_EXT: 0x8F9B; } interface ElementEventMap { "fullscreenchange": Event; "fullscreenerror": Event; } /** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable { readonly attributes: NamedNodeMap; /** Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. */ readonly classList: DOMTokenList; /** Returns the value of element's class content attribute. Can be set to change it. */ className: string; readonly clientHeight: number; readonly clientLeft: number; readonly clientTop: number; readonly clientWidth: number; /** Returns the value of element's id content attribute. Can be set to change it. */ id: string; /** Returns the local name. */ readonly localName: string; /** Returns the namespace. */ readonly namespaceURI: string | null; onfullscreenchange: ((this: Element, ev: Event) => any) | null; onfullscreenerror: ((this: Element, ev: Event) => any) | null; outerHTML: string; readonly ownerDocument: Document; readonly part: DOMTokenList; /** Returns the namespace prefix. */ readonly prefix: string | null; readonly scrollHeight: number; scrollLeft: number; scrollTop: number; readonly scrollWidth: number; /** Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. */ readonly shadowRoot: ShadowRoot | null; /** Returns the value of element's slot content attribute. Can be set to change it. */ slot: string; /** Returns the HTML-uppercased qualified name. */ readonly tagName: string; /** Creates a shadow root for element and returns it. */ attachShadow(init: ShadowRootInit): ShadowRoot; checkVisibility(options?: CheckVisibilityOptions): boolean; /** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */ closest(selector: K): HTMLElementTagNameMap[K] | null; closest(selector: K): SVGElementTagNameMap[K] | null; closest(selector: K): MathMLElementTagNameMap[K] | null; closest(selectors: string): E | null; /** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */ getAttribute(qualifiedName: string): string | null; /** Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */ getAttributeNS(namespace: string | null, localName: string): string | null; /** Returns the qualified names of all element's attributes. Can contain duplicates. */ getAttributeNames(): string[]; getAttributeNode(qualifiedName: string): Attr | null; getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; getBoundingClientRect(): DOMRect; getClientRects(): DOMRectList; /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */ getElementsByClassName(classNames: string): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; /** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */ hasAttribute(qualifiedName: string): boolean; /** Returns true if element has an attribute whose namespace is namespace and local name is localName. */ hasAttributeNS(namespace: string | null, localName: string): boolean; /** Returns true if element has attributes, and false otherwise. */ hasAttributes(): boolean; hasPointerCapture(pointerId: number): boolean; insertAdjacentElement(where: InsertPosition, element: Element): Element | null; insertAdjacentHTML(position: InsertPosition, text: string): void; insertAdjacentText(where: InsertPosition, data: string): void; /** Returns true if matching selectors against element's root yields element, and false otherwise. */ matches(selectors: string): boolean; releasePointerCapture(pointerId: number): void; /** Removes element's first attribute whose qualified name is qualifiedName. */ removeAttribute(qualifiedName: string): void; /** Removes element's attribute whose namespace is namespace and local name is localName. */ removeAttributeNS(namespace: string | null, localName: string): void; removeAttributeNode(attr: Attr): Attr; /** * Displays element fullscreen and resolves promise when done. * * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. */ requestFullscreen(options?: FullscreenOptions): Promise; requestPointerLock(): void; scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; scrollBy(options?: ScrollToOptions): void; scrollBy(x: number, y: number): void; scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; scrollTo(options?: ScrollToOptions): void; scrollTo(x: number, y: number): void; /** Sets the value of element's first attribute whose qualified name is qualifiedName to value. */ setAttribute(qualifiedName: string, value: string): void; /** Sets the value of element's attribute whose namespace is namespace and local name is localName to value. */ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; setAttributeNode(attr: Attr): Attr | null; setAttributeNodeNS(attr: Attr): Attr | null; setPointerCapture(pointerId: number): void; /** * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. * * Returns true if qualifiedName is now present, and false otherwise. */ toggleAttribute(qualifiedName: string, force?: boolean): boolean; /** @deprecated This is a legacy alias of \`matches\`. */ webkitMatchesSelector(selectors: string): boolean; addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Element: { prototype: Element; new(): Element; }; interface ElementCSSInlineStyle { readonly style: CSSStyleDeclaration; } interface ElementContentEditable { contentEditable: string; enterKeyHint: string; inputMode: string; readonly isContentEditable: boolean; } interface ElementInternals extends ARIAMixin { /** Returns the form owner of internals's target element. */ readonly form: HTMLFormElement | null; /** Returns a NodeList of all the label elements that internals's target element is associated with. */ readonly labels: NodeList; /** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */ readonly shadowRoot: ShadowRoot | null; /** Returns the error message that would be shown to the user if internals's target element was to be checked for validity. */ readonly validationMessage: string; /** Returns the ValidityState object for internals's target element. */ readonly validity: ValidityState; /** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */ readonly willValidate: boolean; /** Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. */ checkValidity(): boolean; /** Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. */ reportValidity(): boolean; /** * Sets both the state and submission value of internals's target element to value. * * If value is null, the element won't participate in form submission. */ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; /** Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. */ setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; } declare var ElementInternals: { prototype: ElementInternals; new(): ElementInternals; }; /** Events providing information related to errors in scripts or in files. */ interface ErrorEvent extends Event { readonly colno: number; readonly error: any; readonly filename: string; readonly lineno: number; readonly message: string; } declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; }; /** An event which takes place in the DOM. */ interface Event { /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */ readonly bubbles: boolean; /** @deprecated */ cancelBubble: boolean; /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */ readonly cancelable: boolean; /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */ readonly composed: boolean; /** Returns the object whose event listener's callback is currently being invoked. */ readonly currentTarget: EventTarget | null; /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */ readonly defaultPrevented: boolean; /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */ readonly eventPhase: number; /** Returns true if event was dispatched by the user agent, and false otherwise. */ readonly isTrusted: boolean; /** @deprecated */ returnValue: boolean; /** @deprecated */ readonly srcElement: EventTarget | null; /** Returns the object to which event is dispatched (its target). */ readonly target: EventTarget | null; /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */ readonly timeStamp: DOMHighResTimeStamp; /** Returns the type of event, e.g. "click", "hashchange", or "submit". */ readonly type: string; /** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */ composedPath(): EventTarget[]; /** @deprecated */ initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */ preventDefault(): void; /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */ stopImmediatePropagation(): void; /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */ stopPropagation(): void; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; } declare var Event: { prototype: Event; new(type: string, eventInitDict?: EventInit): Event; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; }; interface EventCounts { forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void; } declare var EventCounts: { prototype: EventCounts; new(): EventCounts; }; interface EventListener { (evt: Event): void; } interface EventListenerObject { handleEvent(object: Event): void; } interface EventSourceEventMap { "error": Event; "message": MessageEvent; "open": Event; } interface EventSource extends EventTarget { onerror: ((this: EventSource, ev: Event) => any) | null; onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; onopen: ((this: EventSource, ev: Event) => any) | null; /** Returns the state of this EventSource object's connection. It can have the values described below. */ readonly readyState: number; /** Returns the URL providing the event stream. */ readonly url: string; /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */ readonly withCredentials: boolean; /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */ close(): void; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var EventSource: { prototype: EventSource; new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; }; /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */ interface EventTarget { /** * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. * * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. * * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. * * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. * * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. * * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. * * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. */ addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */ dispatchEvent(event: Event): boolean; /** Removes the event listener in target's event listener list with the same type, callback, and options. */ removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; } declare var EventTarget: { prototype: EventTarget; new(): EventTarget; }; /** @deprecated */ interface External { /** @deprecated */ AddSearchProvider(): void; /** @deprecated */ IsSearchProviderInstalled(): void; } /** @deprecated */ declare var External: { prototype: External; new(): External; }; /** Provides information about files and allows JavaScript in a web page to access their content. */ interface File extends Blob { readonly lastModified: number; readonly name: string; readonly webkitRelativePath: string; } declare var File: { prototype: File; new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; }; /** An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */ interface FileList { readonly length: number; item(index: number): File | null; [index: number]: File; } declare var FileList: { prototype: FileList; new(): FileList; }; interface FileReaderEventMap { "abort": ProgressEvent; "error": ProgressEvent; "load": ProgressEvent; "loadend": ProgressEvent; "loadstart": ProgressEvent; "progress": ProgressEvent; } /** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */ interface FileReader extends EventTarget { readonly error: DOMException | null; onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; onload: ((this: FileReader, ev: ProgressEvent) => any) | null; onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null; onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null; readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; readonly result: string | ArrayBuffer | null; abort(): void; readAsArrayBuffer(blob: Blob): void; readAsBinaryString(blob: Blob): void; readAsDataURL(blob: Blob): void; readAsText(blob: Blob, encoding?: string): void; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FileReader: { prototype: FileReader; new(): FileReader; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; }; interface FileSystem { readonly name: string; readonly root: FileSystemDirectoryEntry; } declare var FileSystem: { prototype: FileSystem; new(): FileSystem; }; interface FileSystemDirectoryEntry extends FileSystemEntry { createReader(): FileSystemDirectoryReader; getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryEntry: { prototype: FileSystemDirectoryEntry; new(): FileSystemDirectoryEntry; }; /** Available only in secure contexts. */ interface FileSystemDirectoryHandle extends FileSystemHandle { readonly kind: "directory"; getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise; getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise; removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; resolve(possibleDescendant: FileSystemHandle): Promise; } declare var FileSystemDirectoryHandle: { prototype: FileSystemDirectoryHandle; new(): FileSystemDirectoryHandle; }; interface FileSystemDirectoryReader { readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryReader: { prototype: FileSystemDirectoryReader; new(): FileSystemDirectoryReader; }; interface FileSystemEntry { readonly filesystem: FileSystem; readonly fullPath: string; readonly isDirectory: boolean; readonly isFile: boolean; readonly name: string; getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemEntry: { prototype: FileSystemEntry; new(): FileSystemEntry; }; interface FileSystemFileEntry extends FileSystemEntry { file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemFileEntry: { prototype: FileSystemFileEntry; new(): FileSystemFileEntry; }; /** Available only in secure contexts. */ interface FileSystemFileHandle extends FileSystemHandle { readonly kind: "file"; getFile(): Promise; } declare var FileSystemFileHandle: { prototype: FileSystemFileHandle; new(): FileSystemFileHandle; }; /** Available only in secure contexts. */ interface FileSystemHandle { readonly kind: FileSystemHandleKind; readonly name: string; isSameEntry(other: FileSystemHandle): Promise; } declare var FileSystemHandle: { prototype: FileSystemHandle; new(): FileSystemHandle; }; /** Focus-related events like focus, blur, focusin, or focusout. */ interface FocusEvent extends UIEvent { readonly relatedTarget: EventTarget | null; } declare var FocusEvent: { prototype: FocusEvent; new(type: string, eventInitDict?: FocusEventInit): FocusEvent; }; interface FontFace { ascentOverride: string; descentOverride: string; display: FontDisplay; family: string; featureSettings: string; lineGapOverride: string; readonly loaded: Promise; readonly status: FontFaceLoadStatus; stretch: string; style: string; unicodeRange: string; variant: string; weight: string; load(): Promise; } declare var FontFace: { prototype: FontFace; new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; }; interface FontFaceSetEventMap { "loading": Event; "loadingdone": Event; "loadingerror": Event; } interface FontFaceSet extends EventTarget { onloading: ((this: FontFaceSet, ev: Event) => any) | null; onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null; onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null; readonly ready: Promise; readonly status: FontFaceSetLoadStatus; check(font: string, text?: string): boolean; load(font: string, text?: string): Promise; forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; addEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FontFaceSet: { prototype: FontFaceSet; new(initialFaces: FontFace[]): FontFaceSet; }; interface FontFaceSetLoadEvent extends Event { readonly fontfaces: ReadonlyArray; } declare var FontFaceSetLoadEvent: { prototype: FontFaceSetLoadEvent; new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; }; interface FontFaceSource { readonly fonts: FontFaceSet; } /** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */ interface FormData { append(name: string, value: string | Blob, fileName?: string): void; delete(name: string): void; get(name: string): FormDataEntryValue | null; getAll(name: string): FormDataEntryValue[]; has(name: string): boolean; set(name: string, value: string | Blob, fileName?: string): void; forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; } declare var FormData: { prototype: FormData; new(form?: HTMLFormElement): FormData; }; interface FormDataEvent extends Event { /** Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. */ readonly formData: FormData; } declare var FormDataEvent: { prototype: FormDataEvent; new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; }; /** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */ interface GainNode extends AudioNode { readonly gain: AudioParam; } declare var GainNode: { prototype: GainNode; new(context: BaseAudioContext, options?: GainOptions): GainNode; }; /** * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. * Available only in secure contexts. */ interface Gamepad { readonly axes: ReadonlyArray; readonly buttons: ReadonlyArray; readonly connected: boolean; readonly hapticActuators: ReadonlyArray; readonly id: string; readonly index: number; readonly mapping: GamepadMappingType; readonly timestamp: DOMHighResTimeStamp; } declare var Gamepad: { prototype: Gamepad; new(): Gamepad; }; /** * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. * Available only in secure contexts. */ interface GamepadButton { readonly pressed: boolean; readonly touched: boolean; readonly value: number; } declare var GamepadButton: { prototype: GamepadButton; new(): GamepadButton; }; /** * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. * Available only in secure contexts. */ interface GamepadEvent extends Event { readonly gamepad: Gamepad; } declare var GamepadEvent: { prototype: GamepadEvent; new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; }; /** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */ interface GamepadHapticActuator { readonly type: GamepadHapticActuatorType; } declare var GamepadHapticActuator: { prototype: GamepadHapticActuator; new(): GamepadHapticActuator; }; interface GenericTransformStream { readonly readable: ReadableStream; readonly writable: WritableStream; } /** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */ interface Geolocation { clearWatch(watchId: number): void; getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number; } declare var Geolocation: { prototype: Geolocation; new(): Geolocation; }; /** Available only in secure contexts. */ interface GeolocationCoordinates { readonly accuracy: number; readonly altitude: number | null; readonly altitudeAccuracy: number | null; readonly heading: number | null; readonly latitude: number; readonly longitude: number; readonly speed: number | null; } declare var GeolocationCoordinates: { prototype: GeolocationCoordinates; new(): GeolocationCoordinates; }; /** Available only in secure contexts. */ interface GeolocationPosition { readonly coords: GeolocationCoordinates; readonly timestamp: EpochTimeStamp; } declare var GeolocationPosition: { prototype: GeolocationPosition; new(): GeolocationPosition; }; interface GeolocationPositionError { readonly code: number; readonly message: string; readonly PERMISSION_DENIED: 1; readonly POSITION_UNAVAILABLE: 2; readonly TIMEOUT: 3; } declare var GeolocationPositionError: { prototype: GeolocationPositionError; new(): GeolocationPositionError; readonly PERMISSION_DENIED: 1; readonly POSITION_UNAVAILABLE: 2; readonly TIMEOUT: 3; }; interface GlobalEventHandlersEventMap { "abort": UIEvent; "animationcancel": AnimationEvent; "animationend": AnimationEvent; "animationiteration": AnimationEvent; "animationstart": AnimationEvent; "auxclick": MouseEvent; "beforeinput": InputEvent; "blur": FocusEvent; "cancel": Event; "canplay": Event; "canplaythrough": Event; "change": Event; "click": MouseEvent; "close": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; "contextmenu": MouseEvent; "copy": ClipboardEvent; "cuechange": Event; "cut": ClipboardEvent; "dblclick": MouseEvent; "drag": DragEvent; "dragend": DragEvent; "dragenter": DragEvent; "dragleave": DragEvent; "dragover": DragEvent; "dragstart": DragEvent; "drop": DragEvent; "durationchange": Event; "emptied": Event; "ended": Event; "error": ErrorEvent; "focus": FocusEvent; "focusin": FocusEvent; "focusout": FocusEvent; "formdata": FormDataEvent; "gotpointercapture": PointerEvent; "input": Event; "invalid": Event; "keydown": KeyboardEvent; "keypress": KeyboardEvent; "keyup": KeyboardEvent; "load": Event; "loadeddata": Event; "loadedmetadata": Event; "loadstart": Event; "lostpointercapture": PointerEvent; "mousedown": MouseEvent; "mouseenter": MouseEvent; "mouseleave": MouseEvent; "mousemove": MouseEvent; "mouseout": MouseEvent; "mouseover": MouseEvent; "mouseup": MouseEvent; "paste": ClipboardEvent; "pause": Event; "play": Event; "playing": Event; "pointercancel": PointerEvent; "pointerdown": PointerEvent; "pointerenter": PointerEvent; "pointerleave": PointerEvent; "pointermove": PointerEvent; "pointerout": PointerEvent; "pointerover": PointerEvent; "pointerup": PointerEvent; "progress": ProgressEvent; "ratechange": Event; "reset": Event; "resize": UIEvent; "scroll": Event; "securitypolicyviolation": SecurityPolicyViolationEvent; "seeked": Event; "seeking": Event; "select": Event; "selectionchange": Event; "selectstart": Event; "slotchange": Event; "stalled": Event; "submit": SubmitEvent; "suspend": Event; "timeupdate": Event; "toggle": Event; "touchcancel": TouchEvent; "touchend": TouchEvent; "touchmove": TouchEvent; "touchstart": TouchEvent; "transitioncancel": TransitionEvent; "transitionend": TransitionEvent; "transitionrun": TransitionEvent; "transitionstart": TransitionEvent; "volumechange": Event; "waiting": Event; "webkitanimationend": Event; "webkitanimationiteration": Event; "webkitanimationstart": Event; "webkittransitionend": Event; "wheel": WheelEvent; } interface GlobalEventHandlers { /** * Fires when the user aborts the download. * @param ev The event. */ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; /** * Fires when the object loses the input focus. * @param ev The focus event. */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when playback is possible, but would require further buffering. * @param ev The event. */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the contents of the object or selection have changed. * @param ev The event. */ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the left mouse button on the object * @param ev The mouse event. */ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. * @param ev The mouse event. */ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** * Fires when the user double-clicks the object. * @param ev The mouse event. */ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires on the source object continuously during a drag operation. * @param ev The event. */ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the source object when the user releases the mouse at the close of a drag operation. * @param ev The event. */ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target element when the user drags the object to a valid drop target. * @param ev The drag event. */ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. * @param ev The drag event. */ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target element continuously while the user drags the object over a valid drop target. * @param ev The event. */ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the source object when the user starts to drag a text selection or selected object. * @param ev The event. */ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Occurs when the duration attribute is updated. * @param ev The event. */ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the media element is reset to its initial state. * @param ev The event. */ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the end of playback is reached. * @param ev The event */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when an error occurs during object loading. * @param ev The event. */ onerror: OnErrorEventHandler; /** * Fires when the object receives focus. * @param ev The event. */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user presses a key. * @param ev The keyboard event */ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires when the user presses an alphanumeric key. * @param ev The event. * @deprecated */ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires when the user releases a key. * @param ev The keyboard event */ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires immediately after the browser loads the object. * @param ev The event. */ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when media data is loaded at the current playback position. * @param ev The event. */ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the duration and dimensions of the media have been determined. * @param ev The event. */ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when Internet Explorer begins looking for media data. * @param ev The event. */ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Fires when the user clicks the object with either mouse button. * @param ev The mouse event. */ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse over the object. * @param ev The mouse event. */ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer outside the boundaries of the object. * @param ev The mouse event. */ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer into the object. * @param ev The mouse event. */ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user releases a mouse button while the mouse is over the object. * @param ev The mouse event. */ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** * Occurs when playback is paused. * @param ev The event. */ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the play method is requested. * @param ev The event. */ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the audio or video has started playing. * @param ev The event. */ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Occurs to indicate progress while downloading media data. * @param ev The event. */ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; /** * Occurs when the playback rate is increased or decreased. * @param ev The event. */ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user resets a form. * @param ev The event. */ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** * Fires when the user repositions the scroll box in the scroll bar on the object. * @param ev The event. */ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; /** * Occurs when the seek operation ends. * @param ev The event. */ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the current playback position is moved. * @param ev The event. */ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the current selection changes. * @param ev The event. */ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the download has stopped. * @param ev The event. */ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; /** * Occurs if the load operation has been intentionally halted. * @param ev The event. */ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs to indicate the current playback position. * @param ev The event. */ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** * Occurs when the volume is changed, or playback is muted or unmuted. * @param ev The event. */ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when playback stops because the next frame of a video resource is not available. * @param ev The event. */ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`onanimationend\`. */ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`onanimationiteration\`. */ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`onanimationstart\`. */ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`ontransitionend\`. */ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } interface HTMLAllCollection { /** Returns the number of elements in the collection. */ readonly length: number; /** Returns the item with index index from the collection (determined by tree order). */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * Returns the item with ID or name name from the collection. * * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned. * * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute. */ namedItem(name: string): HTMLCollection | Element | null; [index: number]: Element; } declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; }; /** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * Sets or retrieves the character set used to encode the object. * @deprecated */ charset: string; /** * Sets or retrieves the coordinates of the object. * @deprecated */ coords: string; download: string; /** Sets or retrieves the language code of the object. */ hreflang: string; /** * Sets or retrieves the shape of the object. * @deprecated */ name: string; ping: string; referrerPolicy: string; /** Sets or retrieves the relationship between the object and the destination of the link. */ rel: string; readonly relList: DOMTokenList; /** * Sets or retrieves the relationship between the object and the destination of the link. * @deprecated */ rev: string; /** * Sets or retrieves the shape of the object. * @deprecated */ shape: string; /** Sets or retrieves the window or frame at which to target content. */ target: string; /** Retrieves or sets the text of the object as a string. */ text: string; type: string; addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAnchorElement: { prototype: HTMLAnchorElement; new(): HTMLAnchorElement; }; /** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements. */ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { /** Sets or retrieves a text alternative to the graphic. */ alt: string; /** Sets or retrieves the coordinates of the object. */ coords: string; download: string; /** * Sets or gets whether clicks in this region cause action. * @deprecated */ noHref: boolean; ping: string; referrerPolicy: string; rel: string; readonly relList: DOMTokenList; /** Sets or retrieves the shape of the object. */ shape: string; /** Sets or retrieves the window or frame at which to target content. */ target: string; addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAreaElement: { prototype: HTMLAreaElement; new(): HTMLAreaElement; }; /** Provides access to the properties of